diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 399308336a9b..000000000000
--- a/.travis.yml
+++ /dev/null
@@ -1,44 +0,0 @@
-sudo: false
-
-language: go
-go:
- - 1.10.x
- - 1.11.x
- - 1.12.x
-
-branches:
- only:
- - master
- - latest
-
-env:
- global:
- - DEP_RELEASE_TAG=v0.5.1 # so the script knows which version to use
- - IGNORE_BREAKING_CHANGES=true
- matrix:
- - GOARCH="amd64"
- - GOARCH="386"
-
-before_install:
- - curl -sSL https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
-
-install:
- - dep ensure -v
-
-script:
- - bash rungas.sh
- - grep -L -r --include *.go --exclude-dir vendor -P "Copyright (\d{4}|\(c\)) Microsoft" ./ | tee /dev/stderr | test -z "$(< /dev/stdin)"
- - echo -e "travis_fold:start:go.build\033[33;1mBuilding all packages\033[0m"
- - go build -v $(go list ./... | grep -v vendor)
- - echo -e "\ntravis_fold:end:go.build\r"
- - if [[ $TRAVIS_GO_VERSION == 1.11* ]]; then test -z "$(go fmt $(go list ./... | grep -v vendor) | tee /dev/stderr)"; fi
- - go vet $(go list ./... | grep -v vendor)
- - go test $(sh ./findTestedPackages.sh)
- - go run ./tools/apidiff/main.go packages ./services FETCH_HEAD~1 FETCH_HEAD --copyrepo --breakingchanges || $IGNORE_BREAKING_CHANGES
- - go run ./tools/pkgchk/main.go ./services --exceptions ./tools/pkgchk/exceptions.txt
- - git diff --exit-code
- - if [[ "$TRAVIS_EVENT_TYPE" == "push" && "$TRAVIS_BRANCH" == "master" ]]; then go run ./tools/indexer/main.go ./services; fi
-
-cache:
- directories:
- - $GOPATH/pkg/dep
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d81a4b296729..edb525c9748c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,69 @@
# CHANGELOG
+## `v35.0.0`
+
+### New Packages
+
+| Package Name | API Version |
+| -----------: | :---------: |
+| appconfiguration | 2019-10-01 |
+| authoring | luis |
+| containerservice | 2019-09-30-preview 2019-10-01 |
+| costmanagement | 2019-10-01 2019-10-01 |
+| datashare | 2019-11-01 |
+| hybridcompute | 2019-03-18-preview |
+| peering | 2019-09-01-preview |
+| policyinsights | 2019-10-01 |
+| storagecache | 2019-11-01 |
+| training | customvision |
+
+### Updated Packages
+
+| Package Name | API Version |
+| -----------: | :---------: |
+| advisor | 2017-03-31 2017-04-19 |
+| apimanagement | 2019-01-01 |
+| compute | 2018-10-01 |
+| containerservice | 2019-08-01 |
+| datafactory | 2017-09-01-preview |
+| eventgrid | 2018-01-01 |
+| eventhub | 2018-01-01-preview |
+| maps | 2017-01-01-preview |
+| mysql | 2017-12-01-preview |
+| postgresql | 2017-12-01-preview |
+| qnamakerruntime | v4.0 |
+| sqlvirtualmachine | 2017-03-01-preview |
+| web | 2018-02-01 |
+
+### BreakingChanges
+
+| Package Name | API Version |
+| -----------: | :---------: |
+| aad | 2017-01-01 2017-06-01 |
+| appplatform | 2019-05-01-preview |
+| backup | 2016-12-01 2017-07-01 |
+| cdn | 2019-04-15 |
+| cognitiveservices | 2017-04-18 |
+| compute | 2019-03-01 2019-07-01 |
+| containerregistry | 2017-10-01 2018-02-01 2018-09-01 |
+| datafactory | 2018-06-01 |
+| datashare | 2018-11-01-preview |
+| hdinsight | 2015-03-01-preview 2018-06-01-preview |
+| operationalinsights | 2015-03-20 |
+| reservations | 2019-04-01 |
+| security | v3.0 |
+| servicebus | 2017-04-01 |
+| sql | 2014-04-01 |
+| storage | 2019-04-01 |
+| vmwarecloudsimple | 2019-04-01 |
+| web | 2019-08-01 |
+
+### Removed Packages
+
+| Package Name | API Version |
+| -----------: | :---------: |
+| sql | 2018-06-15-preview |
+
## `v34.4.0`
### New Packages
diff --git a/Gopkg.lock b/Gopkg.lock
index d13b87336076..4cad81e6938d 100644
--- a/Gopkg.lock
+++ b/Gopkg.lock
@@ -2,14 +2,12 @@
[[projects]]
- digest = "1:9e57e16a4e809da5d6280ab4e7cb9c3d8a9d5b1065226be2d71c11d070a60e7b"
+ digest = "1:f6be05c789de8d4fe490d1a7dab6fce033d51924873493be58091119d206170d"
name = "github.com/Azure/go-autorest"
packages = [
"autorest",
"autorest/adal",
"autorest/azure",
- "autorest/azure/auth",
- "autorest/azure/cli",
"autorest/date",
"autorest/to",
"autorest/validation",
@@ -17,8 +15,8 @@
"tracing",
]
pruneopts = "UT"
- revision = "d9a171ca366fd4acfaa99107cdc4f91877f3572e"
- version = "v13.0.2"
+ revision = "3492b2aff5036c67228ab3c7dba3577c871db200"
+ version = "v13.3.0"
[[projects]]
digest = "1:d37f34e1e231ee4b8657d1b6153e2696b1d7341850f648f5d78151d3bc1f677b"
@@ -36,38 +34,16 @@
revision = "06ea1031745cb8b3dab3f6a236daf2b0aa468b7e"
version = "v3.2.0"
-[[projects]]
- digest = "1:cf0d2e435fd4ce45b789e93ef24b5f08e86be0e9807a16beb3694e2d8c9af965"
- name = "github.com/dimchansky/utfbom"
- packages = ["."]
- pruneopts = "UT"
- revision = "d2133a1ce379ef6fa992b0514a77146c60db9d1c"
- version = "v1.1.0"
-
[[projects]]
branch = "master"
- digest = "1:052aa482c25b2d76f432c16c4b404a6a3cb9cc205a95818c7680fcec501a43b7"
+ digest = "1:463a37f152816d49cd4302edaf1f72944c3edade65ffd8b2ea25883755afa156"
name = "github.com/dnaeon/go-vcr"
packages = [
"cassette",
"recorder",
]
pruneopts = "UT"
- revision = "ac8906116758e03208f043a52754f16f2982f26d"
-
-[[projects]]
- branch = "master"
- digest = "1:78102ee4d536347316bc42e818340cc50902e45dbd7fdd524c5a1fc0cb07b588"
- name = "github.com/globalsign/mgo"
- packages = [
- ".",
- "bson",
- "internal/json",
- "internal/sasl",
- "internal/scram",
- ]
- pruneopts = "UT"
- revision = "eeefdecb41b842af6dc652aaea4026e8403e62df"
+ revision = "9384691f0462689770c3e930cd8aff05c7075a5b"
[[projects]]
digest = "1:870d441fe217b8e689d7949fef6e43efbc787e50f200cb1e70dbca9204a1d6be"
@@ -93,14 +69,6 @@
revision = "e2ffdb16a802fe2bb95e2e35ff34f0e53aeef34f"
version = "v0.1.0"
-[[projects]]
- digest = "1:5d231480e1c64a726869bc4142d270184c419749d34f167646baa21008eb0a79"
- name = "github.com/mitchellh/go-homedir"
- packages = ["."]
- pruneopts = "UT"
- revision = "af06845cf3004701891bf4fdb884bfe4920b3727"
- version = "v1.1.0"
-
[[projects]]
digest = "1:cf31692c14422fa27c83a05292eb5cbe0fb2775972e8f1f8446a71549bd8980b"
name = "github.com/pkg/errors"
@@ -143,18 +111,7 @@
[[projects]]
branch = "master"
- digest = "1:994c4915a59f821705d08ea77b117ec7a3e6a46cc867fd194d887500dac1c3c2"
- name = "golang.org/x/crypto"
- packages = [
- "pkcs12",
- "pkcs12/internal/rc2",
- ]
- pruneopts = "UT"
- revision = "34f69633bfdcf9db92f698f8487115767eebef81"
-
-[[projects]]
- branch = "master"
- digest = "1:18c7b936326b4919be6de0a20be857fdd3112036cdb3febfa9a5b332a4f54e27"
+ digest = "1:634f91b94015dfcb7fe2ab475ee7d6d05bffb0a8ada81839e07a3a3b43067802"
name = "golang.org/x/tools"
packages = [
"go/ast/astutil",
@@ -169,9 +126,10 @@
"internal/imports",
"internal/module",
"internal/semver",
+ "internal/span",
]
pruneopts = "UT"
- revision = "e461004dd03ddc1b89596568ce4119c0e8152ce6"
+ revision = "80f3f9ca0853fa9dbf1ffdc81029677e3c23108b"
[[projects]]
branch = "v1"
@@ -182,21 +140,19 @@
revision = "41f04d3bba152ddec2103e299fed053415705330"
[[projects]]
- digest = "1:4d2e5a73dc1500038e504a8d78b986630e3626dc027bc030ba5c75da257cdb96"
+ digest = "1:59f10c1537d2199d9115d946927fe31165959a95190849c82ff11e05803528b0"
name = "gopkg.in/yaml.v2"
packages = ["."]
pruneopts = "UT"
- revision = "51d6538a90f86fe93ac480b35f37b2be17fef232"
- version = "v2.2.2"
+ revision = "f221b8435cfb71e54062f6c6e99e9ade30b124d5"
+ version = "v2.2.4"
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
input-imports = [
"github.com/Azure/go-autorest/autorest",
- "github.com/Azure/go-autorest/autorest/adal",
"github.com/Azure/go-autorest/autorest/azure",
- "github.com/Azure/go-autorest/autorest/azure/auth",
"github.com/Azure/go-autorest/autorest/date",
"github.com/Azure/go-autorest/autorest/to",
"github.com/Azure/go-autorest/autorest/validation",
@@ -204,12 +160,10 @@
"github.com/Masterminds/semver",
"github.com/dnaeon/go-vcr/cassette",
"github.com/dnaeon/go-vcr/recorder",
- "github.com/globalsign/mgo",
"github.com/pkg/errors",
"github.com/satori/go.uuid",
"github.com/shopspring/decimal",
"github.com/spf13/cobra",
- "golang.org/x/crypto/pkcs12",
"golang.org/x/tools/imports",
"gopkg.in/check.v1",
]
diff --git a/Gopkg.toml b/Gopkg.toml
index b1b137e8b661..397fd11b923c 100644
--- a/Gopkg.toml
+++ b/Gopkg.toml
@@ -25,7 +25,7 @@
[[constraint]]
name = "github.com/Azure/go-autorest"
- version = "13.0.2"
+ version = "13.3.0"
[[constraint]]
branch = "master"
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index d254313e0985..9dc7b82e01ab 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -1,58 +1,71 @@
-pool:
- vmImage: 'Ubuntu 16.04'
+jobs:
+ - job: Build_Test
+ strategy:
+ matrix:
+ Linux_Go112:
+ vm.image: 'ubuntu-18.04'
+ go.version: '1.12'
+ GOROOT: '/usr/local/go$(go.version)'
+ Linux_Go113:
+ vm.image: 'ubuntu-18.04'
+ go.version: '1.13'
+ GOROOT: '/usr/local/go$(go.version)'
-variables:
- GOROOT: '/usr/local/go1.12'
- GOPATH: '$(system.defaultWorkingDirectory)/work'
- sdkPath: '$(GOPATH)/src/github.com/$(build.repository.name)'
- IGNORE_BREAKING_CHANGES: true
+ pool:
+ vmImage: $(vm.image)
-steps:
-- script: |
- set -e
- mkdir -p '$(GOPATH)/bin'
- mkdir -p '$(sdkPath)'
- shopt -s dotglob extglob
- mv !(work) '$(sdkPath)'
- echo '##vso[task.prependpath]$(GOROOT)/bin'
- echo '##vso[task.prependpath]$(GOPATH)/bin'
- displayName: 'Create Go Workspace'
-- script: |
- set -e
- curl -sSL https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- dep ensure -v
- go get -u golang.org/x/lint/golint
- workingDirectory: '$(sdkPath)'
- displayName: 'Install Dependencies'
-- script: go vet $(go list ./... | grep -v vendor)
- workingDirectory: '$(sdkPath)'
- displayName: 'Vet'
-- script: go build -v $(go list ./... | grep -v vendor)
- workingDirectory: '$(sdkPath)'
- displayName: 'Build'
-- script: go test $(dirname $(find . -path ./vendor -prune -o -name '*_test.go' -print) | sort -u)
- workingDirectory: '$(sdkPath)'
- displayName: 'Run Tests'
-- script: go run ./tools/apidiff/main.go packages ./services FETCH_HEAD~1 FETCH_HEAD --copyrepo --breakingchanges || $IGNORE_BREAKING_CHANGES
- workingDirectory: '$(sdkPath)'
- displayName: 'Display Breaking Changes'
-- script: go run ./tools/pkgchk/main.go ./services --exceptions ./tools/pkgchk/exceptions.txt
- workingDirectory: '$(sdkPath)'
- displayName: 'Verify Package Directory'
-- script: grep -L -r --include *.go --exclude-dir vendor -P "Copyright (\d{4}|\(c\)) Microsoft" ./ | tee >&2
- workingDirectory: '$(sdkPath)'
- displayName: 'Copyright Header Check'
- failOnStderr: true
- condition: succeededOrFailed()
-- script: gofmt -s -l -w $(find . -path ./vendor -prune -o -name '*.go' -print) >&2
- workingDirectory: '$(sdkPath)'
- displayName: 'Format Check'
- failOnStderr: true
- condition: succeededOrFailed()
-- script: |
- golint ./storage/... >&2
- golint ./tools/... >&2
- workingDirectory: '$(sdkPath)'
- displayName: 'Linter Check'
- failOnStderr: true
- condition: succeededOrFailed()
+ variables:
+ GOPATH: '$(system.defaultWorkingDirectory)/work'
+ sdkPath: '$(GOPATH)/src/github.com/$(build.repository.name)'
+ IGNORE_BREAKING_CHANGES: true
+
+ steps:
+ - script: |
+ set -e
+ mkdir -p '$(GOPATH)/bin'
+ mkdir -p '$(sdkPath)'
+ shopt -s dotglob extglob
+ mv !(work) '$(sdkPath)'
+ echo '##vso[task.prependpath]$(GOROOT)/bin'
+ echo '##vso[task.prependpath]$(GOPATH)/bin'
+ displayName: 'Create Go Workspace'
+ - script: |
+ set -e
+ go version
+ curl -sSL https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
+ dep ensure -v
+ go get -u golang.org/x/lint/golint
+ workingDirectory: '$(sdkPath)'
+ displayName: 'Install Dependencies'
+ - script: go vet $(go list ./... | grep -v vendor)
+ workingDirectory: '$(sdkPath)'
+ displayName: 'Vet'
+ - script: go build -v $(go list ./... | grep -v vendor)
+ workingDirectory: '$(sdkPath)'
+ displayName: 'Build'
+ - script: go test $(dirname $(find . -path ./vendor -prune -o -name '*_test.go' -print) | sort -u)
+ workingDirectory: '$(sdkPath)'
+ displayName: 'Run Tests'
+ - script: go run ./tools/apidiff/main.go packages ./services FETCH_HEAD~1 FETCH_HEAD --copyrepo --breakingchanges || $IGNORE_BREAKING_CHANGES
+ workingDirectory: '$(sdkPath)'
+ displayName: 'Display Breaking Changes'
+ - script: go run ./tools/pkgchk/main.go ./services --exceptions ./tools/pkgchk/exceptions.txt
+ workingDirectory: '$(sdkPath)'
+ displayName: 'Verify Package Directory'
+ - script: grep -L -r --include *.go --exclude-dir vendor -P "Copyright (\d{4}|\(c\)) Microsoft" ./ | tee >&2
+ workingDirectory: '$(sdkPath)'
+ displayName: 'Copyright Header Check'
+ failOnStderr: true
+ condition: succeededOrFailed()
+ - script: gofmt -s -l -w $(find . -path ./vendor -prune -o -name '*.go' -print) >&2
+ workingDirectory: '$(sdkPath)'
+ displayName: 'Format Check'
+ failOnStderr: true
+ condition: succeededOrFailed()
+ - script: |
+ golint ./storage/... >&2
+ golint ./tools/... >&2
+ workingDirectory: '$(sdkPath)'
+ displayName: 'Linter Check'
+ failOnStderr: true
+ condition: succeededOrFailed()
diff --git a/profiles/2019-03-01/web/mgmt/web/models.go b/profiles/2019-03-01/web/mgmt/web/models.go
index 95b1192a9eb0..fd8978007c05 100644
--- a/profiles/2019-03-01/web/mgmt/web/models.go
+++ b/profiles/2019-03-01/web/mgmt/web/models.go
@@ -887,6 +887,7 @@ type GeoRegionProperties = original.GeoRegionProperties
type GlobalCsmSkuDescription = original.GlobalCsmSkuDescription
type HTTPLogsConfig = original.HTTPLogsConfig
type HandlerMapping = original.HandlerMapping
+type HostKeys = original.HostKeys
type HostName = original.HostName
type HostNameBinding = original.HostNameBinding
type HostNameBindingCollection = original.HostNameBindingCollection
@@ -921,6 +922,7 @@ type JobCollection = original.JobCollection
type JobCollectionIterator = original.JobCollectionIterator
type JobCollectionPage = original.JobCollectionPage
type JobProperties = original.JobProperties
+type KeyInfo = original.KeyInfo
type ListCapability = original.ListCapability
type ListCertificateEmail = original.ListCertificateEmail
type ListCertificateOrderAction = original.ListCertificateOrderAction
diff --git a/profiles/latest/advisor/mgmt/advisor/models.go b/profiles/latest/advisor/mgmt/advisor/models.go
index ec1fa941c29e..68a8ce3dd966 100644
--- a/profiles/latest/advisor/mgmt/advisor/models.go
+++ b/profiles/latest/advisor/mgmt/advisor/models.go
@@ -32,10 +32,11 @@ const (
type Category = original.Category
const (
- Cost Category = original.Cost
- HighAvailability Category = original.HighAvailability
- Performance Category = original.Performance
- Security Category = original.Security
+ Cost Category = original.Cost
+ HighAvailability Category = original.HighAvailability
+ OperationalExcellence Category = original.OperationalExcellence
+ Performance Category = original.Performance
+ Security Category = original.Security
)
type Impact = original.Impact
diff --git a/profiles/latest/appconfiguration/mgmt/appconfiguration/appconfigurationapi/models.go b/profiles/latest/appconfiguration/mgmt/appconfiguration/appconfigurationapi/models.go
new file mode 100644
index 000000000000..2cc70b8e585a
--- /dev/null
+++ b/profiles/latest/appconfiguration/mgmt/appconfiguration/appconfigurationapi/models.go
@@ -0,0 +1,25 @@
+// +build go1.9
+
+// Copyright 2019 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 appconfigurationapi
+
+import original "github.com/Azure/azure-sdk-for-go/services/appconfiguration/mgmt/2019-10-01/appconfiguration/appconfigurationapi"
+
+type ConfigurationStoresClientAPI = original.ConfigurationStoresClientAPI
+type OperationsClientAPI = original.OperationsClientAPI
diff --git a/profiles/latest/appconfiguration/mgmt/appconfiguration/models.go b/profiles/latest/appconfiguration/mgmt/appconfiguration/models.go
new file mode 100644
index 000000000000..1b7e13f25d5b
--- /dev/null
+++ b/profiles/latest/appconfiguration/mgmt/appconfiguration/models.go
@@ -0,0 +1,131 @@
+// +build go1.9
+
+// Copyright 2019 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 appconfiguration
+
+import (
+ "context"
+
+ original "github.com/Azure/azure-sdk-for-go/services/appconfiguration/mgmt/2019-10-01/appconfiguration"
+)
+
+const (
+ DefaultBaseURI = original.DefaultBaseURI
+)
+
+type IdentityType = original.IdentityType
+
+const (
+ None IdentityType = original.None
+ SystemAssigned IdentityType = original.SystemAssigned
+ SystemAssignedUserAssigned IdentityType = original.SystemAssignedUserAssigned
+ UserAssigned IdentityType = original.UserAssigned
+)
+
+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 APIKey = original.APIKey
+type APIKeyListResult = original.APIKeyListResult
+type APIKeyListResultIterator = original.APIKeyListResultIterator
+type APIKeyListResultPage = original.APIKeyListResultPage
+type BaseClient = original.BaseClient
+type CheckNameAvailabilityParameters = original.CheckNameAvailabilityParameters
+type ConfigurationStore = original.ConfigurationStore
+type ConfigurationStoreListResult = original.ConfigurationStoreListResult
+type ConfigurationStoreListResultIterator = original.ConfigurationStoreListResultIterator
+type ConfigurationStoreListResultPage = original.ConfigurationStoreListResultPage
+type ConfigurationStoreProperties = original.ConfigurationStoreProperties
+type ConfigurationStoreUpdateParameters = original.ConfigurationStoreUpdateParameters
+type ConfigurationStoresClient = original.ConfigurationStoresClient
+type ConfigurationStoresCreateFuture = original.ConfigurationStoresCreateFuture
+type ConfigurationStoresDeleteFuture = original.ConfigurationStoresDeleteFuture
+type ConfigurationStoresUpdateFuture = original.ConfigurationStoresUpdateFuture
+type Error = original.Error
+type KeyValue = original.KeyValue
+type ListKeyValueParameters = original.ListKeyValueParameters
+type NameAvailabilityStatus = original.NameAvailabilityStatus
+type OperationDefinition = original.OperationDefinition
+type OperationDefinitionDisplay = original.OperationDefinitionDisplay
+type OperationDefinitionListResult = original.OperationDefinitionListResult
+type OperationDefinitionListResultIterator = original.OperationDefinitionListResultIterator
+type OperationDefinitionListResultPage = original.OperationDefinitionListResultPage
+type OperationsClient = original.OperationsClient
+type RegenerateKeyParameters = original.RegenerateKeyParameters
+type Resource = original.Resource
+type ResourceIdentity = original.ResourceIdentity
+type Sku = original.Sku
+type UserIdentity = original.UserIdentity
+
+func New(subscriptionID string) BaseClient {
+ return original.New(subscriptionID)
+}
+func NewAPIKeyListResultIterator(page APIKeyListResultPage) APIKeyListResultIterator {
+ return original.NewAPIKeyListResultIterator(page)
+}
+func NewAPIKeyListResultPage(getNextPage func(context.Context, APIKeyListResult) (APIKeyListResult, error)) APIKeyListResultPage {
+ return original.NewAPIKeyListResultPage(getNextPage)
+}
+func NewConfigurationStoreListResultIterator(page ConfigurationStoreListResultPage) ConfigurationStoreListResultIterator {
+ return original.NewConfigurationStoreListResultIterator(page)
+}
+func NewConfigurationStoreListResultPage(getNextPage func(context.Context, ConfigurationStoreListResult) (ConfigurationStoreListResult, error)) ConfigurationStoreListResultPage {
+ return original.NewConfigurationStoreListResultPage(getNextPage)
+}
+func NewConfigurationStoresClient(subscriptionID string) ConfigurationStoresClient {
+ return original.NewConfigurationStoresClient(subscriptionID)
+}
+func NewConfigurationStoresClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationStoresClient {
+ return original.NewConfigurationStoresClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewOperationDefinitionListResultIterator(page OperationDefinitionListResultPage) OperationDefinitionListResultIterator {
+ return original.NewOperationDefinitionListResultIterator(page)
+}
+func NewOperationDefinitionListResultPage(getNextPage func(context.Context, OperationDefinitionListResult) (OperationDefinitionListResult, error)) OperationDefinitionListResultPage {
+ return original.NewOperationDefinitionListResultPage(getNextPage)
+}
+func NewOperationsClient(subscriptionID string) OperationsClient {
+ return original.NewOperationsClient(subscriptionID)
+}
+func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
+ return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
+ return original.NewWithBaseURI(baseURI, subscriptionID)
+}
+func PossibleIdentityTypeValues() []IdentityType {
+ return original.PossibleIdentityTypeValues()
+}
+func PossibleProvisioningStateValues() []ProvisioningState {
+ return original.PossibleProvisioningStateValues()
+}
+func UserAgent() string {
+ return original.UserAgent() + " profiles/latest"
+}
+func Version() string {
+ return original.Version()
+}
diff --git a/profiles/latest/cdn/mgmt/cdn/models.go b/profiles/latest/cdn/mgmt/cdn/models.go
index 27689e718e1e..978bd80bbf83 100644
--- a/profiles/latest/cdn/mgmt/cdn/models.go
+++ b/profiles/latest/cdn/mgmt/cdn/models.go
@@ -52,6 +52,20 @@ const (
Shared CertificateType = original.Shared
)
+type CookiesOperator = original.CookiesOperator
+
+const (
+ Any CookiesOperator = original.Any
+ BeginsWith CookiesOperator = original.BeginsWith
+ Contains CookiesOperator = original.Contains
+ EndsWith CookiesOperator = original.EndsWith
+ Equal CookiesOperator = original.Equal
+ GreaterThan CookiesOperator = original.GreaterThan
+ GreaterThanOrEqual CookiesOperator = original.GreaterThanOrEqual
+ LessThan CookiesOperator = original.LessThan
+ LessThanOrEqual CookiesOperator = original.LessThanOrEqual
+)
+
type CustomDomainResourceState = original.CustomDomainResourceState
const (
@@ -119,10 +133,20 @@ const (
Overwrite HeaderAction = original.Overwrite
)
+type MinimumTLSVersion = original.MinimumTLSVersion
+
+const (
+ None MinimumTLSVersion = original.None
+ TLS10 MinimumTLSVersion = original.TLS10
+ TLS12 MinimumTLSVersion = original.TLS12
+)
+
type Name = original.Name
const (
+ NameCookies Name = original.NameCookies
NameDeliveryRuleCondition Name = original.NameDeliveryRuleCondition
+ NameHTTPVersion Name = original.NameHTTPVersion
NameIsDevice Name = original.NameIsDevice
NamePostArgs Name = original.NamePostArgs
NameQueryString Name = original.NameQueryString
@@ -170,15 +194,15 @@ const (
type PostArgsOperator = original.PostArgsOperator
const (
- Any PostArgsOperator = original.Any
- BeginsWith PostArgsOperator = original.BeginsWith
- Contains PostArgsOperator = original.Contains
- EndsWith PostArgsOperator = original.EndsWith
- Equal PostArgsOperator = original.Equal
- GreaterThan PostArgsOperator = original.GreaterThan
- GreaterThanOrEqual PostArgsOperator = original.GreaterThanOrEqual
- LessThan PostArgsOperator = original.LessThan
- LessThanOrEqual PostArgsOperator = original.LessThanOrEqual
+ PostArgsOperatorAny PostArgsOperator = original.PostArgsOperatorAny
+ PostArgsOperatorBeginsWith PostArgsOperator = original.PostArgsOperatorBeginsWith
+ PostArgsOperatorContains PostArgsOperator = original.PostArgsOperatorContains
+ PostArgsOperatorEndsWith PostArgsOperator = original.PostArgsOperatorEndsWith
+ PostArgsOperatorEqual PostArgsOperator = original.PostArgsOperatorEqual
+ PostArgsOperatorGreaterThan PostArgsOperator = original.PostArgsOperatorGreaterThan
+ PostArgsOperatorGreaterThanOrEqual PostArgsOperator = original.PostArgsOperatorGreaterThanOrEqual
+ PostArgsOperatorLessThan PostArgsOperator = original.PostArgsOperatorLessThan
+ PostArgsOperatorLessThanOrEqual PostArgsOperator = original.PostArgsOperatorLessThanOrEqual
)
type ProfileResourceState = original.ProfileResourceState
@@ -366,6 +390,7 @@ type CertificateSourceParameters = original.CertificateSourceParameters
type CheckNameAvailabilityInput = original.CheckNameAvailabilityInput
type CheckNameAvailabilityOutput = original.CheckNameAvailabilityOutput
type CidrIPAddress = original.CidrIPAddress
+type CookiesMatchConditionParameters = original.CookiesMatchConditionParameters
type CustomDomain = original.CustomDomain
type CustomDomainHTTPSParameters = original.CustomDomainHTTPSParameters
type CustomDomainListResult = original.CustomDomainListResult
@@ -384,6 +409,8 @@ type DeliveryRuleAction = original.DeliveryRuleAction
type DeliveryRuleCacheExpirationAction = original.DeliveryRuleCacheExpirationAction
type DeliveryRuleCacheKeyQueryStringAction = original.DeliveryRuleCacheKeyQueryStringAction
type DeliveryRuleCondition = original.DeliveryRuleCondition
+type DeliveryRuleCookiesCondition = original.DeliveryRuleCookiesCondition
+type DeliveryRuleHTTPVersionCondition = original.DeliveryRuleHTTPVersionCondition
type DeliveryRuleIsDeviceCondition = original.DeliveryRuleIsDeviceCondition
type DeliveryRulePostArgsCondition = original.DeliveryRulePostArgsCondition
type DeliveryRuleQueryStringCondition = original.DeliveryRuleQueryStringCondition
@@ -422,6 +449,7 @@ type EndpointsStopFuture = original.EndpointsStopFuture
type EndpointsUpdateFuture = original.EndpointsUpdateFuture
type ErrorResponse = original.ErrorResponse
type GeoFilter = original.GeoFilter
+type HTTPVersionMatchConditionParameters = original.HTTPVersionMatchConditionParameters
type HeaderActionParameters = original.HeaderActionParameters
type IPAddressGroup = original.IPAddressGroup
type IsDeviceMatchConditionParameters = original.IsDeviceMatchConditionParameters
@@ -585,6 +613,9 @@ func PossibleCertificateSourceValues() []CertificateSource {
func PossibleCertificateTypeValues() []CertificateType {
return original.PossibleCertificateTypeValues()
}
+func PossibleCookiesOperatorValues() []CookiesOperator {
+ return original.PossibleCookiesOperatorValues()
+}
func PossibleCustomDomainResourceStateValues() []CustomDomainResourceState {
return original.PossibleCustomDomainResourceStateValues()
}
@@ -606,6 +637,9 @@ func PossibleGeoFilterActionsValues() []GeoFilterActions {
func PossibleHeaderActionValues() []HeaderAction {
return original.PossibleHeaderActionValues()
}
+func PossibleMinimumTLSVersionValues() []MinimumTLSVersion {
+ return original.PossibleMinimumTLSVersionValues()
+}
func PossibleNameBasicDeliveryRuleActionValues() []NameBasicDeliveryRuleAction {
return original.PossibleNameBasicDeliveryRuleActionValues()
}
diff --git a/profiles/latest/cognitiveservices/customvision/training/models.go b/profiles/latest/cognitiveservices/customvision/training/models.go
index a46cd6cb0b11..6ac391ccc004 100644
--- a/profiles/latest/cognitiveservices/customvision/training/models.go
+++ b/profiles/latest/cognitiveservices/customvision/training/models.go
@@ -19,7 +19,7 @@
package training
-import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.0/customvision/training"
+import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.1/customvision/training"
type Classifier = original.Classifier
@@ -78,6 +78,7 @@ const (
BadRequestPredictionResultsExceededCount CustomVisionErrorCodes = original.BadRequestPredictionResultsExceededCount
BadRequestPredictionTagsExceededCount CustomVisionErrorCodes = original.BadRequestPredictionTagsExceededCount
BadRequestProjectDescription CustomVisionErrorCodes = original.BadRequestProjectDescription
+ BadRequestProjectImagePreprocessingSettings CustomVisionErrorCodes = original.BadRequestProjectImagePreprocessingSettings
BadRequestProjectName CustomVisionErrorCodes = original.BadRequestProjectName
BadRequestProjectNameNotUnique CustomVisionErrorCodes = original.BadRequestProjectNameNotUnique
BadRequestProjectUnknownClassification CustomVisionErrorCodes = original.BadRequestProjectUnknownClassification
@@ -156,11 +157,13 @@ const (
type ExportFlavor = original.ExportFlavor
const (
- ARM ExportFlavor = original.ARM
- Linux ExportFlavor = original.Linux
- ONNX10 ExportFlavor = original.ONNX10
- ONNX12 ExportFlavor = original.ONNX12
- Windows ExportFlavor = original.Windows
+ ARM ExportFlavor = original.ARM
+ Linux ExportFlavor = original.Linux
+ ONNX10 ExportFlavor = original.ONNX10
+ ONNX12 ExportFlavor = original.ONNX12
+ TensorFlowLite ExportFlavor = original.TensorFlowLite
+ TensorFlowNormal ExportFlavor = original.TensorFlowNormal
+ Windows ExportFlavor = original.Windows
)
type ExportPlatform = original.ExportPlatform
@@ -205,6 +208,13 @@ const (
Suggested OrderBy = original.Suggested
)
+type SortBy = original.SortBy
+
+const (
+ UncertaintyAscending SortBy = original.UncertaintyAscending
+ UncertaintyDescending SortBy = original.UncertaintyDescending
+)
+
type TagType = original.TagType
const (
@@ -234,6 +244,7 @@ type ImageIDCreateBatch = original.ImageIDCreateBatch
type ImageIDCreateEntry = original.ImageIDCreateEntry
type ImagePerformance = original.ImagePerformance
type ImagePrediction = original.ImagePrediction
+type ImageProcessingSettings = original.ImageProcessingSettings
type ImageRegion = original.ImageRegion
type ImageRegionCreateBatch = original.ImageRegionCreateBatch
type ImageRegionCreateEntry = original.ImageRegionCreateEntry
@@ -256,6 +267,7 @@ type ListImage = original.ListImage
type ListImagePerformance = original.ListImagePerformance
type ListIteration = original.ListIteration
type ListProject = original.ListProject
+type ListSuggestedTagAndRegion = original.ListSuggestedTagAndRegion
type ListTag = original.ListTag
type Prediction = original.Prediction
type PredictionQueryResult = original.PredictionQueryResult
@@ -265,8 +277,14 @@ type Project = original.Project
type ProjectSettings = original.ProjectSettings
type Region = original.Region
type RegionProposal = original.RegionProposal
+type SetInt32 = original.SetInt32
type StoredImagePrediction = original.StoredImagePrediction
+type StoredSuggestedTagAndRegion = original.StoredSuggestedTagAndRegion
+type SuggestedTagAndRegion = original.SuggestedTagAndRegion
+type SuggestedTagAndRegionQuery = original.SuggestedTagAndRegionQuery
+type SuggestedTagAndRegionQueryToken = original.SuggestedTagAndRegionQueryToken
type Tag = original.Tag
+type TagFilter = original.TagFilter
type TagPerformance = original.TagPerformance
func New(aPIKey string, endpoint string) BaseClient {
@@ -299,6 +317,9 @@ func PossibleImageCreateStatusValues() []ImageCreateStatus {
func PossibleOrderByValues() []OrderBy {
return original.PossibleOrderByValues()
}
+func PossibleSortByValues() []SortBy {
+ return original.PossibleSortByValues()
+}
func PossibleTagTypeValues() []TagType {
return original.PossibleTagTypeValues()
}
diff --git a/profiles/latest/cognitiveservices/customvision/training/trainingapi/models.go b/profiles/latest/cognitiveservices/customvision/training/trainingapi/models.go
index 0444526d782d..58513bb4fcd7 100644
--- a/profiles/latest/cognitiveservices/customvision/training/trainingapi/models.go
+++ b/profiles/latest/cognitiveservices/customvision/training/trainingapi/models.go
@@ -19,6 +19,6 @@
package trainingapi
-import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.0/customvision/training/trainingapi"
+import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.1/customvision/training/trainingapi"
type BaseClientAPI = original.BaseClientAPI
diff --git a/profiles/latest/cognitiveservices/luis/programmatic/models.go b/profiles/latest/cognitiveservices/luis/programmatic/models.go
deleted file mode 100644
index 7cb4f4e642ef..000000000000
--- a/profiles/latest/cognitiveservices/luis/programmatic/models.go
+++ /dev/null
@@ -1,453 +0,0 @@
-// +build go1.9
-
-// Copyright 2019 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 programmatic
-
-import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.0/luis/programmatic"
-
-type AzureRegions = original.AzureRegions
-
-const (
- Australiaeast AzureRegions = original.Australiaeast
- Brazilsouth AzureRegions = original.Brazilsouth
- Eastasia AzureRegions = original.Eastasia
- Eastus AzureRegions = original.Eastus
- Eastus2 AzureRegions = original.Eastus2
- Northeurope AzureRegions = original.Northeurope
- Southcentralus AzureRegions = original.Southcentralus
- Southeastasia AzureRegions = original.Southeastasia
- Westcentralus AzureRegions = original.Westcentralus
- Westeurope AzureRegions = original.Westeurope
- Westus AzureRegions = original.Westus
- Westus2 AzureRegions = original.Westus2
-)
-
-type OperationStatusType = original.OperationStatusType
-
-const (
- Failed OperationStatusType = original.Failed
- FAILED OperationStatusType = original.FAILED
- Success OperationStatusType = original.Success
-)
-
-type ReadableType = original.ReadableType
-
-const (
- ReadableTypeClosedListEntityExtractor ReadableType = original.ReadableTypeClosedListEntityExtractor
- ReadableTypeCompositeEntityExtractor ReadableType = original.ReadableTypeCompositeEntityExtractor
- ReadableTypeEntityExtractor ReadableType = original.ReadableTypeEntityExtractor
- ReadableTypeHierarchicalChildEntityExtractor ReadableType = original.ReadableTypeHierarchicalChildEntityExtractor
- ReadableTypeHierarchicalEntityExtractor ReadableType = original.ReadableTypeHierarchicalEntityExtractor
- ReadableTypeIntentClassifier ReadableType = original.ReadableTypeIntentClassifier
- ReadableTypePatternAnyEntityExtractor ReadableType = original.ReadableTypePatternAnyEntityExtractor
- ReadableTypePrebuiltEntityExtractor ReadableType = original.ReadableTypePrebuiltEntityExtractor
- ReadableTypeRegexEntityExtractor ReadableType = original.ReadableTypeRegexEntityExtractor
-)
-
-type ReadableType1 = original.ReadableType1
-
-const (
- ReadableType1ClosedListEntityExtractor ReadableType1 = original.ReadableType1ClosedListEntityExtractor
- ReadableType1CompositeEntityExtractor ReadableType1 = original.ReadableType1CompositeEntityExtractor
- ReadableType1EntityExtractor ReadableType1 = original.ReadableType1EntityExtractor
- ReadableType1HierarchicalChildEntityExtractor ReadableType1 = original.ReadableType1HierarchicalChildEntityExtractor
- ReadableType1HierarchicalEntityExtractor ReadableType1 = original.ReadableType1HierarchicalEntityExtractor
- ReadableType1IntentClassifier ReadableType1 = original.ReadableType1IntentClassifier
- ReadableType1PatternAnyEntityExtractor ReadableType1 = original.ReadableType1PatternAnyEntityExtractor
- ReadableType1PrebuiltEntityExtractor ReadableType1 = original.ReadableType1PrebuiltEntityExtractor
- ReadableType1RegexEntityExtractor ReadableType1 = original.ReadableType1RegexEntityExtractor
-)
-
-type ReadableType10 = original.ReadableType10
-
-const (
- ReadableType10ClosedListEntityExtractor ReadableType10 = original.ReadableType10ClosedListEntityExtractor
- ReadableType10CompositeEntityExtractor ReadableType10 = original.ReadableType10CompositeEntityExtractor
- ReadableType10EntityExtractor ReadableType10 = original.ReadableType10EntityExtractor
- ReadableType10HierarchicalChildEntityExtractor ReadableType10 = original.ReadableType10HierarchicalChildEntityExtractor
- ReadableType10HierarchicalEntityExtractor ReadableType10 = original.ReadableType10HierarchicalEntityExtractor
- ReadableType10IntentClassifier ReadableType10 = original.ReadableType10IntentClassifier
- ReadableType10PatternAnyEntityExtractor ReadableType10 = original.ReadableType10PatternAnyEntityExtractor
- ReadableType10PrebuiltEntityExtractor ReadableType10 = original.ReadableType10PrebuiltEntityExtractor
- ReadableType10RegexEntityExtractor ReadableType10 = original.ReadableType10RegexEntityExtractor
-)
-
-type ReadableType2 = original.ReadableType2
-
-const (
- ReadableType2ClosedListEntityExtractor ReadableType2 = original.ReadableType2ClosedListEntityExtractor
- ReadableType2CompositeEntityExtractor ReadableType2 = original.ReadableType2CompositeEntityExtractor
- ReadableType2EntityExtractor ReadableType2 = original.ReadableType2EntityExtractor
- ReadableType2HierarchicalChildEntityExtractor ReadableType2 = original.ReadableType2HierarchicalChildEntityExtractor
- ReadableType2HierarchicalEntityExtractor ReadableType2 = original.ReadableType2HierarchicalEntityExtractor
- ReadableType2IntentClassifier ReadableType2 = original.ReadableType2IntentClassifier
- ReadableType2PatternAnyEntityExtractor ReadableType2 = original.ReadableType2PatternAnyEntityExtractor
- ReadableType2PrebuiltEntityExtractor ReadableType2 = original.ReadableType2PrebuiltEntityExtractor
- ReadableType2RegexEntityExtractor ReadableType2 = original.ReadableType2RegexEntityExtractor
-)
-
-type ReadableType3 = original.ReadableType3
-
-const (
- ReadableType3ClosedListEntityExtractor ReadableType3 = original.ReadableType3ClosedListEntityExtractor
- ReadableType3CompositeEntityExtractor ReadableType3 = original.ReadableType3CompositeEntityExtractor
- ReadableType3EntityExtractor ReadableType3 = original.ReadableType3EntityExtractor
- ReadableType3HierarchicalChildEntityExtractor ReadableType3 = original.ReadableType3HierarchicalChildEntityExtractor
- ReadableType3HierarchicalEntityExtractor ReadableType3 = original.ReadableType3HierarchicalEntityExtractor
- ReadableType3IntentClassifier ReadableType3 = original.ReadableType3IntentClassifier
- ReadableType3PatternAnyEntityExtractor ReadableType3 = original.ReadableType3PatternAnyEntityExtractor
- ReadableType3PrebuiltEntityExtractor ReadableType3 = original.ReadableType3PrebuiltEntityExtractor
- ReadableType3RegexEntityExtractor ReadableType3 = original.ReadableType3RegexEntityExtractor
-)
-
-type ReadableType4 = original.ReadableType4
-
-const (
- ReadableType4ClosedListEntityExtractor ReadableType4 = original.ReadableType4ClosedListEntityExtractor
- ReadableType4CompositeEntityExtractor ReadableType4 = original.ReadableType4CompositeEntityExtractor
- ReadableType4EntityExtractor ReadableType4 = original.ReadableType4EntityExtractor
- ReadableType4HierarchicalChildEntityExtractor ReadableType4 = original.ReadableType4HierarchicalChildEntityExtractor
- ReadableType4HierarchicalEntityExtractor ReadableType4 = original.ReadableType4HierarchicalEntityExtractor
- ReadableType4IntentClassifier ReadableType4 = original.ReadableType4IntentClassifier
- ReadableType4PatternAnyEntityExtractor ReadableType4 = original.ReadableType4PatternAnyEntityExtractor
- ReadableType4PrebuiltEntityExtractor ReadableType4 = original.ReadableType4PrebuiltEntityExtractor
- ReadableType4RegexEntityExtractor ReadableType4 = original.ReadableType4RegexEntityExtractor
-)
-
-type ReadableType5 = original.ReadableType5
-
-const (
- ReadableType5ClosedListEntityExtractor ReadableType5 = original.ReadableType5ClosedListEntityExtractor
- ReadableType5CompositeEntityExtractor ReadableType5 = original.ReadableType5CompositeEntityExtractor
- ReadableType5EntityExtractor ReadableType5 = original.ReadableType5EntityExtractor
- ReadableType5HierarchicalChildEntityExtractor ReadableType5 = original.ReadableType5HierarchicalChildEntityExtractor
- ReadableType5HierarchicalEntityExtractor ReadableType5 = original.ReadableType5HierarchicalEntityExtractor
- ReadableType5IntentClassifier ReadableType5 = original.ReadableType5IntentClassifier
- ReadableType5PatternAnyEntityExtractor ReadableType5 = original.ReadableType5PatternAnyEntityExtractor
- ReadableType5PrebuiltEntityExtractor ReadableType5 = original.ReadableType5PrebuiltEntityExtractor
- ReadableType5RegexEntityExtractor ReadableType5 = original.ReadableType5RegexEntityExtractor
-)
-
-type ReadableType6 = original.ReadableType6
-
-const (
- ReadableType6ClosedListEntityExtractor ReadableType6 = original.ReadableType6ClosedListEntityExtractor
- ReadableType6CompositeEntityExtractor ReadableType6 = original.ReadableType6CompositeEntityExtractor
- ReadableType6EntityExtractor ReadableType6 = original.ReadableType6EntityExtractor
- ReadableType6HierarchicalChildEntityExtractor ReadableType6 = original.ReadableType6HierarchicalChildEntityExtractor
- ReadableType6HierarchicalEntityExtractor ReadableType6 = original.ReadableType6HierarchicalEntityExtractor
- ReadableType6IntentClassifier ReadableType6 = original.ReadableType6IntentClassifier
- ReadableType6PatternAnyEntityExtractor ReadableType6 = original.ReadableType6PatternAnyEntityExtractor
- ReadableType6PrebuiltEntityExtractor ReadableType6 = original.ReadableType6PrebuiltEntityExtractor
- ReadableType6RegexEntityExtractor ReadableType6 = original.ReadableType6RegexEntityExtractor
-)
-
-type ReadableType7 = original.ReadableType7
-
-const (
- ReadableType7ClosedListEntityExtractor ReadableType7 = original.ReadableType7ClosedListEntityExtractor
- ReadableType7CompositeEntityExtractor ReadableType7 = original.ReadableType7CompositeEntityExtractor
- ReadableType7EntityExtractor ReadableType7 = original.ReadableType7EntityExtractor
- ReadableType7HierarchicalChildEntityExtractor ReadableType7 = original.ReadableType7HierarchicalChildEntityExtractor
- ReadableType7HierarchicalEntityExtractor ReadableType7 = original.ReadableType7HierarchicalEntityExtractor
- ReadableType7IntentClassifier ReadableType7 = original.ReadableType7IntentClassifier
- ReadableType7PatternAnyEntityExtractor ReadableType7 = original.ReadableType7PatternAnyEntityExtractor
- ReadableType7PrebuiltEntityExtractor ReadableType7 = original.ReadableType7PrebuiltEntityExtractor
- ReadableType7RegexEntityExtractor ReadableType7 = original.ReadableType7RegexEntityExtractor
-)
-
-type ReadableType8 = original.ReadableType8
-
-const (
- ReadableType8ClosedListEntityExtractor ReadableType8 = original.ReadableType8ClosedListEntityExtractor
- ReadableType8CompositeEntityExtractor ReadableType8 = original.ReadableType8CompositeEntityExtractor
- ReadableType8EntityExtractor ReadableType8 = original.ReadableType8EntityExtractor
- ReadableType8HierarchicalChildEntityExtractor ReadableType8 = original.ReadableType8HierarchicalChildEntityExtractor
- ReadableType8HierarchicalEntityExtractor ReadableType8 = original.ReadableType8HierarchicalEntityExtractor
- ReadableType8IntentClassifier ReadableType8 = original.ReadableType8IntentClassifier
- ReadableType8PatternAnyEntityExtractor ReadableType8 = original.ReadableType8PatternAnyEntityExtractor
- ReadableType8PrebuiltEntityExtractor ReadableType8 = original.ReadableType8PrebuiltEntityExtractor
- ReadableType8RegexEntityExtractor ReadableType8 = original.ReadableType8RegexEntityExtractor
-)
-
-type ReadableType9 = original.ReadableType9
-
-const (
- ReadableType9ClosedListEntityExtractor ReadableType9 = original.ReadableType9ClosedListEntityExtractor
- ReadableType9CompositeEntityExtractor ReadableType9 = original.ReadableType9CompositeEntityExtractor
- ReadableType9EntityExtractor ReadableType9 = original.ReadableType9EntityExtractor
- ReadableType9HierarchicalChildEntityExtractor ReadableType9 = original.ReadableType9HierarchicalChildEntityExtractor
- ReadableType9HierarchicalEntityExtractor ReadableType9 = original.ReadableType9HierarchicalEntityExtractor
- ReadableType9IntentClassifier ReadableType9 = original.ReadableType9IntentClassifier
- ReadableType9PatternAnyEntityExtractor ReadableType9 = original.ReadableType9PatternAnyEntityExtractor
- ReadableType9PrebuiltEntityExtractor ReadableType9 = original.ReadableType9PrebuiltEntityExtractor
- ReadableType9RegexEntityExtractor ReadableType9 = original.ReadableType9RegexEntityExtractor
-)
-
-type Status = original.Status
-
-const (
- StatusFail Status = original.StatusFail
- StatusInProgress Status = original.StatusInProgress
- StatusQueued Status = original.StatusQueued
- StatusSuccess Status = original.StatusSuccess
- StatusUpToDate Status = original.StatusUpToDate
-)
-
-type Status1 = original.Status1
-
-const (
- Status1Fail Status1 = original.Status1Fail
- Status1InProgress Status1 = original.Status1InProgress
- Status1Queued Status1 = original.Status1Queued
- Status1Success Status1 = original.Status1Success
- Status1UpToDate Status1 = original.Status1UpToDate
-)
-
-type TrainingStatus = original.TrainingStatus
-
-const (
- InProgress TrainingStatus = original.InProgress
- NeedsTraining TrainingStatus = original.NeedsTraining
- Trained TrainingStatus = original.Trained
-)
-
-type ApplicationCreateObject = original.ApplicationCreateObject
-type ApplicationInfoResponse = original.ApplicationInfoResponse
-type ApplicationPublishObject = original.ApplicationPublishObject
-type ApplicationSettingUpdateObject = original.ApplicationSettingUpdateObject
-type ApplicationSettings = original.ApplicationSettings
-type ApplicationUpdateObject = original.ApplicationUpdateObject
-type AppsClient = original.AppsClient
-type AvailableCulture = original.AvailableCulture
-type AvailablePrebuiltEntityModel = original.AvailablePrebuiltEntityModel
-type BaseClient = original.BaseClient
-type BatchLabelExample = original.BatchLabelExample
-type ChildEntity = original.ChildEntity
-type ClosedList = original.ClosedList
-type ClosedListEntityExtractor = original.ClosedListEntityExtractor
-type ClosedListModelCreateObject = original.ClosedListModelCreateObject
-type ClosedListModelPatchObject = original.ClosedListModelPatchObject
-type ClosedListModelUpdateObject = original.ClosedListModelUpdateObject
-type CollaboratorsArray = original.CollaboratorsArray
-type CompositeChildModelCreateObject = original.CompositeChildModelCreateObject
-type CompositeEntityExtractor = original.CompositeEntityExtractor
-type CompositeEntityModel = original.CompositeEntityModel
-type CustomPrebuiltModel = original.CustomPrebuiltModel
-type EndpointInfo = original.EndpointInfo
-type EnqueueTrainingResponse = original.EnqueueTrainingResponse
-type EntitiesSuggestionExample = original.EntitiesSuggestionExample
-type EntityExtractor = original.EntityExtractor
-type EntityLabel = original.EntityLabel
-type EntityLabelObject = original.EntityLabelObject
-type EntityModelInfo = original.EntityModelInfo
-type EntityPrediction = original.EntityPrediction
-type EntityRole = original.EntityRole
-type EntityRoleCreateObject = original.EntityRoleCreateObject
-type EntityRoleUpdateObject = original.EntityRoleUpdateObject
-type ErrorResponse = original.ErrorResponse
-type ExampleLabelObject = original.ExampleLabelObject
-type ExamplesClient = original.ExamplesClient
-type ExplicitListItem = original.ExplicitListItem
-type ExplicitListItemCreateObject = original.ExplicitListItemCreateObject
-type ExplicitListItemUpdateObject = original.ExplicitListItemUpdateObject
-type FeatureInfoObject = original.FeatureInfoObject
-type FeaturesClient = original.FeaturesClient
-type FeaturesResponseObject = original.FeaturesResponseObject
-type HierarchicalChildEntity = original.HierarchicalChildEntity
-type HierarchicalChildModelCreateObject = original.HierarchicalChildModelCreateObject
-type HierarchicalChildModelUpdateObject = original.HierarchicalChildModelUpdateObject
-type HierarchicalEntityExtractor = original.HierarchicalEntityExtractor
-type HierarchicalEntityModel = original.HierarchicalEntityModel
-type HierarchicalModel = original.HierarchicalModel
-type Int32 = original.Int32
-type IntentClassifier = original.IntentClassifier
-type IntentPrediction = original.IntentPrediction
-type IntentsSuggestionExample = original.IntentsSuggestionExample
-type JSONEntity = original.JSONEntity
-type JSONModelFeature = original.JSONModelFeature
-type JSONRegexFeature = original.JSONRegexFeature
-type JSONUtterance = original.JSONUtterance
-type LabelExampleResponse = original.LabelExampleResponse
-type LabeledUtterance = original.LabeledUtterance
-type ListApplicationInfoResponse = original.ListApplicationInfoResponse
-type ListAvailableCulture = original.ListAvailableCulture
-type ListAvailablePrebuiltEntityModel = original.ListAvailablePrebuiltEntityModel
-type ListBatchLabelExample = original.ListBatchLabelExample
-type ListClosedListEntityExtractor = original.ListClosedListEntityExtractor
-type ListCompositeEntityExtractor = original.ListCompositeEntityExtractor
-type ListCustomPrebuiltModel = original.ListCustomPrebuiltModel
-type ListEntitiesSuggestionExample = original.ListEntitiesSuggestionExample
-type ListEntityExtractor = original.ListEntityExtractor
-type ListEntityRole = original.ListEntityRole
-type ListExplicitListItem = original.ListExplicitListItem
-type ListHierarchicalEntityExtractor = original.ListHierarchicalEntityExtractor
-type ListIntentClassifier = original.ListIntentClassifier
-type ListIntentsSuggestionExample = original.ListIntentsSuggestionExample
-type ListLabeledUtterance = original.ListLabeledUtterance
-type ListModelInfoResponse = original.ListModelInfoResponse
-type ListModelTrainingInfo = original.ListModelTrainingInfo
-type ListPatternAnyEntityExtractor = original.ListPatternAnyEntityExtractor
-type ListPatternRuleInfo = original.ListPatternRuleInfo
-type ListPhraseListFeatureInfo = original.ListPhraseListFeatureInfo
-type ListPrebuiltDomain = original.ListPrebuiltDomain
-type ListPrebuiltEntityExtractor = original.ListPrebuiltEntityExtractor
-type ListRegexEntityExtractor = original.ListRegexEntityExtractor
-type ListString = original.ListString
-type ListUUID = original.ListUUID
-type ListVersionInfo = original.ListVersionInfo
-type LuisApp = original.LuisApp
-type ModelClient = original.ModelClient
-type ModelCreateObject = original.ModelCreateObject
-type ModelInfo = original.ModelInfo
-type ModelInfoResponse = original.ModelInfoResponse
-type ModelTrainingDetails = original.ModelTrainingDetails
-type ModelTrainingInfo = original.ModelTrainingInfo
-type ModelUpdateObject = original.ModelUpdateObject
-type OperationError = original.OperationError
-type OperationStatus = original.OperationStatus
-type PatternAny = original.PatternAny
-type PatternAnyEntityExtractor = original.PatternAnyEntityExtractor
-type PatternAnyModelCreateObject = original.PatternAnyModelCreateObject
-type PatternAnyModelUpdateObject = original.PatternAnyModelUpdateObject
-type PatternClient = original.PatternClient
-type PatternCreateObject = original.PatternCreateObject
-type PatternFeatureInfo = original.PatternFeatureInfo
-type PatternRule = original.PatternRule
-type PatternRuleCreateObject = original.PatternRuleCreateObject
-type PatternRuleInfo = original.PatternRuleInfo
-type PatternRuleUpdateObject = original.PatternRuleUpdateObject
-type PatternUpdateObject = original.PatternUpdateObject
-type PermissionsClient = original.PermissionsClient
-type PersonalAssistantsResponse = original.PersonalAssistantsResponse
-type PhraseListFeatureInfo = original.PhraseListFeatureInfo
-type PhraselistCreateObject = original.PhraselistCreateObject
-type PhraselistUpdateObject = original.PhraselistUpdateObject
-type PrebuiltDomain = original.PrebuiltDomain
-type PrebuiltDomainCreateBaseObject = original.PrebuiltDomainCreateBaseObject
-type PrebuiltDomainCreateObject = original.PrebuiltDomainCreateObject
-type PrebuiltDomainItem = original.PrebuiltDomainItem
-type PrebuiltDomainModelCreateObject = original.PrebuiltDomainModelCreateObject
-type PrebuiltDomainObject = original.PrebuiltDomainObject
-type PrebuiltEntity = original.PrebuiltEntity
-type PrebuiltEntityExtractor = original.PrebuiltEntityExtractor
-type ProductionOrStagingEndpointInfo = original.ProductionOrStagingEndpointInfo
-type ReadCloser = original.ReadCloser
-type RegexEntity = original.RegexEntity
-type RegexEntityExtractor = original.RegexEntityExtractor
-type RegexModelCreateObject = original.RegexModelCreateObject
-type RegexModelUpdateObject = original.RegexModelUpdateObject
-type SetString = original.SetString
-type String = original.String
-type SubClosedList = original.SubClosedList
-type SubClosedListResponse = original.SubClosedListResponse
-type TaskUpdateObject = original.TaskUpdateObject
-type TrainClient = original.TrainClient
-type UUID = original.UUID
-type UserAccessList = original.UserAccessList
-type UserCollaborator = original.UserCollaborator
-type VersionInfo = original.VersionInfo
-type VersionsClient = original.VersionsClient
-type WordListBaseUpdateObject = original.WordListBaseUpdateObject
-type WordListObject = original.WordListObject
-
-func New(azureRegion AzureRegions) BaseClient {
- return original.New(azureRegion)
-}
-func NewAppsClient(azureRegion AzureRegions) AppsClient {
- return original.NewAppsClient(azureRegion)
-}
-func NewExamplesClient(azureRegion AzureRegions) ExamplesClient {
- return original.NewExamplesClient(azureRegion)
-}
-func NewFeaturesClient(azureRegion AzureRegions) FeaturesClient {
- return original.NewFeaturesClient(azureRegion)
-}
-func NewModelClient(azureRegion AzureRegions) ModelClient {
- return original.NewModelClient(azureRegion)
-}
-func NewPatternClient(azureRegion AzureRegions) PatternClient {
- return original.NewPatternClient(azureRegion)
-}
-func NewPermissionsClient(azureRegion AzureRegions) PermissionsClient {
- return original.NewPermissionsClient(azureRegion)
-}
-func NewTrainClient(azureRegion AzureRegions) TrainClient {
- return original.NewTrainClient(azureRegion)
-}
-func NewVersionsClient(azureRegion AzureRegions) VersionsClient {
- return original.NewVersionsClient(azureRegion)
-}
-func NewWithoutDefaults(azureRegion AzureRegions) BaseClient {
- return original.NewWithoutDefaults(azureRegion)
-}
-func PossibleAzureRegionsValues() []AzureRegions {
- return original.PossibleAzureRegionsValues()
-}
-func PossibleOperationStatusTypeValues() []OperationStatusType {
- return original.PossibleOperationStatusTypeValues()
-}
-func PossibleReadableType10Values() []ReadableType10 {
- return original.PossibleReadableType10Values()
-}
-func PossibleReadableType1Values() []ReadableType1 {
- return original.PossibleReadableType1Values()
-}
-func PossibleReadableType2Values() []ReadableType2 {
- return original.PossibleReadableType2Values()
-}
-func PossibleReadableType3Values() []ReadableType3 {
- return original.PossibleReadableType3Values()
-}
-func PossibleReadableType4Values() []ReadableType4 {
- return original.PossibleReadableType4Values()
-}
-func PossibleReadableType5Values() []ReadableType5 {
- return original.PossibleReadableType5Values()
-}
-func PossibleReadableType6Values() []ReadableType6 {
- return original.PossibleReadableType6Values()
-}
-func PossibleReadableType7Values() []ReadableType7 {
- return original.PossibleReadableType7Values()
-}
-func PossibleReadableType8Values() []ReadableType8 {
- return original.PossibleReadableType8Values()
-}
-func PossibleReadableType9Values() []ReadableType9 {
- return original.PossibleReadableType9Values()
-}
-func PossibleReadableTypeValues() []ReadableType {
- return original.PossibleReadableTypeValues()
-}
-func PossibleStatus1Values() []Status1 {
- return original.PossibleStatus1Values()
-}
-func PossibleStatusValues() []Status {
- return original.PossibleStatusValues()
-}
-func PossibleTrainingStatusValues() []TrainingStatus {
- return original.PossibleTrainingStatusValues()
-}
-func UserAgent() string {
- return original.UserAgent() + " profiles/latest"
-}
-func Version() string {
- return original.Version()
-}
diff --git a/profiles/latest/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go b/profiles/latest/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go
index f580fe74d7bd..42eca8c78f11 100644
--- a/profiles/latest/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go
+++ b/profiles/latest/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go
@@ -23,6 +23,5 @@ import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mg
type AccountsClientAPI = original.AccountsClientAPI
type BaseClientAPI = original.BaseClientAPI
-type CheckSkuAvailabilityClientAPI = original.CheckSkuAvailabilityClientAPI
type OperationsClientAPI = original.OperationsClientAPI
type ResourceSkusClientAPI = original.ResourceSkusClientAPI
diff --git a/profiles/latest/cognitiveservices/mgmt/cognitiveservices/models.go b/profiles/latest/cognitiveservices/mgmt/cognitiveservices/models.go
index 19e381039db1..b771b01050f9 100644
--- a/profiles/latest/cognitiveservices/mgmt/cognitiveservices/models.go
+++ b/profiles/latest/cognitiveservices/mgmt/cognitiveservices/models.go
@@ -43,13 +43,6 @@ const (
Deny NetworkRuleAction = original.Deny
)
-type NetworkRuleBypassOptions = original.NetworkRuleBypassOptions
-
-const (
- AzureServices NetworkRuleBypassOptions = original.AzureServices
- None NetworkRuleBypassOptions = original.None
-)
-
type ProvisioningState = original.ProvisioningState
const (
@@ -105,19 +98,17 @@ const (
)
type Account = original.Account
-type AccountCreateParameters = original.AccountCreateParameters
+type AccountAPIProperties = original.AccountAPIProperties
type AccountEnumerateSkusResult = original.AccountEnumerateSkusResult
type AccountKeys = original.AccountKeys
type AccountListResult = original.AccountListResult
type AccountListResultIterator = original.AccountListResultIterator
type AccountListResultPage = original.AccountListResultPage
type AccountProperties = original.AccountProperties
-type AccountUpdateParameters = original.AccountUpdateParameters
type AccountsClient = original.AccountsClient
type BaseClient = original.BaseClient
type CheckDomainAvailabilityParameter = original.CheckDomainAvailabilityParameter
type CheckDomainAvailabilityResult = original.CheckDomainAvailabilityResult
-type CheckSkuAvailabilityClient = original.CheckSkuAvailabilityClient
type CheckSkuAvailabilityParameter = original.CheckSkuAvailabilityParameter
type CheckSkuAvailabilityResult = original.CheckSkuAvailabilityResult
type CheckSkuAvailabilityResultList = original.CheckSkuAvailabilityResultList
@@ -161,12 +152,6 @@ func NewAccountsClient(subscriptionID string) AccountsClient {
func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) AccountsClient {
return original.NewAccountsClientWithBaseURI(baseURI, subscriptionID)
}
-func NewCheckSkuAvailabilityClient(subscriptionID string) CheckSkuAvailabilityClient {
- return original.NewCheckSkuAvailabilityClient(subscriptionID)
-}
-func NewCheckSkuAvailabilityClientWithBaseURI(baseURI string, subscriptionID string) CheckSkuAvailabilityClient {
- return original.NewCheckSkuAvailabilityClientWithBaseURI(baseURI, subscriptionID)
-}
func NewOperationEntityListResultIterator(page OperationEntityListResultPage) OperationEntityListResultIterator {
return original.NewOperationEntityListResultIterator(page)
}
@@ -200,9 +185,6 @@ func PossibleKeyNameValues() []KeyName {
func PossibleNetworkRuleActionValues() []NetworkRuleAction {
return original.PossibleNetworkRuleActionValues()
}
-func PossibleNetworkRuleBypassOptionsValues() []NetworkRuleBypassOptions {
- return original.PossibleNetworkRuleBypassOptionsValues()
-}
func PossibleProvisioningStateValues() []ProvisioningState {
return original.PossibleProvisioningStateValues()
}
diff --git a/profiles/latest/compute/mgmt/compute/computeapi/models.go b/profiles/latest/compute/mgmt/compute/computeapi/models.go
index dcae23d3b907..680673b3d51e 100644
--- a/profiles/latest/compute/mgmt/compute/computeapi/models.go
+++ b/profiles/latest/compute/mgmt/compute/computeapi/models.go
@@ -25,6 +25,7 @@ type AvailabilitySetsClientAPI = original.AvailabilitySetsClientAPI
type ContainerServicesClientAPI = original.ContainerServicesClientAPI
type DedicatedHostGroupsClientAPI = original.DedicatedHostGroupsClientAPI
type DedicatedHostsClientAPI = original.DedicatedHostsClientAPI
+type DiskEncryptionSetsClientAPI = original.DiskEncryptionSetsClientAPI
type DisksClientAPI = original.DisksClientAPI
type GalleriesClientAPI = original.GalleriesClientAPI
type GalleryApplicationVersionsClientAPI = original.GalleryApplicationVersionsClientAPI
@@ -44,6 +45,7 @@ type VirtualMachineImagesClientAPI = original.VirtualMachineImagesClientAPI
type VirtualMachineRunCommandsClientAPI = original.VirtualMachineRunCommandsClientAPI
type VirtualMachineScaleSetExtensionsClientAPI = original.VirtualMachineScaleSetExtensionsClientAPI
type VirtualMachineScaleSetRollingUpgradesClientAPI = original.VirtualMachineScaleSetRollingUpgradesClientAPI
+type VirtualMachineScaleSetVMExtensionsClientAPI = original.VirtualMachineScaleSetVMExtensionsClientAPI
type VirtualMachineScaleSetVMsClientAPI = original.VirtualMachineScaleSetVMsClientAPI
type VirtualMachineScaleSetsClientAPI = original.VirtualMachineScaleSetsClientAPI
type VirtualMachineSizesClientAPI = original.VirtualMachineSizesClientAPI
diff --git a/profiles/latest/compute/mgmt/compute/models.go b/profiles/latest/compute/mgmt/compute/models.go
index c0d6c7644bad..9fa6e9e831eb 100644
--- a/profiles/latest/compute/mgmt/compute/models.go
+++ b/profiles/latest/compute/mgmt/compute/models.go
@@ -162,6 +162,12 @@ const (
DiskCreateOptionTypesFromImage DiskCreateOptionTypes = original.DiskCreateOptionTypesFromImage
)
+type DiskEncryptionSetIdentityType = original.DiskEncryptionSetIdentityType
+
+const (
+ SystemAssigned DiskEncryptionSetIdentityType = original.SystemAssigned
+)
+
type DiskState = original.DiskState
const (
@@ -182,6 +188,13 @@ const (
UltraSSDLRS DiskStorageAccountTypes = original.UltraSSDLRS
)
+type EncryptionType = original.EncryptionType
+
+const (
+ EncryptionAtRestWithCustomerKey EncryptionType = original.EncryptionAtRestWithCustomerKey
+ EncryptionAtRestWithPlatformKey EncryptionType = original.EncryptionAtRestWithPlatformKey
+)
+
type HostCaching = original.HostCaching
const (
@@ -654,6 +667,7 @@ type AdditionalCapabilities = original.AdditionalCapabilities
type AdditionalUnattendContent = original.AdditionalUnattendContent
type AutomaticOSUpgradePolicy = original.AutomaticOSUpgradePolicy
type AutomaticOSUpgradeProperties = original.AutomaticOSUpgradeProperties
+type AutomaticRepairsPolicy = original.AutomaticRepairsPolicy
type AvailabilitySet = original.AvailabilitySet
type AvailabilitySetListResult = original.AvailabilitySetListResult
type AvailabilitySetListResultIterator = original.AvailabilitySetListResultIterator
@@ -712,6 +726,17 @@ type DiagnosticsProfile = original.DiagnosticsProfile
type DiffDiskSettings = original.DiffDiskSettings
type Disallowed = original.Disallowed
type Disk = original.Disk
+type DiskEncryptionSet = original.DiskEncryptionSet
+type DiskEncryptionSetList = original.DiskEncryptionSetList
+type DiskEncryptionSetListIterator = original.DiskEncryptionSetListIterator
+type DiskEncryptionSetListPage = original.DiskEncryptionSetListPage
+type DiskEncryptionSetParameters = original.DiskEncryptionSetParameters
+type DiskEncryptionSetUpdate = original.DiskEncryptionSetUpdate
+type DiskEncryptionSetUpdateProperties = original.DiskEncryptionSetUpdateProperties
+type DiskEncryptionSetsClient = original.DiskEncryptionSetsClient
+type DiskEncryptionSetsCreateOrUpdateFuture = original.DiskEncryptionSetsCreateOrUpdateFuture
+type DiskEncryptionSetsDeleteFuture = original.DiskEncryptionSetsDeleteFuture
+type DiskEncryptionSetsUpdateFuture = original.DiskEncryptionSetsUpdateFuture
type DiskEncryptionSettings = original.DiskEncryptionSettings
type DiskInstanceView = original.DiskInstanceView
type DiskList = original.DiskList
@@ -727,6 +752,9 @@ type DisksDeleteFuture = original.DisksDeleteFuture
type DisksGrantAccessFuture = original.DisksGrantAccessFuture
type DisksRevokeAccessFuture = original.DisksRevokeAccessFuture
type DisksUpdateFuture = original.DisksUpdateFuture
+type Encryption = original.Encryption
+type EncryptionSetIdentity = original.EncryptionSetIdentity
+type EncryptionSetProperties = original.EncryptionSetProperties
type EncryptionSettingsCollection = original.EncryptionSettingsCollection
type EncryptionSettingsElement = original.EncryptionSettingsElement
type GalleriesClient = original.GalleriesClient
@@ -784,6 +812,7 @@ type GrantAccessData = original.GrantAccessData
type HardwareProfile = original.HardwareProfile
type Image = original.Image
type ImageDataDisk = original.ImageDataDisk
+type ImageDisk = original.ImageDisk
type ImageDiskReference = original.ImageDiskReference
type ImageListResult = original.ImageListResult
type ImageListResultIterator = original.ImageListResultIterator
@@ -1006,7 +1035,11 @@ type VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties = origin
type VirtualMachineScaleSetUpdateStorageProfile = original.VirtualMachineScaleSetUpdateStorageProfile
type VirtualMachineScaleSetUpdateVMProfile = original.VirtualMachineScaleSetUpdateVMProfile
type VirtualMachineScaleSetVM = original.VirtualMachineScaleSetVM
+type VirtualMachineScaleSetVMExtensionsClient = original.VirtualMachineScaleSetVMExtensionsClient
+type VirtualMachineScaleSetVMExtensionsCreateOrUpdateFuture = original.VirtualMachineScaleSetVMExtensionsCreateOrUpdateFuture
+type VirtualMachineScaleSetVMExtensionsDeleteFuture = original.VirtualMachineScaleSetVMExtensionsDeleteFuture
type VirtualMachineScaleSetVMExtensionsSummary = original.VirtualMachineScaleSetVMExtensionsSummary
+type VirtualMachineScaleSetVMExtensionsUpdateFuture = original.VirtualMachineScaleSetVMExtensionsUpdateFuture
type VirtualMachineScaleSetVMInstanceIDs = original.VirtualMachineScaleSetVMInstanceIDs
type VirtualMachineScaleSetVMInstanceRequiredIDs = original.VirtualMachineScaleSetVMInstanceRequiredIDs
type VirtualMachineScaleSetVMInstanceView = original.VirtualMachineScaleSetVMInstanceView
@@ -1057,6 +1090,7 @@ type VirtualMachinesDeallocateFuture = original.VirtualMachinesDeallocateFuture
type VirtualMachinesDeleteFuture = original.VirtualMachinesDeleteFuture
type VirtualMachinesPerformMaintenanceFuture = original.VirtualMachinesPerformMaintenanceFuture
type VirtualMachinesPowerOffFuture = original.VirtualMachinesPowerOffFuture
+type VirtualMachinesReapplyFuture = original.VirtualMachinesReapplyFuture
type VirtualMachinesRedeployFuture = original.VirtualMachinesRedeployFuture
type VirtualMachinesReimageFuture = original.VirtualMachinesReimageFuture
type VirtualMachinesRestartFuture = original.VirtualMachinesRestartFuture
@@ -1118,6 +1152,18 @@ func NewDedicatedHostsClient(subscriptionID string) DedicatedHostsClient {
func NewDedicatedHostsClientWithBaseURI(baseURI string, subscriptionID string) DedicatedHostsClient {
return original.NewDedicatedHostsClientWithBaseURI(baseURI, subscriptionID)
}
+func NewDiskEncryptionSetListIterator(page DiskEncryptionSetListPage) DiskEncryptionSetListIterator {
+ return original.NewDiskEncryptionSetListIterator(page)
+}
+func NewDiskEncryptionSetListPage(getNextPage func(context.Context, DiskEncryptionSetList) (DiskEncryptionSetList, error)) DiskEncryptionSetListPage {
+ return original.NewDiskEncryptionSetListPage(getNextPage)
+}
+func NewDiskEncryptionSetsClient(subscriptionID string) DiskEncryptionSetsClient {
+ return original.NewDiskEncryptionSetsClient(subscriptionID)
+}
+func NewDiskEncryptionSetsClientWithBaseURI(baseURI string, subscriptionID string) DiskEncryptionSetsClient {
+ return original.NewDiskEncryptionSetsClientWithBaseURI(baseURI, subscriptionID)
+}
func NewDiskListIterator(page DiskListPage) DiskListIterator {
return original.NewDiskListIterator(page)
}
@@ -1340,6 +1386,12 @@ func NewVirtualMachineScaleSetRollingUpgradesClient(subscriptionID string) Virtu
func NewVirtualMachineScaleSetRollingUpgradesClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineScaleSetRollingUpgradesClient {
return original.NewVirtualMachineScaleSetRollingUpgradesClientWithBaseURI(baseURI, subscriptionID)
}
+func NewVirtualMachineScaleSetVMExtensionsClient(subscriptionID string) VirtualMachineScaleSetVMExtensionsClient {
+ return original.NewVirtualMachineScaleSetVMExtensionsClient(subscriptionID)
+}
+func NewVirtualMachineScaleSetVMExtensionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineScaleSetVMExtensionsClient {
+ return original.NewVirtualMachineScaleSetVMExtensionsClientWithBaseURI(baseURI, subscriptionID)
+}
func NewVirtualMachineScaleSetVMListResultIterator(page VirtualMachineScaleSetVMListResultPage) VirtualMachineScaleSetVMListResultIterator {
return original.NewVirtualMachineScaleSetVMListResultIterator(page)
}
@@ -1406,12 +1458,18 @@ func PossibleDiskCreateOptionTypesValues() []DiskCreateOptionTypes {
func PossibleDiskCreateOptionValues() []DiskCreateOption {
return original.PossibleDiskCreateOptionValues()
}
+func PossibleDiskEncryptionSetIdentityTypeValues() []DiskEncryptionSetIdentityType {
+ return original.PossibleDiskEncryptionSetIdentityTypeValues()
+}
func PossibleDiskStateValues() []DiskState {
return original.PossibleDiskStateValues()
}
func PossibleDiskStorageAccountTypesValues() []DiskStorageAccountTypes {
return original.PossibleDiskStorageAccountTypesValues()
}
+func PossibleEncryptionTypeValues() []EncryptionType {
+ return original.PossibleEncryptionTypeValues()
+}
func PossibleHostCachingValues() []HostCaching {
return original.PossibleHostCachingValues()
}
diff --git a/profiles/latest/containerservice/mgmt/containerservice/containerserviceapi/models.go b/profiles/latest/containerservice/mgmt/containerservice/containerserviceapi/models.go
index 2529a9c3888f..2d91c94f8fdd 100644
--- a/profiles/latest/containerservice/mgmt/containerservice/containerserviceapi/models.go
+++ b/profiles/latest/containerservice/mgmt/containerservice/containerserviceapi/models.go
@@ -19,7 +19,7 @@
package containerserviceapi
-import original "github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-08-01/containerservice/containerserviceapi"
+import original "github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-10-01/containerservice/containerserviceapi"
type AgentPoolsClientAPI = original.AgentPoolsClientAPI
type ContainerServicesClientAPI = original.ContainerServicesClientAPI
diff --git a/profiles/latest/containerservice/mgmt/containerservice/models.go b/profiles/latest/containerservice/mgmt/containerservice/models.go
index 2be679086fb2..891b9ddc31a4 100644
--- a/profiles/latest/containerservice/mgmt/containerservice/models.go
+++ b/profiles/latest/containerservice/mgmt/containerservice/models.go
@@ -22,7 +22,7 @@ package containerservice
import (
"context"
- original "github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-08-01/containerservice"
+ original "github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-10-01/containerservice"
)
const (
@@ -392,6 +392,7 @@ type ManagedClustersCreateOrUpdateFuture = original.ManagedClustersCreateOrUpdat
type ManagedClustersDeleteFuture = original.ManagedClustersDeleteFuture
type ManagedClustersResetAADProfileFuture = original.ManagedClustersResetAADProfileFuture
type ManagedClustersResetServicePrincipalProfileFuture = original.ManagedClustersResetServicePrincipalProfileFuture
+type ManagedClustersRotateClusterCertificatesFuture = original.ManagedClustersRotateClusterCertificatesFuture
type ManagedClustersUpdateTagsFuture = original.ManagedClustersUpdateTagsFuture
type MasterProfile = original.MasterProfile
type NetworkProfile = original.NetworkProfile
diff --git a/profiles/latest/costmanagement/mgmt/costmanagement/costmanagementapi/models.go b/profiles/latest/costmanagement/mgmt/costmanagement/costmanagementapi/models.go
index 9e5866aad71b..f8a485d17abf 100644
--- a/profiles/latest/costmanagement/mgmt/costmanagement/costmanagementapi/models.go
+++ b/profiles/latest/costmanagement/mgmt/costmanagement/costmanagementapi/models.go
@@ -19,7 +19,7 @@
package costmanagementapi
-import original "github.com/Azure/azure-sdk-for-go/services/costmanagement/mgmt/2019-01-01/costmanagement/costmanagementapi"
+import original "github.com/Azure/azure-sdk-for-go/services/costmanagement/mgmt/2019-10-01/costmanagement/costmanagementapi"
type DimensionsClientAPI = original.DimensionsClientAPI
type ExportsClientAPI = original.ExportsClientAPI
diff --git a/profiles/latest/costmanagement/mgmt/costmanagement/models.go b/profiles/latest/costmanagement/mgmt/costmanagement/models.go
index bfd8b4ec9613..ba9e40291e1d 100644
--- a/profiles/latest/costmanagement/mgmt/costmanagement/models.go
+++ b/profiles/latest/costmanagement/mgmt/costmanagement/models.go
@@ -22,7 +22,7 @@ package costmanagement
import (
"context"
- original "github.com/Azure/azure-sdk-for-go/services/costmanagement/mgmt/2019-01-01/costmanagement"
+ original "github.com/Azure/azure-sdk-for-go/services/costmanagement/mgmt/2019-10-01/costmanagement"
)
const (
@@ -94,15 +94,13 @@ const (
type TimeframeType = original.TimeframeType
const (
- BillingMonthToDate TimeframeType = original.BillingMonthToDate
- Custom TimeframeType = original.Custom
- MonthToDate TimeframeType = original.MonthToDate
- TheLastBillingMonth TimeframeType = original.TheLastBillingMonth
- TheLastMonth TimeframeType = original.TheLastMonth
- TheLastWeek TimeframeType = original.TheLastWeek
- TheLastYear TimeframeType = original.TheLastYear
- WeekToDate TimeframeType = original.WeekToDate
- YearToDate TimeframeType = original.YearToDate
+ Custom TimeframeType = original.Custom
+ MonthToDate TimeframeType = original.MonthToDate
+ TheLastMonth TimeframeType = original.TheLastMonth
+ TheLastWeek TimeframeType = original.TheLastWeek
+ TheLastYear TimeframeType = original.TheLastYear
+ WeekToDate TimeframeType = original.WeekToDate
+ YearToDate TimeframeType = original.YearToDate
)
type BaseClient = original.BaseClient
@@ -130,7 +128,6 @@ type OperationListResult = original.OperationListResult
type OperationListResultIterator = original.OperationListResultIterator
type OperationListResultPage = original.OperationListResultPage
type OperationsClient = original.OperationsClient
-type Query = original.Query
type QueryAggregation = original.QueryAggregation
type QueryClient = original.QueryClient
type QueryColumn = original.QueryColumn
diff --git a/profiles/latest/datafactory/mgmt/datafactory/models.go b/profiles/latest/datafactory/mgmt/datafactory/models.go
index 9f2331a40b3f..7d563468dc89 100644
--- a/profiles/latest/datafactory/mgmt/datafactory/models.go
+++ b/profiles/latest/datafactory/mgmt/datafactory/models.go
@@ -155,8 +155,9 @@ const (
type DynamicsAuthenticationType = original.DynamicsAuthenticationType
const (
- Ifd DynamicsAuthenticationType = original.Ifd
- Office365 DynamicsAuthenticationType = original.Office365
+ AADServicePrincipal DynamicsAuthenticationType = original.AADServicePrincipal
+ Ifd DynamicsAuthenticationType = original.Ifd
+ Office365 DynamicsAuthenticationType = original.Office365
)
type DynamicsDeploymentType = original.DynamicsDeploymentType
@@ -393,6 +394,14 @@ const (
OraclePartitionOptionPhysicalPartitionsOfTable OraclePartitionOption = original.OraclePartitionOptionPhysicalPartitionsOfTable
)
+type OrcCompressionCodec = original.OrcCompressionCodec
+
+const (
+ OrcCompressionCodecNone OrcCompressionCodec = original.OrcCompressionCodecNone
+ OrcCompressionCodecSnappy OrcCompressionCodec = original.OrcCompressionCodecSnappy
+ OrcCompressionCodecZlib OrcCompressionCodec = original.OrcCompressionCodecZlib
+)
+
type ParameterType = original.ParameterType
const (
@@ -674,6 +683,7 @@ const (
TypeAzureDataExplorerCommand TypeBasicActivity = original.TypeAzureDataExplorerCommand
TypeAzureFunctionActivity TypeBasicActivity = original.TypeAzureFunctionActivity
TypeAzureMLBatchExecution TypeBasicActivity = original.TypeAzureMLBatchExecution
+ TypeAzureMLExecutePipeline TypeBasicActivity = original.TypeAzureMLExecutePipeline
TypeAzureMLUpdateResource TypeBasicActivity = original.TypeAzureMLUpdateResource
TypeContainer TypeBasicActivity = original.TypeContainer
TypeCopy TypeBasicActivity = original.TypeCopy
@@ -699,6 +709,7 @@ const (
TypeLookup TypeBasicActivity = original.TypeLookup
TypeSetVariable TypeBasicActivity = original.TypeSetVariable
TypeSQLServerStoredProcedure TypeBasicActivity = original.TypeSQLServerStoredProcedure
+ TypeSwitch TypeBasicActivity = original.TypeSwitch
TypeUntil TypeBasicActivity = original.TypeUntil
TypeValidation TypeBasicActivity = original.TypeValidation
TypeWait TypeBasicActivity = original.TypeWait
@@ -1015,10 +1026,12 @@ const (
TypeAzureDataExplorer TypeBasicLinkedService = original.TypeAzureDataExplorer
TypeAzureDataLakeAnalytics TypeBasicLinkedService = original.TypeAzureDataLakeAnalytics
TypeAzureDataLakeStore TypeBasicLinkedService = original.TypeAzureDataLakeStore
+ TypeAzureFileStorage TypeBasicLinkedService = original.TypeAzureFileStorage
TypeAzureFunction TypeBasicLinkedService = original.TypeAzureFunction
TypeAzureKeyVault TypeBasicLinkedService = original.TypeAzureKeyVault
TypeAzureMariaDB TypeBasicLinkedService = original.TypeAzureMariaDB
TypeAzureML TypeBasicLinkedService = original.TypeAzureML
+ TypeAzureMLService TypeBasicLinkedService = original.TypeAzureMLService
TypeAzureMySQL TypeBasicLinkedService = original.TypeAzureMySQL
TypeAzurePostgreSQL TypeBasicLinkedService = original.TypeAzurePostgreSQL
TypeAzureSearch TypeBasicLinkedService = original.TypeAzureSearch
@@ -1044,6 +1057,7 @@ const (
TypeFtpServer TypeBasicLinkedService = original.TypeFtpServer
TypeGoogleAdWords TypeBasicLinkedService = original.TypeGoogleAdWords
TypeGoogleBigQuery TypeBasicLinkedService = original.TypeGoogleBigQuery
+ TypeGoogleCloudStorage TypeBasicLinkedService = original.TypeGoogleCloudStorage
TypeGreenplum TypeBasicLinkedService = original.TypeGreenplum
TypeHBase TypeBasicLinkedService = original.TypeHBase
TypeHdfs TypeBasicLinkedService = original.TypeHdfs
@@ -1225,6 +1239,10 @@ type AzureDataLakeStoreSource = original.AzureDataLakeStoreSource
type AzureDataLakeStoreWriteSettings = original.AzureDataLakeStoreWriteSettings
type AzureDatabricksLinkedService = original.AzureDatabricksLinkedService
type AzureDatabricksLinkedServiceTypeProperties = original.AzureDatabricksLinkedServiceTypeProperties
+type AzureFileStorageLinkedService = original.AzureFileStorageLinkedService
+type AzureFileStorageLinkedServiceTypeProperties = original.AzureFileStorageLinkedServiceTypeProperties
+type AzureFileStorageLocation = original.AzureFileStorageLocation
+type AzureFileStorageReadSettings = original.AzureFileStorageReadSettings
type AzureFunctionActivity = original.AzureFunctionActivity
type AzureFunctionActivityTypeProperties = original.AzureFunctionActivityTypeProperties
type AzureFunctionLinkedService = original.AzureFunctionLinkedService
@@ -1234,8 +1252,12 @@ type AzureKeyVaultLinkedServiceTypeProperties = original.AzureKeyVaultLinkedServ
type AzureKeyVaultSecretReference = original.AzureKeyVaultSecretReference
type AzureMLBatchExecutionActivity = original.AzureMLBatchExecutionActivity
type AzureMLBatchExecutionActivityTypeProperties = original.AzureMLBatchExecutionActivityTypeProperties
+type AzureMLExecutePipelineActivity = original.AzureMLExecutePipelineActivity
+type AzureMLExecutePipelineActivityTypeProperties = original.AzureMLExecutePipelineActivityTypeProperties
type AzureMLLinkedService = original.AzureMLLinkedService
type AzureMLLinkedServiceTypeProperties = original.AzureMLLinkedServiceTypeProperties
+type AzureMLServiceLinkedService = original.AzureMLServiceLinkedService
+type AzureMLServiceLinkedServiceTypeProperties = original.AzureMLServiceLinkedServiceTypeProperties
type AzureMLUpdateResourceActivity = original.AzureMLUpdateResourceActivity
type AzureMLUpdateResourceActivityTypeProperties = original.AzureMLUpdateResourceActivityTypeProperties
type AzureMLWebServiceFile = original.AzureMLWebServiceFile
@@ -1376,6 +1398,7 @@ type DataFlowDebugCommandRequest = original.DataFlowDebugCommandRequest
type DataFlowDebugCommandResponse = original.DataFlowDebugCommandResponse
type DataFlowDebugPackage = original.DataFlowDebugPackage
type DataFlowDebugPackageDebugSettings = original.DataFlowDebugPackageDebugSettings
+type DataFlowDebugResource = original.DataFlowDebugResource
type DataFlowDebugSessionClient = original.DataFlowDebugSessionClient
type DataFlowDebugSessionCreateFuture = original.DataFlowDebugSessionCreateFuture
type DataFlowDebugSessionExecuteCommandFuture = original.DataFlowDebugSessionExecuteCommandFuture
@@ -1402,6 +1425,7 @@ type DatabricksSparkPythonActivityTypeProperties = original.DatabricksSparkPytho
type Dataset = original.Dataset
type DatasetBZip2Compression = original.DatasetBZip2Compression
type DatasetCompression = original.DatasetCompression
+type DatasetDebugResource = original.DatasetDebugResource
type DatasetDeflateCompression = original.DatasetDeflateCompression
type DatasetFolder = original.DatasetFolder
type DatasetGZipCompression = original.DatasetGZipCompression
@@ -1521,6 +1545,10 @@ type GoogleBigQueryLinkedService = original.GoogleBigQueryLinkedService
type GoogleBigQueryLinkedServiceTypeProperties = original.GoogleBigQueryLinkedServiceTypeProperties
type GoogleBigQueryObjectDataset = original.GoogleBigQueryObjectDataset
type GoogleBigQuerySource = original.GoogleBigQuerySource
+type GoogleCloudStorageLinkedService = original.GoogleCloudStorageLinkedService
+type GoogleCloudStorageLinkedServiceTypeProperties = original.GoogleCloudStorageLinkedServiceTypeProperties
+type GoogleCloudStorageLocation = original.GoogleCloudStorageLocation
+type GoogleCloudStorageReadSettings = original.GoogleCloudStorageReadSettings
type GreenplumDatasetTypeProperties = original.GreenplumDatasetTypeProperties
type GreenplumLinkedService = original.GreenplumLinkedService
type GreenplumLinkedServiceTypeProperties = original.GreenplumLinkedServiceTypeProperties
@@ -1585,6 +1613,7 @@ type IntegrationRuntimeConnectionInfo = original.IntegrationRuntimeConnectionInf
type IntegrationRuntimeCustomSetupScriptProperties = original.IntegrationRuntimeCustomSetupScriptProperties
type IntegrationRuntimeDataFlowProperties = original.IntegrationRuntimeDataFlowProperties
type IntegrationRuntimeDataProxyProperties = original.IntegrationRuntimeDataProxyProperties
+type IntegrationRuntimeDebugResource = original.IntegrationRuntimeDebugResource
type IntegrationRuntimeListResponse = original.IntegrationRuntimeListResponse
type IntegrationRuntimeListResponseIterator = original.IntegrationRuntimeListResponseIterator
type IntegrationRuntimeListResponsePage = original.IntegrationRuntimeListResponsePage
@@ -1623,6 +1652,7 @@ type LinkedIntegrationRuntimeRbacAuthorization = original.LinkedIntegrationRunti
type LinkedIntegrationRuntimeRequest = original.LinkedIntegrationRuntimeRequest
type LinkedIntegrationRuntimeType = original.LinkedIntegrationRuntimeType
type LinkedService = original.LinkedService
+type LinkedServiceDebugResource = original.LinkedServiceDebugResource
type LinkedServiceListResponse = original.LinkedServiceListResponse
type LinkedServiceListResponseIterator = original.LinkedServiceListResponseIterator
type LinkedServiceListResponsePage = original.LinkedServiceListResponsePage
@@ -1922,6 +1952,10 @@ type StoreReadSettings = original.StoreReadSettings
type StoreWriteSettings = original.StoreWriteSettings
type StoredProcedureParameter = original.StoredProcedureParameter
type SubResource = original.SubResource
+type SubResourceDebugResource = original.SubResourceDebugResource
+type SwitchActivity = original.SwitchActivity
+type SwitchActivityTypeProperties = original.SwitchActivityTypeProperties
+type SwitchCase = original.SwitchCase
type SybaseLinkedService = original.SybaseLinkedService
type SybaseLinkedServiceTypeProperties = original.SybaseLinkedServiceTypeProperties
type SybaseSource = original.SybaseSource
@@ -2285,6 +2319,9 @@ func PossibleODataAuthenticationTypeValues() []ODataAuthenticationType {
func PossibleOraclePartitionOptionValues() []OraclePartitionOption {
return original.PossibleOraclePartitionOptionValues()
}
+func PossibleOrcCompressionCodecValues() []OrcCompressionCodec {
+ return original.PossibleOrcCompressionCodecValues()
+}
func PossibleParameterTypeValues() []ParameterType {
return original.PossibleParameterTypeValues()
}
diff --git a/profiles/latest/datashare/mgmt/datashare/datashareapi/models.go b/profiles/latest/datashare/mgmt/datashare/datashareapi/models.go
new file mode 100644
index 000000000000..9f24dd90d35d
--- /dev/null
+++ b/profiles/latest/datashare/mgmt/datashare/datashareapi/models.go
@@ -0,0 +1,35 @@
+// +build go1.9
+
+// Copyright 2019 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 datashareapi
+
+import original "github.com/Azure/azure-sdk-for-go/services/datashare/mgmt/2019-11-01/datashare/datashareapi"
+
+type AccountsClientAPI = original.AccountsClientAPI
+type ConsumerInvitationsClientAPI = original.ConsumerInvitationsClientAPI
+type ConsumerSourceDataSetsClientAPI = original.ConsumerSourceDataSetsClientAPI
+type DataSetMappingsClientAPI = original.DataSetMappingsClientAPI
+type DataSetsClientAPI = original.DataSetsClientAPI
+type InvitationsClientAPI = original.InvitationsClientAPI
+type OperationsClientAPI = original.OperationsClientAPI
+type ProviderShareSubscriptionsClientAPI = original.ProviderShareSubscriptionsClientAPI
+type ShareSubscriptionsClientAPI = original.ShareSubscriptionsClientAPI
+type SharesClientAPI = original.SharesClientAPI
+type SynchronizationSettingsClientAPI = original.SynchronizationSettingsClientAPI
+type TriggersClientAPI = original.TriggersClientAPI
diff --git a/profiles/latest/datashare/mgmt/datashare/models.go b/profiles/latest/datashare/mgmt/datashare/models.go
new file mode 100644
index 000000000000..fb88cb82a7a1
--- /dev/null
+++ b/profiles/latest/datashare/mgmt/datashare/models.go
@@ -0,0 +1,591 @@
+// +build go1.9
+
+// Copyright 2019 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 datashare
+
+import (
+ "context"
+
+ original "github.com/Azure/azure-sdk-for-go/services/datashare/mgmt/2019-11-01/datashare"
+)
+
+const (
+ DefaultBaseURI = original.DefaultBaseURI
+)
+
+type DataSetMappingStatus = original.DataSetMappingStatus
+
+const (
+ Broken DataSetMappingStatus = original.Broken
+ Ok DataSetMappingStatus = original.Ok
+)
+
+type DataSetType = original.DataSetType
+
+const (
+ AdlsGen1File DataSetType = original.AdlsGen1File
+ AdlsGen1Folder DataSetType = original.AdlsGen1Folder
+ AdlsGen2File DataSetType = original.AdlsGen2File
+ AdlsGen2FileSystem DataSetType = original.AdlsGen2FileSystem
+ AdlsGen2Folder DataSetType = original.AdlsGen2Folder
+ Blob DataSetType = original.Blob
+ BlobFolder DataSetType = original.BlobFolder
+ Container DataSetType = original.Container
+ KustoCluster DataSetType = original.KustoCluster
+ KustoDatabase DataSetType = original.KustoDatabase
+ SQLDBTable DataSetType = original.SQLDBTable
+ SQLDWTable DataSetType = original.SQLDWTable
+)
+
+type InvitationStatus = original.InvitationStatus
+
+const (
+ Accepted InvitationStatus = original.Accepted
+ Pending InvitationStatus = original.Pending
+ Rejected InvitationStatus = original.Rejected
+ Withdrawn InvitationStatus = original.Withdrawn
+)
+
+type Kind = original.Kind
+
+const (
+ KindAdlsGen1File Kind = original.KindAdlsGen1File
+ KindAdlsGen1Folder Kind = original.KindAdlsGen1Folder
+ KindAdlsGen2File Kind = original.KindAdlsGen2File
+ KindAdlsGen2FileSystem Kind = original.KindAdlsGen2FileSystem
+ KindAdlsGen2Folder Kind = original.KindAdlsGen2Folder
+ KindBlob Kind = original.KindBlob
+ KindBlobFolder Kind = original.KindBlobFolder
+ KindContainer Kind = original.KindContainer
+ KindDataSet Kind = original.KindDataSet
+ KindKustoCluster Kind = original.KindKustoCluster
+ KindKustoDatabase Kind = original.KindKustoDatabase
+ KindSQLDBTable Kind = original.KindSQLDBTable
+ KindSQLDWTable Kind = original.KindSQLDWTable
+)
+
+type KindBasicDataSetMapping = original.KindBasicDataSetMapping
+
+const (
+ KindBasicDataSetMappingKindAdlsGen2File KindBasicDataSetMapping = original.KindBasicDataSetMappingKindAdlsGen2File
+ KindBasicDataSetMappingKindAdlsGen2FileSystem KindBasicDataSetMapping = original.KindBasicDataSetMappingKindAdlsGen2FileSystem
+ KindBasicDataSetMappingKindAdlsGen2Folder KindBasicDataSetMapping = original.KindBasicDataSetMappingKindAdlsGen2Folder
+ KindBasicDataSetMappingKindBlob KindBasicDataSetMapping = original.KindBasicDataSetMappingKindBlob
+ KindBasicDataSetMappingKindBlobFolder KindBasicDataSetMapping = original.KindBasicDataSetMappingKindBlobFolder
+ KindBasicDataSetMappingKindContainer KindBasicDataSetMapping = original.KindBasicDataSetMappingKindContainer
+ KindBasicDataSetMappingKindDataSetMapping KindBasicDataSetMapping = original.KindBasicDataSetMappingKindDataSetMapping
+ KindBasicDataSetMappingKindKustoCluster KindBasicDataSetMapping = original.KindBasicDataSetMappingKindKustoCluster
+ KindBasicDataSetMappingKindKustoDatabase KindBasicDataSetMapping = original.KindBasicDataSetMappingKindKustoDatabase
+ KindBasicDataSetMappingKindSQLDBTable KindBasicDataSetMapping = original.KindBasicDataSetMappingKindSQLDBTable
+ KindBasicDataSetMappingKindSQLDWTable KindBasicDataSetMapping = original.KindBasicDataSetMappingKindSQLDWTable
+)
+
+type KindBasicSourceShareSynchronizationSetting = original.KindBasicSourceShareSynchronizationSetting
+
+const (
+ KindScheduleBased KindBasicSourceShareSynchronizationSetting = original.KindScheduleBased
+ KindSourceShareSynchronizationSetting KindBasicSourceShareSynchronizationSetting = original.KindSourceShareSynchronizationSetting
+)
+
+type KindBasicSynchronizationSetting = original.KindBasicSynchronizationSetting
+
+const (
+ KindBasicSynchronizationSettingKindScheduleBased KindBasicSynchronizationSetting = original.KindBasicSynchronizationSettingKindScheduleBased
+ KindBasicSynchronizationSettingKindSynchronizationSetting KindBasicSynchronizationSetting = original.KindBasicSynchronizationSettingKindSynchronizationSetting
+)
+
+type KindBasicTrigger = original.KindBasicTrigger
+
+const (
+ KindBasicTriggerKindScheduleBased KindBasicTrigger = original.KindBasicTriggerKindScheduleBased
+ KindBasicTriggerKindTrigger KindBasicTrigger = original.KindBasicTriggerKindTrigger
+)
+
+type OutputType = original.OutputType
+
+const (
+ Csv OutputType = original.Csv
+ Parquet OutputType = original.Parquet
+)
+
+type ProvisioningState = original.ProvisioningState
+
+const (
+ Creating ProvisioningState = original.Creating
+ Deleting ProvisioningState = original.Deleting
+ Failed ProvisioningState = original.Failed
+ Moving ProvisioningState = original.Moving
+ Succeeded ProvisioningState = original.Succeeded
+)
+
+type RecurrenceInterval = original.RecurrenceInterval
+
+const (
+ Day RecurrenceInterval = original.Day
+ Hour RecurrenceInterval = original.Hour
+)
+
+type ShareKind = original.ShareKind
+
+const (
+ CopyBased ShareKind = original.CopyBased
+ InPlace ShareKind = original.InPlace
+)
+
+type ShareSubscriptionStatus = original.ShareSubscriptionStatus
+
+const (
+ Active ShareSubscriptionStatus = original.Active
+ Revoked ShareSubscriptionStatus = original.Revoked
+ Revoking ShareSubscriptionStatus = original.Revoking
+ SourceDeleted ShareSubscriptionStatus = original.SourceDeleted
+)
+
+type Status = original.Status
+
+const (
+ StatusAccepted Status = original.StatusAccepted
+ StatusCanceled Status = original.StatusCanceled
+ StatusFailed Status = original.StatusFailed
+ StatusInProgress Status = original.StatusInProgress
+ StatusSucceeded Status = original.StatusSucceeded
+ StatusTransientFailure Status = original.StatusTransientFailure
+)
+
+type SynchronizationMode = original.SynchronizationMode
+
+const (
+ FullSync SynchronizationMode = original.FullSync
+ Incremental SynchronizationMode = original.Incremental
+)
+
+type TriggerStatus = original.TriggerStatus
+
+const (
+ TriggerStatusActive TriggerStatus = original.TriggerStatusActive
+ TriggerStatusInactive TriggerStatus = original.TriggerStatusInactive
+ TriggerStatusSourceSynchronizationSettingDeleted TriggerStatus = original.TriggerStatusSourceSynchronizationSettingDeleted
+)
+
+type Type = original.Type
+
+const (
+ SystemAssigned Type = original.SystemAssigned
+)
+
+type ADLSGen1FileDataSet = original.ADLSGen1FileDataSet
+type ADLSGen1FileProperties = original.ADLSGen1FileProperties
+type ADLSGen1FolderDataSet = original.ADLSGen1FolderDataSet
+type ADLSGen1FolderProperties = original.ADLSGen1FolderProperties
+type ADLSGen2FileDataSet = original.ADLSGen2FileDataSet
+type ADLSGen2FileDataSetMapping = original.ADLSGen2FileDataSetMapping
+type ADLSGen2FileDataSetMappingProperties = original.ADLSGen2FileDataSetMappingProperties
+type ADLSGen2FileProperties = original.ADLSGen2FileProperties
+type ADLSGen2FileSystemDataSet = original.ADLSGen2FileSystemDataSet
+type ADLSGen2FileSystemDataSetMapping = original.ADLSGen2FileSystemDataSetMapping
+type ADLSGen2FileSystemDataSetMappingProperties = original.ADLSGen2FileSystemDataSetMappingProperties
+type ADLSGen2FileSystemProperties = original.ADLSGen2FileSystemProperties
+type ADLSGen2FolderDataSet = original.ADLSGen2FolderDataSet
+type ADLSGen2FolderDataSetMapping = original.ADLSGen2FolderDataSetMapping
+type ADLSGen2FolderDataSetMappingProperties = original.ADLSGen2FolderDataSetMappingProperties
+type ADLSGen2FolderProperties = original.ADLSGen2FolderProperties
+type Account = original.Account
+type AccountList = original.AccountList
+type AccountListIterator = original.AccountListIterator
+type AccountListPage = original.AccountListPage
+type AccountProperties = original.AccountProperties
+type AccountUpdateParameters = original.AccountUpdateParameters
+type AccountsClient = original.AccountsClient
+type AccountsCreateFuture = original.AccountsCreateFuture
+type AccountsDeleteFuture = original.AccountsDeleteFuture
+type BaseClient = original.BaseClient
+type BasicDataSet = original.BasicDataSet
+type BasicDataSetMapping = original.BasicDataSetMapping
+type BasicSourceShareSynchronizationSetting = original.BasicSourceShareSynchronizationSetting
+type BasicSynchronizationSetting = original.BasicSynchronizationSetting
+type BasicTrigger = original.BasicTrigger
+type BlobContainerDataSet = original.BlobContainerDataSet
+type BlobContainerDataSetMapping = original.BlobContainerDataSetMapping
+type BlobContainerMappingProperties = original.BlobContainerMappingProperties
+type BlobContainerProperties = original.BlobContainerProperties
+type BlobDataSet = original.BlobDataSet
+type BlobDataSetMapping = original.BlobDataSetMapping
+type BlobFolderDataSet = original.BlobFolderDataSet
+type BlobFolderDataSetMapping = original.BlobFolderDataSetMapping
+type BlobFolderMappingProperties = original.BlobFolderMappingProperties
+type BlobFolderProperties = original.BlobFolderProperties
+type BlobMappingProperties = original.BlobMappingProperties
+type BlobProperties = original.BlobProperties
+type ConsumerInvitation = original.ConsumerInvitation
+type ConsumerInvitationList = original.ConsumerInvitationList
+type ConsumerInvitationListIterator = original.ConsumerInvitationListIterator
+type ConsumerInvitationListPage = original.ConsumerInvitationListPage
+type ConsumerInvitationProperties = original.ConsumerInvitationProperties
+type ConsumerInvitationsClient = original.ConsumerInvitationsClient
+type ConsumerSourceDataSet = original.ConsumerSourceDataSet
+type ConsumerSourceDataSetList = original.ConsumerSourceDataSetList
+type ConsumerSourceDataSetListIterator = original.ConsumerSourceDataSetListIterator
+type ConsumerSourceDataSetListPage = original.ConsumerSourceDataSetListPage
+type ConsumerSourceDataSetProperties = original.ConsumerSourceDataSetProperties
+type ConsumerSourceDataSetsClient = original.ConsumerSourceDataSetsClient
+type DataSet = original.DataSet
+type DataSetList = original.DataSetList
+type DataSetListIterator = original.DataSetListIterator
+type DataSetListPage = original.DataSetListPage
+type DataSetMapping = original.DataSetMapping
+type DataSetMappingList = original.DataSetMappingList
+type DataSetMappingListIterator = original.DataSetMappingListIterator
+type DataSetMappingListPage = original.DataSetMappingListPage
+type DataSetMappingModel = original.DataSetMappingModel
+type DataSetMappingsClient = original.DataSetMappingsClient
+type DataSetModel = original.DataSetModel
+type DataSetsClient = original.DataSetsClient
+type DataSetsDeleteFuture = original.DataSetsDeleteFuture
+type DefaultDto = original.DefaultDto
+type DimensionProperties = original.DimensionProperties
+type Error = original.Error
+type ErrorInfo = original.ErrorInfo
+type Identity = original.Identity
+type Invitation = original.Invitation
+type InvitationList = original.InvitationList
+type InvitationListIterator = original.InvitationListIterator
+type InvitationListPage = original.InvitationListPage
+type InvitationProperties = original.InvitationProperties
+type InvitationsClient = original.InvitationsClient
+type KustoClusterDataSet = original.KustoClusterDataSet
+type KustoClusterDataSetMapping = original.KustoClusterDataSetMapping
+type KustoClusterDataSetMappingProperties = original.KustoClusterDataSetMappingProperties
+type KustoClusterDataSetProperties = original.KustoClusterDataSetProperties
+type KustoDatabaseDataSet = original.KustoDatabaseDataSet
+type KustoDatabaseDataSetMapping = original.KustoDatabaseDataSetMapping
+type KustoDatabaseDataSetMappingProperties = original.KustoDatabaseDataSetMappingProperties
+type KustoDatabaseDataSetProperties = original.KustoDatabaseDataSetProperties
+type OperationList = original.OperationList
+type OperationListIterator = original.OperationListIterator
+type OperationListPage = original.OperationListPage
+type OperationMetaLogSpecification = original.OperationMetaLogSpecification
+type OperationMetaMetricSpecification = original.OperationMetaMetricSpecification
+type OperationMetaPropertyInfo = original.OperationMetaPropertyInfo
+type OperationMetaServiceSpecification = original.OperationMetaServiceSpecification
+type OperationModel = original.OperationModel
+type OperationModelProperties = original.OperationModelProperties
+type OperationResponse = original.OperationResponse
+type OperationsClient = original.OperationsClient
+type ProviderShareSubscription = original.ProviderShareSubscription
+type ProviderShareSubscriptionList = original.ProviderShareSubscriptionList
+type ProviderShareSubscriptionListIterator = original.ProviderShareSubscriptionListIterator
+type ProviderShareSubscriptionListPage = original.ProviderShareSubscriptionListPage
+type ProviderShareSubscriptionProperties = original.ProviderShareSubscriptionProperties
+type ProviderShareSubscriptionsClient = original.ProviderShareSubscriptionsClient
+type ProviderShareSubscriptionsRevokeFuture = original.ProviderShareSubscriptionsRevokeFuture
+type ProxyDto = original.ProxyDto
+type SQLDBTableDataSet = original.SQLDBTableDataSet
+type SQLDBTableDataSetMapping = original.SQLDBTableDataSetMapping
+type SQLDBTableDataSetMappingProperties = original.SQLDBTableDataSetMappingProperties
+type SQLDBTableProperties = original.SQLDBTableProperties
+type SQLDWTableDataSet = original.SQLDWTableDataSet
+type SQLDWTableDataSetMapping = original.SQLDWTableDataSetMapping
+type SQLDWTableDataSetMappingProperties = original.SQLDWTableDataSetMappingProperties
+type SQLDWTableProperties = original.SQLDWTableProperties
+type ScheduledSourceShareSynchronizationSettingProperties = original.ScheduledSourceShareSynchronizationSettingProperties
+type ScheduledSourceSynchronizationSetting = original.ScheduledSourceSynchronizationSetting
+type ScheduledSynchronizationSetting = original.ScheduledSynchronizationSetting
+type ScheduledSynchronizationSettingProperties = original.ScheduledSynchronizationSettingProperties
+type ScheduledTrigger = original.ScheduledTrigger
+type ScheduledTriggerProperties = original.ScheduledTriggerProperties
+type Share = original.Share
+type ShareList = original.ShareList
+type ShareListIterator = original.ShareListIterator
+type ShareListPage = original.ShareListPage
+type ShareProperties = original.ShareProperties
+type ShareSubscription = original.ShareSubscription
+type ShareSubscriptionList = original.ShareSubscriptionList
+type ShareSubscriptionListIterator = original.ShareSubscriptionListIterator
+type ShareSubscriptionListPage = original.ShareSubscriptionListPage
+type ShareSubscriptionProperties = original.ShareSubscriptionProperties
+type ShareSubscriptionSynchronization = original.ShareSubscriptionSynchronization
+type ShareSubscriptionSynchronizationList = original.ShareSubscriptionSynchronizationList
+type ShareSubscriptionSynchronizationListIterator = original.ShareSubscriptionSynchronizationListIterator
+type ShareSubscriptionSynchronizationListPage = original.ShareSubscriptionSynchronizationListPage
+type ShareSubscriptionsCancelSynchronizationFuture = original.ShareSubscriptionsCancelSynchronizationFuture
+type ShareSubscriptionsClient = original.ShareSubscriptionsClient
+type ShareSubscriptionsDeleteFuture = original.ShareSubscriptionsDeleteFuture
+type ShareSubscriptionsSynchronizeMethodFuture = original.ShareSubscriptionsSynchronizeMethodFuture
+type ShareSynchronization = original.ShareSynchronization
+type ShareSynchronizationList = original.ShareSynchronizationList
+type ShareSynchronizationListIterator = original.ShareSynchronizationListIterator
+type ShareSynchronizationListPage = original.ShareSynchronizationListPage
+type SharesClient = original.SharesClient
+type SharesDeleteFuture = original.SharesDeleteFuture
+type SourceShareSynchronizationSetting = original.SourceShareSynchronizationSetting
+type SourceShareSynchronizationSettingList = original.SourceShareSynchronizationSettingList
+type SourceShareSynchronizationSettingListIterator = original.SourceShareSynchronizationSettingListIterator
+type SourceShareSynchronizationSettingListPage = original.SourceShareSynchronizationSettingListPage
+type SynchronizationDetails = original.SynchronizationDetails
+type SynchronizationDetailsList = original.SynchronizationDetailsList
+type SynchronizationDetailsListIterator = original.SynchronizationDetailsListIterator
+type SynchronizationDetailsListPage = original.SynchronizationDetailsListPage
+type SynchronizationSetting = original.SynchronizationSetting
+type SynchronizationSettingList = original.SynchronizationSettingList
+type SynchronizationSettingListIterator = original.SynchronizationSettingListIterator
+type SynchronizationSettingListPage = original.SynchronizationSettingListPage
+type SynchronizationSettingModel = original.SynchronizationSettingModel
+type SynchronizationSettingsClient = original.SynchronizationSettingsClient
+type SynchronizationSettingsDeleteFuture = original.SynchronizationSettingsDeleteFuture
+type Synchronize = original.Synchronize
+type Trigger = original.Trigger
+type TriggerList = original.TriggerList
+type TriggerListIterator = original.TriggerListIterator
+type TriggerListPage = original.TriggerListPage
+type TriggerModel = original.TriggerModel
+type TriggersClient = original.TriggersClient
+type TriggersCreateFuture = original.TriggersCreateFuture
+type TriggersDeleteFuture = original.TriggersDeleteFuture
+
+func New(subscriptionID string) BaseClient {
+ return original.New(subscriptionID)
+}
+func NewAccountListIterator(page AccountListPage) AccountListIterator {
+ return original.NewAccountListIterator(page)
+}
+func NewAccountListPage(getNextPage func(context.Context, AccountList) (AccountList, error)) AccountListPage {
+ return original.NewAccountListPage(getNextPage)
+}
+func NewAccountsClient(subscriptionID string) AccountsClient {
+ return original.NewAccountsClient(subscriptionID)
+}
+func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) AccountsClient {
+ return original.NewAccountsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewConsumerInvitationListIterator(page ConsumerInvitationListPage) ConsumerInvitationListIterator {
+ return original.NewConsumerInvitationListIterator(page)
+}
+func NewConsumerInvitationListPage(getNextPage func(context.Context, ConsumerInvitationList) (ConsumerInvitationList, error)) ConsumerInvitationListPage {
+ return original.NewConsumerInvitationListPage(getNextPage)
+}
+func NewConsumerInvitationsClient(subscriptionID string) ConsumerInvitationsClient {
+ return original.NewConsumerInvitationsClient(subscriptionID)
+}
+func NewConsumerInvitationsClientWithBaseURI(baseURI string, subscriptionID string) ConsumerInvitationsClient {
+ return original.NewConsumerInvitationsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewConsumerSourceDataSetListIterator(page ConsumerSourceDataSetListPage) ConsumerSourceDataSetListIterator {
+ return original.NewConsumerSourceDataSetListIterator(page)
+}
+func NewConsumerSourceDataSetListPage(getNextPage func(context.Context, ConsumerSourceDataSetList) (ConsumerSourceDataSetList, error)) ConsumerSourceDataSetListPage {
+ return original.NewConsumerSourceDataSetListPage(getNextPage)
+}
+func NewConsumerSourceDataSetsClient(subscriptionID string) ConsumerSourceDataSetsClient {
+ return original.NewConsumerSourceDataSetsClient(subscriptionID)
+}
+func NewConsumerSourceDataSetsClientWithBaseURI(baseURI string, subscriptionID string) ConsumerSourceDataSetsClient {
+ return original.NewConsumerSourceDataSetsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewDataSetListIterator(page DataSetListPage) DataSetListIterator {
+ return original.NewDataSetListIterator(page)
+}
+func NewDataSetListPage(getNextPage func(context.Context, DataSetList) (DataSetList, error)) DataSetListPage {
+ return original.NewDataSetListPage(getNextPage)
+}
+func NewDataSetMappingListIterator(page DataSetMappingListPage) DataSetMappingListIterator {
+ return original.NewDataSetMappingListIterator(page)
+}
+func NewDataSetMappingListPage(getNextPage func(context.Context, DataSetMappingList) (DataSetMappingList, error)) DataSetMappingListPage {
+ return original.NewDataSetMappingListPage(getNextPage)
+}
+func NewDataSetMappingsClient(subscriptionID string) DataSetMappingsClient {
+ return original.NewDataSetMappingsClient(subscriptionID)
+}
+func NewDataSetMappingsClientWithBaseURI(baseURI string, subscriptionID string) DataSetMappingsClient {
+ return original.NewDataSetMappingsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewDataSetsClient(subscriptionID string) DataSetsClient {
+ return original.NewDataSetsClient(subscriptionID)
+}
+func NewDataSetsClientWithBaseURI(baseURI string, subscriptionID string) DataSetsClient {
+ return original.NewDataSetsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewInvitationListIterator(page InvitationListPage) InvitationListIterator {
+ return original.NewInvitationListIterator(page)
+}
+func NewInvitationListPage(getNextPage func(context.Context, InvitationList) (InvitationList, error)) InvitationListPage {
+ return original.NewInvitationListPage(getNextPage)
+}
+func NewInvitationsClient(subscriptionID string) InvitationsClient {
+ return original.NewInvitationsClient(subscriptionID)
+}
+func NewInvitationsClientWithBaseURI(baseURI string, subscriptionID string) InvitationsClient {
+ return original.NewInvitationsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewOperationListIterator(page OperationListPage) OperationListIterator {
+ return original.NewOperationListIterator(page)
+}
+func NewOperationListPage(getNextPage func(context.Context, OperationList) (OperationList, error)) OperationListPage {
+ return original.NewOperationListPage(getNextPage)
+}
+func NewOperationsClient(subscriptionID string) OperationsClient {
+ return original.NewOperationsClient(subscriptionID)
+}
+func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
+ return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewProviderShareSubscriptionListIterator(page ProviderShareSubscriptionListPage) ProviderShareSubscriptionListIterator {
+ return original.NewProviderShareSubscriptionListIterator(page)
+}
+func NewProviderShareSubscriptionListPage(getNextPage func(context.Context, ProviderShareSubscriptionList) (ProviderShareSubscriptionList, error)) ProviderShareSubscriptionListPage {
+ return original.NewProviderShareSubscriptionListPage(getNextPage)
+}
+func NewProviderShareSubscriptionsClient(subscriptionID string) ProviderShareSubscriptionsClient {
+ return original.NewProviderShareSubscriptionsClient(subscriptionID)
+}
+func NewProviderShareSubscriptionsClientWithBaseURI(baseURI string, subscriptionID string) ProviderShareSubscriptionsClient {
+ return original.NewProviderShareSubscriptionsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewShareListIterator(page ShareListPage) ShareListIterator {
+ return original.NewShareListIterator(page)
+}
+func NewShareListPage(getNextPage func(context.Context, ShareList) (ShareList, error)) ShareListPage {
+ return original.NewShareListPage(getNextPage)
+}
+func NewShareSubscriptionListIterator(page ShareSubscriptionListPage) ShareSubscriptionListIterator {
+ return original.NewShareSubscriptionListIterator(page)
+}
+func NewShareSubscriptionListPage(getNextPage func(context.Context, ShareSubscriptionList) (ShareSubscriptionList, error)) ShareSubscriptionListPage {
+ return original.NewShareSubscriptionListPage(getNextPage)
+}
+func NewShareSubscriptionSynchronizationListIterator(page ShareSubscriptionSynchronizationListPage) ShareSubscriptionSynchronizationListIterator {
+ return original.NewShareSubscriptionSynchronizationListIterator(page)
+}
+func NewShareSubscriptionSynchronizationListPage(getNextPage func(context.Context, ShareSubscriptionSynchronizationList) (ShareSubscriptionSynchronizationList, error)) ShareSubscriptionSynchronizationListPage {
+ return original.NewShareSubscriptionSynchronizationListPage(getNextPage)
+}
+func NewShareSubscriptionsClient(subscriptionID string) ShareSubscriptionsClient {
+ return original.NewShareSubscriptionsClient(subscriptionID)
+}
+func NewShareSubscriptionsClientWithBaseURI(baseURI string, subscriptionID string) ShareSubscriptionsClient {
+ return original.NewShareSubscriptionsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewShareSynchronizationListIterator(page ShareSynchronizationListPage) ShareSynchronizationListIterator {
+ return original.NewShareSynchronizationListIterator(page)
+}
+func NewShareSynchronizationListPage(getNextPage func(context.Context, ShareSynchronizationList) (ShareSynchronizationList, error)) ShareSynchronizationListPage {
+ return original.NewShareSynchronizationListPage(getNextPage)
+}
+func NewSharesClient(subscriptionID string) SharesClient {
+ return original.NewSharesClient(subscriptionID)
+}
+func NewSharesClientWithBaseURI(baseURI string, subscriptionID string) SharesClient {
+ return original.NewSharesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewSourceShareSynchronizationSettingListIterator(page SourceShareSynchronizationSettingListPage) SourceShareSynchronizationSettingListIterator {
+ return original.NewSourceShareSynchronizationSettingListIterator(page)
+}
+func NewSourceShareSynchronizationSettingListPage(getNextPage func(context.Context, SourceShareSynchronizationSettingList) (SourceShareSynchronizationSettingList, error)) SourceShareSynchronizationSettingListPage {
+ return original.NewSourceShareSynchronizationSettingListPage(getNextPage)
+}
+func NewSynchronizationDetailsListIterator(page SynchronizationDetailsListPage) SynchronizationDetailsListIterator {
+ return original.NewSynchronizationDetailsListIterator(page)
+}
+func NewSynchronizationDetailsListPage(getNextPage func(context.Context, SynchronizationDetailsList) (SynchronizationDetailsList, error)) SynchronizationDetailsListPage {
+ return original.NewSynchronizationDetailsListPage(getNextPage)
+}
+func NewSynchronizationSettingListIterator(page SynchronizationSettingListPage) SynchronizationSettingListIterator {
+ return original.NewSynchronizationSettingListIterator(page)
+}
+func NewSynchronizationSettingListPage(getNextPage func(context.Context, SynchronizationSettingList) (SynchronizationSettingList, error)) SynchronizationSettingListPage {
+ return original.NewSynchronizationSettingListPage(getNextPage)
+}
+func NewSynchronizationSettingsClient(subscriptionID string) SynchronizationSettingsClient {
+ return original.NewSynchronizationSettingsClient(subscriptionID)
+}
+func NewSynchronizationSettingsClientWithBaseURI(baseURI string, subscriptionID string) SynchronizationSettingsClient {
+ return original.NewSynchronizationSettingsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewTriggerListIterator(page TriggerListPage) TriggerListIterator {
+ return original.NewTriggerListIterator(page)
+}
+func NewTriggerListPage(getNextPage func(context.Context, TriggerList) (TriggerList, error)) TriggerListPage {
+ return original.NewTriggerListPage(getNextPage)
+}
+func NewTriggersClient(subscriptionID string) TriggersClient {
+ return original.NewTriggersClient(subscriptionID)
+}
+func NewTriggersClientWithBaseURI(baseURI string, subscriptionID string) TriggersClient {
+ return original.NewTriggersClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
+ return original.NewWithBaseURI(baseURI, subscriptionID)
+}
+func PossibleDataSetMappingStatusValues() []DataSetMappingStatus {
+ return original.PossibleDataSetMappingStatusValues()
+}
+func PossibleDataSetTypeValues() []DataSetType {
+ return original.PossibleDataSetTypeValues()
+}
+func PossibleInvitationStatusValues() []InvitationStatus {
+ return original.PossibleInvitationStatusValues()
+}
+func PossibleKindBasicDataSetMappingValues() []KindBasicDataSetMapping {
+ return original.PossibleKindBasicDataSetMappingValues()
+}
+func PossibleKindBasicSourceShareSynchronizationSettingValues() []KindBasicSourceShareSynchronizationSetting {
+ return original.PossibleKindBasicSourceShareSynchronizationSettingValues()
+}
+func PossibleKindBasicSynchronizationSettingValues() []KindBasicSynchronizationSetting {
+ return original.PossibleKindBasicSynchronizationSettingValues()
+}
+func PossibleKindBasicTriggerValues() []KindBasicTrigger {
+ return original.PossibleKindBasicTriggerValues()
+}
+func PossibleKindValues() []Kind {
+ return original.PossibleKindValues()
+}
+func PossibleOutputTypeValues() []OutputType {
+ return original.PossibleOutputTypeValues()
+}
+func PossibleProvisioningStateValues() []ProvisioningState {
+ return original.PossibleProvisioningStateValues()
+}
+func PossibleRecurrenceIntervalValues() []RecurrenceInterval {
+ return original.PossibleRecurrenceIntervalValues()
+}
+func PossibleShareKindValues() []ShareKind {
+ return original.PossibleShareKindValues()
+}
+func PossibleShareSubscriptionStatusValues() []ShareSubscriptionStatus {
+ return original.PossibleShareSubscriptionStatusValues()
+}
+func PossibleStatusValues() []Status {
+ return original.PossibleStatusValues()
+}
+func PossibleSynchronizationModeValues() []SynchronizationMode {
+ return original.PossibleSynchronizationModeValues()
+}
+func PossibleTriggerStatusValues() []TriggerStatus {
+ return original.PossibleTriggerStatusValues()
+}
+func PossibleTypeValues() []Type {
+ return original.PossibleTypeValues()
+}
+func UserAgent() string {
+ return original.UserAgent() + " profiles/latest"
+}
+func Version() string {
+ return original.Version()
+}
diff --git a/profiles/latest/domainservices/mgmt/aad/aadapi/models.go b/profiles/latest/domainservices/mgmt/aad/aadapi/models.go
index 57ce54cbf838..9f299cf3ee98 100644
--- a/profiles/latest/domainservices/mgmt/aad/aadapi/models.go
+++ b/profiles/latest/domainservices/mgmt/aad/aadapi/models.go
@@ -23,4 +23,3 @@ import original "github.com/Azure/azure-sdk-for-go/services/domainservices/mgmt/
type DomainServiceOperationsClientAPI = original.DomainServiceOperationsClientAPI
type DomainServicesClientAPI = original.DomainServicesClientAPI
-type ReplicaSetsClientAPI = original.ReplicaSetsClientAPI
diff --git a/profiles/latest/domainservices/mgmt/aad/models.go b/profiles/latest/domainservices/mgmt/aad/models.go
index 0f420e987f44..d204eceb8de3 100644
--- a/profiles/latest/domainservices/mgmt/aad/models.go
+++ b/profiles/latest/domainservices/mgmt/aad/models.go
@@ -106,15 +106,6 @@ type OperationEntity = original.OperationEntity
type OperationEntityListResult = original.OperationEntityListResult
type OperationEntityListResultIterator = original.OperationEntityListResultIterator
type OperationEntityListResultPage = original.OperationEntityListResultPage
-type ReplicaSet = original.ReplicaSet
-type ReplicaSetListResult = original.ReplicaSetListResult
-type ReplicaSetListResultIterator = original.ReplicaSetListResultIterator
-type ReplicaSetListResultPage = original.ReplicaSetListResultPage
-type ReplicaSetProperties = original.ReplicaSetProperties
-type ReplicaSetsClient = original.ReplicaSetsClient
-type ReplicaSetsCreateOrUpdateFuture = original.ReplicaSetsCreateOrUpdateFuture
-type ReplicaSetsDeleteFuture = original.ReplicaSetsDeleteFuture
-type ReplicaSetsUpdateFuture = original.ReplicaSetsUpdateFuture
type Resource = original.Resource
func New(subscriptionID string) BaseClient {
@@ -144,18 +135,6 @@ func NewOperationEntityListResultIterator(page OperationEntityListResultPage) Op
func NewOperationEntityListResultPage(getNextPage func(context.Context, OperationEntityListResult) (OperationEntityListResult, error)) OperationEntityListResultPage {
return original.NewOperationEntityListResultPage(getNextPage)
}
-func NewReplicaSetListResultIterator(page ReplicaSetListResultPage) ReplicaSetListResultIterator {
- return original.NewReplicaSetListResultIterator(page)
-}
-func NewReplicaSetListResultPage(getNextPage func(context.Context, ReplicaSetListResult) (ReplicaSetListResult, error)) ReplicaSetListResultPage {
- return original.NewReplicaSetListResultPage(getNextPage)
-}
-func NewReplicaSetsClient(subscriptionID string) ReplicaSetsClient {
- return original.NewReplicaSetsClient(subscriptionID)
-}
-func NewReplicaSetsClientWithBaseURI(baseURI string, subscriptionID string) ReplicaSetsClient {
- return original.NewReplicaSetsClientWithBaseURI(baseURI, subscriptionID)
-}
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
}
diff --git a/profiles/latest/eventgrid/eventgrid/models.go b/profiles/latest/eventgrid/eventgrid/models.go
index bbc94e13941c..9ee7818f21d7 100644
--- a/profiles/latest/eventgrid/eventgrid/models.go
+++ b/profiles/latest/eventgrid/eventgrid/models.go
@@ -111,6 +111,10 @@ type KeyVaultKeyNewVersionCreatedEventData = original.KeyVaultKeyNewVersionCreat
type KeyVaultSecretExpiredEventData = original.KeyVaultSecretExpiredEventData
type KeyVaultSecretNearExpiryEventData = original.KeyVaultSecretNearExpiryEventData
type KeyVaultSecretNewVersionCreatedEventData = original.KeyVaultSecretNewVersionCreatedEventData
+type MachineLearningServicesDatasetDriftDetectedEventData = original.MachineLearningServicesDatasetDriftDetectedEventData
+type MachineLearningServicesModelDeployedEventData = original.MachineLearningServicesModelDeployedEventData
+type MachineLearningServicesModelRegisteredEventData = original.MachineLearningServicesModelRegisteredEventData
+type MachineLearningServicesRunCompletedEventData = original.MachineLearningServicesRunCompletedEventData
type MapsGeofenceEnteredEventData = original.MapsGeofenceEnteredEventData
type MapsGeofenceEventProperties = original.MapsGeofenceEventProperties
type MapsGeofenceExitedEventData = original.MapsGeofenceExitedEventData
@@ -159,6 +163,10 @@ type SignalRServiceClientConnectionConnectedEventData = original.SignalRServiceC
type SignalRServiceClientConnectionDisconnectedEventData = original.SignalRServiceClientConnectionDisconnectedEventData
type StorageBlobCreatedEventData = original.StorageBlobCreatedEventData
type StorageBlobDeletedEventData = original.StorageBlobDeletedEventData
+type StorageBlobRenamedEventData = original.StorageBlobRenamedEventData
+type StorageDirectoryCreatedEventData = original.StorageDirectoryCreatedEventData
+type StorageDirectoryDeletedEventData = original.StorageDirectoryDeletedEventData
+type StorageDirectoryRenamedEventData = original.StorageDirectoryRenamedEventData
type SubscriptionDeletedEventData = original.SubscriptionDeletedEventData
type SubscriptionValidationEventData = original.SubscriptionValidationEventData
type SubscriptionValidationResponse = original.SubscriptionValidationResponse
diff --git a/profiles/latest/operationalinsights/mgmt/operationalinsights/models.go b/profiles/latest/operationalinsights/mgmt/operationalinsights/models.go
index d0a4679c911f..38e9078107cf 100644
--- a/profiles/latest/operationalinsights/mgmt/operationalinsights/models.go
+++ b/profiles/latest/operationalinsights/mgmt/operationalinsights/models.go
@@ -64,13 +64,9 @@ type SavedSearch = original.SavedSearch
type SavedSearchProperties = original.SavedSearchProperties
type SavedSearchesClient = original.SavedSearchesClient
type SavedSearchesListResult = original.SavedSearchesListResult
-type SearchError = original.SearchError
type SearchGetSchemaResponse = original.SearchGetSchemaResponse
-type SearchHighlight = original.SearchHighlight
type SearchMetadata = original.SearchMetadata
type SearchMetadataSchema = original.SearchMetadataSchema
-type SearchParameters = original.SearchParameters
-type SearchResultsResponse = original.SearchResultsResponse
type SearchSchemaValue = original.SearchSchemaValue
type SearchSort = original.SearchSort
type SharedKeys = original.SharedKeys
@@ -88,7 +84,6 @@ type WorkspacePurgeBodyFilters = original.WorkspacePurgeBodyFilters
type WorkspacePurgeResponse = original.WorkspacePurgeResponse
type WorkspacePurgeStatusResponse = original.WorkspacePurgeStatusResponse
type WorkspacesClient = original.WorkspacesClient
-type WorkspacesGetSearchResultsFuture = original.WorkspacesGetSearchResultsFuture
func New(subscriptionID string, purgeID string) BaseClient {
return original.New(subscriptionID, purgeID)
diff --git a/profiles/latest/policyinsights/mgmt/policyinsights/models.go b/profiles/latest/policyinsights/mgmt/policyinsights/models.go
index 86baa6dc324f..792fa9b13ca8 100644
--- a/profiles/latest/policyinsights/mgmt/policyinsights/models.go
+++ b/profiles/latest/policyinsights/mgmt/policyinsights/models.go
@@ -19,7 +19,11 @@
package policyinsights
-import original "github.com/Azure/azure-sdk-for-go/services/policyinsights/mgmt/2018-04-04/policyinsights"
+import (
+ "context"
+
+ original "github.com/Azure/azure-sdk-for-go/services/policyinsights/mgmt/2019-10-01/policyinsights"
+)
const (
DefaultBaseURI = original.DefaultBaseURI
@@ -33,24 +37,51 @@ const (
)
type BaseClient = original.BaseClient
+type ComplianceDetail = original.ComplianceDetail
+type ErrorDefinition = original.ErrorDefinition
+type ErrorResponse = original.ErrorResponse
+type ExpressionEvaluationDetails = original.ExpressionEvaluationDetails
+type IfNotExistsEvaluationDetails = original.IfNotExistsEvaluationDetails
type Operation = original.Operation
type OperationDisplay = original.OperationDisplay
type OperationsClient = original.OperationsClient
type OperationsListResults = original.OperationsListResults
type PolicyAssignmentSummary = original.PolicyAssignmentSummary
type PolicyDefinitionSummary = original.PolicyDefinitionSummary
+type PolicyDetails = original.PolicyDetails
+type PolicyEvaluationDetails = original.PolicyEvaluationDetails
type PolicyEvent = original.PolicyEvent
type PolicyEventsClient = original.PolicyEventsClient
type PolicyEventsQueryResults = original.PolicyEventsQueryResults
+type PolicyGroupSummary = original.PolicyGroupSummary
type PolicyState = original.PolicyState
type PolicyStatesClient = original.PolicyStatesClient
type PolicyStatesQueryResults = original.PolicyStatesQueryResults
+type PolicyTrackedResource = original.PolicyTrackedResource
+type PolicyTrackedResourcesClient = original.PolicyTrackedResourcesClient
+type PolicyTrackedResourcesQueryResults = original.PolicyTrackedResourcesQueryResults
+type PolicyTrackedResourcesQueryResultsIterator = original.PolicyTrackedResourcesQueryResultsIterator
+type PolicyTrackedResourcesQueryResultsPage = original.PolicyTrackedResourcesQueryResultsPage
type QueryFailure = original.QueryFailure
type QueryFailureError = original.QueryFailureError
+type Remediation = original.Remediation
+type RemediationDeployment = original.RemediationDeployment
+type RemediationDeploymentSummary = original.RemediationDeploymentSummary
+type RemediationDeploymentsListResult = original.RemediationDeploymentsListResult
+type RemediationDeploymentsListResultIterator = original.RemediationDeploymentsListResultIterator
+type RemediationDeploymentsListResultPage = original.RemediationDeploymentsListResultPage
+type RemediationFilters = original.RemediationFilters
+type RemediationListResult = original.RemediationListResult
+type RemediationListResultIterator = original.RemediationListResultIterator
+type RemediationListResultPage = original.RemediationListResultPage
+type RemediationProperties = original.RemediationProperties
+type RemediationsClient = original.RemediationsClient
type String = original.String
type SummarizeResults = original.SummarizeResults
type Summary = original.Summary
type SummaryResults = original.SummaryResults
+type TrackedResourceModificationDetails = original.TrackedResourceModificationDetails
+type TypedErrorInfo = original.TypedErrorInfo
func New() BaseClient {
return original.New()
@@ -73,6 +104,36 @@ func NewPolicyStatesClient() PolicyStatesClient {
func NewPolicyStatesClientWithBaseURI(baseURI string) PolicyStatesClient {
return original.NewPolicyStatesClientWithBaseURI(baseURI)
}
+func NewPolicyTrackedResourcesClient() PolicyTrackedResourcesClient {
+ return original.NewPolicyTrackedResourcesClient()
+}
+func NewPolicyTrackedResourcesClientWithBaseURI(baseURI string) PolicyTrackedResourcesClient {
+ return original.NewPolicyTrackedResourcesClientWithBaseURI(baseURI)
+}
+func NewPolicyTrackedResourcesQueryResultsIterator(page PolicyTrackedResourcesQueryResultsPage) PolicyTrackedResourcesQueryResultsIterator {
+ return original.NewPolicyTrackedResourcesQueryResultsIterator(page)
+}
+func NewPolicyTrackedResourcesQueryResultsPage(getNextPage func(context.Context, PolicyTrackedResourcesQueryResults) (PolicyTrackedResourcesQueryResults, error)) PolicyTrackedResourcesQueryResultsPage {
+ return original.NewPolicyTrackedResourcesQueryResultsPage(getNextPage)
+}
+func NewRemediationDeploymentsListResultIterator(page RemediationDeploymentsListResultPage) RemediationDeploymentsListResultIterator {
+ return original.NewRemediationDeploymentsListResultIterator(page)
+}
+func NewRemediationDeploymentsListResultPage(getNextPage func(context.Context, RemediationDeploymentsListResult) (RemediationDeploymentsListResult, error)) RemediationDeploymentsListResultPage {
+ return original.NewRemediationDeploymentsListResultPage(getNextPage)
+}
+func NewRemediationListResultIterator(page RemediationListResultPage) RemediationListResultIterator {
+ return original.NewRemediationListResultIterator(page)
+}
+func NewRemediationListResultPage(getNextPage func(context.Context, RemediationListResult) (RemediationListResult, error)) RemediationListResultPage {
+ return original.NewRemediationListResultPage(getNextPage)
+}
+func NewRemediationsClient() RemediationsClient {
+ return original.NewRemediationsClient()
+}
+func NewRemediationsClientWithBaseURI(baseURI string) RemediationsClient {
+ return original.NewRemediationsClientWithBaseURI(baseURI)
+}
func NewWithBaseURI(baseURI string) BaseClient {
return original.NewWithBaseURI(baseURI)
}
diff --git a/profiles/latest/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go b/profiles/latest/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go
index 68f64baaefe8..3f4601162208 100644
--- a/profiles/latest/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go
+++ b/profiles/latest/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go
@@ -19,8 +19,10 @@
package policyinsightsapi
-import original "github.com/Azure/azure-sdk-for-go/services/policyinsights/mgmt/2018-04-04/policyinsights/policyinsightsapi"
+import original "github.com/Azure/azure-sdk-for-go/services/policyinsights/mgmt/2019-10-01/policyinsights/policyinsightsapi"
type OperationsClientAPI = original.OperationsClientAPI
type PolicyEventsClientAPI = original.PolicyEventsClientAPI
type PolicyStatesClientAPI = original.PolicyStatesClientAPI
+type PolicyTrackedResourcesClientAPI = original.PolicyTrackedResourcesClientAPI
+type RemediationsClientAPI = original.RemediationsClientAPI
diff --git a/profiles/latest/recoveryservices/mgmt/backup/models.go b/profiles/latest/recoveryservices/mgmt/backup/models.go
index 64707fed9555..989bb6b87a7b 100644
--- a/profiles/latest/recoveryservices/mgmt/backup/models.go
+++ b/profiles/latest/recoveryservices/mgmt/backup/models.go
@@ -265,14 +265,16 @@ const (
type JobOperationType = original.JobOperationType
const (
- JobOperationTypeBackup JobOperationType = original.JobOperationTypeBackup
- JobOperationTypeConfigureBackup JobOperationType = original.JobOperationTypeConfigureBackup
- JobOperationTypeDeleteBackupData JobOperationType = original.JobOperationTypeDeleteBackupData
- JobOperationTypeDisableBackup JobOperationType = original.JobOperationTypeDisableBackup
- JobOperationTypeInvalid JobOperationType = original.JobOperationTypeInvalid
- JobOperationTypeRegister JobOperationType = original.JobOperationTypeRegister
- JobOperationTypeRestore JobOperationType = original.JobOperationTypeRestore
- JobOperationTypeUnRegister JobOperationType = original.JobOperationTypeUnRegister
+ JobOperationTypeBackup JobOperationType = original.JobOperationTypeBackup
+ JobOperationTypeConfigureBackup JobOperationType = original.JobOperationTypeConfigureBackup
+ JobOperationTypeCrossRegionRestore JobOperationType = original.JobOperationTypeCrossRegionRestore
+ JobOperationTypeDeleteBackupData JobOperationType = original.JobOperationTypeDeleteBackupData
+ JobOperationTypeDisableBackup JobOperationType = original.JobOperationTypeDisableBackup
+ JobOperationTypeInvalid JobOperationType = original.JobOperationTypeInvalid
+ JobOperationTypeRegister JobOperationType = original.JobOperationTypeRegister
+ JobOperationTypeRestore JobOperationType = original.JobOperationTypeRestore
+ JobOperationTypeUndelete JobOperationType = original.JobOperationTypeUndelete
+ JobOperationTypeUnRegister JobOperationType = original.JobOperationTypeUnRegister
)
type JobStatus = original.JobStatus
@@ -390,8 +392,9 @@ const (
type ObjectTypeBasicILRRequest = original.ObjectTypeBasicILRRequest
const (
- ObjectTypeIaasVMILRRegistrationRequest ObjectTypeBasicILRRequest = original.ObjectTypeIaasVMILRRegistrationRequest
- ObjectTypeILRRequest ObjectTypeBasicILRRequest = original.ObjectTypeILRRequest
+ ObjectTypeAzureFileShareProvisionILRRequest ObjectTypeBasicILRRequest = original.ObjectTypeAzureFileShareProvisionILRRequest
+ ObjectTypeIaasVMILRRegistrationRequest ObjectTypeBasicILRRequest = original.ObjectTypeIaasVMILRRegistrationRequest
+ ObjectTypeILRRequest ObjectTypeBasicILRRequest = original.ObjectTypeILRRequest
)
type ObjectTypeBasicOperationStatusExtendedInfo = original.ObjectTypeBasicOperationStatusExtendedInfo
@@ -501,7 +504,6 @@ const (
ProtectableItemTypeIaaSVMProtectableItem ProtectableItemType = original.ProtectableItemTypeIaaSVMProtectableItem
ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftClassicComputevirtualMachines
ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftComputevirtualMachines
- ProtectableItemTypeSAPAseDatabase ProtectableItemType = original.ProtectableItemTypeSAPAseDatabase
ProtectableItemTypeSAPAseSystem ProtectableItemType = original.ProtectableItemTypeSAPAseSystem
ProtectableItemTypeSAPHanaDatabase ProtectableItemType = original.ProtectableItemTypeSAPHanaDatabase
ProtectableItemTypeSAPHanaSystem ProtectableItemType = original.ProtectableItemTypeSAPHanaSystem
@@ -581,6 +583,14 @@ const (
ProtectionStatusProtectionFailed ProtectionStatus = original.ProtectionStatusProtectionFailed
)
+type RecoveryMode = original.RecoveryMode
+
+const (
+ RecoveryModeFileRecovery RecoveryMode = original.RecoveryModeFileRecovery
+ RecoveryModeInvalid RecoveryMode = original.RecoveryModeInvalid
+ RecoveryModeWorkloadRecovery RecoveryMode = original.RecoveryModeWorkloadRecovery
+)
+
type RecoveryPointTierStatus = original.RecoveryPointTierStatus
const (
@@ -603,6 +613,7 @@ type RecoveryType = original.RecoveryType
const (
RecoveryTypeAlternateLocation RecoveryType = original.RecoveryTypeAlternateLocation
RecoveryTypeInvalid RecoveryType = original.RecoveryTypeInvalid
+ RecoveryTypeOffline RecoveryType = original.RecoveryTypeOffline
RecoveryTypeOriginalLocation RecoveryType = original.RecoveryTypeOriginalLocation
RecoveryTypeRestoreDisks RecoveryType = original.RecoveryTypeRestoreDisks
)
@@ -686,6 +697,14 @@ const (
ScheduleRunTypeWeekly ScheduleRunType = original.ScheduleRunTypeWeekly
)
+type SoftDeleteFeatureState = original.SoftDeleteFeatureState
+
+const (
+ SoftDeleteFeatureStateDisabled SoftDeleteFeatureState = original.SoftDeleteFeatureStateDisabled
+ SoftDeleteFeatureStateEnabled SoftDeleteFeatureState = original.SoftDeleteFeatureStateEnabled
+ SoftDeleteFeatureStateInvalid SoftDeleteFeatureState = original.SoftDeleteFeatureStateInvalid
+)
+
type StorageType = original.StorageType
const (
@@ -811,6 +830,7 @@ type AzureBackupServerEngine = original.AzureBackupServerEngine
type AzureFileShareBackupRequest = original.AzureFileShareBackupRequest
type AzureFileShareProtectableItem = original.AzureFileShareProtectableItem
type AzureFileShareProtectionPolicy = original.AzureFileShareProtectionPolicy
+type AzureFileShareProvisionILRRequest = original.AzureFileShareProvisionILRRequest
type AzureFileShareRecoveryPoint = original.AzureFileShareRecoveryPoint
type AzureFileShareRestoreRequest = original.AzureFileShareRestoreRequest
type AzureFileshareProtectedItem = original.AzureFileshareProtectedItem
@@ -851,7 +871,6 @@ type AzureVMWorkloadProtectableItem = original.AzureVMWorkloadProtectableItem
type AzureVMWorkloadProtectedItem = original.AzureVMWorkloadProtectedItem
type AzureVMWorkloadProtectedItemExtendedInfo = original.AzureVMWorkloadProtectedItemExtendedInfo
type AzureVMWorkloadProtectionPolicy = original.AzureVMWorkloadProtectionPolicy
-type AzureVMWorkloadSAPAseDatabaseProtectableItem = original.AzureVMWorkloadSAPAseDatabaseProtectableItem
type AzureVMWorkloadSAPAseDatabaseProtectedItem = original.AzureVMWorkloadSAPAseDatabaseProtectedItem
type AzureVMWorkloadSAPAseDatabaseWorkloadItem = original.AzureVMWorkloadSAPAseDatabaseWorkloadItem
type AzureVMWorkloadSAPAseSystemProtectableItem = original.AzureVMWorkloadSAPAseSystemProtectableItem
@@ -953,6 +972,8 @@ type DPMProtectedItemExtendedInfo = original.DPMProtectedItemExtendedInfo
type DailyRetentionFormat = original.DailyRetentionFormat
type DailyRetentionSchedule = original.DailyRetentionSchedule
type Day = original.Day
+type DiskExclusionProperties = original.DiskExclusionProperties
+type DiskInformation = original.DiskInformation
type DistributedNodesInfo = original.DistributedNodesInfo
type DpmBackupEngine = original.DpmBackupEngine
type DpmContainer = original.DpmContainer
@@ -971,6 +992,7 @@ type EnginesClient = original.EnginesClient
type ErrorDetail = original.ErrorDetail
type ExportJobsOperationResultInfo = original.ExportJobsOperationResultInfo
type ExportJobsOperationResultsClient = original.ExportJobsOperationResultsClient
+type ExtendedProperties = original.ExtendedProperties
type FeatureSupportClient = original.FeatureSupportClient
type FeatureSupportRequest = original.FeatureSupportRequest
type GenericContainer = original.GenericContainer
@@ -990,6 +1012,7 @@ type IaasVMRestoreRequest = original.IaasVMRestoreRequest
type InquiryInfo = original.InquiryInfo
type InquiryValidation = original.InquiryValidation
type InstantItemRecoveryTarget = original.InstantItemRecoveryTarget
+type InstantRPAdditionalDetails = original.InstantRPAdditionalDetails
type ItemLevelRecoveryConnectionsClient = original.ItemLevelRecoveryConnectionsClient
type Job = original.Job
type JobCancellationsClient = original.JobCancellationsClient
@@ -1084,6 +1107,7 @@ type ProtectionPolicyResourceList = original.ProtectionPolicyResourceList
type ProtectionPolicyResourceListIterator = original.ProtectionPolicyResourceListIterator
type ProtectionPolicyResourceListPage = original.ProtectionPolicyResourceListPage
type RecoveryPoint = original.RecoveryPoint
+type RecoveryPointDiskConfiguration = original.RecoveryPointDiskConfiguration
type RecoveryPointResource = original.RecoveryPointResource
type RecoveryPointResourceList = original.RecoveryPointResourceList
type RecoveryPointResourceListIterator = original.RecoveryPointResourceListIterator
@@ -1577,6 +1601,9 @@ func PossibleProtectionStateValues() []ProtectionState {
func PossibleProtectionStatusValues() []ProtectionStatus {
return original.PossibleProtectionStatusValues()
}
+func PossibleRecoveryModeValues() []RecoveryMode {
+ return original.PossibleRecoveryModeValues()
+}
func PossibleRecoveryPointTierStatusValues() []RecoveryPointTierStatus {
return original.PossibleRecoveryPointTierStatusValues()
}
@@ -1613,6 +1640,9 @@ func PossibleSchedulePolicyTypeValues() []SchedulePolicyType {
func PossibleScheduleRunTypeValues() []ScheduleRunType {
return original.PossibleScheduleRunTypeValues()
}
+func PossibleSoftDeleteFeatureStateValues() []SoftDeleteFeatureState {
+ return original.PossibleSoftDeleteFeatureStateValues()
+}
func PossibleStorageTypeStateValues() []StorageTypeState {
return original.PossibleStorageTypeStateValues()
}
diff --git a/profiles/latest/servicebus/mgmt/servicebus/models.go b/profiles/latest/servicebus/mgmt/servicebus/models.go
index a2bf7db2ca77..fba494f170aa 100644
--- a/profiles/latest/servicebus/mgmt/servicebus/models.go
+++ b/profiles/latest/servicebus/mgmt/servicebus/models.go
@@ -72,13 +72,6 @@ const (
FilterTypeSQLFilter FilterType = original.FilterTypeSQLFilter
)
-type IPAction = original.IPAction
-
-const (
- Accept IPAction = original.Accept
- Reject IPAction = original.Reject
-)
-
type KeyType = original.KeyType
const (
@@ -168,11 +161,6 @@ type EventHubListResultPage = original.EventHubListResultPage
type EventHubsClient = original.EventHubsClient
type Eventhub = original.Eventhub
type EventhubProperties = original.EventhubProperties
-type IPFilterRule = original.IPFilterRule
-type IPFilterRuleListResult = original.IPFilterRuleListResult
-type IPFilterRuleListResultIterator = original.IPFilterRuleListResultIterator
-type IPFilterRuleListResultPage = original.IPFilterRuleListResultPage
-type IPFilterRuleProperties = original.IPFilterRuleProperties
type MessageCountDetails = original.MessageCountDetails
type MigrationConfigListResult = original.MigrationConfigListResult
type MigrationConfigListResultIterator = original.MigrationConfigListResultIterator
@@ -248,11 +236,6 @@ type Subnet = original.Subnet
type SubscriptionsClient = original.SubscriptionsClient
type TopicsClient = original.TopicsClient
type TrackedResource = original.TrackedResource
-type VirtualNetworkRule = original.VirtualNetworkRule
-type VirtualNetworkRuleListResult = original.VirtualNetworkRuleListResult
-type VirtualNetworkRuleListResultIterator = original.VirtualNetworkRuleListResultIterator
-type VirtualNetworkRuleListResultPage = original.VirtualNetworkRuleListResultPage
-type VirtualNetworkRuleProperties = original.VirtualNetworkRuleProperties
func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
@@ -413,9 +396,6 @@ func PossibleEntityStatusValues() []EntityStatus {
func PossibleFilterTypeValues() []FilterType {
return original.PossibleFilterTypeValues()
}
-func PossibleIPActionValues() []IPAction {
- return original.PossibleIPActionValues()
-}
func PossibleKeyTypeValues() []KeyType {
return original.PossibleKeyTypeValues()
}
diff --git a/profiles/latest/sql/mgmt/sql/models.go b/profiles/latest/sql/mgmt/sql/models.go
index 21281d393c61..250d9c622dff 100644
--- a/profiles/latest/sql/mgmt/sql/models.go
+++ b/profiles/latest/sql/mgmt/sql/models.go
@@ -25,6 +25,15 @@ const (
DefaultBaseURI = original.DefaultBaseURI
)
+type AdvisorStatus = original.AdvisorStatus
+
+const (
+ GA AdvisorStatus = original.GA
+ LimitedPublicPreview AdvisorStatus = original.LimitedPublicPreview
+ PrivatePreview AdvisorStatus = original.PrivatePreview
+ PublicPreview AdvisorStatus = original.PublicPreview
+)
+
type AuthenticationType = original.AuthenticationType
const (
@@ -32,6 +41,30 @@ const (
SQL AuthenticationType = original.SQL
)
+type AutoExecuteStatus = original.AutoExecuteStatus
+
+const (
+ Default AutoExecuteStatus = original.Default
+ Disabled AutoExecuteStatus = original.Disabled
+ Enabled AutoExecuteStatus = original.Enabled
+)
+
+type BackupLongTermRetentionPolicyState = original.BackupLongTermRetentionPolicyState
+
+const (
+ BackupLongTermRetentionPolicyStateDisabled BackupLongTermRetentionPolicyState = original.BackupLongTermRetentionPolicyStateDisabled
+ BackupLongTermRetentionPolicyStateEnabled BackupLongTermRetentionPolicyState = original.BackupLongTermRetentionPolicyStateEnabled
+)
+
+type CapabilityStatus = original.CapabilityStatus
+
+const (
+ CapabilityStatusAvailable CapabilityStatus = original.CapabilityStatusAvailable
+ CapabilityStatusDefault CapabilityStatus = original.CapabilityStatusDefault
+ CapabilityStatusDisabled CapabilityStatus = original.CapabilityStatusDisabled
+ CapabilityStatusVisible CapabilityStatus = original.CapabilityStatusVisible
+)
+
type CheckNameAvailabilityReason = original.CheckNameAvailabilityReason
const (
@@ -42,14 +75,39 @@ const (
type CreateMode = original.CreateMode
const (
- Copy CreateMode = original.Copy
- Default CreateMode = original.Default
- NonReadableSecondary CreateMode = original.NonReadableSecondary
- OnlineSecondary CreateMode = original.OnlineSecondary
- PointInTimeRestore CreateMode = original.PointInTimeRestore
- Recovery CreateMode = original.Recovery
- Restore CreateMode = original.Restore
- RestoreLongTermRetentionBackup CreateMode = original.RestoreLongTermRetentionBackup
+ CreateModeCopy CreateMode = original.CreateModeCopy
+ CreateModeDefault CreateMode = original.CreateModeDefault
+ CreateModeNonReadableSecondary CreateMode = original.CreateModeNonReadableSecondary
+ CreateModeOnlineSecondary CreateMode = original.CreateModeOnlineSecondary
+ CreateModePointInTimeRestore CreateMode = original.CreateModePointInTimeRestore
+ CreateModeRecovery CreateMode = original.CreateModeRecovery
+ CreateModeRestore CreateMode = original.CreateModeRestore
+ CreateModeRestoreLongTermRetentionBackup CreateMode = original.CreateModeRestoreLongTermRetentionBackup
+)
+
+type DataMaskingFunction = original.DataMaskingFunction
+
+const (
+ DataMaskingFunctionCCN DataMaskingFunction = original.DataMaskingFunctionCCN
+ DataMaskingFunctionDefault DataMaskingFunction = original.DataMaskingFunctionDefault
+ DataMaskingFunctionEmail DataMaskingFunction = original.DataMaskingFunctionEmail
+ DataMaskingFunctionNumber DataMaskingFunction = original.DataMaskingFunctionNumber
+ DataMaskingFunctionSSN DataMaskingFunction = original.DataMaskingFunctionSSN
+ DataMaskingFunctionText DataMaskingFunction = original.DataMaskingFunctionText
+)
+
+type DataMaskingRuleState = original.DataMaskingRuleState
+
+const (
+ DataMaskingRuleStateDisabled DataMaskingRuleState = original.DataMaskingRuleStateDisabled
+ DataMaskingRuleStateEnabled DataMaskingRuleState = original.DataMaskingRuleStateEnabled
+)
+
+type DataMaskingState = original.DataMaskingState
+
+const (
+ DataMaskingStateDisabled DataMaskingState = original.DataMaskingStateDisabled
+ DataMaskingStateEnabled DataMaskingState = original.DataMaskingStateEnabled
)
type DatabaseEdition = original.DatabaseEdition
@@ -71,6 +129,37 @@ const (
Web DatabaseEdition = original.Web
)
+type DisasterRecoveryConfigurationAutoFailover = original.DisasterRecoveryConfigurationAutoFailover
+
+const (
+ Off DisasterRecoveryConfigurationAutoFailover = original.Off
+ On DisasterRecoveryConfigurationAutoFailover = original.On
+)
+
+type DisasterRecoveryConfigurationFailoverPolicy = original.DisasterRecoveryConfigurationFailoverPolicy
+
+const (
+ Automatic DisasterRecoveryConfigurationFailoverPolicy = original.Automatic
+ Manual DisasterRecoveryConfigurationFailoverPolicy = original.Manual
+)
+
+type DisasterRecoveryConfigurationRole = original.DisasterRecoveryConfigurationRole
+
+const (
+ None DisasterRecoveryConfigurationRole = original.None
+ Primary DisasterRecoveryConfigurationRole = original.Primary
+ Secondary DisasterRecoveryConfigurationRole = original.Secondary
+)
+
+type DisasterRecoveryConfigurationStatus = original.DisasterRecoveryConfigurationStatus
+
+const (
+ Creating DisasterRecoveryConfigurationStatus = original.Creating
+ Dropping DisasterRecoveryConfigurationStatus = original.Dropping
+ FailingOver DisasterRecoveryConfigurationStatus = original.FailingOver
+ Ready DisasterRecoveryConfigurationStatus = original.Ready
+)
+
type ElasticPoolEdition = original.ElasticPoolEdition
const (
@@ -84,9 +173,79 @@ const (
type ElasticPoolState = original.ElasticPoolState
const (
- Creating ElasticPoolState = original.Creating
- Disabled ElasticPoolState = original.Disabled
- Ready ElasticPoolState = original.Ready
+ ElasticPoolStateCreating ElasticPoolState = original.ElasticPoolStateCreating
+ ElasticPoolStateDisabled ElasticPoolState = original.ElasticPoolStateDisabled
+ ElasticPoolStateReady ElasticPoolState = original.ElasticPoolStateReady
+)
+
+type GeoBackupPolicyState = original.GeoBackupPolicyState
+
+const (
+ GeoBackupPolicyStateDisabled GeoBackupPolicyState = original.GeoBackupPolicyStateDisabled
+ GeoBackupPolicyStateEnabled GeoBackupPolicyState = original.GeoBackupPolicyStateEnabled
+)
+
+type MaxSizeUnits = original.MaxSizeUnits
+
+const (
+ Gigabytes MaxSizeUnits = original.Gigabytes
+ Megabytes MaxSizeUnits = original.Megabytes
+ Petabytes MaxSizeUnits = original.Petabytes
+ Terabytes MaxSizeUnits = original.Terabytes
+)
+
+type PerformanceLevelUnit = original.PerformanceLevelUnit
+
+const (
+ DTU PerformanceLevelUnit = original.DTU
+)
+
+type PrimaryAggregationType = original.PrimaryAggregationType
+
+const (
+ PrimaryAggregationTypeAverage PrimaryAggregationType = original.PrimaryAggregationTypeAverage
+ PrimaryAggregationTypeCount PrimaryAggregationType = original.PrimaryAggregationTypeCount
+ PrimaryAggregationTypeMaximum PrimaryAggregationType = original.PrimaryAggregationTypeMaximum
+ PrimaryAggregationTypeMinimum PrimaryAggregationType = original.PrimaryAggregationTypeMinimum
+ PrimaryAggregationTypeNone PrimaryAggregationType = original.PrimaryAggregationTypeNone
+ PrimaryAggregationTypeTotal PrimaryAggregationType = original.PrimaryAggregationTypeTotal
+)
+
+type QueryAggregationFunction = original.QueryAggregationFunction
+
+const (
+ Avg QueryAggregationFunction = original.Avg
+ Max QueryAggregationFunction = original.Max
+ Min QueryAggregationFunction = original.Min
+ Sum QueryAggregationFunction = original.Sum
+)
+
+type QueryExecutionType = original.QueryExecutionType
+
+const (
+ Aborted QueryExecutionType = original.Aborted
+ Any QueryExecutionType = original.Any
+ Exception QueryExecutionType = original.Exception
+ Irregular QueryExecutionType = original.Irregular
+ Regular QueryExecutionType = original.Regular
+)
+
+type QueryMetricUnit = original.QueryMetricUnit
+
+const (
+ KB QueryMetricUnit = original.KB
+ Microseconds QueryMetricUnit = original.Microseconds
+ Percentage QueryMetricUnit = original.Percentage
+)
+
+type QueryObservedMetricType = original.QueryObservedMetricType
+
+const (
+ CPU QueryObservedMetricType = original.CPU
+ Duration QueryObservedMetricType = original.Duration
+ ExecutionCount QueryObservedMetricType = original.ExecutionCount
+ Io QueryObservedMetricType = original.Io
+ Logio QueryObservedMetricType = original.Logio
)
type ReadScale = original.ReadScale
@@ -148,6 +307,13 @@ const (
SUSPENDED ReplicationState = original.SUSPENDED
)
+type RestorePointType = original.RestorePointType
+
+const (
+ CONTINUOUS RestorePointType = original.CONTINUOUS
+ DISCRETE RestorePointType = original.DISCRETE
+)
+
type SampleName = original.SampleName
const (
@@ -176,6 +342,28 @@ const (
SecurityAlertPolicyUseServerDefaultEnabled SecurityAlertPolicyUseServerDefault = original.SecurityAlertPolicyUseServerDefaultEnabled
)
+type ServerConnectionType = original.ServerConnectionType
+
+const (
+ ServerConnectionTypeDefault ServerConnectionType = original.ServerConnectionTypeDefault
+ ServerConnectionTypeProxy ServerConnectionType = original.ServerConnectionTypeProxy
+ ServerConnectionTypeRedirect ServerConnectionType = original.ServerConnectionTypeRedirect
+)
+
+type ServerState = original.ServerState
+
+const (
+ ServerStateDisabled ServerState = original.ServerStateDisabled
+ ServerStateReady ServerState = original.ServerStateReady
+)
+
+type ServerVersion = original.ServerVersion
+
+const (
+ OneTwoFullStopZero ServerVersion = original.OneTwoFullStopZero
+ TwoFullStopZero ServerVersion = original.TwoFullStopZero
+)
+
type ServiceObjectiveName = original.ServiceObjectiveName
const (
@@ -267,16 +455,70 @@ const (
TransparentDataEncryptionStatusEnabled TransparentDataEncryptionStatus = original.TransparentDataEncryptionStatusEnabled
)
+type UnitDefinitionType = original.UnitDefinitionType
+
+const (
+ Bytes UnitDefinitionType = original.Bytes
+ BytesPerSecond UnitDefinitionType = original.BytesPerSecond
+ Count UnitDefinitionType = original.Count
+ CountPerSecond UnitDefinitionType = original.CountPerSecond
+ Percent UnitDefinitionType = original.Percent
+ Seconds UnitDefinitionType = original.Seconds
+)
+
+type UnitType = original.UnitType
+
+const (
+ UnitTypeBytes UnitType = original.UnitTypeBytes
+ UnitTypeBytesPerSecond UnitType = original.UnitTypeBytesPerSecond
+ UnitTypeCount UnitType = original.UnitTypeCount
+ UnitTypeCountPerSecond UnitType = original.UnitTypeCountPerSecond
+ UnitTypePercent UnitType = original.UnitTypePercent
+ UnitTypeSeconds UnitType = original.UnitTypeSeconds
+)
+
+type Advisor = original.Advisor
+type AdvisorListResult = original.AdvisorListResult
+type AdvisorProperties = original.AdvisorProperties
+type BackupLongTermRetentionPoliciesClient = original.BackupLongTermRetentionPoliciesClient
+type BackupLongTermRetentionPoliciesCreateOrUpdateFuture = original.BackupLongTermRetentionPoliciesCreateOrUpdateFuture
+type BackupLongTermRetentionPolicy = original.BackupLongTermRetentionPolicy
+type BackupLongTermRetentionPolicyListResult = original.BackupLongTermRetentionPolicyListResult
+type BackupLongTermRetentionPolicyProperties = original.BackupLongTermRetentionPolicyProperties
+type BackupLongTermRetentionVault = original.BackupLongTermRetentionVault
+type BackupLongTermRetentionVaultListResult = original.BackupLongTermRetentionVaultListResult
+type BackupLongTermRetentionVaultProperties = original.BackupLongTermRetentionVaultProperties
+type BackupLongTermRetentionVaultsClient = original.BackupLongTermRetentionVaultsClient
+type BackupLongTermRetentionVaultsCreateOrUpdateFuture = original.BackupLongTermRetentionVaultsCreateOrUpdateFuture
type BaseClient = original.BaseClient
+type CapabilitiesClient = original.CapabilitiesClient
type CheckNameAvailabilityRequest = original.CheckNameAvailabilityRequest
type CheckNameAvailabilityResponse = original.CheckNameAvailabilityResponse
+type DataMaskingPoliciesClient = original.DataMaskingPoliciesClient
+type DataMaskingPolicy = original.DataMaskingPolicy
+type DataMaskingPolicyProperties = original.DataMaskingPolicyProperties
+type DataMaskingRule = original.DataMaskingRule
+type DataMaskingRuleListResult = original.DataMaskingRuleListResult
+type DataMaskingRuleProperties = original.DataMaskingRuleProperties
+type DataMaskingRulesClient = original.DataMaskingRulesClient
type Database = original.Database
+type DatabaseAdvisorsClient = original.DatabaseAdvisorsClient
+type DatabaseConnectionPoliciesClient = original.DatabaseConnectionPoliciesClient
+type DatabaseConnectionPolicy = original.DatabaseConnectionPolicy
+type DatabaseConnectionPolicyProperties = original.DatabaseConnectionPolicyProperties
type DatabaseListResult = original.DatabaseListResult
type DatabaseProperties = original.DatabaseProperties
type DatabaseSecurityAlertPolicy = original.DatabaseSecurityAlertPolicy
type DatabaseSecurityAlertPolicyProperties = original.DatabaseSecurityAlertPolicyProperties
+type DatabaseTableAuditingPoliciesClient = original.DatabaseTableAuditingPoliciesClient
+type DatabaseTableAuditingPolicy = original.DatabaseTableAuditingPolicy
+type DatabaseTableAuditingPolicyListResult = original.DatabaseTableAuditingPolicyListResult
+type DatabaseTableAuditingPolicyProperties = original.DatabaseTableAuditingPolicyProperties
type DatabaseThreatDetectionPoliciesClient = original.DatabaseThreatDetectionPoliciesClient
type DatabaseUpdate = original.DatabaseUpdate
+type DatabaseUsage = original.DatabaseUsage
+type DatabaseUsageListResult = original.DatabaseUsageListResult
+type DatabaseUsagesClient = original.DatabaseUsagesClient
type DatabasesClient = original.DatabasesClient
type DatabasesCreateImportOperationFuture = original.DatabasesCreateImportOperationFuture
type DatabasesCreateOrUpdateFuture = original.DatabasesCreateOrUpdateFuture
@@ -285,6 +527,15 @@ type DatabasesImportFuture = original.DatabasesImportFuture
type DatabasesPauseFuture = original.DatabasesPauseFuture
type DatabasesResumeFuture = original.DatabasesResumeFuture
type DatabasesUpdateFuture = original.DatabasesUpdateFuture
+type DisasterRecoveryConfiguration = original.DisasterRecoveryConfiguration
+type DisasterRecoveryConfigurationListResult = original.DisasterRecoveryConfigurationListResult
+type DisasterRecoveryConfigurationProperties = original.DisasterRecoveryConfigurationProperties
+type DisasterRecoveryConfigurationsClient = original.DisasterRecoveryConfigurationsClient
+type DisasterRecoveryConfigurationsCreateOrUpdateFuture = original.DisasterRecoveryConfigurationsCreateOrUpdateFuture
+type DisasterRecoveryConfigurationsDeleteFuture = original.DisasterRecoveryConfigurationsDeleteFuture
+type DisasterRecoveryConfigurationsFailoverAllowDataLossFuture = original.DisasterRecoveryConfigurationsFailoverAllowDataLossFuture
+type DisasterRecoveryConfigurationsFailoverFuture = original.DisasterRecoveryConfigurationsFailoverFuture
+type EditionCapability = original.EditionCapability
type ElasticPool = original.ElasticPool
type ElasticPoolActivitiesClient = original.ElasticPoolActivitiesClient
type ElasticPoolActivity = original.ElasticPoolActivity
@@ -294,24 +545,57 @@ type ElasticPoolDatabaseActivitiesClient = original.ElasticPoolDatabaseActivitie
type ElasticPoolDatabaseActivity = original.ElasticPoolDatabaseActivity
type ElasticPoolDatabaseActivityListResult = original.ElasticPoolDatabaseActivityListResult
type ElasticPoolDatabaseActivityProperties = original.ElasticPoolDatabaseActivityProperties
+type ElasticPoolDtuCapability = original.ElasticPoolDtuCapability
+type ElasticPoolEditionCapability = original.ElasticPoolEditionCapability
type ElasticPoolListResult = original.ElasticPoolListResult
+type ElasticPoolPerDatabaseMaxDtuCapability = original.ElasticPoolPerDatabaseMaxDtuCapability
+type ElasticPoolPerDatabaseMinDtuCapability = original.ElasticPoolPerDatabaseMinDtuCapability
type ElasticPoolProperties = original.ElasticPoolProperties
type ElasticPoolUpdate = original.ElasticPoolUpdate
type ElasticPoolsClient = original.ElasticPoolsClient
type ElasticPoolsCreateOrUpdateFuture = original.ElasticPoolsCreateOrUpdateFuture
type ElasticPoolsUpdateFuture = original.ElasticPoolsUpdateFuture
type ExportRequest = original.ExportRequest
+type ExtensionListResult = original.ExtensionListResult
+type ExtensionsClient = original.ExtensionsClient
type FirewallRule = original.FirewallRule
type FirewallRuleListResult = original.FirewallRuleListResult
type FirewallRuleProperties = original.FirewallRuleProperties
type FirewallRulesClient = original.FirewallRulesClient
+type GeoBackupPoliciesClient = original.GeoBackupPoliciesClient
+type GeoBackupPolicy = original.GeoBackupPolicy
+type GeoBackupPolicyListResult = original.GeoBackupPolicyListResult
+type GeoBackupPolicyProperties = original.GeoBackupPolicyProperties
type ImportExportResponse = original.ImportExportResponse
type ImportExportResponseProperties = original.ImportExportResponseProperties
type ImportExtensionProperties = original.ImportExtensionProperties
type ImportExtensionRequest = original.ImportExtensionRequest
type ImportRequest = original.ImportRequest
+type LocationCapabilities = original.LocationCapabilities
+type MaxSizeCapability = original.MaxSizeCapability
+type Metric = original.Metric
+type MetricAvailability = original.MetricAvailability
+type MetricDefinition = original.MetricDefinition
+type MetricDefinitionListResult = original.MetricDefinitionListResult
+type MetricListResult = original.MetricListResult
+type MetricName = original.MetricName
+type MetricValue = original.MetricValue
+type Operation = original.Operation
+type OperationDisplay = original.OperationDisplay
type OperationImpact = original.OperationImpact
+type OperationListResult = original.OperationListResult
+type OperationsClient = original.OperationsClient
+type PerformanceLevel = original.PerformanceLevel
type ProxyResource = original.ProxyResource
+type QueriesClient = original.QueriesClient
+type QueryInterval = original.QueryInterval
+type QueryMetric = original.QueryMetric
+type QueryStatistic = original.QueryStatistic
+type QueryStatisticListResult = original.QueryStatisticListResult
+type QueryStatisticsClient = original.QueryStatisticsClient
+type QueryText = original.QueryText
+type QueryTextListResult = original.QueryTextListResult
+type QueryTextsClient = original.QueryTextsClient
type RecommendedElasticPool = original.RecommendedElasticPool
type RecommendedElasticPoolListMetricsResult = original.RecommendedElasticPoolListMetricsResult
type RecommendedElasticPoolListResult = original.RecommendedElasticPoolListResult
@@ -320,6 +604,10 @@ type RecommendedElasticPoolProperties = original.RecommendedElasticPoolPropertie
type RecommendedElasticPoolsClient = original.RecommendedElasticPoolsClient
type RecommendedIndex = original.RecommendedIndex
type RecommendedIndexProperties = original.RecommendedIndexProperties
+type RecoverableDatabase = original.RecoverableDatabase
+type RecoverableDatabaseListResult = original.RecoverableDatabaseListResult
+type RecoverableDatabaseProperties = original.RecoverableDatabaseProperties
+type RecoverableDatabasesClient = original.RecoverableDatabasesClient
type ReplicationLink = original.ReplicationLink
type ReplicationLinkListResult = original.ReplicationLinkListResult
type ReplicationLinkProperties = original.ReplicationLinkProperties
@@ -327,36 +615,141 @@ type ReplicationLinksClient = original.ReplicationLinksClient
type ReplicationLinksFailoverAllowDataLossFuture = original.ReplicationLinksFailoverAllowDataLossFuture
type ReplicationLinksFailoverFuture = original.ReplicationLinksFailoverFuture
type Resource = original.Resource
+type RestorableDroppedDatabase = original.RestorableDroppedDatabase
+type RestorableDroppedDatabaseListResult = original.RestorableDroppedDatabaseListResult
+type RestorableDroppedDatabaseProperties = original.RestorableDroppedDatabaseProperties
+type RestorableDroppedDatabasesClient = original.RestorableDroppedDatabasesClient
+type RestorePoint = original.RestorePoint
+type RestorePointListResult = original.RestorePointListResult
+type RestorePointProperties = original.RestorePointProperties
+type RestorePointsClient = original.RestorePointsClient
+type Server = original.Server
+type ServerAdministratorListResult = original.ServerAdministratorListResult
+type ServerAdministratorProperties = original.ServerAdministratorProperties
+type ServerAdvisorsClient = original.ServerAdvisorsClient
+type ServerAzureADAdministrator = original.ServerAzureADAdministrator
+type ServerAzureADAdministratorsClient = original.ServerAzureADAdministratorsClient
+type ServerAzureADAdministratorsCreateOrUpdateFuture = original.ServerAzureADAdministratorsCreateOrUpdateFuture
+type ServerAzureADAdministratorsDeleteFuture = original.ServerAzureADAdministratorsDeleteFuture
+type ServerCommunicationLink = original.ServerCommunicationLink
+type ServerCommunicationLinkListResult = original.ServerCommunicationLinkListResult
+type ServerCommunicationLinkProperties = original.ServerCommunicationLinkProperties
+type ServerCommunicationLinksClient = original.ServerCommunicationLinksClient
+type ServerCommunicationLinksCreateOrUpdateFuture = original.ServerCommunicationLinksCreateOrUpdateFuture
+type ServerConnectionPoliciesClient = original.ServerConnectionPoliciesClient
+type ServerConnectionPolicy = original.ServerConnectionPolicy
+type ServerConnectionPolicyProperties = original.ServerConnectionPolicyProperties
+type ServerListResult = original.ServerListResult
+type ServerProperties = original.ServerProperties
+type ServerTableAuditingPoliciesClient = original.ServerTableAuditingPoliciesClient
+type ServerTableAuditingPolicy = original.ServerTableAuditingPolicy
+type ServerTableAuditingPolicyListResult = original.ServerTableAuditingPolicyListResult
+type ServerTableAuditingPolicyProperties = original.ServerTableAuditingPolicyProperties
+type ServerUpdate = original.ServerUpdate
+type ServerUsage = original.ServerUsage
+type ServerUsageListResult = original.ServerUsageListResult
+type ServerUsagesClient = original.ServerUsagesClient
+type ServerVersionCapability = original.ServerVersionCapability
type ServersClient = original.ServersClient
+type ServiceObjective = original.ServiceObjective
+type ServiceObjectiveCapability = original.ServiceObjectiveCapability
+type ServiceObjectiveListResult = original.ServiceObjectiveListResult
+type ServiceObjectiveProperties = original.ServiceObjectiveProperties
+type ServiceObjectivesClient = original.ServiceObjectivesClient
type ServiceTierAdvisor = original.ServiceTierAdvisor
type ServiceTierAdvisorListResult = original.ServiceTierAdvisorListResult
type ServiceTierAdvisorProperties = original.ServiceTierAdvisorProperties
type ServiceTierAdvisorsClient = original.ServiceTierAdvisorsClient
type SloUsageMetric = original.SloUsageMetric
+type TableAuditingPolicyProperties = original.TableAuditingPolicyProperties
+type TopQueries = original.TopQueries
+type TopQueriesListResult = original.TopQueriesListResult
type TrackedResource = original.TrackedResource
type TransparentDataEncryption = original.TransparentDataEncryption
type TransparentDataEncryptionActivitiesClient = original.TransparentDataEncryptionActivitiesClient
type TransparentDataEncryptionActivity = original.TransparentDataEncryptionActivity
type TransparentDataEncryptionActivityListResult = original.TransparentDataEncryptionActivityListResult
type TransparentDataEncryptionActivityProperties = original.TransparentDataEncryptionActivityProperties
+type TransparentDataEncryptionConfigurationsClient = original.TransparentDataEncryptionConfigurationsClient
+type TransparentDataEncryptionListResult = original.TransparentDataEncryptionListResult
type TransparentDataEncryptionProperties = original.TransparentDataEncryptionProperties
type TransparentDataEncryptionsClient = original.TransparentDataEncryptionsClient
func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
}
+func NewBackupLongTermRetentionPoliciesClient(subscriptionID string) BackupLongTermRetentionPoliciesClient {
+ return original.NewBackupLongTermRetentionPoliciesClient(subscriptionID)
+}
+func NewBackupLongTermRetentionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) BackupLongTermRetentionPoliciesClient {
+ return original.NewBackupLongTermRetentionPoliciesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewBackupLongTermRetentionVaultsClient(subscriptionID string) BackupLongTermRetentionVaultsClient {
+ return original.NewBackupLongTermRetentionVaultsClient(subscriptionID)
+}
+func NewBackupLongTermRetentionVaultsClientWithBaseURI(baseURI string, subscriptionID string) BackupLongTermRetentionVaultsClient {
+ return original.NewBackupLongTermRetentionVaultsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewCapabilitiesClient(subscriptionID string) CapabilitiesClient {
+ return original.NewCapabilitiesClient(subscriptionID)
+}
+func NewCapabilitiesClientWithBaseURI(baseURI string, subscriptionID string) CapabilitiesClient {
+ return original.NewCapabilitiesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewDataMaskingPoliciesClient(subscriptionID string) DataMaskingPoliciesClient {
+ return original.NewDataMaskingPoliciesClient(subscriptionID)
+}
+func NewDataMaskingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DataMaskingPoliciesClient {
+ return original.NewDataMaskingPoliciesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewDataMaskingRulesClient(subscriptionID string) DataMaskingRulesClient {
+ return original.NewDataMaskingRulesClient(subscriptionID)
+}
+func NewDataMaskingRulesClientWithBaseURI(baseURI string, subscriptionID string) DataMaskingRulesClient {
+ return original.NewDataMaskingRulesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewDatabaseAdvisorsClient(subscriptionID string) DatabaseAdvisorsClient {
+ return original.NewDatabaseAdvisorsClient(subscriptionID)
+}
+func NewDatabaseAdvisorsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseAdvisorsClient {
+ return original.NewDatabaseAdvisorsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewDatabaseConnectionPoliciesClient(subscriptionID string) DatabaseConnectionPoliciesClient {
+ return original.NewDatabaseConnectionPoliciesClient(subscriptionID)
+}
+func NewDatabaseConnectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseConnectionPoliciesClient {
+ return original.NewDatabaseConnectionPoliciesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewDatabaseTableAuditingPoliciesClient(subscriptionID string) DatabaseTableAuditingPoliciesClient {
+ return original.NewDatabaseTableAuditingPoliciesClient(subscriptionID)
+}
+func NewDatabaseTableAuditingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseTableAuditingPoliciesClient {
+ return original.NewDatabaseTableAuditingPoliciesClientWithBaseURI(baseURI, subscriptionID)
+}
func NewDatabaseThreatDetectionPoliciesClient(subscriptionID string) DatabaseThreatDetectionPoliciesClient {
return original.NewDatabaseThreatDetectionPoliciesClient(subscriptionID)
}
func NewDatabaseThreatDetectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseThreatDetectionPoliciesClient {
return original.NewDatabaseThreatDetectionPoliciesClientWithBaseURI(baseURI, subscriptionID)
}
+func NewDatabaseUsagesClient(subscriptionID string) DatabaseUsagesClient {
+ return original.NewDatabaseUsagesClient(subscriptionID)
+}
+func NewDatabaseUsagesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseUsagesClient {
+ return original.NewDatabaseUsagesClientWithBaseURI(baseURI, subscriptionID)
+}
func NewDatabasesClient(subscriptionID string) DatabasesClient {
return original.NewDatabasesClient(subscriptionID)
}
func NewDatabasesClientWithBaseURI(baseURI string, subscriptionID string) DatabasesClient {
return original.NewDatabasesClientWithBaseURI(baseURI, subscriptionID)
}
+func NewDisasterRecoveryConfigurationsClient(subscriptionID string) DisasterRecoveryConfigurationsClient {
+ return original.NewDisasterRecoveryConfigurationsClient(subscriptionID)
+}
+func NewDisasterRecoveryConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) DisasterRecoveryConfigurationsClient {
+ return original.NewDisasterRecoveryConfigurationsClientWithBaseURI(baseURI, subscriptionID)
+}
func NewElasticPoolActivitiesClient(subscriptionID string) ElasticPoolActivitiesClient {
return original.NewElasticPoolActivitiesClient(subscriptionID)
}
@@ -375,30 +768,126 @@ func NewElasticPoolsClient(subscriptionID string) ElasticPoolsClient {
func NewElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolsClient {
return original.NewElasticPoolsClientWithBaseURI(baseURI, subscriptionID)
}
+func NewExtensionsClient(subscriptionID string) ExtensionsClient {
+ return original.NewExtensionsClient(subscriptionID)
+}
+func NewExtensionsClientWithBaseURI(baseURI string, subscriptionID string) ExtensionsClient {
+ return original.NewExtensionsClientWithBaseURI(baseURI, subscriptionID)
+}
func NewFirewallRulesClient(subscriptionID string) FirewallRulesClient {
return original.NewFirewallRulesClient(subscriptionID)
}
func NewFirewallRulesClientWithBaseURI(baseURI string, subscriptionID string) FirewallRulesClient {
return original.NewFirewallRulesClientWithBaseURI(baseURI, subscriptionID)
}
+func NewGeoBackupPoliciesClient(subscriptionID string) GeoBackupPoliciesClient {
+ return original.NewGeoBackupPoliciesClient(subscriptionID)
+}
+func NewGeoBackupPoliciesClientWithBaseURI(baseURI string, subscriptionID string) GeoBackupPoliciesClient {
+ return original.NewGeoBackupPoliciesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewOperationsClient(subscriptionID string) OperationsClient {
+ return original.NewOperationsClient(subscriptionID)
+}
+func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
+ return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewQueriesClient(subscriptionID string) QueriesClient {
+ return original.NewQueriesClient(subscriptionID)
+}
+func NewQueriesClientWithBaseURI(baseURI string, subscriptionID string) QueriesClient {
+ return original.NewQueriesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewQueryStatisticsClient(subscriptionID string) QueryStatisticsClient {
+ return original.NewQueryStatisticsClient(subscriptionID)
+}
+func NewQueryStatisticsClientWithBaseURI(baseURI string, subscriptionID string) QueryStatisticsClient {
+ return original.NewQueryStatisticsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewQueryTextsClient(subscriptionID string) QueryTextsClient {
+ return original.NewQueryTextsClient(subscriptionID)
+}
+func NewQueryTextsClientWithBaseURI(baseURI string, subscriptionID string) QueryTextsClient {
+ return original.NewQueryTextsClientWithBaseURI(baseURI, subscriptionID)
+}
func NewRecommendedElasticPoolsClient(subscriptionID string) RecommendedElasticPoolsClient {
return original.NewRecommendedElasticPoolsClient(subscriptionID)
}
func NewRecommendedElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) RecommendedElasticPoolsClient {
return original.NewRecommendedElasticPoolsClientWithBaseURI(baseURI, subscriptionID)
}
+func NewRecoverableDatabasesClient(subscriptionID string) RecoverableDatabasesClient {
+ return original.NewRecoverableDatabasesClient(subscriptionID)
+}
+func NewRecoverableDatabasesClientWithBaseURI(baseURI string, subscriptionID string) RecoverableDatabasesClient {
+ return original.NewRecoverableDatabasesClientWithBaseURI(baseURI, subscriptionID)
+}
func NewReplicationLinksClient(subscriptionID string) ReplicationLinksClient {
return original.NewReplicationLinksClient(subscriptionID)
}
func NewReplicationLinksClientWithBaseURI(baseURI string, subscriptionID string) ReplicationLinksClient {
return original.NewReplicationLinksClientWithBaseURI(baseURI, subscriptionID)
}
+func NewRestorableDroppedDatabasesClient(subscriptionID string) RestorableDroppedDatabasesClient {
+ return original.NewRestorableDroppedDatabasesClient(subscriptionID)
+}
+func NewRestorableDroppedDatabasesClientWithBaseURI(baseURI string, subscriptionID string) RestorableDroppedDatabasesClient {
+ return original.NewRestorableDroppedDatabasesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewRestorePointsClient(subscriptionID string) RestorePointsClient {
+ return original.NewRestorePointsClient(subscriptionID)
+}
+func NewRestorePointsClientWithBaseURI(baseURI string, subscriptionID string) RestorePointsClient {
+ return original.NewRestorePointsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewServerAdvisorsClient(subscriptionID string) ServerAdvisorsClient {
+ return original.NewServerAdvisorsClient(subscriptionID)
+}
+func NewServerAdvisorsClientWithBaseURI(baseURI string, subscriptionID string) ServerAdvisorsClient {
+ return original.NewServerAdvisorsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewServerAzureADAdministratorsClient(subscriptionID string) ServerAzureADAdministratorsClient {
+ return original.NewServerAzureADAdministratorsClient(subscriptionID)
+}
+func NewServerAzureADAdministratorsClientWithBaseURI(baseURI string, subscriptionID string) ServerAzureADAdministratorsClient {
+ return original.NewServerAzureADAdministratorsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewServerCommunicationLinksClient(subscriptionID string) ServerCommunicationLinksClient {
+ return original.NewServerCommunicationLinksClient(subscriptionID)
+}
+func NewServerCommunicationLinksClientWithBaseURI(baseURI string, subscriptionID string) ServerCommunicationLinksClient {
+ return original.NewServerCommunicationLinksClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewServerConnectionPoliciesClient(subscriptionID string) ServerConnectionPoliciesClient {
+ return original.NewServerConnectionPoliciesClient(subscriptionID)
+}
+func NewServerConnectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServerConnectionPoliciesClient {
+ return original.NewServerConnectionPoliciesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewServerTableAuditingPoliciesClient(subscriptionID string) ServerTableAuditingPoliciesClient {
+ return original.NewServerTableAuditingPoliciesClient(subscriptionID)
+}
+func NewServerTableAuditingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServerTableAuditingPoliciesClient {
+ return original.NewServerTableAuditingPoliciesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewServerUsagesClient(subscriptionID string) ServerUsagesClient {
+ return original.NewServerUsagesClient(subscriptionID)
+}
+func NewServerUsagesClientWithBaseURI(baseURI string, subscriptionID string) ServerUsagesClient {
+ return original.NewServerUsagesClientWithBaseURI(baseURI, subscriptionID)
+}
func NewServersClient(subscriptionID string) ServersClient {
return original.NewServersClient(subscriptionID)
}
func NewServersClientWithBaseURI(baseURI string, subscriptionID string) ServersClient {
return original.NewServersClientWithBaseURI(baseURI, subscriptionID)
}
+func NewServiceObjectivesClient(subscriptionID string) ServiceObjectivesClient {
+ return original.NewServiceObjectivesClient(subscriptionID)
+}
+func NewServiceObjectivesClientWithBaseURI(baseURI string, subscriptionID string) ServiceObjectivesClient {
+ return original.NewServiceObjectivesClientWithBaseURI(baseURI, subscriptionID)
+}
func NewServiceTierAdvisorsClient(subscriptionID string) ServiceTierAdvisorsClient {
return original.NewServiceTierAdvisorsClient(subscriptionID)
}
@@ -411,6 +900,12 @@ func NewTransparentDataEncryptionActivitiesClient(subscriptionID string) Transpa
func NewTransparentDataEncryptionActivitiesClientWithBaseURI(baseURI string, subscriptionID string) TransparentDataEncryptionActivitiesClient {
return original.NewTransparentDataEncryptionActivitiesClientWithBaseURI(baseURI, subscriptionID)
}
+func NewTransparentDataEncryptionConfigurationsClient(subscriptionID string) TransparentDataEncryptionConfigurationsClient {
+ return original.NewTransparentDataEncryptionConfigurationsClient(subscriptionID)
+}
+func NewTransparentDataEncryptionConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) TransparentDataEncryptionConfigurationsClient {
+ return original.NewTransparentDataEncryptionConfigurationsClientWithBaseURI(baseURI, subscriptionID)
+}
func NewTransparentDataEncryptionsClient(subscriptionID string) TransparentDataEncryptionsClient {
return original.NewTransparentDataEncryptionsClient(subscriptionID)
}
@@ -420,24 +915,81 @@ func NewTransparentDataEncryptionsClientWithBaseURI(baseURI string, subscription
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
}
+func PossibleAdvisorStatusValues() []AdvisorStatus {
+ return original.PossibleAdvisorStatusValues()
+}
func PossibleAuthenticationTypeValues() []AuthenticationType {
return original.PossibleAuthenticationTypeValues()
}
+func PossibleAutoExecuteStatusValues() []AutoExecuteStatus {
+ return original.PossibleAutoExecuteStatusValues()
+}
+func PossibleBackupLongTermRetentionPolicyStateValues() []BackupLongTermRetentionPolicyState {
+ return original.PossibleBackupLongTermRetentionPolicyStateValues()
+}
+func PossibleCapabilityStatusValues() []CapabilityStatus {
+ return original.PossibleCapabilityStatusValues()
+}
func PossibleCheckNameAvailabilityReasonValues() []CheckNameAvailabilityReason {
return original.PossibleCheckNameAvailabilityReasonValues()
}
func PossibleCreateModeValues() []CreateMode {
return original.PossibleCreateModeValues()
}
+func PossibleDataMaskingFunctionValues() []DataMaskingFunction {
+ return original.PossibleDataMaskingFunctionValues()
+}
+func PossibleDataMaskingRuleStateValues() []DataMaskingRuleState {
+ return original.PossibleDataMaskingRuleStateValues()
+}
+func PossibleDataMaskingStateValues() []DataMaskingState {
+ return original.PossibleDataMaskingStateValues()
+}
func PossibleDatabaseEditionValues() []DatabaseEdition {
return original.PossibleDatabaseEditionValues()
}
+func PossibleDisasterRecoveryConfigurationAutoFailoverValues() []DisasterRecoveryConfigurationAutoFailover {
+ return original.PossibleDisasterRecoveryConfigurationAutoFailoverValues()
+}
+func PossibleDisasterRecoveryConfigurationFailoverPolicyValues() []DisasterRecoveryConfigurationFailoverPolicy {
+ return original.PossibleDisasterRecoveryConfigurationFailoverPolicyValues()
+}
+func PossibleDisasterRecoveryConfigurationRoleValues() []DisasterRecoveryConfigurationRole {
+ return original.PossibleDisasterRecoveryConfigurationRoleValues()
+}
+func PossibleDisasterRecoveryConfigurationStatusValues() []DisasterRecoveryConfigurationStatus {
+ return original.PossibleDisasterRecoveryConfigurationStatusValues()
+}
func PossibleElasticPoolEditionValues() []ElasticPoolEdition {
return original.PossibleElasticPoolEditionValues()
}
func PossibleElasticPoolStateValues() []ElasticPoolState {
return original.PossibleElasticPoolStateValues()
}
+func PossibleGeoBackupPolicyStateValues() []GeoBackupPolicyState {
+ return original.PossibleGeoBackupPolicyStateValues()
+}
+func PossibleMaxSizeUnitsValues() []MaxSizeUnits {
+ return original.PossibleMaxSizeUnitsValues()
+}
+func PossiblePerformanceLevelUnitValues() []PerformanceLevelUnit {
+ return original.PossiblePerformanceLevelUnitValues()
+}
+func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType {
+ return original.PossiblePrimaryAggregationTypeValues()
+}
+func PossibleQueryAggregationFunctionValues() []QueryAggregationFunction {
+ return original.PossibleQueryAggregationFunctionValues()
+}
+func PossibleQueryExecutionTypeValues() []QueryExecutionType {
+ return original.PossibleQueryExecutionTypeValues()
+}
+func PossibleQueryMetricUnitValues() []QueryMetricUnit {
+ return original.PossibleQueryMetricUnitValues()
+}
+func PossibleQueryObservedMetricTypeValues() []QueryObservedMetricType {
+ return original.PossibleQueryObservedMetricTypeValues()
+}
func PossibleReadScaleValues() []ReadScale {
return original.PossibleReadScaleValues()
}
@@ -456,6 +1008,9 @@ func PossibleReplicationRoleValues() []ReplicationRole {
func PossibleReplicationStateValues() []ReplicationState {
return original.PossibleReplicationStateValues()
}
+func PossibleRestorePointTypeValues() []RestorePointType {
+ return original.PossibleRestorePointTypeValues()
+}
func PossibleSampleNameValues() []SampleName {
return original.PossibleSampleNameValues()
}
@@ -468,6 +1023,15 @@ func PossibleSecurityAlertPolicyStateValues() []SecurityAlertPolicyState {
func PossibleSecurityAlertPolicyUseServerDefaultValues() []SecurityAlertPolicyUseServerDefault {
return original.PossibleSecurityAlertPolicyUseServerDefaultValues()
}
+func PossibleServerConnectionTypeValues() []ServerConnectionType {
+ return original.PossibleServerConnectionTypeValues()
+}
+func PossibleServerStateValues() []ServerState {
+ return original.PossibleServerStateValues()
+}
+func PossibleServerVersionValues() []ServerVersion {
+ return original.PossibleServerVersionValues()
+}
func PossibleServiceObjectiveNameValues() []ServiceObjectiveName {
return original.PossibleServiceObjectiveNameValues()
}
@@ -480,6 +1044,12 @@ func PossibleTransparentDataEncryptionActivityStatusValues() []TransparentDataEn
func PossibleTransparentDataEncryptionStatusValues() []TransparentDataEncryptionStatus {
return original.PossibleTransparentDataEncryptionStatusValues()
}
+func PossibleUnitDefinitionTypeValues() []UnitDefinitionType {
+ return original.PossibleUnitDefinitionTypeValues()
+}
+func PossibleUnitTypeValues() []UnitType {
+ return original.PossibleUnitTypeValues()
+}
func UserAgent() string {
return original.UserAgent() + " profiles/latest"
}
diff --git a/profiles/latest/sql/mgmt/sql/sqlapi/models.go b/profiles/latest/sql/mgmt/sql/sqlapi/models.go
index 8a1a24d93635..d641097b6ea9 100644
--- a/profiles/latest/sql/mgmt/sql/sqlapi/models.go
+++ b/profiles/latest/sql/mgmt/sql/sqlapi/models.go
@@ -21,15 +21,42 @@ package sqlapi
import original "github.com/Azure/azure-sdk-for-go/services/sql/mgmt/2014-04-01/sql/sqlapi"
+type BackupLongTermRetentionPoliciesClientAPI = original.BackupLongTermRetentionPoliciesClientAPI
+type BackupLongTermRetentionVaultsClientAPI = original.BackupLongTermRetentionVaultsClientAPI
+type CapabilitiesClientAPI = original.CapabilitiesClientAPI
+type DataMaskingPoliciesClientAPI = original.DataMaskingPoliciesClientAPI
+type DataMaskingRulesClientAPI = original.DataMaskingRulesClientAPI
+type DatabaseAdvisorsClientAPI = original.DatabaseAdvisorsClientAPI
+type DatabaseConnectionPoliciesClientAPI = original.DatabaseConnectionPoliciesClientAPI
+type DatabaseTableAuditingPoliciesClientAPI = original.DatabaseTableAuditingPoliciesClientAPI
type DatabaseThreatDetectionPoliciesClientAPI = original.DatabaseThreatDetectionPoliciesClientAPI
+type DatabaseUsagesClientAPI = original.DatabaseUsagesClientAPI
type DatabasesClientAPI = original.DatabasesClientAPI
+type DisasterRecoveryConfigurationsClientAPI = original.DisasterRecoveryConfigurationsClientAPI
type ElasticPoolActivitiesClientAPI = original.ElasticPoolActivitiesClientAPI
type ElasticPoolDatabaseActivitiesClientAPI = original.ElasticPoolDatabaseActivitiesClientAPI
type ElasticPoolsClientAPI = original.ElasticPoolsClientAPI
+type ExtensionsClientAPI = original.ExtensionsClientAPI
type FirewallRulesClientAPI = original.FirewallRulesClientAPI
+type GeoBackupPoliciesClientAPI = original.GeoBackupPoliciesClientAPI
+type OperationsClientAPI = original.OperationsClientAPI
+type QueriesClientAPI = original.QueriesClientAPI
+type QueryStatisticsClientAPI = original.QueryStatisticsClientAPI
+type QueryTextsClientAPI = original.QueryTextsClientAPI
type RecommendedElasticPoolsClientAPI = original.RecommendedElasticPoolsClientAPI
+type RecoverableDatabasesClientAPI = original.RecoverableDatabasesClientAPI
type ReplicationLinksClientAPI = original.ReplicationLinksClientAPI
+type RestorableDroppedDatabasesClientAPI = original.RestorableDroppedDatabasesClientAPI
+type RestorePointsClientAPI = original.RestorePointsClientAPI
+type ServerAdvisorsClientAPI = original.ServerAdvisorsClientAPI
+type ServerAzureADAdministratorsClientAPI = original.ServerAzureADAdministratorsClientAPI
+type ServerCommunicationLinksClientAPI = original.ServerCommunicationLinksClientAPI
+type ServerConnectionPoliciesClientAPI = original.ServerConnectionPoliciesClientAPI
+type ServerTableAuditingPoliciesClientAPI = original.ServerTableAuditingPoliciesClientAPI
+type ServerUsagesClientAPI = original.ServerUsagesClientAPI
type ServersClientAPI = original.ServersClientAPI
+type ServiceObjectivesClientAPI = original.ServiceObjectivesClientAPI
type ServiceTierAdvisorsClientAPI = original.ServiceTierAdvisorsClientAPI
type TransparentDataEncryptionActivitiesClientAPI = original.TransparentDataEncryptionActivitiesClientAPI
+type TransparentDataEncryptionConfigurationsClientAPI = original.TransparentDataEncryptionConfigurationsClientAPI
type TransparentDataEncryptionsClientAPI = original.TransparentDataEncryptionsClientAPI
diff --git a/profiles/latest/storagecache/mgmt/storagecache/models.go b/profiles/latest/storagecache/mgmt/storagecache/models.go
new file mode 100644
index 000000000000..c7027d13d7da
--- /dev/null
+++ b/profiles/latest/storagecache/mgmt/storagecache/models.go
@@ -0,0 +1,217 @@
+// +build go1.9
+
+// Copyright 2019 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 storagecache
+
+import (
+ "context"
+
+ original "github.com/Azure/azure-sdk-for-go/services/storagecache/mgmt/2019-11-01/storagecache"
+)
+
+const (
+ DefaultBaseURI = original.DefaultBaseURI
+)
+
+type FirmwareStatusType = original.FirmwareStatusType
+
+const (
+ Available FirmwareStatusType = original.Available
+ Unavailable FirmwareStatusType = original.Unavailable
+)
+
+type HealthStateType = original.HealthStateType
+
+const (
+ Degraded HealthStateType = original.Degraded
+ Down HealthStateType = original.Down
+ Flushing HealthStateType = original.Flushing
+ Healthy HealthStateType = original.Healthy
+ Stopped HealthStateType = original.Stopped
+ Stopping HealthStateType = original.Stopping
+ Transitioning HealthStateType = original.Transitioning
+ Unknown HealthStateType = original.Unknown
+ Upgrading HealthStateType = original.Upgrading
+)
+
+type ProvisioningStateType = original.ProvisioningStateType
+
+const (
+ Cancelled ProvisioningStateType = original.Cancelled
+ Creating ProvisioningStateType = original.Creating
+ Deleting ProvisioningStateType = original.Deleting
+ Failed ProvisioningStateType = original.Failed
+ Succeeded ProvisioningStateType = original.Succeeded
+ Updating ProvisioningStateType = original.Updating
+)
+
+type ReasonCode = original.ReasonCode
+
+const (
+ NotAvailableForSubscription ReasonCode = original.NotAvailableForSubscription
+ QuotaID ReasonCode = original.QuotaID
+)
+
+type StorageTargetType = original.StorageTargetType
+
+const (
+ StorageTargetTypeClfs StorageTargetType = original.StorageTargetTypeClfs
+ StorageTargetTypeNfs3 StorageTargetType = original.StorageTargetTypeNfs3
+ StorageTargetTypeUnknown StorageTargetType = original.StorageTargetTypeUnknown
+)
+
+type APIOperation = original.APIOperation
+type APIOperationDisplay = original.APIOperationDisplay
+type APIOperationListResult = original.APIOperationListResult
+type APIOperationListResultIterator = original.APIOperationListResultIterator
+type APIOperationListResultPage = original.APIOperationListResultPage
+type BaseClient = original.BaseClient
+type Cache = original.Cache
+type CacheHealth = original.CacheHealth
+type CacheProperties = original.CacheProperties
+type CacheSku = original.CacheSku
+type CacheUpgradeStatus = original.CacheUpgradeStatus
+type CachesClient = original.CachesClient
+type CachesCreateOrUpdateFuture = original.CachesCreateOrUpdateFuture
+type CachesDeleteFuture = original.CachesDeleteFuture
+type CachesFlushFuture = original.CachesFlushFuture
+type CachesListResult = original.CachesListResult
+type CachesListResultIterator = original.CachesListResultIterator
+type CachesListResultPage = original.CachesListResultPage
+type CachesStartFuture = original.CachesStartFuture
+type CachesStopFuture = original.CachesStopFuture
+type CachesUpgradeFirmwareFuture = original.CachesUpgradeFirmwareFuture
+type ClfsTarget = original.ClfsTarget
+type CloudError = original.CloudError
+type CloudErrorBody = original.CloudErrorBody
+type NamespaceJunction = original.NamespaceJunction
+type Nfs3Target = original.Nfs3Target
+type OperationsClient = original.OperationsClient
+type ResourceSku = original.ResourceSku
+type ResourceSkuCapabilities = original.ResourceSkuCapabilities
+type ResourceSkuLocationInfo = original.ResourceSkuLocationInfo
+type ResourceSkusResult = original.ResourceSkusResult
+type ResourceSkusResultIterator = original.ResourceSkusResultIterator
+type ResourceSkusResultPage = original.ResourceSkusResultPage
+type Restriction = original.Restriction
+type SetObject = original.SetObject
+type SkusClient = original.SkusClient
+type StorageTarget = original.StorageTarget
+type StorageTargetProperties = original.StorageTargetProperties
+type StorageTargetsClient = original.StorageTargetsClient
+type StorageTargetsCreateOrUpdateFuture = original.StorageTargetsCreateOrUpdateFuture
+type StorageTargetsDeleteFuture = original.StorageTargetsDeleteFuture
+type StorageTargetsResult = original.StorageTargetsResult
+type StorageTargetsResultIterator = original.StorageTargetsResultIterator
+type StorageTargetsResultPage = original.StorageTargetsResultPage
+type UnknownTarget = original.UnknownTarget
+type UsageModel = original.UsageModel
+type UsageModelDisplay = original.UsageModelDisplay
+type UsageModelsClient = original.UsageModelsClient
+type UsageModelsResult = original.UsageModelsResult
+type UsageModelsResultIterator = original.UsageModelsResultIterator
+type UsageModelsResultPage = original.UsageModelsResultPage
+
+func New(subscriptionID string) BaseClient {
+ return original.New(subscriptionID)
+}
+func NewAPIOperationListResultIterator(page APIOperationListResultPage) APIOperationListResultIterator {
+ return original.NewAPIOperationListResultIterator(page)
+}
+func NewAPIOperationListResultPage(getNextPage func(context.Context, APIOperationListResult) (APIOperationListResult, error)) APIOperationListResultPage {
+ return original.NewAPIOperationListResultPage(getNextPage)
+}
+func NewCachesClient(subscriptionID string) CachesClient {
+ return original.NewCachesClient(subscriptionID)
+}
+func NewCachesClientWithBaseURI(baseURI string, subscriptionID string) CachesClient {
+ return original.NewCachesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewCachesListResultIterator(page CachesListResultPage) CachesListResultIterator {
+ return original.NewCachesListResultIterator(page)
+}
+func NewCachesListResultPage(getNextPage func(context.Context, CachesListResult) (CachesListResult, error)) CachesListResultPage {
+ return original.NewCachesListResultPage(getNextPage)
+}
+func NewOperationsClient(subscriptionID string) OperationsClient {
+ return original.NewOperationsClient(subscriptionID)
+}
+func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
+ return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewResourceSkusResultIterator(page ResourceSkusResultPage) ResourceSkusResultIterator {
+ return original.NewResourceSkusResultIterator(page)
+}
+func NewResourceSkusResultPage(getNextPage func(context.Context, ResourceSkusResult) (ResourceSkusResult, error)) ResourceSkusResultPage {
+ return original.NewResourceSkusResultPage(getNextPage)
+}
+func NewSkusClient(subscriptionID string) SkusClient {
+ return original.NewSkusClient(subscriptionID)
+}
+func NewSkusClientWithBaseURI(baseURI string, subscriptionID string) SkusClient {
+ return original.NewSkusClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewStorageTargetsClient(subscriptionID string) StorageTargetsClient {
+ return original.NewStorageTargetsClient(subscriptionID)
+}
+func NewStorageTargetsClientWithBaseURI(baseURI string, subscriptionID string) StorageTargetsClient {
+ return original.NewStorageTargetsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewStorageTargetsResultIterator(page StorageTargetsResultPage) StorageTargetsResultIterator {
+ return original.NewStorageTargetsResultIterator(page)
+}
+func NewStorageTargetsResultPage(getNextPage func(context.Context, StorageTargetsResult) (StorageTargetsResult, error)) StorageTargetsResultPage {
+ return original.NewStorageTargetsResultPage(getNextPage)
+}
+func NewUsageModelsClient(subscriptionID string) UsageModelsClient {
+ return original.NewUsageModelsClient(subscriptionID)
+}
+func NewUsageModelsClientWithBaseURI(baseURI string, subscriptionID string) UsageModelsClient {
+ return original.NewUsageModelsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewUsageModelsResultIterator(page UsageModelsResultPage) UsageModelsResultIterator {
+ return original.NewUsageModelsResultIterator(page)
+}
+func NewUsageModelsResultPage(getNextPage func(context.Context, UsageModelsResult) (UsageModelsResult, error)) UsageModelsResultPage {
+ return original.NewUsageModelsResultPage(getNextPage)
+}
+func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
+ return original.NewWithBaseURI(baseURI, subscriptionID)
+}
+func PossibleFirmwareStatusTypeValues() []FirmwareStatusType {
+ return original.PossibleFirmwareStatusTypeValues()
+}
+func PossibleHealthStateTypeValues() []HealthStateType {
+ return original.PossibleHealthStateTypeValues()
+}
+func PossibleProvisioningStateTypeValues() []ProvisioningStateType {
+ return original.PossibleProvisioningStateTypeValues()
+}
+func PossibleReasonCodeValues() []ReasonCode {
+ return original.PossibleReasonCodeValues()
+}
+func PossibleStorageTargetTypeValues() []StorageTargetType {
+ return original.PossibleStorageTargetTypeValues()
+}
+func UserAgent() string {
+ return original.UserAgent() + " profiles/latest"
+}
+func Version() string {
+ return original.Version()
+}
diff --git a/profiles/latest/storagecache/mgmt/storagecache/storagecacheapi/models.go b/profiles/latest/storagecache/mgmt/storagecache/storagecacheapi/models.go
new file mode 100644
index 000000000000..77b8ab88ba0b
--- /dev/null
+++ b/profiles/latest/storagecache/mgmt/storagecache/storagecacheapi/models.go
@@ -0,0 +1,28 @@
+// +build go1.9
+
+// Copyright 2019 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 storagecacheapi
+
+import original "github.com/Azure/azure-sdk-for-go/services/storagecache/mgmt/2019-11-01/storagecache/storagecacheapi"
+
+type CachesClientAPI = original.CachesClientAPI
+type OperationsClientAPI = original.OperationsClientAPI
+type SkusClientAPI = original.SkusClientAPI
+type StorageTargetsClientAPI = original.StorageTargetsClientAPI
+type UsageModelsClientAPI = original.UsageModelsClientAPI
diff --git a/profiles/latest/vmwarecloudsimple/mgmt/vmwarecloudsimple/models.go b/profiles/latest/vmwarecloudsimple/mgmt/vmwarecloudsimple/models.go
index fa31c226b6f0..f00824d7308d 100644
--- a/profiles/latest/vmwarecloudsimple/mgmt/vmwarecloudsimple/models.go
+++ b/profiles/latest/vmwarecloudsimple/mgmt/vmwarecloudsimple/models.go
@@ -36,6 +36,13 @@ const (
Total AggregationType = original.Total
)
+type Allocation = original.Allocation
+
+const (
+ Dynamic Allocation = original.Dynamic
+ Static Allocation = original.Static
+)
+
type DiskIndependenceMode = original.DiskIndependenceMode
const (
@@ -102,6 +109,40 @@ const (
Suspend StopMode = original.Suspend
)
+type Type = original.Type
+
+const (
+ CUSTOMNAME Type = original.CUSTOMNAME
+ FIXED Type = original.FIXED
+ PREFIXBASED Type = original.PREFIXBASED
+ USERDEFINED Type = original.USERDEFINED
+ VIRTUALMACHINENAME Type = original.VIRTUALMACHINENAME
+)
+
+type Type1 = original.Type1
+
+const (
+ Type1CUSTOM Type1 = original.Type1CUSTOM
+ Type1DHCPIP Type1 = original.Type1DHCPIP
+ Type1FIXEDIP Type1 = original.Type1FIXEDIP
+ Type1USERDEFINED Type1 = original.Type1USERDEFINED
+)
+
+type Type2 = original.Type2
+
+const (
+ LINUX Type2 = original.LINUX
+ WINDOWS Type2 = original.WINDOWS
+ WINDOWSTEXT Type2 = original.WINDOWSTEXT
+)
+
+type Type3 = original.Type3
+
+const (
+ Type3LINUX Type3 = original.Type3LINUX
+ Type3WINDOWS Type3 = original.Type3WINDOWS
+)
+
type UsageCount = original.UsageCount
const (
@@ -129,40 +170,54 @@ type AvailableOperationDisplay = original.AvailableOperationDisplay
type AvailableOperationDisplayPropertyServiceSpecification = original.AvailableOperationDisplayPropertyServiceSpecification
type AvailableOperationDisplayPropertyServiceSpecificationMetricsItem = original.AvailableOperationDisplayPropertyServiceSpecificationMetricsItem
type AvailableOperationDisplayPropertyServiceSpecificationMetricsList = original.AvailableOperationDisplayPropertyServiceSpecificationMetricsList
-type AvailableOperationsClient = original.AvailableOperationsClient
type AvailableOperationsListResponse = original.AvailableOperationsListResponse
type AvailableOperationsListResponseIterator = original.AvailableOperationsListResponseIterator
type AvailableOperationsListResponsePage = original.AvailableOperationsListResponsePage
type BaseClient = original.BaseClient
type CSRPError = original.CSRPError
type CSRPErrorBody = original.CSRPErrorBody
+type CustomizationHostName = original.CustomizationHostName
+type CustomizationIPAddress = original.CustomizationIPAddress
+type CustomizationIPSettings = original.CustomizationIPSettings
+type CustomizationIdentity = original.CustomizationIdentity
+type CustomizationIdentityUserData = original.CustomizationIdentityUserData
+type CustomizationNicSetting = original.CustomizationNicSetting
+type CustomizationPoliciesClient = original.CustomizationPoliciesClient
+type CustomizationPoliciesListResponse = original.CustomizationPoliciesListResponse
+type CustomizationPoliciesListResponseIterator = original.CustomizationPoliciesListResponseIterator
+type CustomizationPoliciesListResponsePage = original.CustomizationPoliciesListResponsePage
+type CustomizationPolicy = original.CustomizationPolicy
+type CustomizationPolicyProperties = original.CustomizationPolicyProperties
+type CustomizationSpecification = original.CustomizationSpecification
type DedicatedCloudNode = original.DedicatedCloudNode
-type DedicatedCloudNodeClient = original.DedicatedCloudNodeClient
-type DedicatedCloudNodeCreateOrUpdateFuture = original.DedicatedCloudNodeCreateOrUpdateFuture
type DedicatedCloudNodeListResponse = original.DedicatedCloudNodeListResponse
type DedicatedCloudNodeListResponseIterator = original.DedicatedCloudNodeListResponseIterator
type DedicatedCloudNodeListResponsePage = original.DedicatedCloudNodeListResponsePage
type DedicatedCloudNodeProperties = original.DedicatedCloudNodeProperties
+type DedicatedCloudNodesClient = original.DedicatedCloudNodesClient
+type DedicatedCloudNodesCreateOrUpdateFuture = original.DedicatedCloudNodesCreateOrUpdateFuture
type DedicatedCloudService = original.DedicatedCloudService
-type DedicatedCloudServiceClient = original.DedicatedCloudServiceClient
-type DedicatedCloudServiceDeleteFuture = original.DedicatedCloudServiceDeleteFuture
type DedicatedCloudServiceListResponse = original.DedicatedCloudServiceListResponse
type DedicatedCloudServiceListResponseIterator = original.DedicatedCloudServiceListResponseIterator
type DedicatedCloudServiceListResponsePage = original.DedicatedCloudServiceListResponsePage
type DedicatedCloudServiceProperties = original.DedicatedCloudServiceProperties
+type DedicatedCloudServicesClient = original.DedicatedCloudServicesClient
+type DedicatedCloudServicesDeleteFuture = original.DedicatedCloudServicesDeleteFuture
+type GuestOSCustomization = original.GuestOSCustomization
+type GuestOSNICCustomization = original.GuestOSNICCustomization
type OperationError = original.OperationError
type OperationResource = original.OperationResource
+type OperationsClient = original.OperationsClient
type PatchPayload = original.PatchPayload
type PrivateCloud = original.PrivateCloud
-type PrivateCloudByRegionClient = original.PrivateCloudByRegionClient
type PrivateCloudList = original.PrivateCloudList
type PrivateCloudListIterator = original.PrivateCloudListIterator
type PrivateCloudListPage = original.PrivateCloudListPage
type PrivateCloudProperties = original.PrivateCloudProperties
+type PrivateCloudsClient = original.PrivateCloudsClient
type ResourcePool = original.ResourcePool
-type ResourcePoolByPCClient = original.ResourcePoolByPCClient
type ResourcePoolProperties = original.ResourcePoolProperties
-type ResourcePoolsByPCClient = original.ResourcePoolsByPCClient
+type ResourcePoolsClient = original.ResourcePoolsClient
type ResourcePoolsListResponse = original.ResourcePoolsListResponse
type ResourcePoolsListResponseIterator = original.ResourcePoolsListResponseIterator
type ResourcePoolsListResponsePage = original.ResourcePoolsListResponsePage
@@ -172,51 +227,43 @@ type SkuAvailabilityListResponse = original.SkuAvailabilityListResponse
type SkuAvailabilityListResponseIterator = original.SkuAvailabilityListResponseIterator
type SkuAvailabilityListResponsePage = original.SkuAvailabilityListResponsePage
type SkuDescription = original.SkuDescription
-type SkusAvailabilityWithinRegionClient = original.SkusAvailabilityWithinRegionClient
+type SkusAvailabilityClient = original.SkusAvailabilityClient
type Usage = original.Usage
type UsageListResponse = original.UsageListResponse
type UsageListResponseIterator = original.UsageListResponseIterator
type UsageListResponsePage = original.UsageListResponsePage
type UsageName = original.UsageName
-type UsagesWithinRegionClient = original.UsagesWithinRegionClient
+type UsagesClient = original.UsagesClient
type VirtualDisk = original.VirtualDisk
type VirtualDiskController = original.VirtualDiskController
type VirtualMachine = original.VirtualMachine
-type VirtualMachineClient = original.VirtualMachineClient
-type VirtualMachineCreateOrUpdateFuture = original.VirtualMachineCreateOrUpdateFuture
-type VirtualMachineDeleteFuture = original.VirtualMachineDeleteFuture
type VirtualMachineListResponse = original.VirtualMachineListResponse
type VirtualMachineListResponseIterator = original.VirtualMachineListResponseIterator
type VirtualMachineListResponsePage = original.VirtualMachineListResponsePage
type VirtualMachineProperties = original.VirtualMachineProperties
-type VirtualMachineStartFuture = original.VirtualMachineStartFuture
-type VirtualMachineStopFuture = original.VirtualMachineStopFuture
type VirtualMachineStopMode = original.VirtualMachineStopMode
type VirtualMachineTemplate = original.VirtualMachineTemplate
-type VirtualMachineTemplateByPCClient = original.VirtualMachineTemplateByPCClient
type VirtualMachineTemplateListResponse = original.VirtualMachineTemplateListResponse
type VirtualMachineTemplateListResponseIterator = original.VirtualMachineTemplateListResponseIterator
type VirtualMachineTemplateListResponsePage = original.VirtualMachineTemplateListResponsePage
type VirtualMachineTemplateProperties = original.VirtualMachineTemplateProperties
-type VirtualMachineTemplatesByPCClient = original.VirtualMachineTemplatesByPCClient
-type VirtualMachineUpdateFuture = original.VirtualMachineUpdateFuture
+type VirtualMachineTemplatesClient = original.VirtualMachineTemplatesClient
+type VirtualMachinesClient = original.VirtualMachinesClient
+type VirtualMachinesCreateOrUpdateFuture = original.VirtualMachinesCreateOrUpdateFuture
+type VirtualMachinesDeleteFuture = original.VirtualMachinesDeleteFuture
+type VirtualMachinesStartFuture = original.VirtualMachinesStartFuture
+type VirtualMachinesStopFuture = original.VirtualMachinesStopFuture
+type VirtualMachinesUpdateFuture = original.VirtualMachinesUpdateFuture
type VirtualNetwork = original.VirtualNetwork
-type VirtualNetworkByPCClient = original.VirtualNetworkByPCClient
type VirtualNetworkListResponse = original.VirtualNetworkListResponse
type VirtualNetworkListResponseIterator = original.VirtualNetworkListResponseIterator
type VirtualNetworkListResponsePage = original.VirtualNetworkListResponsePage
type VirtualNetworkProperties = original.VirtualNetworkProperties
-type VirtualNetworksByPCClient = original.VirtualNetworksByPCClient
+type VirtualNetworksClient = original.VirtualNetworksClient
type VirtualNic = original.VirtualNic
-func New(referer string, regionID string, subscriptionID string) BaseClient {
- return original.New(referer, regionID, subscriptionID)
-}
-func NewAvailableOperationsClient(referer string, regionID string, subscriptionID string) AvailableOperationsClient {
- return original.NewAvailableOperationsClient(referer, regionID, subscriptionID)
-}
-func NewAvailableOperationsClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) AvailableOperationsClient {
- return original.NewAvailableOperationsClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func New(subscriptionID string, referer string) BaseClient {
+ return original.New(subscriptionID, referer)
}
func NewAvailableOperationsListResponseIterator(page AvailableOperationsListResponsePage) AvailableOperationsListResponseIterator {
return original.NewAvailableOperationsListResponseIterator(page)
@@ -224,11 +271,17 @@ func NewAvailableOperationsListResponseIterator(page AvailableOperationsListResp
func NewAvailableOperationsListResponsePage(getNextPage func(context.Context, AvailableOperationsListResponse) (AvailableOperationsListResponse, error)) AvailableOperationsListResponsePage {
return original.NewAvailableOperationsListResponsePage(getNextPage)
}
-func NewDedicatedCloudNodeClient(referer string, regionID string, subscriptionID string) DedicatedCloudNodeClient {
- return original.NewDedicatedCloudNodeClient(referer, regionID, subscriptionID)
+func NewCustomizationPoliciesClient(subscriptionID string, referer string) CustomizationPoliciesClient {
+ return original.NewCustomizationPoliciesClient(subscriptionID, referer)
+}
+func NewCustomizationPoliciesClientWithBaseURI(baseURI string, subscriptionID string, referer string) CustomizationPoliciesClient {
+ return original.NewCustomizationPoliciesClientWithBaseURI(baseURI, subscriptionID, referer)
}
-func NewDedicatedCloudNodeClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) DedicatedCloudNodeClient {
- return original.NewDedicatedCloudNodeClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewCustomizationPoliciesListResponseIterator(page CustomizationPoliciesListResponsePage) CustomizationPoliciesListResponseIterator {
+ return original.NewCustomizationPoliciesListResponseIterator(page)
+}
+func NewCustomizationPoliciesListResponsePage(getNextPage func(context.Context, CustomizationPoliciesListResponse) (CustomizationPoliciesListResponse, error)) CustomizationPoliciesListResponsePage {
+ return original.NewCustomizationPoliciesListResponsePage(getNextPage)
}
func NewDedicatedCloudNodeListResponseIterator(page DedicatedCloudNodeListResponsePage) DedicatedCloudNodeListResponseIterator {
return original.NewDedicatedCloudNodeListResponseIterator(page)
@@ -236,11 +289,11 @@ func NewDedicatedCloudNodeListResponseIterator(page DedicatedCloudNodeListRespon
func NewDedicatedCloudNodeListResponsePage(getNextPage func(context.Context, DedicatedCloudNodeListResponse) (DedicatedCloudNodeListResponse, error)) DedicatedCloudNodeListResponsePage {
return original.NewDedicatedCloudNodeListResponsePage(getNextPage)
}
-func NewDedicatedCloudServiceClient(referer string, regionID string, subscriptionID string) DedicatedCloudServiceClient {
- return original.NewDedicatedCloudServiceClient(referer, regionID, subscriptionID)
+func NewDedicatedCloudNodesClient(subscriptionID string, referer string) DedicatedCloudNodesClient {
+ return original.NewDedicatedCloudNodesClient(subscriptionID, referer)
}
-func NewDedicatedCloudServiceClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) DedicatedCloudServiceClient {
- return original.NewDedicatedCloudServiceClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewDedicatedCloudNodesClientWithBaseURI(baseURI string, subscriptionID string, referer string) DedicatedCloudNodesClient {
+ return original.NewDedicatedCloudNodesClientWithBaseURI(baseURI, subscriptionID, referer)
}
func NewDedicatedCloudServiceListResponseIterator(page DedicatedCloudServiceListResponsePage) DedicatedCloudServiceListResponseIterator {
return original.NewDedicatedCloudServiceListResponseIterator(page)
@@ -248,11 +301,17 @@ func NewDedicatedCloudServiceListResponseIterator(page DedicatedCloudServiceList
func NewDedicatedCloudServiceListResponsePage(getNextPage func(context.Context, DedicatedCloudServiceListResponse) (DedicatedCloudServiceListResponse, error)) DedicatedCloudServiceListResponsePage {
return original.NewDedicatedCloudServiceListResponsePage(getNextPage)
}
-func NewPrivateCloudByRegionClient(referer string, regionID string, subscriptionID string) PrivateCloudByRegionClient {
- return original.NewPrivateCloudByRegionClient(referer, regionID, subscriptionID)
+func NewDedicatedCloudServicesClient(subscriptionID string, referer string) DedicatedCloudServicesClient {
+ return original.NewDedicatedCloudServicesClient(subscriptionID, referer)
+}
+func NewDedicatedCloudServicesClientWithBaseURI(baseURI string, subscriptionID string, referer string) DedicatedCloudServicesClient {
+ return original.NewDedicatedCloudServicesClientWithBaseURI(baseURI, subscriptionID, referer)
}
-func NewPrivateCloudByRegionClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) PrivateCloudByRegionClient {
- return original.NewPrivateCloudByRegionClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewOperationsClient(subscriptionID string, referer string) OperationsClient {
+ return original.NewOperationsClient(subscriptionID, referer)
+}
+func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string, referer string) OperationsClient {
+ return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID, referer)
}
func NewPrivateCloudListIterator(page PrivateCloudListPage) PrivateCloudListIterator {
return original.NewPrivateCloudListIterator(page)
@@ -260,17 +319,17 @@ func NewPrivateCloudListIterator(page PrivateCloudListPage) PrivateCloudListIter
func NewPrivateCloudListPage(getNextPage func(context.Context, PrivateCloudList) (PrivateCloudList, error)) PrivateCloudListPage {
return original.NewPrivateCloudListPage(getNextPage)
}
-func NewResourcePoolByPCClient(referer string, regionID string, subscriptionID string) ResourcePoolByPCClient {
- return original.NewResourcePoolByPCClient(referer, regionID, subscriptionID)
+func NewPrivateCloudsClient(subscriptionID string, referer string) PrivateCloudsClient {
+ return original.NewPrivateCloudsClient(subscriptionID, referer)
}
-func NewResourcePoolByPCClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) ResourcePoolByPCClient {
- return original.NewResourcePoolByPCClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewPrivateCloudsClientWithBaseURI(baseURI string, subscriptionID string, referer string) PrivateCloudsClient {
+ return original.NewPrivateCloudsClientWithBaseURI(baseURI, subscriptionID, referer)
}
-func NewResourcePoolsByPCClient(referer string, regionID string, subscriptionID string) ResourcePoolsByPCClient {
- return original.NewResourcePoolsByPCClient(referer, regionID, subscriptionID)
+func NewResourcePoolsClient(subscriptionID string, referer string) ResourcePoolsClient {
+ return original.NewResourcePoolsClient(subscriptionID, referer)
}
-func NewResourcePoolsByPCClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) ResourcePoolsByPCClient {
- return original.NewResourcePoolsByPCClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewResourcePoolsClientWithBaseURI(baseURI string, subscriptionID string, referer string) ResourcePoolsClient {
+ return original.NewResourcePoolsClientWithBaseURI(baseURI, subscriptionID, referer)
}
func NewResourcePoolsListResponseIterator(page ResourcePoolsListResponsePage) ResourcePoolsListResponseIterator {
return original.NewResourcePoolsListResponseIterator(page)
@@ -284,11 +343,11 @@ func NewSkuAvailabilityListResponseIterator(page SkuAvailabilityListResponsePage
func NewSkuAvailabilityListResponsePage(getNextPage func(context.Context, SkuAvailabilityListResponse) (SkuAvailabilityListResponse, error)) SkuAvailabilityListResponsePage {
return original.NewSkuAvailabilityListResponsePage(getNextPage)
}
-func NewSkusAvailabilityWithinRegionClient(referer string, regionID string, subscriptionID string) SkusAvailabilityWithinRegionClient {
- return original.NewSkusAvailabilityWithinRegionClient(referer, regionID, subscriptionID)
+func NewSkusAvailabilityClient(subscriptionID string, referer string) SkusAvailabilityClient {
+ return original.NewSkusAvailabilityClient(subscriptionID, referer)
}
-func NewSkusAvailabilityWithinRegionClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) SkusAvailabilityWithinRegionClient {
- return original.NewSkusAvailabilityWithinRegionClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewSkusAvailabilityClientWithBaseURI(baseURI string, subscriptionID string, referer string) SkusAvailabilityClient {
+ return original.NewSkusAvailabilityClientWithBaseURI(baseURI, subscriptionID, referer)
}
func NewUsageListResponseIterator(page UsageListResponsePage) UsageListResponseIterator {
return original.NewUsageListResponseIterator(page)
@@ -296,17 +355,11 @@ func NewUsageListResponseIterator(page UsageListResponsePage) UsageListResponseI
func NewUsageListResponsePage(getNextPage func(context.Context, UsageListResponse) (UsageListResponse, error)) UsageListResponsePage {
return original.NewUsageListResponsePage(getNextPage)
}
-func NewUsagesWithinRegionClient(referer string, regionID string, subscriptionID string) UsagesWithinRegionClient {
- return original.NewUsagesWithinRegionClient(referer, regionID, subscriptionID)
-}
-func NewUsagesWithinRegionClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) UsagesWithinRegionClient {
- return original.NewUsagesWithinRegionClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewUsagesClient(subscriptionID string, referer string) UsagesClient {
+ return original.NewUsagesClient(subscriptionID, referer)
}
-func NewVirtualMachineClient(referer string, regionID string, subscriptionID string) VirtualMachineClient {
- return original.NewVirtualMachineClient(referer, regionID, subscriptionID)
-}
-func NewVirtualMachineClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) VirtualMachineClient {
- return original.NewVirtualMachineClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string, referer string) UsagesClient {
+ return original.NewUsagesClientWithBaseURI(baseURI, subscriptionID, referer)
}
func NewVirtualMachineListResponseIterator(page VirtualMachineListResponsePage) VirtualMachineListResponseIterator {
return original.NewVirtualMachineListResponseIterator(page)
@@ -314,29 +367,23 @@ func NewVirtualMachineListResponseIterator(page VirtualMachineListResponsePage)
func NewVirtualMachineListResponsePage(getNextPage func(context.Context, VirtualMachineListResponse) (VirtualMachineListResponse, error)) VirtualMachineListResponsePage {
return original.NewVirtualMachineListResponsePage(getNextPage)
}
-func NewVirtualMachineTemplateByPCClient(referer string, regionID string, subscriptionID string) VirtualMachineTemplateByPCClient {
- return original.NewVirtualMachineTemplateByPCClient(referer, regionID, subscriptionID)
-}
-func NewVirtualMachineTemplateByPCClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) VirtualMachineTemplateByPCClient {
- return original.NewVirtualMachineTemplateByPCClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
-}
func NewVirtualMachineTemplateListResponseIterator(page VirtualMachineTemplateListResponsePage) VirtualMachineTemplateListResponseIterator {
return original.NewVirtualMachineTemplateListResponseIterator(page)
}
func NewVirtualMachineTemplateListResponsePage(getNextPage func(context.Context, VirtualMachineTemplateListResponse) (VirtualMachineTemplateListResponse, error)) VirtualMachineTemplateListResponsePage {
return original.NewVirtualMachineTemplateListResponsePage(getNextPage)
}
-func NewVirtualMachineTemplatesByPCClient(referer string, regionID string, subscriptionID string) VirtualMachineTemplatesByPCClient {
- return original.NewVirtualMachineTemplatesByPCClient(referer, regionID, subscriptionID)
+func NewVirtualMachineTemplatesClient(subscriptionID string, referer string) VirtualMachineTemplatesClient {
+ return original.NewVirtualMachineTemplatesClient(subscriptionID, referer)
}
-func NewVirtualMachineTemplatesByPCClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) VirtualMachineTemplatesByPCClient {
- return original.NewVirtualMachineTemplatesByPCClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewVirtualMachineTemplatesClientWithBaseURI(baseURI string, subscriptionID string, referer string) VirtualMachineTemplatesClient {
+ return original.NewVirtualMachineTemplatesClientWithBaseURI(baseURI, subscriptionID, referer)
}
-func NewVirtualNetworkByPCClient(referer string, regionID string, subscriptionID string) VirtualNetworkByPCClient {
- return original.NewVirtualNetworkByPCClient(referer, regionID, subscriptionID)
+func NewVirtualMachinesClient(subscriptionID string, referer string) VirtualMachinesClient {
+ return original.NewVirtualMachinesClient(subscriptionID, referer)
}
-func NewVirtualNetworkByPCClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) VirtualNetworkByPCClient {
- return original.NewVirtualNetworkByPCClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewVirtualMachinesClientWithBaseURI(baseURI string, subscriptionID string, referer string) VirtualMachinesClient {
+ return original.NewVirtualMachinesClientWithBaseURI(baseURI, subscriptionID, referer)
}
func NewVirtualNetworkListResponseIterator(page VirtualNetworkListResponsePage) VirtualNetworkListResponseIterator {
return original.NewVirtualNetworkListResponseIterator(page)
@@ -344,18 +391,21 @@ func NewVirtualNetworkListResponseIterator(page VirtualNetworkListResponsePage)
func NewVirtualNetworkListResponsePage(getNextPage func(context.Context, VirtualNetworkListResponse) (VirtualNetworkListResponse, error)) VirtualNetworkListResponsePage {
return original.NewVirtualNetworkListResponsePage(getNextPage)
}
-func NewVirtualNetworksByPCClient(referer string, regionID string, subscriptionID string) VirtualNetworksByPCClient {
- return original.NewVirtualNetworksByPCClient(referer, regionID, subscriptionID)
+func NewVirtualNetworksClient(subscriptionID string, referer string) VirtualNetworksClient {
+ return original.NewVirtualNetworksClient(subscriptionID, referer)
}
-func NewVirtualNetworksByPCClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) VirtualNetworksByPCClient {
- return original.NewVirtualNetworksByPCClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string, referer string) VirtualNetworksClient {
+ return original.NewVirtualNetworksClientWithBaseURI(baseURI, subscriptionID, referer)
}
-func NewWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) BaseClient {
- return original.NewWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewWithBaseURI(baseURI string, subscriptionID string, referer string) BaseClient {
+ return original.NewWithBaseURI(baseURI, subscriptionID, referer)
}
func PossibleAggregationTypeValues() []AggregationType {
return original.PossibleAggregationTypeValues()
}
+func PossibleAllocationValues() []Allocation {
+ return original.PossibleAllocationValues()
+}
func PossibleDiskIndependenceModeValues() []DiskIndependenceMode {
return original.PossibleDiskIndependenceModeValues()
}
@@ -380,6 +430,18 @@ func PossiblePrivateCloudResourceTypeValues() []PrivateCloudResourceType {
func PossibleStopModeValues() []StopMode {
return original.PossibleStopModeValues()
}
+func PossibleType1Values() []Type1 {
+ return original.PossibleType1Values()
+}
+func PossibleType2Values() []Type2 {
+ return original.PossibleType2Values()
+}
+func PossibleType3Values() []Type3 {
+ return original.PossibleType3Values()
+}
+func PossibleTypeValues() []Type {
+ return original.PossibleTypeValues()
+}
func PossibleUsageCountValues() []UsageCount {
return original.PossibleUsageCountValues()
}
diff --git a/profiles/latest/vmwarecloudsimple/mgmt/vmwarecloudsimple/vmwarecloudsimpleapi/models.go b/profiles/latest/vmwarecloudsimple/mgmt/vmwarecloudsimple/vmwarecloudsimpleapi/models.go
index 30246cb7a73b..ed837345e317 100644
--- a/profiles/latest/vmwarecloudsimple/mgmt/vmwarecloudsimple/vmwarecloudsimpleapi/models.go
+++ b/profiles/latest/vmwarecloudsimple/mgmt/vmwarecloudsimple/vmwarecloudsimpleapi/models.go
@@ -21,17 +21,14 @@ package vmwarecloudsimpleapi
import original "github.com/Azure/azure-sdk-for-go/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/vmwarecloudsimpleapi"
-type AvailableOperationsClientAPI = original.AvailableOperationsClientAPI
-type BaseClientAPI = original.BaseClientAPI
-type DedicatedCloudNodeClientAPI = original.DedicatedCloudNodeClientAPI
-type DedicatedCloudServiceClientAPI = original.DedicatedCloudServiceClientAPI
-type PrivateCloudByRegionClientAPI = original.PrivateCloudByRegionClientAPI
-type ResourcePoolByPCClientAPI = original.ResourcePoolByPCClientAPI
-type ResourcePoolsByPCClientAPI = original.ResourcePoolsByPCClientAPI
-type SkusAvailabilityWithinRegionClientAPI = original.SkusAvailabilityWithinRegionClientAPI
-type UsagesWithinRegionClientAPI = original.UsagesWithinRegionClientAPI
-type VirtualMachineClientAPI = original.VirtualMachineClientAPI
-type VirtualMachineTemplateByPCClientAPI = original.VirtualMachineTemplateByPCClientAPI
-type VirtualMachineTemplatesByPCClientAPI = original.VirtualMachineTemplatesByPCClientAPI
-type VirtualNetworkByPCClientAPI = original.VirtualNetworkByPCClientAPI
-type VirtualNetworksByPCClientAPI = original.VirtualNetworksByPCClientAPI
+type CustomizationPoliciesClientAPI = original.CustomizationPoliciesClientAPI
+type DedicatedCloudNodesClientAPI = original.DedicatedCloudNodesClientAPI
+type DedicatedCloudServicesClientAPI = original.DedicatedCloudServicesClientAPI
+type OperationsClientAPI = original.OperationsClientAPI
+type PrivateCloudsClientAPI = original.PrivateCloudsClientAPI
+type ResourcePoolsClientAPI = original.ResourcePoolsClientAPI
+type SkusAvailabilityClientAPI = original.SkusAvailabilityClientAPI
+type UsagesClientAPI = original.UsagesClientAPI
+type VirtualMachineTemplatesClientAPI = original.VirtualMachineTemplatesClientAPI
+type VirtualMachinesClientAPI = original.VirtualMachinesClientAPI
+type VirtualNetworksClientAPI = original.VirtualNetworksClientAPI
diff --git a/profiles/latest/web/mgmt/web/models.go b/profiles/latest/web/mgmt/web/models.go
index 1e47d1d9f4e6..efded70f081c 100644
--- a/profiles/latest/web/mgmt/web/models.go
+++ b/profiles/latest/web/mgmt/web/models.go
@@ -192,6 +192,18 @@ const (
ComputeModeOptionsShared ComputeModeOptions = original.ComputeModeOptionsShared
)
+type ConfigReferenceLocation = original.ConfigReferenceLocation
+
+const (
+ ApplicationSetting ConfigReferenceLocation = original.ApplicationSetting
+)
+
+type ConfigReferenceSource = original.ConfigReferenceSource
+
+const (
+ KeyVault ConfigReferenceSource = original.KeyVault
+)
+
type ConnectionStringType = original.ConnectionStringType
const (
@@ -416,10 +428,9 @@ const (
type ManagedServiceIdentityType = original.ManagedServiceIdentityType
const (
- ManagedServiceIdentityTypeNone ManagedServiceIdentityType = original.ManagedServiceIdentityTypeNone
- ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = original.ManagedServiceIdentityTypeSystemAssigned
- ManagedServiceIdentityTypeSystemAssignedUserAssigned ManagedServiceIdentityType = original.ManagedServiceIdentityTypeSystemAssignedUserAssigned
- ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = original.ManagedServiceIdentityTypeUserAssigned
+ ManagedServiceIdentityTypeNone ManagedServiceIdentityType = original.ManagedServiceIdentityTypeNone
+ ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = original.ManagedServiceIdentityTypeSystemAssigned
+ ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = original.ManagedServiceIdentityTypeUserAssigned
)
type MySQLMigrationType = original.MySQLMigrationType
@@ -493,6 +504,20 @@ const (
TimeSeriesPerInstance RenderingType = original.TimeSeriesPerInstance
)
+type ResolveStatus = original.ResolveStatus
+
+const (
+ AccessToKeyVaultDenied ResolveStatus = original.AccessToKeyVaultDenied
+ Initialized ResolveStatus = original.Initialized
+ InvalidSyntax ResolveStatus = original.InvalidSyntax
+ MSINotEnabled ResolveStatus = original.MSINotEnabled
+ OtherReasons ResolveStatus = original.OtherReasons
+ Resolved ResolveStatus = original.Resolved
+ SecretNotFound ResolveStatus = original.SecretNotFound
+ SecretVersionNotFound ResolveStatus = original.SecretVersionNotFound
+ VaultNotFound ResolveStatus = original.VaultNotFound
+)
+
type ResourceScopeType = original.ResourceScopeType
const (
@@ -525,6 +550,7 @@ const (
ScmTypeOneDrive ScmType = original.ScmTypeOneDrive
ScmTypeTfs ScmType = original.ScmTypeTfs
ScmTypeVSO ScmType = original.ScmTypeVSO
+ ScmTypeVSTSRM ScmType = original.ScmTypeVSTSRM
)
type SiteAvailabilityState = original.SiteAvailabilityState
@@ -552,6 +578,14 @@ const (
WeightedTotalTraffic SiteLoadBalancing = original.WeightedTotalTraffic
)
+type SiteRuntimeState = original.SiteRuntimeState
+
+const (
+ READY SiteRuntimeState = original.READY
+ STOPPED SiteRuntimeState = original.STOPPED
+ UNKNOWN SiteRuntimeState = original.UNKNOWN
+)
+
type SkuName = original.SkuName
const (
@@ -631,19 +665,23 @@ const (
type WorkerSizeOptions = original.WorkerSizeOptions
const (
- WorkerSizeOptionsD1 WorkerSizeOptions = original.WorkerSizeOptionsD1
- WorkerSizeOptionsD2 WorkerSizeOptions = original.WorkerSizeOptionsD2
- WorkerSizeOptionsD3 WorkerSizeOptions = original.WorkerSizeOptionsD3
- WorkerSizeOptionsDefault WorkerSizeOptions = original.WorkerSizeOptionsDefault
- WorkerSizeOptionsLarge WorkerSizeOptions = original.WorkerSizeOptionsLarge
- WorkerSizeOptionsMedium WorkerSizeOptions = original.WorkerSizeOptionsMedium
- WorkerSizeOptionsSmall WorkerSizeOptions = original.WorkerSizeOptionsSmall
+ WorkerSizeOptionsD1 WorkerSizeOptions = original.WorkerSizeOptionsD1
+ WorkerSizeOptionsD2 WorkerSizeOptions = original.WorkerSizeOptionsD2
+ WorkerSizeOptionsD3 WorkerSizeOptions = original.WorkerSizeOptionsD3
+ WorkerSizeOptionsDefault WorkerSizeOptions = original.WorkerSizeOptionsDefault
+ WorkerSizeOptionsLarge WorkerSizeOptions = original.WorkerSizeOptionsLarge
+ WorkerSizeOptionsMedium WorkerSizeOptions = original.WorkerSizeOptionsMedium
+ WorkerSizeOptionsNestedSmall WorkerSizeOptions = original.WorkerSizeOptionsNestedSmall
+ WorkerSizeOptionsSmall WorkerSizeOptions = original.WorkerSizeOptionsSmall
)
type APIDefinitionInfo = original.APIDefinitionInfo
+type APIKVReference = original.APIKVReference
+type APIManagementConfig = original.APIManagementConfig
type AbnormalTimePeriod = original.AbnormalTimePeriod
type Address = original.Address
type AddressResponse = original.AddressResponse
+type AddressResponseProperties = original.AddressResponseProperties
type AnalysisData = original.AnalysisData
type AnalysisDefinition = original.AnalysisDefinition
type AnalysisDefinitionProperties = original.AnalysisDefinitionProperties
@@ -700,7 +738,10 @@ type ApplicationStack = original.ApplicationStack
type ApplicationStackCollection = original.ApplicationStackCollection
type ApplicationStackCollectionIterator = original.ApplicationStackCollectionIterator
type ApplicationStackCollectionPage = original.ApplicationStackCollectionPage
+type ApplicationStackResource = original.ApplicationStackResource
type AppsClient = original.AppsClient
+type AppsCopyProductionSlotFuture = original.AppsCopyProductionSlotFuture
+type AppsCopySlotSlotFuture = original.AppsCopySlotSlotFuture
type AppsCreateFunctionFuture = original.AppsCreateFunctionFuture
type AppsCreateInstanceFunctionSlotFuture = original.AppsCreateInstanceFunctionSlotFuture
type AppsCreateInstanceMSDeployOperationFuture = original.AppsCreateInstanceMSDeployOperationFuture
@@ -774,12 +815,19 @@ type ConnStringInfo = original.ConnStringInfo
type ConnStringValueTypePair = original.ConnStringValueTypePair
type ConnectionStringDictionary = original.ConnectionStringDictionary
type Contact = original.Contact
+type ContainerCPUStatistics = original.ContainerCPUStatistics
+type ContainerCPUUsage = original.ContainerCPUUsage
+type ContainerInfo = original.ContainerInfo
+type ContainerMemoryStatistics = original.ContainerMemoryStatistics
+type ContainerNetworkInterfaceStatistics = original.ContainerNetworkInterfaceStatistics
+type ContainerThrottlingData = original.ContainerThrottlingData
type ContinuousWebJob = original.ContinuousWebJob
type ContinuousWebJobCollection = original.ContinuousWebJobCollection
type ContinuousWebJobCollectionIterator = original.ContinuousWebJobCollectionIterator
type ContinuousWebJobCollectionPage = original.ContinuousWebJobCollectionPage
type ContinuousWebJobProperties = original.ContinuousWebJobProperties
type CorsSettings = original.CorsSettings
+type CsmCopySlotEntity = original.CsmCopySlotEntity
type CsmMoveResourceEnvelope = original.CsmMoveResourceEnvelope
type CsmOperationCollection = original.CsmOperationCollection
type CsmOperationCollectionIterator = original.CsmOperationCollectionIterator
@@ -846,7 +894,7 @@ type DiagnosticMetricSet = original.DiagnosticMetricSet
type DiagnosticsClient = original.DiagnosticsClient
type Dimension = original.Dimension
type Domain = original.Domain
-type DomainAvailablilityCheckResult = original.DomainAvailablilityCheckResult
+type DomainAvailabilityCheckResult = original.DomainAvailabilityCheckResult
type DomainCollection = original.DomainCollection
type DomainCollectionIterator = original.DomainCollectionIterator
type DomainCollectionPage = original.DomainCollectionPage
@@ -878,7 +926,6 @@ type FunctionEnvelopeCollectionPage = original.FunctionEnvelopeCollectionPage
type FunctionEnvelopeProperties = original.FunctionEnvelopeProperties
type FunctionSecrets = original.FunctionSecrets
type FunctionSecretsProperties = original.FunctionSecretsProperties
-type GeoDistribution = original.GeoDistribution
type GeoRegion = original.GeoRegion
type GeoRegionCollection = original.GeoRegionCollection
type GeoRegionCollectionIterator = original.GeoRegionCollectionIterator
@@ -921,6 +968,9 @@ type JobCollection = original.JobCollection
type JobCollectionIterator = original.JobCollectionIterator
type JobCollectionPage = original.JobCollectionPage
type JobProperties = original.JobProperties
+type KeyVaultReferenceCollection = original.KeyVaultReferenceCollection
+type KeyVaultReferenceCollectionProperties = original.KeyVaultReferenceCollectionProperties
+type KeyVaultReferenceResource = original.KeyVaultReferenceResource
type ListCapability = original.ListCapability
type ListCertificateEmail = original.ListCertificateEmail
type ListCertificateOrderAction = original.ListCertificateOrderAction
@@ -940,10 +990,7 @@ type MSDeployStatus = original.MSDeployStatus
type MSDeployStatusProperties = original.MSDeployStatusProperties
type ManagedServiceIdentity = original.ManagedServiceIdentity
type ManagedServiceIdentityUserAssignedIdentitiesValue = original.ManagedServiceIdentityUserAssignedIdentitiesValue
-type MetricAvailabilily = original.MetricAvailabilily
type MetricAvailability = original.MetricAvailability
-type MetricDefinition = original.MetricDefinition
-type MetricDefinitionProperties = original.MetricDefinitionProperties
type MetricSpecification = original.MetricSpecification
type MigrateMySQLRequest = original.MigrateMySQLRequest
type MigrateMySQLRequestProperties = original.MigrateMySQLRequestProperties
@@ -1034,19 +1081,12 @@ type ResourceHealthMetadataCollection = original.ResourceHealthMetadataCollectio
type ResourceHealthMetadataCollectionIterator = original.ResourceHealthMetadataCollectionIterator
type ResourceHealthMetadataCollectionPage = original.ResourceHealthMetadataCollectionPage
type ResourceHealthMetadataProperties = original.ResourceHealthMetadataProperties
-type ResourceMetric = original.ResourceMetric
type ResourceMetricAvailability = original.ResourceMetricAvailability
-type ResourceMetricCollection = original.ResourceMetricCollection
-type ResourceMetricCollectionIterator = original.ResourceMetricCollectionIterator
-type ResourceMetricCollectionPage = original.ResourceMetricCollectionPage
type ResourceMetricDefinition = original.ResourceMetricDefinition
type ResourceMetricDefinitionCollection = original.ResourceMetricDefinitionCollection
type ResourceMetricDefinitionCollectionIterator = original.ResourceMetricDefinitionCollectionIterator
type ResourceMetricDefinitionCollectionPage = original.ResourceMetricDefinitionCollectionPage
type ResourceMetricDefinitionProperties = original.ResourceMetricDefinitionProperties
-type ResourceMetricName = original.ResourceMetricName
-type ResourceMetricProperty = original.ResourceMetricProperty
-type ResourceMetricValue = original.ResourceMetricValue
type ResourceNameAvailability = original.ResourceNameAvailability
type ResourceNameAvailabilityRequest = original.ResourceNameAvailabilityRequest
type ResponseMetaData = original.ResponseMetaData
@@ -1076,6 +1116,8 @@ type SiteExtensionInfoCollectionPage = original.SiteExtensionInfoCollectionPage
type SiteExtensionInfoProperties = original.SiteExtensionInfoProperties
type SiteInstance = original.SiteInstance
type SiteInstanceProperties = original.SiteInstanceProperties
+type SiteInstanceStatus = original.SiteInstanceStatus
+type SiteInstanceStatusProperties = original.SiteInstanceStatusProperties
type SiteLimits = original.SiteLimits
type SiteLogsConfig = original.SiteLogsConfig
type SiteLogsConfigProperties = original.SiteLogsConfigProperties
@@ -1164,7 +1206,6 @@ type UsageCollectionPage = original.UsageCollectionPage
type UsageProperties = original.UsageProperties
type User = original.User
type UserProperties = original.UserProperties
-type ValidateContainerSettingsRequest = original.ValidateContainerSettingsRequest
type ValidateProperties = original.ValidateProperties
type ValidateRequest = original.ValidateRequest
type ValidateResponse = original.ValidateResponse
@@ -1506,12 +1547,6 @@ func NewResourceHealthMetadataCollectionIterator(page ResourceHealthMetadataColl
func NewResourceHealthMetadataCollectionPage(getNextPage func(context.Context, ResourceHealthMetadataCollection) (ResourceHealthMetadataCollection, error)) ResourceHealthMetadataCollectionPage {
return original.NewResourceHealthMetadataCollectionPage(getNextPage)
}
-func NewResourceMetricCollectionIterator(page ResourceMetricCollectionPage) ResourceMetricCollectionIterator {
- return original.NewResourceMetricCollectionIterator(page)
-}
-func NewResourceMetricCollectionPage(getNextPage func(context.Context, ResourceMetricCollection) (ResourceMetricCollection, error)) ResourceMetricCollectionPage {
- return original.NewResourceMetricCollectionPage(getNextPage)
-}
func NewResourceMetricDefinitionCollectionIterator(page ResourceMetricDefinitionCollectionPage) ResourceMetricDefinitionCollectionIterator {
return original.NewResourceMetricDefinitionCollectionIterator(page)
}
@@ -1659,6 +1694,12 @@ func PossibleCloneAbilityResultValues() []CloneAbilityResult {
func PossibleComputeModeOptionsValues() []ComputeModeOptions {
return original.PossibleComputeModeOptionsValues()
}
+func PossibleConfigReferenceLocationValues() []ConfigReferenceLocation {
+ return original.PossibleConfigReferenceLocationValues()
+}
+func PossibleConfigReferenceSourceValues() []ConfigReferenceSource {
+ return original.PossibleConfigReferenceSourceValues()
+}
func PossibleConnectionStringTypeValues() []ConnectionStringType {
return original.PossibleConnectionStringTypeValues()
}
@@ -1755,6 +1796,9 @@ func PossibleRedundancyModeValues() []RedundancyMode {
func PossibleRenderingTypeValues() []RenderingType {
return original.PossibleRenderingTypeValues()
}
+func PossibleResolveStatusValues() []ResolveStatus {
+ return original.PossibleResolveStatusValues()
+}
func PossibleResourceScopeTypeValues() []ResourceScopeType {
return original.PossibleResourceScopeTypeValues()
}
@@ -1773,6 +1817,9 @@ func PossibleSiteExtensionTypeValues() []SiteExtensionType {
func PossibleSiteLoadBalancingValues() []SiteLoadBalancing {
return original.PossibleSiteLoadBalancingValues()
}
+func PossibleSiteRuntimeStateValues() []SiteRuntimeState {
+ return original.PossibleSiteRuntimeStateValues()
+}
func PossibleSkuNameValues() []SkuName {
return original.PossibleSkuNameValues()
}
diff --git a/profiles/preview/advisor/mgmt/advisor/models.go b/profiles/preview/advisor/mgmt/advisor/models.go
index 12185f185d4b..89c05f9f48c1 100644
--- a/profiles/preview/advisor/mgmt/advisor/models.go
+++ b/profiles/preview/advisor/mgmt/advisor/models.go
@@ -32,10 +32,11 @@ const (
type Category = original.Category
const (
- Cost Category = original.Cost
- HighAvailability Category = original.HighAvailability
- Performance Category = original.Performance
- Security Category = original.Security
+ Cost Category = original.Cost
+ HighAvailability Category = original.HighAvailability
+ OperationalExcellence Category = original.OperationalExcellence
+ Performance Category = original.Performance
+ Security Category = original.Security
)
type Impact = original.Impact
diff --git a/profiles/preview/appconfiguration/mgmt/appconfiguration/appconfigurationapi/models.go b/profiles/preview/appconfiguration/mgmt/appconfiguration/appconfigurationapi/models.go
new file mode 100644
index 000000000000..2cc70b8e585a
--- /dev/null
+++ b/profiles/preview/appconfiguration/mgmt/appconfiguration/appconfigurationapi/models.go
@@ -0,0 +1,25 @@
+// +build go1.9
+
+// Copyright 2019 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 appconfigurationapi
+
+import original "github.com/Azure/azure-sdk-for-go/services/appconfiguration/mgmt/2019-10-01/appconfiguration/appconfigurationapi"
+
+type ConfigurationStoresClientAPI = original.ConfigurationStoresClientAPI
+type OperationsClientAPI = original.OperationsClientAPI
diff --git a/profiles/preview/appconfiguration/mgmt/appconfiguration/models.go b/profiles/preview/appconfiguration/mgmt/appconfiguration/models.go
new file mode 100644
index 000000000000..f95ea208e937
--- /dev/null
+++ b/profiles/preview/appconfiguration/mgmt/appconfiguration/models.go
@@ -0,0 +1,131 @@
+// +build go1.9
+
+// Copyright 2019 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 appconfiguration
+
+import (
+ "context"
+
+ original "github.com/Azure/azure-sdk-for-go/services/appconfiguration/mgmt/2019-10-01/appconfiguration"
+)
+
+const (
+ DefaultBaseURI = original.DefaultBaseURI
+)
+
+type IdentityType = original.IdentityType
+
+const (
+ None IdentityType = original.None
+ SystemAssigned IdentityType = original.SystemAssigned
+ SystemAssignedUserAssigned IdentityType = original.SystemAssignedUserAssigned
+ UserAssigned IdentityType = original.UserAssigned
+)
+
+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 APIKey = original.APIKey
+type APIKeyListResult = original.APIKeyListResult
+type APIKeyListResultIterator = original.APIKeyListResultIterator
+type APIKeyListResultPage = original.APIKeyListResultPage
+type BaseClient = original.BaseClient
+type CheckNameAvailabilityParameters = original.CheckNameAvailabilityParameters
+type ConfigurationStore = original.ConfigurationStore
+type ConfigurationStoreListResult = original.ConfigurationStoreListResult
+type ConfigurationStoreListResultIterator = original.ConfigurationStoreListResultIterator
+type ConfigurationStoreListResultPage = original.ConfigurationStoreListResultPage
+type ConfigurationStoreProperties = original.ConfigurationStoreProperties
+type ConfigurationStoreUpdateParameters = original.ConfigurationStoreUpdateParameters
+type ConfigurationStoresClient = original.ConfigurationStoresClient
+type ConfigurationStoresCreateFuture = original.ConfigurationStoresCreateFuture
+type ConfigurationStoresDeleteFuture = original.ConfigurationStoresDeleteFuture
+type ConfigurationStoresUpdateFuture = original.ConfigurationStoresUpdateFuture
+type Error = original.Error
+type KeyValue = original.KeyValue
+type ListKeyValueParameters = original.ListKeyValueParameters
+type NameAvailabilityStatus = original.NameAvailabilityStatus
+type OperationDefinition = original.OperationDefinition
+type OperationDefinitionDisplay = original.OperationDefinitionDisplay
+type OperationDefinitionListResult = original.OperationDefinitionListResult
+type OperationDefinitionListResultIterator = original.OperationDefinitionListResultIterator
+type OperationDefinitionListResultPage = original.OperationDefinitionListResultPage
+type OperationsClient = original.OperationsClient
+type RegenerateKeyParameters = original.RegenerateKeyParameters
+type Resource = original.Resource
+type ResourceIdentity = original.ResourceIdentity
+type Sku = original.Sku
+type UserIdentity = original.UserIdentity
+
+func New(subscriptionID string) BaseClient {
+ return original.New(subscriptionID)
+}
+func NewAPIKeyListResultIterator(page APIKeyListResultPage) APIKeyListResultIterator {
+ return original.NewAPIKeyListResultIterator(page)
+}
+func NewAPIKeyListResultPage(getNextPage func(context.Context, APIKeyListResult) (APIKeyListResult, error)) APIKeyListResultPage {
+ return original.NewAPIKeyListResultPage(getNextPage)
+}
+func NewConfigurationStoreListResultIterator(page ConfigurationStoreListResultPage) ConfigurationStoreListResultIterator {
+ return original.NewConfigurationStoreListResultIterator(page)
+}
+func NewConfigurationStoreListResultPage(getNextPage func(context.Context, ConfigurationStoreListResult) (ConfigurationStoreListResult, error)) ConfigurationStoreListResultPage {
+ return original.NewConfigurationStoreListResultPage(getNextPage)
+}
+func NewConfigurationStoresClient(subscriptionID string) ConfigurationStoresClient {
+ return original.NewConfigurationStoresClient(subscriptionID)
+}
+func NewConfigurationStoresClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationStoresClient {
+ return original.NewConfigurationStoresClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewOperationDefinitionListResultIterator(page OperationDefinitionListResultPage) OperationDefinitionListResultIterator {
+ return original.NewOperationDefinitionListResultIterator(page)
+}
+func NewOperationDefinitionListResultPage(getNextPage func(context.Context, OperationDefinitionListResult) (OperationDefinitionListResult, error)) OperationDefinitionListResultPage {
+ return original.NewOperationDefinitionListResultPage(getNextPage)
+}
+func NewOperationsClient(subscriptionID string) OperationsClient {
+ return original.NewOperationsClient(subscriptionID)
+}
+func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
+ return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
+ return original.NewWithBaseURI(baseURI, subscriptionID)
+}
+func PossibleIdentityTypeValues() []IdentityType {
+ return original.PossibleIdentityTypeValues()
+}
+func PossibleProvisioningStateValues() []ProvisioningState {
+ return original.PossibleProvisioningStateValues()
+}
+func UserAgent() string {
+ return original.UserAgent() + " profiles/preview"
+}
+func Version() string {
+ return original.Version()
+}
diff --git a/profiles/preview/cdn/mgmt/cdn/models.go b/profiles/preview/cdn/mgmt/cdn/models.go
index e191eb867583..fc8fc506a58a 100644
--- a/profiles/preview/cdn/mgmt/cdn/models.go
+++ b/profiles/preview/cdn/mgmt/cdn/models.go
@@ -52,6 +52,20 @@ const (
Shared CertificateType = original.Shared
)
+type CookiesOperator = original.CookiesOperator
+
+const (
+ Any CookiesOperator = original.Any
+ BeginsWith CookiesOperator = original.BeginsWith
+ Contains CookiesOperator = original.Contains
+ EndsWith CookiesOperator = original.EndsWith
+ Equal CookiesOperator = original.Equal
+ GreaterThan CookiesOperator = original.GreaterThan
+ GreaterThanOrEqual CookiesOperator = original.GreaterThanOrEqual
+ LessThan CookiesOperator = original.LessThan
+ LessThanOrEqual CookiesOperator = original.LessThanOrEqual
+)
+
type CustomDomainResourceState = original.CustomDomainResourceState
const (
@@ -119,10 +133,20 @@ const (
Overwrite HeaderAction = original.Overwrite
)
+type MinimumTLSVersion = original.MinimumTLSVersion
+
+const (
+ None MinimumTLSVersion = original.None
+ TLS10 MinimumTLSVersion = original.TLS10
+ TLS12 MinimumTLSVersion = original.TLS12
+)
+
type Name = original.Name
const (
+ NameCookies Name = original.NameCookies
NameDeliveryRuleCondition Name = original.NameDeliveryRuleCondition
+ NameHTTPVersion Name = original.NameHTTPVersion
NameIsDevice Name = original.NameIsDevice
NamePostArgs Name = original.NamePostArgs
NameQueryString Name = original.NameQueryString
@@ -170,15 +194,15 @@ const (
type PostArgsOperator = original.PostArgsOperator
const (
- Any PostArgsOperator = original.Any
- BeginsWith PostArgsOperator = original.BeginsWith
- Contains PostArgsOperator = original.Contains
- EndsWith PostArgsOperator = original.EndsWith
- Equal PostArgsOperator = original.Equal
- GreaterThan PostArgsOperator = original.GreaterThan
- GreaterThanOrEqual PostArgsOperator = original.GreaterThanOrEqual
- LessThan PostArgsOperator = original.LessThan
- LessThanOrEqual PostArgsOperator = original.LessThanOrEqual
+ PostArgsOperatorAny PostArgsOperator = original.PostArgsOperatorAny
+ PostArgsOperatorBeginsWith PostArgsOperator = original.PostArgsOperatorBeginsWith
+ PostArgsOperatorContains PostArgsOperator = original.PostArgsOperatorContains
+ PostArgsOperatorEndsWith PostArgsOperator = original.PostArgsOperatorEndsWith
+ PostArgsOperatorEqual PostArgsOperator = original.PostArgsOperatorEqual
+ PostArgsOperatorGreaterThan PostArgsOperator = original.PostArgsOperatorGreaterThan
+ PostArgsOperatorGreaterThanOrEqual PostArgsOperator = original.PostArgsOperatorGreaterThanOrEqual
+ PostArgsOperatorLessThan PostArgsOperator = original.PostArgsOperatorLessThan
+ PostArgsOperatorLessThanOrEqual PostArgsOperator = original.PostArgsOperatorLessThanOrEqual
)
type ProfileResourceState = original.ProfileResourceState
@@ -366,6 +390,7 @@ type CertificateSourceParameters = original.CertificateSourceParameters
type CheckNameAvailabilityInput = original.CheckNameAvailabilityInput
type CheckNameAvailabilityOutput = original.CheckNameAvailabilityOutput
type CidrIPAddress = original.CidrIPAddress
+type CookiesMatchConditionParameters = original.CookiesMatchConditionParameters
type CustomDomain = original.CustomDomain
type CustomDomainHTTPSParameters = original.CustomDomainHTTPSParameters
type CustomDomainListResult = original.CustomDomainListResult
@@ -384,6 +409,8 @@ type DeliveryRuleAction = original.DeliveryRuleAction
type DeliveryRuleCacheExpirationAction = original.DeliveryRuleCacheExpirationAction
type DeliveryRuleCacheKeyQueryStringAction = original.DeliveryRuleCacheKeyQueryStringAction
type DeliveryRuleCondition = original.DeliveryRuleCondition
+type DeliveryRuleCookiesCondition = original.DeliveryRuleCookiesCondition
+type DeliveryRuleHTTPVersionCondition = original.DeliveryRuleHTTPVersionCondition
type DeliveryRuleIsDeviceCondition = original.DeliveryRuleIsDeviceCondition
type DeliveryRulePostArgsCondition = original.DeliveryRulePostArgsCondition
type DeliveryRuleQueryStringCondition = original.DeliveryRuleQueryStringCondition
@@ -422,6 +449,7 @@ type EndpointsStopFuture = original.EndpointsStopFuture
type EndpointsUpdateFuture = original.EndpointsUpdateFuture
type ErrorResponse = original.ErrorResponse
type GeoFilter = original.GeoFilter
+type HTTPVersionMatchConditionParameters = original.HTTPVersionMatchConditionParameters
type HeaderActionParameters = original.HeaderActionParameters
type IPAddressGroup = original.IPAddressGroup
type IsDeviceMatchConditionParameters = original.IsDeviceMatchConditionParameters
@@ -585,6 +613,9 @@ func PossibleCertificateSourceValues() []CertificateSource {
func PossibleCertificateTypeValues() []CertificateType {
return original.PossibleCertificateTypeValues()
}
+func PossibleCookiesOperatorValues() []CookiesOperator {
+ return original.PossibleCookiesOperatorValues()
+}
func PossibleCustomDomainResourceStateValues() []CustomDomainResourceState {
return original.PossibleCustomDomainResourceStateValues()
}
@@ -606,6 +637,9 @@ func PossibleGeoFilterActionsValues() []GeoFilterActions {
func PossibleHeaderActionValues() []HeaderAction {
return original.PossibleHeaderActionValues()
}
+func PossibleMinimumTLSVersionValues() []MinimumTLSVersion {
+ return original.PossibleMinimumTLSVersionValues()
+}
func PossibleNameBasicDeliveryRuleActionValues() []NameBasicDeliveryRuleAction {
return original.PossibleNameBasicDeliveryRuleActionValues()
}
diff --git a/profiles/preview/cognitiveservices/customvision/training/models.go b/profiles/preview/cognitiveservices/customvision/training/models.go
index 0a946d6d605e..70ecd6121043 100644
--- a/profiles/preview/cognitiveservices/customvision/training/models.go
+++ b/profiles/preview/cognitiveservices/customvision/training/models.go
@@ -19,7 +19,7 @@
package training
-import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.0/customvision/training"
+import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.1/customvision/training"
type Classifier = original.Classifier
@@ -78,6 +78,7 @@ const (
BadRequestPredictionResultsExceededCount CustomVisionErrorCodes = original.BadRequestPredictionResultsExceededCount
BadRequestPredictionTagsExceededCount CustomVisionErrorCodes = original.BadRequestPredictionTagsExceededCount
BadRequestProjectDescription CustomVisionErrorCodes = original.BadRequestProjectDescription
+ BadRequestProjectImagePreprocessingSettings CustomVisionErrorCodes = original.BadRequestProjectImagePreprocessingSettings
BadRequestProjectName CustomVisionErrorCodes = original.BadRequestProjectName
BadRequestProjectNameNotUnique CustomVisionErrorCodes = original.BadRequestProjectNameNotUnique
BadRequestProjectUnknownClassification CustomVisionErrorCodes = original.BadRequestProjectUnknownClassification
@@ -156,11 +157,13 @@ const (
type ExportFlavor = original.ExportFlavor
const (
- ARM ExportFlavor = original.ARM
- Linux ExportFlavor = original.Linux
- ONNX10 ExportFlavor = original.ONNX10
- ONNX12 ExportFlavor = original.ONNX12
- Windows ExportFlavor = original.Windows
+ ARM ExportFlavor = original.ARM
+ Linux ExportFlavor = original.Linux
+ ONNX10 ExportFlavor = original.ONNX10
+ ONNX12 ExportFlavor = original.ONNX12
+ TensorFlowLite ExportFlavor = original.TensorFlowLite
+ TensorFlowNormal ExportFlavor = original.TensorFlowNormal
+ Windows ExportFlavor = original.Windows
)
type ExportPlatform = original.ExportPlatform
@@ -205,6 +208,13 @@ const (
Suggested OrderBy = original.Suggested
)
+type SortBy = original.SortBy
+
+const (
+ UncertaintyAscending SortBy = original.UncertaintyAscending
+ UncertaintyDescending SortBy = original.UncertaintyDescending
+)
+
type TagType = original.TagType
const (
@@ -234,6 +244,7 @@ type ImageIDCreateBatch = original.ImageIDCreateBatch
type ImageIDCreateEntry = original.ImageIDCreateEntry
type ImagePerformance = original.ImagePerformance
type ImagePrediction = original.ImagePrediction
+type ImageProcessingSettings = original.ImageProcessingSettings
type ImageRegion = original.ImageRegion
type ImageRegionCreateBatch = original.ImageRegionCreateBatch
type ImageRegionCreateEntry = original.ImageRegionCreateEntry
@@ -256,6 +267,7 @@ type ListImage = original.ListImage
type ListImagePerformance = original.ListImagePerformance
type ListIteration = original.ListIteration
type ListProject = original.ListProject
+type ListSuggestedTagAndRegion = original.ListSuggestedTagAndRegion
type ListTag = original.ListTag
type Prediction = original.Prediction
type PredictionQueryResult = original.PredictionQueryResult
@@ -265,8 +277,14 @@ type Project = original.Project
type ProjectSettings = original.ProjectSettings
type Region = original.Region
type RegionProposal = original.RegionProposal
+type SetInt32 = original.SetInt32
type StoredImagePrediction = original.StoredImagePrediction
+type StoredSuggestedTagAndRegion = original.StoredSuggestedTagAndRegion
+type SuggestedTagAndRegion = original.SuggestedTagAndRegion
+type SuggestedTagAndRegionQuery = original.SuggestedTagAndRegionQuery
+type SuggestedTagAndRegionQueryToken = original.SuggestedTagAndRegionQueryToken
type Tag = original.Tag
+type TagFilter = original.TagFilter
type TagPerformance = original.TagPerformance
func New(aPIKey string, endpoint string) BaseClient {
@@ -299,6 +317,9 @@ func PossibleImageCreateStatusValues() []ImageCreateStatus {
func PossibleOrderByValues() []OrderBy {
return original.PossibleOrderByValues()
}
+func PossibleSortByValues() []SortBy {
+ return original.PossibleSortByValues()
+}
func PossibleTagTypeValues() []TagType {
return original.PossibleTagTypeValues()
}
diff --git a/profiles/preview/cognitiveservices/customvision/training/trainingapi/models.go b/profiles/preview/cognitiveservices/customvision/training/trainingapi/models.go
index 0444526d782d..58513bb4fcd7 100644
--- a/profiles/preview/cognitiveservices/customvision/training/trainingapi/models.go
+++ b/profiles/preview/cognitiveservices/customvision/training/trainingapi/models.go
@@ -19,6 +19,6 @@
package trainingapi
-import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.0/customvision/training/trainingapi"
+import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.1/customvision/training/trainingapi"
type BaseClientAPI = original.BaseClientAPI
diff --git a/profiles/preview/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go b/profiles/preview/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go
index f580fe74d7bd..42eca8c78f11 100644
--- a/profiles/preview/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go
+++ b/profiles/preview/cognitiveservices/mgmt/cognitiveservices/cognitiveservicesapi/models.go
@@ -23,6 +23,5 @@ import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mg
type AccountsClientAPI = original.AccountsClientAPI
type BaseClientAPI = original.BaseClientAPI
-type CheckSkuAvailabilityClientAPI = original.CheckSkuAvailabilityClientAPI
type OperationsClientAPI = original.OperationsClientAPI
type ResourceSkusClientAPI = original.ResourceSkusClientAPI
diff --git a/profiles/preview/cognitiveservices/mgmt/cognitiveservices/models.go b/profiles/preview/cognitiveservices/mgmt/cognitiveservices/models.go
index 31482a83c503..14ca297ee24f 100644
--- a/profiles/preview/cognitiveservices/mgmt/cognitiveservices/models.go
+++ b/profiles/preview/cognitiveservices/mgmt/cognitiveservices/models.go
@@ -43,13 +43,6 @@ const (
Deny NetworkRuleAction = original.Deny
)
-type NetworkRuleBypassOptions = original.NetworkRuleBypassOptions
-
-const (
- AzureServices NetworkRuleBypassOptions = original.AzureServices
- None NetworkRuleBypassOptions = original.None
-)
-
type ProvisioningState = original.ProvisioningState
const (
@@ -105,19 +98,17 @@ const (
)
type Account = original.Account
-type AccountCreateParameters = original.AccountCreateParameters
+type AccountAPIProperties = original.AccountAPIProperties
type AccountEnumerateSkusResult = original.AccountEnumerateSkusResult
type AccountKeys = original.AccountKeys
type AccountListResult = original.AccountListResult
type AccountListResultIterator = original.AccountListResultIterator
type AccountListResultPage = original.AccountListResultPage
type AccountProperties = original.AccountProperties
-type AccountUpdateParameters = original.AccountUpdateParameters
type AccountsClient = original.AccountsClient
type BaseClient = original.BaseClient
type CheckDomainAvailabilityParameter = original.CheckDomainAvailabilityParameter
type CheckDomainAvailabilityResult = original.CheckDomainAvailabilityResult
-type CheckSkuAvailabilityClient = original.CheckSkuAvailabilityClient
type CheckSkuAvailabilityParameter = original.CheckSkuAvailabilityParameter
type CheckSkuAvailabilityResult = original.CheckSkuAvailabilityResult
type CheckSkuAvailabilityResultList = original.CheckSkuAvailabilityResultList
@@ -161,12 +152,6 @@ func NewAccountsClient(subscriptionID string) AccountsClient {
func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) AccountsClient {
return original.NewAccountsClientWithBaseURI(baseURI, subscriptionID)
}
-func NewCheckSkuAvailabilityClient(subscriptionID string) CheckSkuAvailabilityClient {
- return original.NewCheckSkuAvailabilityClient(subscriptionID)
-}
-func NewCheckSkuAvailabilityClientWithBaseURI(baseURI string, subscriptionID string) CheckSkuAvailabilityClient {
- return original.NewCheckSkuAvailabilityClientWithBaseURI(baseURI, subscriptionID)
-}
func NewOperationEntityListResultIterator(page OperationEntityListResultPage) OperationEntityListResultIterator {
return original.NewOperationEntityListResultIterator(page)
}
@@ -200,9 +185,6 @@ func PossibleKeyNameValues() []KeyName {
func PossibleNetworkRuleActionValues() []NetworkRuleAction {
return original.PossibleNetworkRuleActionValues()
}
-func PossibleNetworkRuleBypassOptionsValues() []NetworkRuleBypassOptions {
- return original.PossibleNetworkRuleBypassOptionsValues()
-}
func PossibleProvisioningStateValues() []ProvisioningState {
return original.PossibleProvisioningStateValues()
}
diff --git a/profiles/preview/compute/mgmt/compute/computeapi/models.go b/profiles/preview/compute/mgmt/compute/computeapi/models.go
index dcae23d3b907..680673b3d51e 100644
--- a/profiles/preview/compute/mgmt/compute/computeapi/models.go
+++ b/profiles/preview/compute/mgmt/compute/computeapi/models.go
@@ -25,6 +25,7 @@ type AvailabilitySetsClientAPI = original.AvailabilitySetsClientAPI
type ContainerServicesClientAPI = original.ContainerServicesClientAPI
type DedicatedHostGroupsClientAPI = original.DedicatedHostGroupsClientAPI
type DedicatedHostsClientAPI = original.DedicatedHostsClientAPI
+type DiskEncryptionSetsClientAPI = original.DiskEncryptionSetsClientAPI
type DisksClientAPI = original.DisksClientAPI
type GalleriesClientAPI = original.GalleriesClientAPI
type GalleryApplicationVersionsClientAPI = original.GalleryApplicationVersionsClientAPI
@@ -44,6 +45,7 @@ type VirtualMachineImagesClientAPI = original.VirtualMachineImagesClientAPI
type VirtualMachineRunCommandsClientAPI = original.VirtualMachineRunCommandsClientAPI
type VirtualMachineScaleSetExtensionsClientAPI = original.VirtualMachineScaleSetExtensionsClientAPI
type VirtualMachineScaleSetRollingUpgradesClientAPI = original.VirtualMachineScaleSetRollingUpgradesClientAPI
+type VirtualMachineScaleSetVMExtensionsClientAPI = original.VirtualMachineScaleSetVMExtensionsClientAPI
type VirtualMachineScaleSetVMsClientAPI = original.VirtualMachineScaleSetVMsClientAPI
type VirtualMachineScaleSetsClientAPI = original.VirtualMachineScaleSetsClientAPI
type VirtualMachineSizesClientAPI = original.VirtualMachineSizesClientAPI
diff --git a/profiles/preview/compute/mgmt/compute/models.go b/profiles/preview/compute/mgmt/compute/models.go
index 0eb12de56c1f..5c8d68562042 100644
--- a/profiles/preview/compute/mgmt/compute/models.go
+++ b/profiles/preview/compute/mgmt/compute/models.go
@@ -162,6 +162,12 @@ const (
DiskCreateOptionTypesFromImage DiskCreateOptionTypes = original.DiskCreateOptionTypesFromImage
)
+type DiskEncryptionSetIdentityType = original.DiskEncryptionSetIdentityType
+
+const (
+ SystemAssigned DiskEncryptionSetIdentityType = original.SystemAssigned
+)
+
type DiskState = original.DiskState
const (
@@ -182,6 +188,13 @@ const (
UltraSSDLRS DiskStorageAccountTypes = original.UltraSSDLRS
)
+type EncryptionType = original.EncryptionType
+
+const (
+ EncryptionAtRestWithCustomerKey EncryptionType = original.EncryptionAtRestWithCustomerKey
+ EncryptionAtRestWithPlatformKey EncryptionType = original.EncryptionAtRestWithPlatformKey
+)
+
type HostCaching = original.HostCaching
const (
@@ -654,6 +667,7 @@ type AdditionalCapabilities = original.AdditionalCapabilities
type AdditionalUnattendContent = original.AdditionalUnattendContent
type AutomaticOSUpgradePolicy = original.AutomaticOSUpgradePolicy
type AutomaticOSUpgradeProperties = original.AutomaticOSUpgradeProperties
+type AutomaticRepairsPolicy = original.AutomaticRepairsPolicy
type AvailabilitySet = original.AvailabilitySet
type AvailabilitySetListResult = original.AvailabilitySetListResult
type AvailabilitySetListResultIterator = original.AvailabilitySetListResultIterator
@@ -712,6 +726,17 @@ type DiagnosticsProfile = original.DiagnosticsProfile
type DiffDiskSettings = original.DiffDiskSettings
type Disallowed = original.Disallowed
type Disk = original.Disk
+type DiskEncryptionSet = original.DiskEncryptionSet
+type DiskEncryptionSetList = original.DiskEncryptionSetList
+type DiskEncryptionSetListIterator = original.DiskEncryptionSetListIterator
+type DiskEncryptionSetListPage = original.DiskEncryptionSetListPage
+type DiskEncryptionSetParameters = original.DiskEncryptionSetParameters
+type DiskEncryptionSetUpdate = original.DiskEncryptionSetUpdate
+type DiskEncryptionSetUpdateProperties = original.DiskEncryptionSetUpdateProperties
+type DiskEncryptionSetsClient = original.DiskEncryptionSetsClient
+type DiskEncryptionSetsCreateOrUpdateFuture = original.DiskEncryptionSetsCreateOrUpdateFuture
+type DiskEncryptionSetsDeleteFuture = original.DiskEncryptionSetsDeleteFuture
+type DiskEncryptionSetsUpdateFuture = original.DiskEncryptionSetsUpdateFuture
type DiskEncryptionSettings = original.DiskEncryptionSettings
type DiskInstanceView = original.DiskInstanceView
type DiskList = original.DiskList
@@ -727,6 +752,9 @@ type DisksDeleteFuture = original.DisksDeleteFuture
type DisksGrantAccessFuture = original.DisksGrantAccessFuture
type DisksRevokeAccessFuture = original.DisksRevokeAccessFuture
type DisksUpdateFuture = original.DisksUpdateFuture
+type Encryption = original.Encryption
+type EncryptionSetIdentity = original.EncryptionSetIdentity
+type EncryptionSetProperties = original.EncryptionSetProperties
type EncryptionSettingsCollection = original.EncryptionSettingsCollection
type EncryptionSettingsElement = original.EncryptionSettingsElement
type GalleriesClient = original.GalleriesClient
@@ -784,6 +812,7 @@ type GrantAccessData = original.GrantAccessData
type HardwareProfile = original.HardwareProfile
type Image = original.Image
type ImageDataDisk = original.ImageDataDisk
+type ImageDisk = original.ImageDisk
type ImageDiskReference = original.ImageDiskReference
type ImageListResult = original.ImageListResult
type ImageListResultIterator = original.ImageListResultIterator
@@ -1006,7 +1035,11 @@ type VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties = origin
type VirtualMachineScaleSetUpdateStorageProfile = original.VirtualMachineScaleSetUpdateStorageProfile
type VirtualMachineScaleSetUpdateVMProfile = original.VirtualMachineScaleSetUpdateVMProfile
type VirtualMachineScaleSetVM = original.VirtualMachineScaleSetVM
+type VirtualMachineScaleSetVMExtensionsClient = original.VirtualMachineScaleSetVMExtensionsClient
+type VirtualMachineScaleSetVMExtensionsCreateOrUpdateFuture = original.VirtualMachineScaleSetVMExtensionsCreateOrUpdateFuture
+type VirtualMachineScaleSetVMExtensionsDeleteFuture = original.VirtualMachineScaleSetVMExtensionsDeleteFuture
type VirtualMachineScaleSetVMExtensionsSummary = original.VirtualMachineScaleSetVMExtensionsSummary
+type VirtualMachineScaleSetVMExtensionsUpdateFuture = original.VirtualMachineScaleSetVMExtensionsUpdateFuture
type VirtualMachineScaleSetVMInstanceIDs = original.VirtualMachineScaleSetVMInstanceIDs
type VirtualMachineScaleSetVMInstanceRequiredIDs = original.VirtualMachineScaleSetVMInstanceRequiredIDs
type VirtualMachineScaleSetVMInstanceView = original.VirtualMachineScaleSetVMInstanceView
@@ -1057,6 +1090,7 @@ type VirtualMachinesDeallocateFuture = original.VirtualMachinesDeallocateFuture
type VirtualMachinesDeleteFuture = original.VirtualMachinesDeleteFuture
type VirtualMachinesPerformMaintenanceFuture = original.VirtualMachinesPerformMaintenanceFuture
type VirtualMachinesPowerOffFuture = original.VirtualMachinesPowerOffFuture
+type VirtualMachinesReapplyFuture = original.VirtualMachinesReapplyFuture
type VirtualMachinesRedeployFuture = original.VirtualMachinesRedeployFuture
type VirtualMachinesReimageFuture = original.VirtualMachinesReimageFuture
type VirtualMachinesRestartFuture = original.VirtualMachinesRestartFuture
@@ -1118,6 +1152,18 @@ func NewDedicatedHostsClient(subscriptionID string) DedicatedHostsClient {
func NewDedicatedHostsClientWithBaseURI(baseURI string, subscriptionID string) DedicatedHostsClient {
return original.NewDedicatedHostsClientWithBaseURI(baseURI, subscriptionID)
}
+func NewDiskEncryptionSetListIterator(page DiskEncryptionSetListPage) DiskEncryptionSetListIterator {
+ return original.NewDiskEncryptionSetListIterator(page)
+}
+func NewDiskEncryptionSetListPage(getNextPage func(context.Context, DiskEncryptionSetList) (DiskEncryptionSetList, error)) DiskEncryptionSetListPage {
+ return original.NewDiskEncryptionSetListPage(getNextPage)
+}
+func NewDiskEncryptionSetsClient(subscriptionID string) DiskEncryptionSetsClient {
+ return original.NewDiskEncryptionSetsClient(subscriptionID)
+}
+func NewDiskEncryptionSetsClientWithBaseURI(baseURI string, subscriptionID string) DiskEncryptionSetsClient {
+ return original.NewDiskEncryptionSetsClientWithBaseURI(baseURI, subscriptionID)
+}
func NewDiskListIterator(page DiskListPage) DiskListIterator {
return original.NewDiskListIterator(page)
}
@@ -1340,6 +1386,12 @@ func NewVirtualMachineScaleSetRollingUpgradesClient(subscriptionID string) Virtu
func NewVirtualMachineScaleSetRollingUpgradesClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineScaleSetRollingUpgradesClient {
return original.NewVirtualMachineScaleSetRollingUpgradesClientWithBaseURI(baseURI, subscriptionID)
}
+func NewVirtualMachineScaleSetVMExtensionsClient(subscriptionID string) VirtualMachineScaleSetVMExtensionsClient {
+ return original.NewVirtualMachineScaleSetVMExtensionsClient(subscriptionID)
+}
+func NewVirtualMachineScaleSetVMExtensionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineScaleSetVMExtensionsClient {
+ return original.NewVirtualMachineScaleSetVMExtensionsClientWithBaseURI(baseURI, subscriptionID)
+}
func NewVirtualMachineScaleSetVMListResultIterator(page VirtualMachineScaleSetVMListResultPage) VirtualMachineScaleSetVMListResultIterator {
return original.NewVirtualMachineScaleSetVMListResultIterator(page)
}
@@ -1406,12 +1458,18 @@ func PossibleDiskCreateOptionTypesValues() []DiskCreateOptionTypes {
func PossibleDiskCreateOptionValues() []DiskCreateOption {
return original.PossibleDiskCreateOptionValues()
}
+func PossibleDiskEncryptionSetIdentityTypeValues() []DiskEncryptionSetIdentityType {
+ return original.PossibleDiskEncryptionSetIdentityTypeValues()
+}
func PossibleDiskStateValues() []DiskState {
return original.PossibleDiskStateValues()
}
func PossibleDiskStorageAccountTypesValues() []DiskStorageAccountTypes {
return original.PossibleDiskStorageAccountTypesValues()
}
+func PossibleEncryptionTypeValues() []EncryptionType {
+ return original.PossibleEncryptionTypeValues()
+}
func PossibleHostCachingValues() []HostCaching {
return original.PossibleHostCachingValues()
}
diff --git a/profiles/preview/containerservice/mgmt/containerservice/containerserviceapi/models.go b/profiles/preview/containerservice/mgmt/containerservice/containerserviceapi/models.go
index 2529a9c3888f..2d91c94f8fdd 100644
--- a/profiles/preview/containerservice/mgmt/containerservice/containerserviceapi/models.go
+++ b/profiles/preview/containerservice/mgmt/containerservice/containerserviceapi/models.go
@@ -19,7 +19,7 @@
package containerserviceapi
-import original "github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-08-01/containerservice/containerserviceapi"
+import original "github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-10-01/containerservice/containerserviceapi"
type AgentPoolsClientAPI = original.AgentPoolsClientAPI
type ContainerServicesClientAPI = original.ContainerServicesClientAPI
diff --git a/profiles/preview/containerservice/mgmt/containerservice/models.go b/profiles/preview/containerservice/mgmt/containerservice/models.go
index eb51fbccee19..c5f30d22039d 100644
--- a/profiles/preview/containerservice/mgmt/containerservice/models.go
+++ b/profiles/preview/containerservice/mgmt/containerservice/models.go
@@ -22,7 +22,7 @@ package containerservice
import (
"context"
- original "github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-08-01/containerservice"
+ original "github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-10-01/containerservice"
)
const (
@@ -392,6 +392,7 @@ type ManagedClustersCreateOrUpdateFuture = original.ManagedClustersCreateOrUpdat
type ManagedClustersDeleteFuture = original.ManagedClustersDeleteFuture
type ManagedClustersResetAADProfileFuture = original.ManagedClustersResetAADProfileFuture
type ManagedClustersResetServicePrincipalProfileFuture = original.ManagedClustersResetServicePrincipalProfileFuture
+type ManagedClustersRotateClusterCertificatesFuture = original.ManagedClustersRotateClusterCertificatesFuture
type ManagedClustersUpdateTagsFuture = original.ManagedClustersUpdateTagsFuture
type MasterProfile = original.MasterProfile
type NetworkProfile = original.NetworkProfile
diff --git a/profiles/preview/costmanagement/mgmt/costmanagement/costmanagementapi/models.go b/profiles/preview/costmanagement/mgmt/costmanagement/costmanagementapi/models.go
index 9e5866aad71b..f8a485d17abf 100644
--- a/profiles/preview/costmanagement/mgmt/costmanagement/costmanagementapi/models.go
+++ b/profiles/preview/costmanagement/mgmt/costmanagement/costmanagementapi/models.go
@@ -19,7 +19,7 @@
package costmanagementapi
-import original "github.com/Azure/azure-sdk-for-go/services/costmanagement/mgmt/2019-01-01/costmanagement/costmanagementapi"
+import original "github.com/Azure/azure-sdk-for-go/services/costmanagement/mgmt/2019-10-01/costmanagement/costmanagementapi"
type DimensionsClientAPI = original.DimensionsClientAPI
type ExportsClientAPI = original.ExportsClientAPI
diff --git a/profiles/preview/costmanagement/mgmt/costmanagement/models.go b/profiles/preview/costmanagement/mgmt/costmanagement/models.go
index 0d0356654726..9c34b91e1c1d 100644
--- a/profiles/preview/costmanagement/mgmt/costmanagement/models.go
+++ b/profiles/preview/costmanagement/mgmt/costmanagement/models.go
@@ -22,7 +22,7 @@ package costmanagement
import (
"context"
- original "github.com/Azure/azure-sdk-for-go/services/costmanagement/mgmt/2019-01-01/costmanagement"
+ original "github.com/Azure/azure-sdk-for-go/services/costmanagement/mgmt/2019-10-01/costmanagement"
)
const (
@@ -94,15 +94,13 @@ const (
type TimeframeType = original.TimeframeType
const (
- BillingMonthToDate TimeframeType = original.BillingMonthToDate
- Custom TimeframeType = original.Custom
- MonthToDate TimeframeType = original.MonthToDate
- TheLastBillingMonth TimeframeType = original.TheLastBillingMonth
- TheLastMonth TimeframeType = original.TheLastMonth
- TheLastWeek TimeframeType = original.TheLastWeek
- TheLastYear TimeframeType = original.TheLastYear
- WeekToDate TimeframeType = original.WeekToDate
- YearToDate TimeframeType = original.YearToDate
+ Custom TimeframeType = original.Custom
+ MonthToDate TimeframeType = original.MonthToDate
+ TheLastMonth TimeframeType = original.TheLastMonth
+ TheLastWeek TimeframeType = original.TheLastWeek
+ TheLastYear TimeframeType = original.TheLastYear
+ WeekToDate TimeframeType = original.WeekToDate
+ YearToDate TimeframeType = original.YearToDate
)
type BaseClient = original.BaseClient
@@ -130,7 +128,6 @@ type OperationListResult = original.OperationListResult
type OperationListResultIterator = original.OperationListResultIterator
type OperationListResultPage = original.OperationListResultPage
type OperationsClient = original.OperationsClient
-type Query = original.Query
type QueryAggregation = original.QueryAggregation
type QueryClient = original.QueryClient
type QueryColumn = original.QueryColumn
diff --git a/profiles/preview/datafactory/mgmt/datafactory/models.go b/profiles/preview/datafactory/mgmt/datafactory/models.go
index fd2334ff249f..49ed031c0d23 100644
--- a/profiles/preview/datafactory/mgmt/datafactory/models.go
+++ b/profiles/preview/datafactory/mgmt/datafactory/models.go
@@ -155,8 +155,9 @@ const (
type DynamicsAuthenticationType = original.DynamicsAuthenticationType
const (
- Ifd DynamicsAuthenticationType = original.Ifd
- Office365 DynamicsAuthenticationType = original.Office365
+ AADServicePrincipal DynamicsAuthenticationType = original.AADServicePrincipal
+ Ifd DynamicsAuthenticationType = original.Ifd
+ Office365 DynamicsAuthenticationType = original.Office365
)
type DynamicsDeploymentType = original.DynamicsDeploymentType
@@ -393,6 +394,14 @@ const (
OraclePartitionOptionPhysicalPartitionsOfTable OraclePartitionOption = original.OraclePartitionOptionPhysicalPartitionsOfTable
)
+type OrcCompressionCodec = original.OrcCompressionCodec
+
+const (
+ OrcCompressionCodecNone OrcCompressionCodec = original.OrcCompressionCodecNone
+ OrcCompressionCodecSnappy OrcCompressionCodec = original.OrcCompressionCodecSnappy
+ OrcCompressionCodecZlib OrcCompressionCodec = original.OrcCompressionCodecZlib
+)
+
type ParameterType = original.ParameterType
const (
@@ -674,6 +683,7 @@ const (
TypeAzureDataExplorerCommand TypeBasicActivity = original.TypeAzureDataExplorerCommand
TypeAzureFunctionActivity TypeBasicActivity = original.TypeAzureFunctionActivity
TypeAzureMLBatchExecution TypeBasicActivity = original.TypeAzureMLBatchExecution
+ TypeAzureMLExecutePipeline TypeBasicActivity = original.TypeAzureMLExecutePipeline
TypeAzureMLUpdateResource TypeBasicActivity = original.TypeAzureMLUpdateResource
TypeContainer TypeBasicActivity = original.TypeContainer
TypeCopy TypeBasicActivity = original.TypeCopy
@@ -699,6 +709,7 @@ const (
TypeLookup TypeBasicActivity = original.TypeLookup
TypeSetVariable TypeBasicActivity = original.TypeSetVariable
TypeSQLServerStoredProcedure TypeBasicActivity = original.TypeSQLServerStoredProcedure
+ TypeSwitch TypeBasicActivity = original.TypeSwitch
TypeUntil TypeBasicActivity = original.TypeUntil
TypeValidation TypeBasicActivity = original.TypeValidation
TypeWait TypeBasicActivity = original.TypeWait
@@ -1015,10 +1026,12 @@ const (
TypeAzureDataExplorer TypeBasicLinkedService = original.TypeAzureDataExplorer
TypeAzureDataLakeAnalytics TypeBasicLinkedService = original.TypeAzureDataLakeAnalytics
TypeAzureDataLakeStore TypeBasicLinkedService = original.TypeAzureDataLakeStore
+ TypeAzureFileStorage TypeBasicLinkedService = original.TypeAzureFileStorage
TypeAzureFunction TypeBasicLinkedService = original.TypeAzureFunction
TypeAzureKeyVault TypeBasicLinkedService = original.TypeAzureKeyVault
TypeAzureMariaDB TypeBasicLinkedService = original.TypeAzureMariaDB
TypeAzureML TypeBasicLinkedService = original.TypeAzureML
+ TypeAzureMLService TypeBasicLinkedService = original.TypeAzureMLService
TypeAzureMySQL TypeBasicLinkedService = original.TypeAzureMySQL
TypeAzurePostgreSQL TypeBasicLinkedService = original.TypeAzurePostgreSQL
TypeAzureSearch TypeBasicLinkedService = original.TypeAzureSearch
@@ -1044,6 +1057,7 @@ const (
TypeFtpServer TypeBasicLinkedService = original.TypeFtpServer
TypeGoogleAdWords TypeBasicLinkedService = original.TypeGoogleAdWords
TypeGoogleBigQuery TypeBasicLinkedService = original.TypeGoogleBigQuery
+ TypeGoogleCloudStorage TypeBasicLinkedService = original.TypeGoogleCloudStorage
TypeGreenplum TypeBasicLinkedService = original.TypeGreenplum
TypeHBase TypeBasicLinkedService = original.TypeHBase
TypeHdfs TypeBasicLinkedService = original.TypeHdfs
@@ -1225,6 +1239,10 @@ type AzureDataLakeStoreSource = original.AzureDataLakeStoreSource
type AzureDataLakeStoreWriteSettings = original.AzureDataLakeStoreWriteSettings
type AzureDatabricksLinkedService = original.AzureDatabricksLinkedService
type AzureDatabricksLinkedServiceTypeProperties = original.AzureDatabricksLinkedServiceTypeProperties
+type AzureFileStorageLinkedService = original.AzureFileStorageLinkedService
+type AzureFileStorageLinkedServiceTypeProperties = original.AzureFileStorageLinkedServiceTypeProperties
+type AzureFileStorageLocation = original.AzureFileStorageLocation
+type AzureFileStorageReadSettings = original.AzureFileStorageReadSettings
type AzureFunctionActivity = original.AzureFunctionActivity
type AzureFunctionActivityTypeProperties = original.AzureFunctionActivityTypeProperties
type AzureFunctionLinkedService = original.AzureFunctionLinkedService
@@ -1234,8 +1252,12 @@ type AzureKeyVaultLinkedServiceTypeProperties = original.AzureKeyVaultLinkedServ
type AzureKeyVaultSecretReference = original.AzureKeyVaultSecretReference
type AzureMLBatchExecutionActivity = original.AzureMLBatchExecutionActivity
type AzureMLBatchExecutionActivityTypeProperties = original.AzureMLBatchExecutionActivityTypeProperties
+type AzureMLExecutePipelineActivity = original.AzureMLExecutePipelineActivity
+type AzureMLExecutePipelineActivityTypeProperties = original.AzureMLExecutePipelineActivityTypeProperties
type AzureMLLinkedService = original.AzureMLLinkedService
type AzureMLLinkedServiceTypeProperties = original.AzureMLLinkedServiceTypeProperties
+type AzureMLServiceLinkedService = original.AzureMLServiceLinkedService
+type AzureMLServiceLinkedServiceTypeProperties = original.AzureMLServiceLinkedServiceTypeProperties
type AzureMLUpdateResourceActivity = original.AzureMLUpdateResourceActivity
type AzureMLUpdateResourceActivityTypeProperties = original.AzureMLUpdateResourceActivityTypeProperties
type AzureMLWebServiceFile = original.AzureMLWebServiceFile
@@ -1376,6 +1398,7 @@ type DataFlowDebugCommandRequest = original.DataFlowDebugCommandRequest
type DataFlowDebugCommandResponse = original.DataFlowDebugCommandResponse
type DataFlowDebugPackage = original.DataFlowDebugPackage
type DataFlowDebugPackageDebugSettings = original.DataFlowDebugPackageDebugSettings
+type DataFlowDebugResource = original.DataFlowDebugResource
type DataFlowDebugSessionClient = original.DataFlowDebugSessionClient
type DataFlowDebugSessionCreateFuture = original.DataFlowDebugSessionCreateFuture
type DataFlowDebugSessionExecuteCommandFuture = original.DataFlowDebugSessionExecuteCommandFuture
@@ -1402,6 +1425,7 @@ type DatabricksSparkPythonActivityTypeProperties = original.DatabricksSparkPytho
type Dataset = original.Dataset
type DatasetBZip2Compression = original.DatasetBZip2Compression
type DatasetCompression = original.DatasetCompression
+type DatasetDebugResource = original.DatasetDebugResource
type DatasetDeflateCompression = original.DatasetDeflateCompression
type DatasetFolder = original.DatasetFolder
type DatasetGZipCompression = original.DatasetGZipCompression
@@ -1521,6 +1545,10 @@ type GoogleBigQueryLinkedService = original.GoogleBigQueryLinkedService
type GoogleBigQueryLinkedServiceTypeProperties = original.GoogleBigQueryLinkedServiceTypeProperties
type GoogleBigQueryObjectDataset = original.GoogleBigQueryObjectDataset
type GoogleBigQuerySource = original.GoogleBigQuerySource
+type GoogleCloudStorageLinkedService = original.GoogleCloudStorageLinkedService
+type GoogleCloudStorageLinkedServiceTypeProperties = original.GoogleCloudStorageLinkedServiceTypeProperties
+type GoogleCloudStorageLocation = original.GoogleCloudStorageLocation
+type GoogleCloudStorageReadSettings = original.GoogleCloudStorageReadSettings
type GreenplumDatasetTypeProperties = original.GreenplumDatasetTypeProperties
type GreenplumLinkedService = original.GreenplumLinkedService
type GreenplumLinkedServiceTypeProperties = original.GreenplumLinkedServiceTypeProperties
@@ -1585,6 +1613,7 @@ type IntegrationRuntimeConnectionInfo = original.IntegrationRuntimeConnectionInf
type IntegrationRuntimeCustomSetupScriptProperties = original.IntegrationRuntimeCustomSetupScriptProperties
type IntegrationRuntimeDataFlowProperties = original.IntegrationRuntimeDataFlowProperties
type IntegrationRuntimeDataProxyProperties = original.IntegrationRuntimeDataProxyProperties
+type IntegrationRuntimeDebugResource = original.IntegrationRuntimeDebugResource
type IntegrationRuntimeListResponse = original.IntegrationRuntimeListResponse
type IntegrationRuntimeListResponseIterator = original.IntegrationRuntimeListResponseIterator
type IntegrationRuntimeListResponsePage = original.IntegrationRuntimeListResponsePage
@@ -1623,6 +1652,7 @@ type LinkedIntegrationRuntimeRbacAuthorization = original.LinkedIntegrationRunti
type LinkedIntegrationRuntimeRequest = original.LinkedIntegrationRuntimeRequest
type LinkedIntegrationRuntimeType = original.LinkedIntegrationRuntimeType
type LinkedService = original.LinkedService
+type LinkedServiceDebugResource = original.LinkedServiceDebugResource
type LinkedServiceListResponse = original.LinkedServiceListResponse
type LinkedServiceListResponseIterator = original.LinkedServiceListResponseIterator
type LinkedServiceListResponsePage = original.LinkedServiceListResponsePage
@@ -1922,6 +1952,10 @@ type StoreReadSettings = original.StoreReadSettings
type StoreWriteSettings = original.StoreWriteSettings
type StoredProcedureParameter = original.StoredProcedureParameter
type SubResource = original.SubResource
+type SubResourceDebugResource = original.SubResourceDebugResource
+type SwitchActivity = original.SwitchActivity
+type SwitchActivityTypeProperties = original.SwitchActivityTypeProperties
+type SwitchCase = original.SwitchCase
type SybaseLinkedService = original.SybaseLinkedService
type SybaseLinkedServiceTypeProperties = original.SybaseLinkedServiceTypeProperties
type SybaseSource = original.SybaseSource
@@ -2285,6 +2319,9 @@ func PossibleODataAuthenticationTypeValues() []ODataAuthenticationType {
func PossibleOraclePartitionOptionValues() []OraclePartitionOption {
return original.PossibleOraclePartitionOptionValues()
}
+func PossibleOrcCompressionCodecValues() []OrcCompressionCodec {
+ return original.PossibleOrcCompressionCodecValues()
+}
func PossibleParameterTypeValues() []ParameterType {
return original.PossibleParameterTypeValues()
}
diff --git a/profiles/preview/datashare/mgmt/datashare/datashareapi/models.go b/profiles/preview/datashare/mgmt/datashare/datashareapi/models.go
new file mode 100644
index 000000000000..9f24dd90d35d
--- /dev/null
+++ b/profiles/preview/datashare/mgmt/datashare/datashareapi/models.go
@@ -0,0 +1,35 @@
+// +build go1.9
+
+// Copyright 2019 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 datashareapi
+
+import original "github.com/Azure/azure-sdk-for-go/services/datashare/mgmt/2019-11-01/datashare/datashareapi"
+
+type AccountsClientAPI = original.AccountsClientAPI
+type ConsumerInvitationsClientAPI = original.ConsumerInvitationsClientAPI
+type ConsumerSourceDataSetsClientAPI = original.ConsumerSourceDataSetsClientAPI
+type DataSetMappingsClientAPI = original.DataSetMappingsClientAPI
+type DataSetsClientAPI = original.DataSetsClientAPI
+type InvitationsClientAPI = original.InvitationsClientAPI
+type OperationsClientAPI = original.OperationsClientAPI
+type ProviderShareSubscriptionsClientAPI = original.ProviderShareSubscriptionsClientAPI
+type ShareSubscriptionsClientAPI = original.ShareSubscriptionsClientAPI
+type SharesClientAPI = original.SharesClientAPI
+type SynchronizationSettingsClientAPI = original.SynchronizationSettingsClientAPI
+type TriggersClientAPI = original.TriggersClientAPI
diff --git a/profiles/preview/datashare/mgmt/datashare/models.go b/profiles/preview/datashare/mgmt/datashare/models.go
new file mode 100644
index 000000000000..77a3c148668d
--- /dev/null
+++ b/profiles/preview/datashare/mgmt/datashare/models.go
@@ -0,0 +1,591 @@
+// +build go1.9
+
+// Copyright 2019 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 datashare
+
+import (
+ "context"
+
+ original "github.com/Azure/azure-sdk-for-go/services/datashare/mgmt/2019-11-01/datashare"
+)
+
+const (
+ DefaultBaseURI = original.DefaultBaseURI
+)
+
+type DataSetMappingStatus = original.DataSetMappingStatus
+
+const (
+ Broken DataSetMappingStatus = original.Broken
+ Ok DataSetMappingStatus = original.Ok
+)
+
+type DataSetType = original.DataSetType
+
+const (
+ AdlsGen1File DataSetType = original.AdlsGen1File
+ AdlsGen1Folder DataSetType = original.AdlsGen1Folder
+ AdlsGen2File DataSetType = original.AdlsGen2File
+ AdlsGen2FileSystem DataSetType = original.AdlsGen2FileSystem
+ AdlsGen2Folder DataSetType = original.AdlsGen2Folder
+ Blob DataSetType = original.Blob
+ BlobFolder DataSetType = original.BlobFolder
+ Container DataSetType = original.Container
+ KustoCluster DataSetType = original.KustoCluster
+ KustoDatabase DataSetType = original.KustoDatabase
+ SQLDBTable DataSetType = original.SQLDBTable
+ SQLDWTable DataSetType = original.SQLDWTable
+)
+
+type InvitationStatus = original.InvitationStatus
+
+const (
+ Accepted InvitationStatus = original.Accepted
+ Pending InvitationStatus = original.Pending
+ Rejected InvitationStatus = original.Rejected
+ Withdrawn InvitationStatus = original.Withdrawn
+)
+
+type Kind = original.Kind
+
+const (
+ KindAdlsGen1File Kind = original.KindAdlsGen1File
+ KindAdlsGen1Folder Kind = original.KindAdlsGen1Folder
+ KindAdlsGen2File Kind = original.KindAdlsGen2File
+ KindAdlsGen2FileSystem Kind = original.KindAdlsGen2FileSystem
+ KindAdlsGen2Folder Kind = original.KindAdlsGen2Folder
+ KindBlob Kind = original.KindBlob
+ KindBlobFolder Kind = original.KindBlobFolder
+ KindContainer Kind = original.KindContainer
+ KindDataSet Kind = original.KindDataSet
+ KindKustoCluster Kind = original.KindKustoCluster
+ KindKustoDatabase Kind = original.KindKustoDatabase
+ KindSQLDBTable Kind = original.KindSQLDBTable
+ KindSQLDWTable Kind = original.KindSQLDWTable
+)
+
+type KindBasicDataSetMapping = original.KindBasicDataSetMapping
+
+const (
+ KindBasicDataSetMappingKindAdlsGen2File KindBasicDataSetMapping = original.KindBasicDataSetMappingKindAdlsGen2File
+ KindBasicDataSetMappingKindAdlsGen2FileSystem KindBasicDataSetMapping = original.KindBasicDataSetMappingKindAdlsGen2FileSystem
+ KindBasicDataSetMappingKindAdlsGen2Folder KindBasicDataSetMapping = original.KindBasicDataSetMappingKindAdlsGen2Folder
+ KindBasicDataSetMappingKindBlob KindBasicDataSetMapping = original.KindBasicDataSetMappingKindBlob
+ KindBasicDataSetMappingKindBlobFolder KindBasicDataSetMapping = original.KindBasicDataSetMappingKindBlobFolder
+ KindBasicDataSetMappingKindContainer KindBasicDataSetMapping = original.KindBasicDataSetMappingKindContainer
+ KindBasicDataSetMappingKindDataSetMapping KindBasicDataSetMapping = original.KindBasicDataSetMappingKindDataSetMapping
+ KindBasicDataSetMappingKindKustoCluster KindBasicDataSetMapping = original.KindBasicDataSetMappingKindKustoCluster
+ KindBasicDataSetMappingKindKustoDatabase KindBasicDataSetMapping = original.KindBasicDataSetMappingKindKustoDatabase
+ KindBasicDataSetMappingKindSQLDBTable KindBasicDataSetMapping = original.KindBasicDataSetMappingKindSQLDBTable
+ KindBasicDataSetMappingKindSQLDWTable KindBasicDataSetMapping = original.KindBasicDataSetMappingKindSQLDWTable
+)
+
+type KindBasicSourceShareSynchronizationSetting = original.KindBasicSourceShareSynchronizationSetting
+
+const (
+ KindScheduleBased KindBasicSourceShareSynchronizationSetting = original.KindScheduleBased
+ KindSourceShareSynchronizationSetting KindBasicSourceShareSynchronizationSetting = original.KindSourceShareSynchronizationSetting
+)
+
+type KindBasicSynchronizationSetting = original.KindBasicSynchronizationSetting
+
+const (
+ KindBasicSynchronizationSettingKindScheduleBased KindBasicSynchronizationSetting = original.KindBasicSynchronizationSettingKindScheduleBased
+ KindBasicSynchronizationSettingKindSynchronizationSetting KindBasicSynchronizationSetting = original.KindBasicSynchronizationSettingKindSynchronizationSetting
+)
+
+type KindBasicTrigger = original.KindBasicTrigger
+
+const (
+ KindBasicTriggerKindScheduleBased KindBasicTrigger = original.KindBasicTriggerKindScheduleBased
+ KindBasicTriggerKindTrigger KindBasicTrigger = original.KindBasicTriggerKindTrigger
+)
+
+type OutputType = original.OutputType
+
+const (
+ Csv OutputType = original.Csv
+ Parquet OutputType = original.Parquet
+)
+
+type ProvisioningState = original.ProvisioningState
+
+const (
+ Creating ProvisioningState = original.Creating
+ Deleting ProvisioningState = original.Deleting
+ Failed ProvisioningState = original.Failed
+ Moving ProvisioningState = original.Moving
+ Succeeded ProvisioningState = original.Succeeded
+)
+
+type RecurrenceInterval = original.RecurrenceInterval
+
+const (
+ Day RecurrenceInterval = original.Day
+ Hour RecurrenceInterval = original.Hour
+)
+
+type ShareKind = original.ShareKind
+
+const (
+ CopyBased ShareKind = original.CopyBased
+ InPlace ShareKind = original.InPlace
+)
+
+type ShareSubscriptionStatus = original.ShareSubscriptionStatus
+
+const (
+ Active ShareSubscriptionStatus = original.Active
+ Revoked ShareSubscriptionStatus = original.Revoked
+ Revoking ShareSubscriptionStatus = original.Revoking
+ SourceDeleted ShareSubscriptionStatus = original.SourceDeleted
+)
+
+type Status = original.Status
+
+const (
+ StatusAccepted Status = original.StatusAccepted
+ StatusCanceled Status = original.StatusCanceled
+ StatusFailed Status = original.StatusFailed
+ StatusInProgress Status = original.StatusInProgress
+ StatusSucceeded Status = original.StatusSucceeded
+ StatusTransientFailure Status = original.StatusTransientFailure
+)
+
+type SynchronizationMode = original.SynchronizationMode
+
+const (
+ FullSync SynchronizationMode = original.FullSync
+ Incremental SynchronizationMode = original.Incremental
+)
+
+type TriggerStatus = original.TriggerStatus
+
+const (
+ TriggerStatusActive TriggerStatus = original.TriggerStatusActive
+ TriggerStatusInactive TriggerStatus = original.TriggerStatusInactive
+ TriggerStatusSourceSynchronizationSettingDeleted TriggerStatus = original.TriggerStatusSourceSynchronizationSettingDeleted
+)
+
+type Type = original.Type
+
+const (
+ SystemAssigned Type = original.SystemAssigned
+)
+
+type ADLSGen1FileDataSet = original.ADLSGen1FileDataSet
+type ADLSGen1FileProperties = original.ADLSGen1FileProperties
+type ADLSGen1FolderDataSet = original.ADLSGen1FolderDataSet
+type ADLSGen1FolderProperties = original.ADLSGen1FolderProperties
+type ADLSGen2FileDataSet = original.ADLSGen2FileDataSet
+type ADLSGen2FileDataSetMapping = original.ADLSGen2FileDataSetMapping
+type ADLSGen2FileDataSetMappingProperties = original.ADLSGen2FileDataSetMappingProperties
+type ADLSGen2FileProperties = original.ADLSGen2FileProperties
+type ADLSGen2FileSystemDataSet = original.ADLSGen2FileSystemDataSet
+type ADLSGen2FileSystemDataSetMapping = original.ADLSGen2FileSystemDataSetMapping
+type ADLSGen2FileSystemDataSetMappingProperties = original.ADLSGen2FileSystemDataSetMappingProperties
+type ADLSGen2FileSystemProperties = original.ADLSGen2FileSystemProperties
+type ADLSGen2FolderDataSet = original.ADLSGen2FolderDataSet
+type ADLSGen2FolderDataSetMapping = original.ADLSGen2FolderDataSetMapping
+type ADLSGen2FolderDataSetMappingProperties = original.ADLSGen2FolderDataSetMappingProperties
+type ADLSGen2FolderProperties = original.ADLSGen2FolderProperties
+type Account = original.Account
+type AccountList = original.AccountList
+type AccountListIterator = original.AccountListIterator
+type AccountListPage = original.AccountListPage
+type AccountProperties = original.AccountProperties
+type AccountUpdateParameters = original.AccountUpdateParameters
+type AccountsClient = original.AccountsClient
+type AccountsCreateFuture = original.AccountsCreateFuture
+type AccountsDeleteFuture = original.AccountsDeleteFuture
+type BaseClient = original.BaseClient
+type BasicDataSet = original.BasicDataSet
+type BasicDataSetMapping = original.BasicDataSetMapping
+type BasicSourceShareSynchronizationSetting = original.BasicSourceShareSynchronizationSetting
+type BasicSynchronizationSetting = original.BasicSynchronizationSetting
+type BasicTrigger = original.BasicTrigger
+type BlobContainerDataSet = original.BlobContainerDataSet
+type BlobContainerDataSetMapping = original.BlobContainerDataSetMapping
+type BlobContainerMappingProperties = original.BlobContainerMappingProperties
+type BlobContainerProperties = original.BlobContainerProperties
+type BlobDataSet = original.BlobDataSet
+type BlobDataSetMapping = original.BlobDataSetMapping
+type BlobFolderDataSet = original.BlobFolderDataSet
+type BlobFolderDataSetMapping = original.BlobFolderDataSetMapping
+type BlobFolderMappingProperties = original.BlobFolderMappingProperties
+type BlobFolderProperties = original.BlobFolderProperties
+type BlobMappingProperties = original.BlobMappingProperties
+type BlobProperties = original.BlobProperties
+type ConsumerInvitation = original.ConsumerInvitation
+type ConsumerInvitationList = original.ConsumerInvitationList
+type ConsumerInvitationListIterator = original.ConsumerInvitationListIterator
+type ConsumerInvitationListPage = original.ConsumerInvitationListPage
+type ConsumerInvitationProperties = original.ConsumerInvitationProperties
+type ConsumerInvitationsClient = original.ConsumerInvitationsClient
+type ConsumerSourceDataSet = original.ConsumerSourceDataSet
+type ConsumerSourceDataSetList = original.ConsumerSourceDataSetList
+type ConsumerSourceDataSetListIterator = original.ConsumerSourceDataSetListIterator
+type ConsumerSourceDataSetListPage = original.ConsumerSourceDataSetListPage
+type ConsumerSourceDataSetProperties = original.ConsumerSourceDataSetProperties
+type ConsumerSourceDataSetsClient = original.ConsumerSourceDataSetsClient
+type DataSet = original.DataSet
+type DataSetList = original.DataSetList
+type DataSetListIterator = original.DataSetListIterator
+type DataSetListPage = original.DataSetListPage
+type DataSetMapping = original.DataSetMapping
+type DataSetMappingList = original.DataSetMappingList
+type DataSetMappingListIterator = original.DataSetMappingListIterator
+type DataSetMappingListPage = original.DataSetMappingListPage
+type DataSetMappingModel = original.DataSetMappingModel
+type DataSetMappingsClient = original.DataSetMappingsClient
+type DataSetModel = original.DataSetModel
+type DataSetsClient = original.DataSetsClient
+type DataSetsDeleteFuture = original.DataSetsDeleteFuture
+type DefaultDto = original.DefaultDto
+type DimensionProperties = original.DimensionProperties
+type Error = original.Error
+type ErrorInfo = original.ErrorInfo
+type Identity = original.Identity
+type Invitation = original.Invitation
+type InvitationList = original.InvitationList
+type InvitationListIterator = original.InvitationListIterator
+type InvitationListPage = original.InvitationListPage
+type InvitationProperties = original.InvitationProperties
+type InvitationsClient = original.InvitationsClient
+type KustoClusterDataSet = original.KustoClusterDataSet
+type KustoClusterDataSetMapping = original.KustoClusterDataSetMapping
+type KustoClusterDataSetMappingProperties = original.KustoClusterDataSetMappingProperties
+type KustoClusterDataSetProperties = original.KustoClusterDataSetProperties
+type KustoDatabaseDataSet = original.KustoDatabaseDataSet
+type KustoDatabaseDataSetMapping = original.KustoDatabaseDataSetMapping
+type KustoDatabaseDataSetMappingProperties = original.KustoDatabaseDataSetMappingProperties
+type KustoDatabaseDataSetProperties = original.KustoDatabaseDataSetProperties
+type OperationList = original.OperationList
+type OperationListIterator = original.OperationListIterator
+type OperationListPage = original.OperationListPage
+type OperationMetaLogSpecification = original.OperationMetaLogSpecification
+type OperationMetaMetricSpecification = original.OperationMetaMetricSpecification
+type OperationMetaPropertyInfo = original.OperationMetaPropertyInfo
+type OperationMetaServiceSpecification = original.OperationMetaServiceSpecification
+type OperationModel = original.OperationModel
+type OperationModelProperties = original.OperationModelProperties
+type OperationResponse = original.OperationResponse
+type OperationsClient = original.OperationsClient
+type ProviderShareSubscription = original.ProviderShareSubscription
+type ProviderShareSubscriptionList = original.ProviderShareSubscriptionList
+type ProviderShareSubscriptionListIterator = original.ProviderShareSubscriptionListIterator
+type ProviderShareSubscriptionListPage = original.ProviderShareSubscriptionListPage
+type ProviderShareSubscriptionProperties = original.ProviderShareSubscriptionProperties
+type ProviderShareSubscriptionsClient = original.ProviderShareSubscriptionsClient
+type ProviderShareSubscriptionsRevokeFuture = original.ProviderShareSubscriptionsRevokeFuture
+type ProxyDto = original.ProxyDto
+type SQLDBTableDataSet = original.SQLDBTableDataSet
+type SQLDBTableDataSetMapping = original.SQLDBTableDataSetMapping
+type SQLDBTableDataSetMappingProperties = original.SQLDBTableDataSetMappingProperties
+type SQLDBTableProperties = original.SQLDBTableProperties
+type SQLDWTableDataSet = original.SQLDWTableDataSet
+type SQLDWTableDataSetMapping = original.SQLDWTableDataSetMapping
+type SQLDWTableDataSetMappingProperties = original.SQLDWTableDataSetMappingProperties
+type SQLDWTableProperties = original.SQLDWTableProperties
+type ScheduledSourceShareSynchronizationSettingProperties = original.ScheduledSourceShareSynchronizationSettingProperties
+type ScheduledSourceSynchronizationSetting = original.ScheduledSourceSynchronizationSetting
+type ScheduledSynchronizationSetting = original.ScheduledSynchronizationSetting
+type ScheduledSynchronizationSettingProperties = original.ScheduledSynchronizationSettingProperties
+type ScheduledTrigger = original.ScheduledTrigger
+type ScheduledTriggerProperties = original.ScheduledTriggerProperties
+type Share = original.Share
+type ShareList = original.ShareList
+type ShareListIterator = original.ShareListIterator
+type ShareListPage = original.ShareListPage
+type ShareProperties = original.ShareProperties
+type ShareSubscription = original.ShareSubscription
+type ShareSubscriptionList = original.ShareSubscriptionList
+type ShareSubscriptionListIterator = original.ShareSubscriptionListIterator
+type ShareSubscriptionListPage = original.ShareSubscriptionListPage
+type ShareSubscriptionProperties = original.ShareSubscriptionProperties
+type ShareSubscriptionSynchronization = original.ShareSubscriptionSynchronization
+type ShareSubscriptionSynchronizationList = original.ShareSubscriptionSynchronizationList
+type ShareSubscriptionSynchronizationListIterator = original.ShareSubscriptionSynchronizationListIterator
+type ShareSubscriptionSynchronizationListPage = original.ShareSubscriptionSynchronizationListPage
+type ShareSubscriptionsCancelSynchronizationFuture = original.ShareSubscriptionsCancelSynchronizationFuture
+type ShareSubscriptionsClient = original.ShareSubscriptionsClient
+type ShareSubscriptionsDeleteFuture = original.ShareSubscriptionsDeleteFuture
+type ShareSubscriptionsSynchronizeMethodFuture = original.ShareSubscriptionsSynchronizeMethodFuture
+type ShareSynchronization = original.ShareSynchronization
+type ShareSynchronizationList = original.ShareSynchronizationList
+type ShareSynchronizationListIterator = original.ShareSynchronizationListIterator
+type ShareSynchronizationListPage = original.ShareSynchronizationListPage
+type SharesClient = original.SharesClient
+type SharesDeleteFuture = original.SharesDeleteFuture
+type SourceShareSynchronizationSetting = original.SourceShareSynchronizationSetting
+type SourceShareSynchronizationSettingList = original.SourceShareSynchronizationSettingList
+type SourceShareSynchronizationSettingListIterator = original.SourceShareSynchronizationSettingListIterator
+type SourceShareSynchronizationSettingListPage = original.SourceShareSynchronizationSettingListPage
+type SynchronizationDetails = original.SynchronizationDetails
+type SynchronizationDetailsList = original.SynchronizationDetailsList
+type SynchronizationDetailsListIterator = original.SynchronizationDetailsListIterator
+type SynchronizationDetailsListPage = original.SynchronizationDetailsListPage
+type SynchronizationSetting = original.SynchronizationSetting
+type SynchronizationSettingList = original.SynchronizationSettingList
+type SynchronizationSettingListIterator = original.SynchronizationSettingListIterator
+type SynchronizationSettingListPage = original.SynchronizationSettingListPage
+type SynchronizationSettingModel = original.SynchronizationSettingModel
+type SynchronizationSettingsClient = original.SynchronizationSettingsClient
+type SynchronizationSettingsDeleteFuture = original.SynchronizationSettingsDeleteFuture
+type Synchronize = original.Synchronize
+type Trigger = original.Trigger
+type TriggerList = original.TriggerList
+type TriggerListIterator = original.TriggerListIterator
+type TriggerListPage = original.TriggerListPage
+type TriggerModel = original.TriggerModel
+type TriggersClient = original.TriggersClient
+type TriggersCreateFuture = original.TriggersCreateFuture
+type TriggersDeleteFuture = original.TriggersDeleteFuture
+
+func New(subscriptionID string) BaseClient {
+ return original.New(subscriptionID)
+}
+func NewAccountListIterator(page AccountListPage) AccountListIterator {
+ return original.NewAccountListIterator(page)
+}
+func NewAccountListPage(getNextPage func(context.Context, AccountList) (AccountList, error)) AccountListPage {
+ return original.NewAccountListPage(getNextPage)
+}
+func NewAccountsClient(subscriptionID string) AccountsClient {
+ return original.NewAccountsClient(subscriptionID)
+}
+func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) AccountsClient {
+ return original.NewAccountsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewConsumerInvitationListIterator(page ConsumerInvitationListPage) ConsumerInvitationListIterator {
+ return original.NewConsumerInvitationListIterator(page)
+}
+func NewConsumerInvitationListPage(getNextPage func(context.Context, ConsumerInvitationList) (ConsumerInvitationList, error)) ConsumerInvitationListPage {
+ return original.NewConsumerInvitationListPage(getNextPage)
+}
+func NewConsumerInvitationsClient(subscriptionID string) ConsumerInvitationsClient {
+ return original.NewConsumerInvitationsClient(subscriptionID)
+}
+func NewConsumerInvitationsClientWithBaseURI(baseURI string, subscriptionID string) ConsumerInvitationsClient {
+ return original.NewConsumerInvitationsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewConsumerSourceDataSetListIterator(page ConsumerSourceDataSetListPage) ConsumerSourceDataSetListIterator {
+ return original.NewConsumerSourceDataSetListIterator(page)
+}
+func NewConsumerSourceDataSetListPage(getNextPage func(context.Context, ConsumerSourceDataSetList) (ConsumerSourceDataSetList, error)) ConsumerSourceDataSetListPage {
+ return original.NewConsumerSourceDataSetListPage(getNextPage)
+}
+func NewConsumerSourceDataSetsClient(subscriptionID string) ConsumerSourceDataSetsClient {
+ return original.NewConsumerSourceDataSetsClient(subscriptionID)
+}
+func NewConsumerSourceDataSetsClientWithBaseURI(baseURI string, subscriptionID string) ConsumerSourceDataSetsClient {
+ return original.NewConsumerSourceDataSetsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewDataSetListIterator(page DataSetListPage) DataSetListIterator {
+ return original.NewDataSetListIterator(page)
+}
+func NewDataSetListPage(getNextPage func(context.Context, DataSetList) (DataSetList, error)) DataSetListPage {
+ return original.NewDataSetListPage(getNextPage)
+}
+func NewDataSetMappingListIterator(page DataSetMappingListPage) DataSetMappingListIterator {
+ return original.NewDataSetMappingListIterator(page)
+}
+func NewDataSetMappingListPage(getNextPage func(context.Context, DataSetMappingList) (DataSetMappingList, error)) DataSetMappingListPage {
+ return original.NewDataSetMappingListPage(getNextPage)
+}
+func NewDataSetMappingsClient(subscriptionID string) DataSetMappingsClient {
+ return original.NewDataSetMappingsClient(subscriptionID)
+}
+func NewDataSetMappingsClientWithBaseURI(baseURI string, subscriptionID string) DataSetMappingsClient {
+ return original.NewDataSetMappingsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewDataSetsClient(subscriptionID string) DataSetsClient {
+ return original.NewDataSetsClient(subscriptionID)
+}
+func NewDataSetsClientWithBaseURI(baseURI string, subscriptionID string) DataSetsClient {
+ return original.NewDataSetsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewInvitationListIterator(page InvitationListPage) InvitationListIterator {
+ return original.NewInvitationListIterator(page)
+}
+func NewInvitationListPage(getNextPage func(context.Context, InvitationList) (InvitationList, error)) InvitationListPage {
+ return original.NewInvitationListPage(getNextPage)
+}
+func NewInvitationsClient(subscriptionID string) InvitationsClient {
+ return original.NewInvitationsClient(subscriptionID)
+}
+func NewInvitationsClientWithBaseURI(baseURI string, subscriptionID string) InvitationsClient {
+ return original.NewInvitationsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewOperationListIterator(page OperationListPage) OperationListIterator {
+ return original.NewOperationListIterator(page)
+}
+func NewOperationListPage(getNextPage func(context.Context, OperationList) (OperationList, error)) OperationListPage {
+ return original.NewOperationListPage(getNextPage)
+}
+func NewOperationsClient(subscriptionID string) OperationsClient {
+ return original.NewOperationsClient(subscriptionID)
+}
+func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
+ return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewProviderShareSubscriptionListIterator(page ProviderShareSubscriptionListPage) ProviderShareSubscriptionListIterator {
+ return original.NewProviderShareSubscriptionListIterator(page)
+}
+func NewProviderShareSubscriptionListPage(getNextPage func(context.Context, ProviderShareSubscriptionList) (ProviderShareSubscriptionList, error)) ProviderShareSubscriptionListPage {
+ return original.NewProviderShareSubscriptionListPage(getNextPage)
+}
+func NewProviderShareSubscriptionsClient(subscriptionID string) ProviderShareSubscriptionsClient {
+ return original.NewProviderShareSubscriptionsClient(subscriptionID)
+}
+func NewProviderShareSubscriptionsClientWithBaseURI(baseURI string, subscriptionID string) ProviderShareSubscriptionsClient {
+ return original.NewProviderShareSubscriptionsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewShareListIterator(page ShareListPage) ShareListIterator {
+ return original.NewShareListIterator(page)
+}
+func NewShareListPage(getNextPage func(context.Context, ShareList) (ShareList, error)) ShareListPage {
+ return original.NewShareListPage(getNextPage)
+}
+func NewShareSubscriptionListIterator(page ShareSubscriptionListPage) ShareSubscriptionListIterator {
+ return original.NewShareSubscriptionListIterator(page)
+}
+func NewShareSubscriptionListPage(getNextPage func(context.Context, ShareSubscriptionList) (ShareSubscriptionList, error)) ShareSubscriptionListPage {
+ return original.NewShareSubscriptionListPage(getNextPage)
+}
+func NewShareSubscriptionSynchronizationListIterator(page ShareSubscriptionSynchronizationListPage) ShareSubscriptionSynchronizationListIterator {
+ return original.NewShareSubscriptionSynchronizationListIterator(page)
+}
+func NewShareSubscriptionSynchronizationListPage(getNextPage func(context.Context, ShareSubscriptionSynchronizationList) (ShareSubscriptionSynchronizationList, error)) ShareSubscriptionSynchronizationListPage {
+ return original.NewShareSubscriptionSynchronizationListPage(getNextPage)
+}
+func NewShareSubscriptionsClient(subscriptionID string) ShareSubscriptionsClient {
+ return original.NewShareSubscriptionsClient(subscriptionID)
+}
+func NewShareSubscriptionsClientWithBaseURI(baseURI string, subscriptionID string) ShareSubscriptionsClient {
+ return original.NewShareSubscriptionsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewShareSynchronizationListIterator(page ShareSynchronizationListPage) ShareSynchronizationListIterator {
+ return original.NewShareSynchronizationListIterator(page)
+}
+func NewShareSynchronizationListPage(getNextPage func(context.Context, ShareSynchronizationList) (ShareSynchronizationList, error)) ShareSynchronizationListPage {
+ return original.NewShareSynchronizationListPage(getNextPage)
+}
+func NewSharesClient(subscriptionID string) SharesClient {
+ return original.NewSharesClient(subscriptionID)
+}
+func NewSharesClientWithBaseURI(baseURI string, subscriptionID string) SharesClient {
+ return original.NewSharesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewSourceShareSynchronizationSettingListIterator(page SourceShareSynchronizationSettingListPage) SourceShareSynchronizationSettingListIterator {
+ return original.NewSourceShareSynchronizationSettingListIterator(page)
+}
+func NewSourceShareSynchronizationSettingListPage(getNextPage func(context.Context, SourceShareSynchronizationSettingList) (SourceShareSynchronizationSettingList, error)) SourceShareSynchronizationSettingListPage {
+ return original.NewSourceShareSynchronizationSettingListPage(getNextPage)
+}
+func NewSynchronizationDetailsListIterator(page SynchronizationDetailsListPage) SynchronizationDetailsListIterator {
+ return original.NewSynchronizationDetailsListIterator(page)
+}
+func NewSynchronizationDetailsListPage(getNextPage func(context.Context, SynchronizationDetailsList) (SynchronizationDetailsList, error)) SynchronizationDetailsListPage {
+ return original.NewSynchronizationDetailsListPage(getNextPage)
+}
+func NewSynchronizationSettingListIterator(page SynchronizationSettingListPage) SynchronizationSettingListIterator {
+ return original.NewSynchronizationSettingListIterator(page)
+}
+func NewSynchronizationSettingListPage(getNextPage func(context.Context, SynchronizationSettingList) (SynchronizationSettingList, error)) SynchronizationSettingListPage {
+ return original.NewSynchronizationSettingListPage(getNextPage)
+}
+func NewSynchronizationSettingsClient(subscriptionID string) SynchronizationSettingsClient {
+ return original.NewSynchronizationSettingsClient(subscriptionID)
+}
+func NewSynchronizationSettingsClientWithBaseURI(baseURI string, subscriptionID string) SynchronizationSettingsClient {
+ return original.NewSynchronizationSettingsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewTriggerListIterator(page TriggerListPage) TriggerListIterator {
+ return original.NewTriggerListIterator(page)
+}
+func NewTriggerListPage(getNextPage func(context.Context, TriggerList) (TriggerList, error)) TriggerListPage {
+ return original.NewTriggerListPage(getNextPage)
+}
+func NewTriggersClient(subscriptionID string) TriggersClient {
+ return original.NewTriggersClient(subscriptionID)
+}
+func NewTriggersClientWithBaseURI(baseURI string, subscriptionID string) TriggersClient {
+ return original.NewTriggersClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
+ return original.NewWithBaseURI(baseURI, subscriptionID)
+}
+func PossibleDataSetMappingStatusValues() []DataSetMappingStatus {
+ return original.PossibleDataSetMappingStatusValues()
+}
+func PossibleDataSetTypeValues() []DataSetType {
+ return original.PossibleDataSetTypeValues()
+}
+func PossibleInvitationStatusValues() []InvitationStatus {
+ return original.PossibleInvitationStatusValues()
+}
+func PossibleKindBasicDataSetMappingValues() []KindBasicDataSetMapping {
+ return original.PossibleKindBasicDataSetMappingValues()
+}
+func PossibleKindBasicSourceShareSynchronizationSettingValues() []KindBasicSourceShareSynchronizationSetting {
+ return original.PossibleKindBasicSourceShareSynchronizationSettingValues()
+}
+func PossibleKindBasicSynchronizationSettingValues() []KindBasicSynchronizationSetting {
+ return original.PossibleKindBasicSynchronizationSettingValues()
+}
+func PossibleKindBasicTriggerValues() []KindBasicTrigger {
+ return original.PossibleKindBasicTriggerValues()
+}
+func PossibleKindValues() []Kind {
+ return original.PossibleKindValues()
+}
+func PossibleOutputTypeValues() []OutputType {
+ return original.PossibleOutputTypeValues()
+}
+func PossibleProvisioningStateValues() []ProvisioningState {
+ return original.PossibleProvisioningStateValues()
+}
+func PossibleRecurrenceIntervalValues() []RecurrenceInterval {
+ return original.PossibleRecurrenceIntervalValues()
+}
+func PossibleShareKindValues() []ShareKind {
+ return original.PossibleShareKindValues()
+}
+func PossibleShareSubscriptionStatusValues() []ShareSubscriptionStatus {
+ return original.PossibleShareSubscriptionStatusValues()
+}
+func PossibleStatusValues() []Status {
+ return original.PossibleStatusValues()
+}
+func PossibleSynchronizationModeValues() []SynchronizationMode {
+ return original.PossibleSynchronizationModeValues()
+}
+func PossibleTriggerStatusValues() []TriggerStatus {
+ return original.PossibleTriggerStatusValues()
+}
+func PossibleTypeValues() []Type {
+ return original.PossibleTypeValues()
+}
+func UserAgent() string {
+ return original.UserAgent() + " profiles/preview"
+}
+func Version() string {
+ return original.Version()
+}
diff --git a/profiles/preview/domainservices/mgmt/aad/aadapi/models.go b/profiles/preview/domainservices/mgmt/aad/aadapi/models.go
index 57ce54cbf838..9f299cf3ee98 100644
--- a/profiles/preview/domainservices/mgmt/aad/aadapi/models.go
+++ b/profiles/preview/domainservices/mgmt/aad/aadapi/models.go
@@ -23,4 +23,3 @@ import original "github.com/Azure/azure-sdk-for-go/services/domainservices/mgmt/
type DomainServiceOperationsClientAPI = original.DomainServiceOperationsClientAPI
type DomainServicesClientAPI = original.DomainServicesClientAPI
-type ReplicaSetsClientAPI = original.ReplicaSetsClientAPI
diff --git a/profiles/preview/domainservices/mgmt/aad/models.go b/profiles/preview/domainservices/mgmt/aad/models.go
index f44817d14213..1988a4bf6b03 100644
--- a/profiles/preview/domainservices/mgmt/aad/models.go
+++ b/profiles/preview/domainservices/mgmt/aad/models.go
@@ -106,15 +106,6 @@ type OperationEntity = original.OperationEntity
type OperationEntityListResult = original.OperationEntityListResult
type OperationEntityListResultIterator = original.OperationEntityListResultIterator
type OperationEntityListResultPage = original.OperationEntityListResultPage
-type ReplicaSet = original.ReplicaSet
-type ReplicaSetListResult = original.ReplicaSetListResult
-type ReplicaSetListResultIterator = original.ReplicaSetListResultIterator
-type ReplicaSetListResultPage = original.ReplicaSetListResultPage
-type ReplicaSetProperties = original.ReplicaSetProperties
-type ReplicaSetsClient = original.ReplicaSetsClient
-type ReplicaSetsCreateOrUpdateFuture = original.ReplicaSetsCreateOrUpdateFuture
-type ReplicaSetsDeleteFuture = original.ReplicaSetsDeleteFuture
-type ReplicaSetsUpdateFuture = original.ReplicaSetsUpdateFuture
type Resource = original.Resource
func New(subscriptionID string) BaseClient {
@@ -144,18 +135,6 @@ func NewOperationEntityListResultIterator(page OperationEntityListResultPage) Op
func NewOperationEntityListResultPage(getNextPage func(context.Context, OperationEntityListResult) (OperationEntityListResult, error)) OperationEntityListResultPage {
return original.NewOperationEntityListResultPage(getNextPage)
}
-func NewReplicaSetListResultIterator(page ReplicaSetListResultPage) ReplicaSetListResultIterator {
- return original.NewReplicaSetListResultIterator(page)
-}
-func NewReplicaSetListResultPage(getNextPage func(context.Context, ReplicaSetListResult) (ReplicaSetListResult, error)) ReplicaSetListResultPage {
- return original.NewReplicaSetListResultPage(getNextPage)
-}
-func NewReplicaSetsClient(subscriptionID string) ReplicaSetsClient {
- return original.NewReplicaSetsClient(subscriptionID)
-}
-func NewReplicaSetsClientWithBaseURI(baseURI string, subscriptionID string) ReplicaSetsClient {
- return original.NewReplicaSetsClientWithBaseURI(baseURI, subscriptionID)
-}
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
}
diff --git a/profiles/preview/eventgrid/eventgrid/models.go b/profiles/preview/eventgrid/eventgrid/models.go
index 74269b8b100a..f2da17491fc7 100644
--- a/profiles/preview/eventgrid/eventgrid/models.go
+++ b/profiles/preview/eventgrid/eventgrid/models.go
@@ -111,6 +111,10 @@ type KeyVaultKeyNewVersionCreatedEventData = original.KeyVaultKeyNewVersionCreat
type KeyVaultSecretExpiredEventData = original.KeyVaultSecretExpiredEventData
type KeyVaultSecretNearExpiryEventData = original.KeyVaultSecretNearExpiryEventData
type KeyVaultSecretNewVersionCreatedEventData = original.KeyVaultSecretNewVersionCreatedEventData
+type MachineLearningServicesDatasetDriftDetectedEventData = original.MachineLearningServicesDatasetDriftDetectedEventData
+type MachineLearningServicesModelDeployedEventData = original.MachineLearningServicesModelDeployedEventData
+type MachineLearningServicesModelRegisteredEventData = original.MachineLearningServicesModelRegisteredEventData
+type MachineLearningServicesRunCompletedEventData = original.MachineLearningServicesRunCompletedEventData
type MapsGeofenceEnteredEventData = original.MapsGeofenceEnteredEventData
type MapsGeofenceEventProperties = original.MapsGeofenceEventProperties
type MapsGeofenceExitedEventData = original.MapsGeofenceExitedEventData
@@ -159,6 +163,10 @@ type SignalRServiceClientConnectionConnectedEventData = original.SignalRServiceC
type SignalRServiceClientConnectionDisconnectedEventData = original.SignalRServiceClientConnectionDisconnectedEventData
type StorageBlobCreatedEventData = original.StorageBlobCreatedEventData
type StorageBlobDeletedEventData = original.StorageBlobDeletedEventData
+type StorageBlobRenamedEventData = original.StorageBlobRenamedEventData
+type StorageDirectoryCreatedEventData = original.StorageDirectoryCreatedEventData
+type StorageDirectoryDeletedEventData = original.StorageDirectoryDeletedEventData
+type StorageDirectoryRenamedEventData = original.StorageDirectoryRenamedEventData
type SubscriptionDeletedEventData = original.SubscriptionDeletedEventData
type SubscriptionValidationEventData = original.SubscriptionValidationEventData
type SubscriptionValidationResponse = original.SubscriptionValidationResponse
diff --git a/profiles/preview/operationalinsights/mgmt/operationalinsights/models.go b/profiles/preview/operationalinsights/mgmt/operationalinsights/models.go
index d77d183fbf2c..072914563365 100644
--- a/profiles/preview/operationalinsights/mgmt/operationalinsights/models.go
+++ b/profiles/preview/operationalinsights/mgmt/operationalinsights/models.go
@@ -64,13 +64,9 @@ type SavedSearch = original.SavedSearch
type SavedSearchProperties = original.SavedSearchProperties
type SavedSearchesClient = original.SavedSearchesClient
type SavedSearchesListResult = original.SavedSearchesListResult
-type SearchError = original.SearchError
type SearchGetSchemaResponse = original.SearchGetSchemaResponse
-type SearchHighlight = original.SearchHighlight
type SearchMetadata = original.SearchMetadata
type SearchMetadataSchema = original.SearchMetadataSchema
-type SearchParameters = original.SearchParameters
-type SearchResultsResponse = original.SearchResultsResponse
type SearchSchemaValue = original.SearchSchemaValue
type SearchSort = original.SearchSort
type SharedKeys = original.SharedKeys
@@ -88,7 +84,6 @@ type WorkspacePurgeBodyFilters = original.WorkspacePurgeBodyFilters
type WorkspacePurgeResponse = original.WorkspacePurgeResponse
type WorkspacePurgeStatusResponse = original.WorkspacePurgeStatusResponse
type WorkspacesClient = original.WorkspacesClient
-type WorkspacesGetSearchResultsFuture = original.WorkspacesGetSearchResultsFuture
func New(subscriptionID string, purgeID string) BaseClient {
return original.New(subscriptionID, purgeID)
diff --git a/profiles/preview/policyinsights/mgmt/policyinsights/models.go b/profiles/preview/policyinsights/mgmt/policyinsights/models.go
index d6643c95eceb..b615e657622b 100644
--- a/profiles/preview/policyinsights/mgmt/policyinsights/models.go
+++ b/profiles/preview/policyinsights/mgmt/policyinsights/models.go
@@ -19,7 +19,11 @@
package policyinsights
-import original "github.com/Azure/azure-sdk-for-go/services/policyinsights/mgmt/2018-04-04/policyinsights"
+import (
+ "context"
+
+ original "github.com/Azure/azure-sdk-for-go/services/policyinsights/mgmt/2019-10-01/policyinsights"
+)
const (
DefaultBaseURI = original.DefaultBaseURI
@@ -33,24 +37,51 @@ const (
)
type BaseClient = original.BaseClient
+type ComplianceDetail = original.ComplianceDetail
+type ErrorDefinition = original.ErrorDefinition
+type ErrorResponse = original.ErrorResponse
+type ExpressionEvaluationDetails = original.ExpressionEvaluationDetails
+type IfNotExistsEvaluationDetails = original.IfNotExistsEvaluationDetails
type Operation = original.Operation
type OperationDisplay = original.OperationDisplay
type OperationsClient = original.OperationsClient
type OperationsListResults = original.OperationsListResults
type PolicyAssignmentSummary = original.PolicyAssignmentSummary
type PolicyDefinitionSummary = original.PolicyDefinitionSummary
+type PolicyDetails = original.PolicyDetails
+type PolicyEvaluationDetails = original.PolicyEvaluationDetails
type PolicyEvent = original.PolicyEvent
type PolicyEventsClient = original.PolicyEventsClient
type PolicyEventsQueryResults = original.PolicyEventsQueryResults
+type PolicyGroupSummary = original.PolicyGroupSummary
type PolicyState = original.PolicyState
type PolicyStatesClient = original.PolicyStatesClient
type PolicyStatesQueryResults = original.PolicyStatesQueryResults
+type PolicyTrackedResource = original.PolicyTrackedResource
+type PolicyTrackedResourcesClient = original.PolicyTrackedResourcesClient
+type PolicyTrackedResourcesQueryResults = original.PolicyTrackedResourcesQueryResults
+type PolicyTrackedResourcesQueryResultsIterator = original.PolicyTrackedResourcesQueryResultsIterator
+type PolicyTrackedResourcesQueryResultsPage = original.PolicyTrackedResourcesQueryResultsPage
type QueryFailure = original.QueryFailure
type QueryFailureError = original.QueryFailureError
+type Remediation = original.Remediation
+type RemediationDeployment = original.RemediationDeployment
+type RemediationDeploymentSummary = original.RemediationDeploymentSummary
+type RemediationDeploymentsListResult = original.RemediationDeploymentsListResult
+type RemediationDeploymentsListResultIterator = original.RemediationDeploymentsListResultIterator
+type RemediationDeploymentsListResultPage = original.RemediationDeploymentsListResultPage
+type RemediationFilters = original.RemediationFilters
+type RemediationListResult = original.RemediationListResult
+type RemediationListResultIterator = original.RemediationListResultIterator
+type RemediationListResultPage = original.RemediationListResultPage
+type RemediationProperties = original.RemediationProperties
+type RemediationsClient = original.RemediationsClient
type String = original.String
type SummarizeResults = original.SummarizeResults
type Summary = original.Summary
type SummaryResults = original.SummaryResults
+type TrackedResourceModificationDetails = original.TrackedResourceModificationDetails
+type TypedErrorInfo = original.TypedErrorInfo
func New() BaseClient {
return original.New()
@@ -73,6 +104,36 @@ func NewPolicyStatesClient() PolicyStatesClient {
func NewPolicyStatesClientWithBaseURI(baseURI string) PolicyStatesClient {
return original.NewPolicyStatesClientWithBaseURI(baseURI)
}
+func NewPolicyTrackedResourcesClient() PolicyTrackedResourcesClient {
+ return original.NewPolicyTrackedResourcesClient()
+}
+func NewPolicyTrackedResourcesClientWithBaseURI(baseURI string) PolicyTrackedResourcesClient {
+ return original.NewPolicyTrackedResourcesClientWithBaseURI(baseURI)
+}
+func NewPolicyTrackedResourcesQueryResultsIterator(page PolicyTrackedResourcesQueryResultsPage) PolicyTrackedResourcesQueryResultsIterator {
+ return original.NewPolicyTrackedResourcesQueryResultsIterator(page)
+}
+func NewPolicyTrackedResourcesQueryResultsPage(getNextPage func(context.Context, PolicyTrackedResourcesQueryResults) (PolicyTrackedResourcesQueryResults, error)) PolicyTrackedResourcesQueryResultsPage {
+ return original.NewPolicyTrackedResourcesQueryResultsPage(getNextPage)
+}
+func NewRemediationDeploymentsListResultIterator(page RemediationDeploymentsListResultPage) RemediationDeploymentsListResultIterator {
+ return original.NewRemediationDeploymentsListResultIterator(page)
+}
+func NewRemediationDeploymentsListResultPage(getNextPage func(context.Context, RemediationDeploymentsListResult) (RemediationDeploymentsListResult, error)) RemediationDeploymentsListResultPage {
+ return original.NewRemediationDeploymentsListResultPage(getNextPage)
+}
+func NewRemediationListResultIterator(page RemediationListResultPage) RemediationListResultIterator {
+ return original.NewRemediationListResultIterator(page)
+}
+func NewRemediationListResultPage(getNextPage func(context.Context, RemediationListResult) (RemediationListResult, error)) RemediationListResultPage {
+ return original.NewRemediationListResultPage(getNextPage)
+}
+func NewRemediationsClient() RemediationsClient {
+ return original.NewRemediationsClient()
+}
+func NewRemediationsClientWithBaseURI(baseURI string) RemediationsClient {
+ return original.NewRemediationsClientWithBaseURI(baseURI)
+}
func NewWithBaseURI(baseURI string) BaseClient {
return original.NewWithBaseURI(baseURI)
}
diff --git a/profiles/preview/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go b/profiles/preview/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go
index 68f64baaefe8..3f4601162208 100644
--- a/profiles/preview/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go
+++ b/profiles/preview/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go
@@ -19,8 +19,10 @@
package policyinsightsapi
-import original "github.com/Azure/azure-sdk-for-go/services/policyinsights/mgmt/2018-04-04/policyinsights/policyinsightsapi"
+import original "github.com/Azure/azure-sdk-for-go/services/policyinsights/mgmt/2019-10-01/policyinsights/policyinsightsapi"
type OperationsClientAPI = original.OperationsClientAPI
type PolicyEventsClientAPI = original.PolicyEventsClientAPI
type PolicyStatesClientAPI = original.PolicyStatesClientAPI
+type PolicyTrackedResourcesClientAPI = original.PolicyTrackedResourcesClientAPI
+type RemediationsClientAPI = original.RemediationsClientAPI
diff --git a/profiles/preview/preview/appplatform/mgmt/appplatform/models.go b/profiles/preview/preview/appplatform/mgmt/appplatform/models.go
index 00b3137c3d1c..099e9fa16a92 100644
--- a/profiles/preview/preview/appplatform/mgmt/appplatform/models.go
+++ b/profiles/preview/preview/appplatform/mgmt/appplatform/models.go
@@ -32,8 +32,10 @@ const (
type AppResourceProvisioningState = original.AppResourceProvisioningState
const (
+ Creating AppResourceProvisioningState = original.Creating
Failed AppResourceProvisioningState = original.Failed
Succeeded AppResourceProvisioningState = original.Succeeded
+ Updating AppResourceProvisioningState = original.Updating
)
type ConfigServerState = original.ConfigServerState
@@ -49,10 +51,10 @@ const (
type DeploymentResourceProvisioningState = original.DeploymentResourceProvisioningState
const (
- DeploymentResourceProvisioningStateCreating DeploymentResourceProvisioningState = original.DeploymentResourceProvisioningStateCreating
- DeploymentResourceProvisioningStateFailed DeploymentResourceProvisioningState = original.DeploymentResourceProvisioningStateFailed
- DeploymentResourceProvisioningStateProcessing DeploymentResourceProvisioningState = original.DeploymentResourceProvisioningStateProcessing
- DeploymentResourceProvisioningStateSucceeded DeploymentResourceProvisioningState = original.DeploymentResourceProvisioningStateSucceeded
+ DeploymentResourceProvisioningStateCreating DeploymentResourceProvisioningState = original.DeploymentResourceProvisioningStateCreating
+ DeploymentResourceProvisioningStateFailed DeploymentResourceProvisioningState = original.DeploymentResourceProvisioningStateFailed
+ DeploymentResourceProvisioningStateSucceeded DeploymentResourceProvisioningState = original.DeploymentResourceProvisioningStateSucceeded
+ DeploymentResourceProvisioningStateUpdating DeploymentResourceProvisioningState = original.DeploymentResourceProvisioningStateUpdating
)
type DeploymentResourceStatus = original.DeploymentResourceStatus
@@ -61,7 +63,6 @@ const (
DeploymentResourceStatusAllocating DeploymentResourceStatus = original.DeploymentResourceStatusAllocating
DeploymentResourceStatusCompiling DeploymentResourceStatus = original.DeploymentResourceStatusCompiling
DeploymentResourceStatusFailed DeploymentResourceStatus = original.DeploymentResourceStatusFailed
- DeploymentResourceStatusProcessing DeploymentResourceStatus = original.DeploymentResourceStatusProcessing
DeploymentResourceStatusRunning DeploymentResourceStatus = original.DeploymentResourceStatusRunning
DeploymentResourceStatusStopped DeploymentResourceStatus = original.DeploymentResourceStatusStopped
DeploymentResourceStatusUnknown DeploymentResourceStatus = original.DeploymentResourceStatusUnknown
@@ -118,6 +119,8 @@ type AppResourceCollectionIterator = original.AppResourceCollectionIterator
type AppResourceCollectionPage = original.AppResourceCollectionPage
type AppResourceProperties = original.AppResourceProperties
type AppsClient = original.AppsClient
+type AppsCreateOrUpdateFuture = original.AppsCreateOrUpdateFuture
+type AppsUpdateFuture = original.AppsUpdateFuture
type AvailableOperations = original.AvailableOperations
type AvailableOperationsIterator = original.AvailableOperationsIterator
type AvailableOperationsPage = original.AvailableOperationsPage
diff --git a/profiles/preview/preview/cognitiveservices/luis/authoring/authoringapi/models.go b/profiles/preview/preview/cognitiveservices/luis/authoring/authoringapi/models.go
new file mode 100644
index 000000000000..a7c3942ad949
--- /dev/null
+++ b/profiles/preview/preview/cognitiveservices/luis/authoring/authoringapi/models.go
@@ -0,0 +1,33 @@
+// +build go1.9
+
+// Copyright 2019 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 authoringapi
+
+import original "github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/v3.0/luis/authoring/authoringapi"
+
+type AppsClientAPI = original.AppsClientAPI
+type AzureAccountsClientAPI = original.AzureAccountsClientAPI
+type ExamplesClientAPI = original.ExamplesClientAPI
+type FeaturesClientAPI = original.FeaturesClientAPI
+type ModelClientAPI = original.ModelClientAPI
+type PatternClientAPI = original.PatternClientAPI
+type PermissionsClientAPI = original.PermissionsClientAPI
+type SettingsClientAPI = original.SettingsClientAPI
+type TrainClientAPI = original.TrainClientAPI
+type VersionsClientAPI = original.VersionsClientAPI
diff --git a/profiles/preview/cognitiveservices/luis/programmatic/models.go b/profiles/preview/preview/cognitiveservices/luis/authoring/models.go
similarity index 78%
rename from profiles/preview/cognitiveservices/luis/programmatic/models.go
rename to profiles/preview/preview/cognitiveservices/luis/authoring/models.go
index bb1528ceddbc..cec1f7e12769 100644
--- a/profiles/preview/cognitiveservices/luis/programmatic/models.go
+++ b/profiles/preview/preview/cognitiveservices/luis/authoring/models.go
@@ -17,26 +17,9 @@
// This code was auto-generated by:
// github.com/Azure/azure-sdk-for-go/tools/profileBuilder
-package programmatic
+package authoring
-import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.0/luis/programmatic"
-
-type AzureRegions = original.AzureRegions
-
-const (
- Australiaeast AzureRegions = original.Australiaeast
- Brazilsouth AzureRegions = original.Brazilsouth
- Eastasia AzureRegions = original.Eastasia
- Eastus AzureRegions = original.Eastus
- Eastus2 AzureRegions = original.Eastus2
- Northeurope AzureRegions = original.Northeurope
- Southcentralus AzureRegions = original.Southcentralus
- Southeastasia AzureRegions = original.Southeastasia
- Westcentralus AzureRegions = original.Westcentralus
- Westeurope AzureRegions = original.Westeurope
- Westus AzureRegions = original.Westus
- Westus2 AzureRegions = original.Westus2
-)
+import original "github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/v3.0/luis/authoring"
type OperationStatusType = original.OperationStatusType
@@ -49,12 +32,14 @@ const (
type ReadableType = original.ReadableType
const (
+ ReadableTypeChildEntityExtractor ReadableType = original.ReadableTypeChildEntityExtractor
ReadableTypeClosedListEntityExtractor ReadableType = original.ReadableTypeClosedListEntityExtractor
ReadableTypeCompositeEntityExtractor ReadableType = original.ReadableTypeCompositeEntityExtractor
ReadableTypeEntityExtractor ReadableType = original.ReadableTypeEntityExtractor
ReadableTypeHierarchicalChildEntityExtractor ReadableType = original.ReadableTypeHierarchicalChildEntityExtractor
ReadableTypeHierarchicalEntityExtractor ReadableType = original.ReadableTypeHierarchicalEntityExtractor
ReadableTypeIntentClassifier ReadableType = original.ReadableTypeIntentClassifier
+ ReadableTypeListEntityExtractor ReadableType = original.ReadableTypeListEntityExtractor
ReadableTypePatternAnyEntityExtractor ReadableType = original.ReadableTypePatternAnyEntityExtractor
ReadableTypePrebuiltEntityExtractor ReadableType = original.ReadableTypePrebuiltEntityExtractor
ReadableTypeRegexEntityExtractor ReadableType = original.ReadableTypeRegexEntityExtractor
@@ -63,12 +48,14 @@ const (
type ReadableType1 = original.ReadableType1
const (
+ ReadableType1ChildEntityExtractor ReadableType1 = original.ReadableType1ChildEntityExtractor
ReadableType1ClosedListEntityExtractor ReadableType1 = original.ReadableType1ClosedListEntityExtractor
ReadableType1CompositeEntityExtractor ReadableType1 = original.ReadableType1CompositeEntityExtractor
ReadableType1EntityExtractor ReadableType1 = original.ReadableType1EntityExtractor
ReadableType1HierarchicalChildEntityExtractor ReadableType1 = original.ReadableType1HierarchicalChildEntityExtractor
ReadableType1HierarchicalEntityExtractor ReadableType1 = original.ReadableType1HierarchicalEntityExtractor
ReadableType1IntentClassifier ReadableType1 = original.ReadableType1IntentClassifier
+ ReadableType1ListEntityExtractor ReadableType1 = original.ReadableType1ListEntityExtractor
ReadableType1PatternAnyEntityExtractor ReadableType1 = original.ReadableType1PatternAnyEntityExtractor
ReadableType1PrebuiltEntityExtractor ReadableType1 = original.ReadableType1PrebuiltEntityExtractor
ReadableType1RegexEntityExtractor ReadableType1 = original.ReadableType1RegexEntityExtractor
@@ -77,26 +64,46 @@ const (
type ReadableType10 = original.ReadableType10
const (
+ ReadableType10ChildEntityExtractor ReadableType10 = original.ReadableType10ChildEntityExtractor
ReadableType10ClosedListEntityExtractor ReadableType10 = original.ReadableType10ClosedListEntityExtractor
ReadableType10CompositeEntityExtractor ReadableType10 = original.ReadableType10CompositeEntityExtractor
ReadableType10EntityExtractor ReadableType10 = original.ReadableType10EntityExtractor
ReadableType10HierarchicalChildEntityExtractor ReadableType10 = original.ReadableType10HierarchicalChildEntityExtractor
ReadableType10HierarchicalEntityExtractor ReadableType10 = original.ReadableType10HierarchicalEntityExtractor
ReadableType10IntentClassifier ReadableType10 = original.ReadableType10IntentClassifier
+ ReadableType10ListEntityExtractor ReadableType10 = original.ReadableType10ListEntityExtractor
ReadableType10PatternAnyEntityExtractor ReadableType10 = original.ReadableType10PatternAnyEntityExtractor
ReadableType10PrebuiltEntityExtractor ReadableType10 = original.ReadableType10PrebuiltEntityExtractor
ReadableType10RegexEntityExtractor ReadableType10 = original.ReadableType10RegexEntityExtractor
)
+type ReadableType11 = original.ReadableType11
+
+const (
+ ReadableType11ChildEntityExtractor ReadableType11 = original.ReadableType11ChildEntityExtractor
+ ReadableType11ClosedListEntityExtractor ReadableType11 = original.ReadableType11ClosedListEntityExtractor
+ ReadableType11CompositeEntityExtractor ReadableType11 = original.ReadableType11CompositeEntityExtractor
+ ReadableType11EntityExtractor ReadableType11 = original.ReadableType11EntityExtractor
+ ReadableType11HierarchicalChildEntityExtractor ReadableType11 = original.ReadableType11HierarchicalChildEntityExtractor
+ ReadableType11HierarchicalEntityExtractor ReadableType11 = original.ReadableType11HierarchicalEntityExtractor
+ ReadableType11IntentClassifier ReadableType11 = original.ReadableType11IntentClassifier
+ ReadableType11ListEntityExtractor ReadableType11 = original.ReadableType11ListEntityExtractor
+ ReadableType11PatternAnyEntityExtractor ReadableType11 = original.ReadableType11PatternAnyEntityExtractor
+ ReadableType11PrebuiltEntityExtractor ReadableType11 = original.ReadableType11PrebuiltEntityExtractor
+ ReadableType11RegexEntityExtractor ReadableType11 = original.ReadableType11RegexEntityExtractor
+)
+
type ReadableType2 = original.ReadableType2
const (
+ ReadableType2ChildEntityExtractor ReadableType2 = original.ReadableType2ChildEntityExtractor
ReadableType2ClosedListEntityExtractor ReadableType2 = original.ReadableType2ClosedListEntityExtractor
ReadableType2CompositeEntityExtractor ReadableType2 = original.ReadableType2CompositeEntityExtractor
ReadableType2EntityExtractor ReadableType2 = original.ReadableType2EntityExtractor
ReadableType2HierarchicalChildEntityExtractor ReadableType2 = original.ReadableType2HierarchicalChildEntityExtractor
ReadableType2HierarchicalEntityExtractor ReadableType2 = original.ReadableType2HierarchicalEntityExtractor
ReadableType2IntentClassifier ReadableType2 = original.ReadableType2IntentClassifier
+ ReadableType2ListEntityExtractor ReadableType2 = original.ReadableType2ListEntityExtractor
ReadableType2PatternAnyEntityExtractor ReadableType2 = original.ReadableType2PatternAnyEntityExtractor
ReadableType2PrebuiltEntityExtractor ReadableType2 = original.ReadableType2PrebuiltEntityExtractor
ReadableType2RegexEntityExtractor ReadableType2 = original.ReadableType2RegexEntityExtractor
@@ -105,12 +112,14 @@ const (
type ReadableType3 = original.ReadableType3
const (
+ ReadableType3ChildEntityExtractor ReadableType3 = original.ReadableType3ChildEntityExtractor
ReadableType3ClosedListEntityExtractor ReadableType3 = original.ReadableType3ClosedListEntityExtractor
ReadableType3CompositeEntityExtractor ReadableType3 = original.ReadableType3CompositeEntityExtractor
ReadableType3EntityExtractor ReadableType3 = original.ReadableType3EntityExtractor
ReadableType3HierarchicalChildEntityExtractor ReadableType3 = original.ReadableType3HierarchicalChildEntityExtractor
ReadableType3HierarchicalEntityExtractor ReadableType3 = original.ReadableType3HierarchicalEntityExtractor
ReadableType3IntentClassifier ReadableType3 = original.ReadableType3IntentClassifier
+ ReadableType3ListEntityExtractor ReadableType3 = original.ReadableType3ListEntityExtractor
ReadableType3PatternAnyEntityExtractor ReadableType3 = original.ReadableType3PatternAnyEntityExtractor
ReadableType3PrebuiltEntityExtractor ReadableType3 = original.ReadableType3PrebuiltEntityExtractor
ReadableType3RegexEntityExtractor ReadableType3 = original.ReadableType3RegexEntityExtractor
@@ -119,12 +128,14 @@ const (
type ReadableType4 = original.ReadableType4
const (
+ ReadableType4ChildEntityExtractor ReadableType4 = original.ReadableType4ChildEntityExtractor
ReadableType4ClosedListEntityExtractor ReadableType4 = original.ReadableType4ClosedListEntityExtractor
ReadableType4CompositeEntityExtractor ReadableType4 = original.ReadableType4CompositeEntityExtractor
ReadableType4EntityExtractor ReadableType4 = original.ReadableType4EntityExtractor
ReadableType4HierarchicalChildEntityExtractor ReadableType4 = original.ReadableType4HierarchicalChildEntityExtractor
ReadableType4HierarchicalEntityExtractor ReadableType4 = original.ReadableType4HierarchicalEntityExtractor
ReadableType4IntentClassifier ReadableType4 = original.ReadableType4IntentClassifier
+ ReadableType4ListEntityExtractor ReadableType4 = original.ReadableType4ListEntityExtractor
ReadableType4PatternAnyEntityExtractor ReadableType4 = original.ReadableType4PatternAnyEntityExtractor
ReadableType4PrebuiltEntityExtractor ReadableType4 = original.ReadableType4PrebuiltEntityExtractor
ReadableType4RegexEntityExtractor ReadableType4 = original.ReadableType4RegexEntityExtractor
@@ -133,12 +144,14 @@ const (
type ReadableType5 = original.ReadableType5
const (
+ ReadableType5ChildEntityExtractor ReadableType5 = original.ReadableType5ChildEntityExtractor
ReadableType5ClosedListEntityExtractor ReadableType5 = original.ReadableType5ClosedListEntityExtractor
ReadableType5CompositeEntityExtractor ReadableType5 = original.ReadableType5CompositeEntityExtractor
ReadableType5EntityExtractor ReadableType5 = original.ReadableType5EntityExtractor
ReadableType5HierarchicalChildEntityExtractor ReadableType5 = original.ReadableType5HierarchicalChildEntityExtractor
ReadableType5HierarchicalEntityExtractor ReadableType5 = original.ReadableType5HierarchicalEntityExtractor
ReadableType5IntentClassifier ReadableType5 = original.ReadableType5IntentClassifier
+ ReadableType5ListEntityExtractor ReadableType5 = original.ReadableType5ListEntityExtractor
ReadableType5PatternAnyEntityExtractor ReadableType5 = original.ReadableType5PatternAnyEntityExtractor
ReadableType5PrebuiltEntityExtractor ReadableType5 = original.ReadableType5PrebuiltEntityExtractor
ReadableType5RegexEntityExtractor ReadableType5 = original.ReadableType5RegexEntityExtractor
@@ -147,12 +160,14 @@ const (
type ReadableType6 = original.ReadableType6
const (
+ ReadableType6ChildEntityExtractor ReadableType6 = original.ReadableType6ChildEntityExtractor
ReadableType6ClosedListEntityExtractor ReadableType6 = original.ReadableType6ClosedListEntityExtractor
ReadableType6CompositeEntityExtractor ReadableType6 = original.ReadableType6CompositeEntityExtractor
ReadableType6EntityExtractor ReadableType6 = original.ReadableType6EntityExtractor
ReadableType6HierarchicalChildEntityExtractor ReadableType6 = original.ReadableType6HierarchicalChildEntityExtractor
ReadableType6HierarchicalEntityExtractor ReadableType6 = original.ReadableType6HierarchicalEntityExtractor
ReadableType6IntentClassifier ReadableType6 = original.ReadableType6IntentClassifier
+ ReadableType6ListEntityExtractor ReadableType6 = original.ReadableType6ListEntityExtractor
ReadableType6PatternAnyEntityExtractor ReadableType6 = original.ReadableType6PatternAnyEntityExtractor
ReadableType6PrebuiltEntityExtractor ReadableType6 = original.ReadableType6PrebuiltEntityExtractor
ReadableType6RegexEntityExtractor ReadableType6 = original.ReadableType6RegexEntityExtractor
@@ -161,12 +176,14 @@ const (
type ReadableType7 = original.ReadableType7
const (
+ ReadableType7ChildEntityExtractor ReadableType7 = original.ReadableType7ChildEntityExtractor
ReadableType7ClosedListEntityExtractor ReadableType7 = original.ReadableType7ClosedListEntityExtractor
ReadableType7CompositeEntityExtractor ReadableType7 = original.ReadableType7CompositeEntityExtractor
ReadableType7EntityExtractor ReadableType7 = original.ReadableType7EntityExtractor
ReadableType7HierarchicalChildEntityExtractor ReadableType7 = original.ReadableType7HierarchicalChildEntityExtractor
ReadableType7HierarchicalEntityExtractor ReadableType7 = original.ReadableType7HierarchicalEntityExtractor
ReadableType7IntentClassifier ReadableType7 = original.ReadableType7IntentClassifier
+ ReadableType7ListEntityExtractor ReadableType7 = original.ReadableType7ListEntityExtractor
ReadableType7PatternAnyEntityExtractor ReadableType7 = original.ReadableType7PatternAnyEntityExtractor
ReadableType7PrebuiltEntityExtractor ReadableType7 = original.ReadableType7PrebuiltEntityExtractor
ReadableType7RegexEntityExtractor ReadableType7 = original.ReadableType7RegexEntityExtractor
@@ -175,12 +192,14 @@ const (
type ReadableType8 = original.ReadableType8
const (
+ ReadableType8ChildEntityExtractor ReadableType8 = original.ReadableType8ChildEntityExtractor
ReadableType8ClosedListEntityExtractor ReadableType8 = original.ReadableType8ClosedListEntityExtractor
ReadableType8CompositeEntityExtractor ReadableType8 = original.ReadableType8CompositeEntityExtractor
ReadableType8EntityExtractor ReadableType8 = original.ReadableType8EntityExtractor
ReadableType8HierarchicalChildEntityExtractor ReadableType8 = original.ReadableType8HierarchicalChildEntityExtractor
ReadableType8HierarchicalEntityExtractor ReadableType8 = original.ReadableType8HierarchicalEntityExtractor
ReadableType8IntentClassifier ReadableType8 = original.ReadableType8IntentClassifier
+ ReadableType8ListEntityExtractor ReadableType8 = original.ReadableType8ListEntityExtractor
ReadableType8PatternAnyEntityExtractor ReadableType8 = original.ReadableType8PatternAnyEntityExtractor
ReadableType8PrebuiltEntityExtractor ReadableType8 = original.ReadableType8PrebuiltEntityExtractor
ReadableType8RegexEntityExtractor ReadableType8 = original.ReadableType8RegexEntityExtractor
@@ -189,12 +208,14 @@ const (
type ReadableType9 = original.ReadableType9
const (
+ ReadableType9ChildEntityExtractor ReadableType9 = original.ReadableType9ChildEntityExtractor
ReadableType9ClosedListEntityExtractor ReadableType9 = original.ReadableType9ClosedListEntityExtractor
ReadableType9CompositeEntityExtractor ReadableType9 = original.ReadableType9CompositeEntityExtractor
ReadableType9EntityExtractor ReadableType9 = original.ReadableType9EntityExtractor
ReadableType9HierarchicalChildEntityExtractor ReadableType9 = original.ReadableType9HierarchicalChildEntityExtractor
ReadableType9HierarchicalEntityExtractor ReadableType9 = original.ReadableType9HierarchicalEntityExtractor
ReadableType9IntentClassifier ReadableType9 = original.ReadableType9IntentClassifier
+ ReadableType9ListEntityExtractor ReadableType9 = original.ReadableType9ListEntityExtractor
ReadableType9PatternAnyEntityExtractor ReadableType9 = original.ReadableType9PatternAnyEntityExtractor
ReadableType9PrebuiltEntityExtractor ReadableType9 = original.ReadableType9PrebuiltEntityExtractor
ReadableType9RegexEntityExtractor ReadableType9 = original.ReadableType9RegexEntityExtractor
@@ -228,6 +249,7 @@ const (
Trained TrainingStatus = original.Trained
)
+type AppVersionSettingObject = original.AppVersionSettingObject
type ApplicationCreateObject = original.ApplicationCreateObject
type ApplicationInfoResponse = original.ApplicationInfoResponse
type ApplicationPublishObject = original.ApplicationPublishObject
@@ -237,9 +259,12 @@ type ApplicationUpdateObject = original.ApplicationUpdateObject
type AppsClient = original.AppsClient
type AvailableCulture = original.AvailableCulture
type AvailablePrebuiltEntityModel = original.AvailablePrebuiltEntityModel
+type AzureAccountInfoObject = original.AzureAccountInfoObject
+type AzureAccountsClient = original.AzureAccountsClient
type BaseClient = original.BaseClient
type BatchLabelExample = original.BatchLabelExample
type ChildEntity = original.ChildEntity
+type ChildEntityModelCreateObject = original.ChildEntityModelCreateObject
type ClosedList = original.ClosedList
type ClosedListEntityExtractor = original.ClosedListEntityExtractor
type ClosedListModelCreateObject = original.ClosedListModelCreateObject
@@ -256,7 +281,9 @@ type EntitiesSuggestionExample = original.EntitiesSuggestionExample
type EntityExtractor = original.EntityExtractor
type EntityLabel = original.EntityLabel
type EntityLabelObject = original.EntityLabelObject
+type EntityModelCreateObject = original.EntityModelCreateObject
type EntityModelInfo = original.EntityModelInfo
+type EntityModelUpdateObject = original.EntityModelUpdateObject
type EntityPrediction = original.EntityPrediction
type EntityRole = original.EntityRole
type EntityRoleCreateObject = original.EntityRoleCreateObject
@@ -271,12 +298,11 @@ type FeatureInfoObject = original.FeatureInfoObject
type FeaturesClient = original.FeaturesClient
type FeaturesResponseObject = original.FeaturesResponseObject
type HierarchicalChildEntity = original.HierarchicalChildEntity
-type HierarchicalChildModelCreateObject = original.HierarchicalChildModelCreateObject
type HierarchicalChildModelUpdateObject = original.HierarchicalChildModelUpdateObject
type HierarchicalEntityExtractor = original.HierarchicalEntityExtractor
-type HierarchicalEntityModel = original.HierarchicalEntityModel
type HierarchicalModel = original.HierarchicalModel
type Int32 = original.Int32
+type Int64 = original.Int64
type IntentClassifier = original.IntentClassifier
type IntentPrediction = original.IntentPrediction
type IntentsSuggestionExample = original.IntentsSuggestionExample
@@ -285,10 +311,13 @@ type JSONModelFeature = original.JSONModelFeature
type JSONRegexFeature = original.JSONRegexFeature
type JSONUtterance = original.JSONUtterance
type LabelExampleResponse = original.LabelExampleResponse
+type LabelTextObject = original.LabelTextObject
type LabeledUtterance = original.LabeledUtterance
+type ListAppVersionSettingObject = original.ListAppVersionSettingObject
type ListApplicationInfoResponse = original.ListApplicationInfoResponse
type ListAvailableCulture = original.ListAvailableCulture
type ListAvailablePrebuiltEntityModel = original.ListAvailablePrebuiltEntityModel
+type ListAzureAccountInfoObject = original.ListAzureAccountInfoObject
type ListBatchLabelExample = original.ListBatchLabelExample
type ListClosedListEntityExtractor = original.ListClosedListEntityExtractor
type ListCompositeEntityExtractor = original.ListCompositeEntityExtractor
@@ -300,9 +329,12 @@ type ListExplicitListItem = original.ListExplicitListItem
type ListHierarchicalEntityExtractor = original.ListHierarchicalEntityExtractor
type ListIntentClassifier = original.ListIntentClassifier
type ListIntentsSuggestionExample = original.ListIntentsSuggestionExample
+type ListLabelTextObject = original.ListLabelTextObject
type ListLabeledUtterance = original.ListLabeledUtterance
+type ListModelFeatureInformation = original.ListModelFeatureInformation
type ListModelInfoResponse = original.ListModelInfoResponse
type ListModelTrainingInfo = original.ListModelTrainingInfo
+type ListNDepthEntityExtractor = original.ListNDepthEntityExtractor
type ListPatternAnyEntityExtractor = original.ListPatternAnyEntityExtractor
type ListPatternRuleInfo = original.ListPatternRuleInfo
type ListPhraseListFeatureInfo = original.ListPhraseListFeatureInfo
@@ -315,11 +347,13 @@ type ListVersionInfo = original.ListVersionInfo
type LuisApp = original.LuisApp
type ModelClient = original.ModelClient
type ModelCreateObject = original.ModelCreateObject
+type ModelFeatureInformation = original.ModelFeatureInformation
type ModelInfo = original.ModelInfo
type ModelInfoResponse = original.ModelInfoResponse
type ModelTrainingDetails = original.ModelTrainingDetails
type ModelTrainingInfo = original.ModelTrainingInfo
type ModelUpdateObject = original.ModelUpdateObject
+type NDepthEntityExtractor = original.NDepthEntityExtractor
type OperationError = original.OperationError
type OperationStatus = original.OperationStatus
type PatternAny = original.PatternAny
@@ -327,13 +361,11 @@ type PatternAnyEntityExtractor = original.PatternAnyEntityExtractor
type PatternAnyModelCreateObject = original.PatternAnyModelCreateObject
type PatternAnyModelUpdateObject = original.PatternAnyModelUpdateObject
type PatternClient = original.PatternClient
-type PatternCreateObject = original.PatternCreateObject
type PatternFeatureInfo = original.PatternFeatureInfo
type PatternRule = original.PatternRule
type PatternRuleCreateObject = original.PatternRuleCreateObject
type PatternRuleInfo = original.PatternRuleInfo
type PatternRuleUpdateObject = original.PatternRuleUpdateObject
-type PatternUpdateObject = original.PatternUpdateObject
type PermissionsClient = original.PermissionsClient
type PersonalAssistantsResponse = original.PersonalAssistantsResponse
type PhraseListFeatureInfo = original.PhraseListFeatureInfo
@@ -348,12 +380,15 @@ type PrebuiltDomainObject = original.PrebuiltDomainObject
type PrebuiltEntity = original.PrebuiltEntity
type PrebuiltEntityExtractor = original.PrebuiltEntityExtractor
type ProductionOrStagingEndpointInfo = original.ProductionOrStagingEndpointInfo
+type PublishSettingUpdateObject = original.PublishSettingUpdateObject
+type PublishSettings = original.PublishSettings
type ReadCloser = original.ReadCloser
type RegexEntity = original.RegexEntity
type RegexEntityExtractor = original.RegexEntityExtractor
type RegexModelCreateObject = original.RegexModelCreateObject
type RegexModelUpdateObject = original.RegexModelUpdateObject
type SetString = original.SetString
+type SettingsClient = original.SettingsClient
type String = original.String
type SubClosedList = original.SubClosedList
type SubClosedListResponse = original.SubClosedListResponse
@@ -367,38 +402,41 @@ type VersionsClient = original.VersionsClient
type WordListBaseUpdateObject = original.WordListBaseUpdateObject
type WordListObject = original.WordListObject
-func New(azureRegion AzureRegions) BaseClient {
- return original.New(azureRegion)
+func New(endpoint string) BaseClient {
+ return original.New(endpoint)
}
-func NewAppsClient(azureRegion AzureRegions) AppsClient {
- return original.NewAppsClient(azureRegion)
+func NewAppsClient(endpoint string) AppsClient {
+ return original.NewAppsClient(endpoint)
}
-func NewExamplesClient(azureRegion AzureRegions) ExamplesClient {
- return original.NewExamplesClient(azureRegion)
+func NewAzureAccountsClient(endpoint string) AzureAccountsClient {
+ return original.NewAzureAccountsClient(endpoint)
}
-func NewFeaturesClient(azureRegion AzureRegions) FeaturesClient {
- return original.NewFeaturesClient(azureRegion)
+func NewExamplesClient(endpoint string) ExamplesClient {
+ return original.NewExamplesClient(endpoint)
}
-func NewModelClient(azureRegion AzureRegions) ModelClient {
- return original.NewModelClient(azureRegion)
+func NewFeaturesClient(endpoint string) FeaturesClient {
+ return original.NewFeaturesClient(endpoint)
}
-func NewPatternClient(azureRegion AzureRegions) PatternClient {
- return original.NewPatternClient(azureRegion)
+func NewModelClient(endpoint string) ModelClient {
+ return original.NewModelClient(endpoint)
}
-func NewPermissionsClient(azureRegion AzureRegions) PermissionsClient {
- return original.NewPermissionsClient(azureRegion)
+func NewPatternClient(endpoint string) PatternClient {
+ return original.NewPatternClient(endpoint)
}
-func NewTrainClient(azureRegion AzureRegions) TrainClient {
- return original.NewTrainClient(azureRegion)
+func NewPermissionsClient(endpoint string) PermissionsClient {
+ return original.NewPermissionsClient(endpoint)
}
-func NewVersionsClient(azureRegion AzureRegions) VersionsClient {
- return original.NewVersionsClient(azureRegion)
+func NewSettingsClient(endpoint string) SettingsClient {
+ return original.NewSettingsClient(endpoint)
}
-func NewWithoutDefaults(azureRegion AzureRegions) BaseClient {
- return original.NewWithoutDefaults(azureRegion)
+func NewTrainClient(endpoint string) TrainClient {
+ return original.NewTrainClient(endpoint)
}
-func PossibleAzureRegionsValues() []AzureRegions {
- return original.PossibleAzureRegionsValues()
+func NewVersionsClient(endpoint string) VersionsClient {
+ return original.NewVersionsClient(endpoint)
+}
+func NewWithoutDefaults(endpoint string) BaseClient {
+ return original.NewWithoutDefaults(endpoint)
}
func PossibleOperationStatusTypeValues() []OperationStatusType {
return original.PossibleOperationStatusTypeValues()
@@ -406,6 +444,9 @@ func PossibleOperationStatusTypeValues() []OperationStatusType {
func PossibleReadableType10Values() []ReadableType10 {
return original.PossibleReadableType10Values()
}
+func PossibleReadableType11Values() []ReadableType11 {
+ return original.PossibleReadableType11Values()
+}
func PossibleReadableType1Values() []ReadableType1 {
return original.PossibleReadableType1Values()
}
diff --git a/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go b/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go
index a87a8b908614..e3a0d14f2a62 100644
--- a/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go
+++ b/profiles/preview/preview/containerregistry/mgmt/containerregistry/models.go
@@ -294,7 +294,6 @@ type RegistriesQueueBuildFuture = original.RegistriesQueueBuildFuture
type RegistriesUpdateFuture = original.RegistriesUpdateFuture
type RegistriesUpdatePoliciesFuture = original.RegistriesUpdatePoliciesFuture
type Registry = original.Registry
-type RegistryIdentity = original.RegistryIdentity
type RegistryListCredentialsResult = original.RegistryListCredentialsResult
type RegistryListResult = original.RegistryListResult
type RegistryListResultIterator = original.RegistryListResultIterator
diff --git a/profiles/preview/preview/containerservice/mgmt/containerservice/containerserviceapi/models.go b/profiles/preview/preview/containerservice/mgmt/containerservice/containerserviceapi/models.go
index 3a3037bed8f7..a0f27d9e1c42 100644
--- a/profiles/preview/preview/containerservice/mgmt/containerservice/containerserviceapi/models.go
+++ b/profiles/preview/preview/containerservice/mgmt/containerservice/containerserviceapi/models.go
@@ -19,8 +19,9 @@
package containerserviceapi
-import original "github.com/Azure/azure-sdk-for-go/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/containerserviceapi"
+import original "github.com/Azure/azure-sdk-for-go/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/containerserviceapi"
+type AgentPoolsClientAPI = original.AgentPoolsClientAPI
type ContainerServicesClientAPI = original.ContainerServicesClientAPI
type ManagedClustersClientAPI = original.ManagedClustersClientAPI
type OpenShiftManagedClustersClientAPI = original.OpenShiftManagedClustersClientAPI
diff --git a/profiles/preview/preview/containerservice/mgmt/containerservice/models.go b/profiles/preview/preview/containerservice/mgmt/containerservice/models.go
index 12cc847e27ab..28fdc64e189c 100644
--- a/profiles/preview/preview/containerservice/mgmt/containerservice/models.go
+++ b/profiles/preview/preview/containerservice/mgmt/containerservice/models.go
@@ -22,13 +22,20 @@ package containerservice
import (
"context"
- original "github.com/Azure/azure-sdk-for-go/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice"
+ original "github.com/Azure/azure-sdk-for-go/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice"
)
const (
DefaultBaseURI = original.DefaultBaseURI
)
+type AgentPoolType = original.AgentPoolType
+
+const (
+ AvailabilitySet AgentPoolType = original.AvailabilitySet
+ VirtualMachineScaleSets AgentPoolType = original.VirtualMachineScaleSets
+)
+
type Kind = original.Kind
const (
@@ -36,6 +43,13 @@ const (
KindOpenShiftManagedClusterBaseIdentityProvider Kind = original.KindOpenShiftManagedClusterBaseIdentityProvider
)
+type LoadBalancerSku = original.LoadBalancerSku
+
+const (
+ Basic LoadBalancerSku = original.Basic
+ Standard LoadBalancerSku = original.Standard
+)
+
type NetworkPlugin = original.NetworkPlugin
const (
@@ -46,7 +60,8 @@ const (
type NetworkPolicy = original.NetworkPolicy
const (
- Calico NetworkPolicy = original.Calico
+ NetworkPolicyAzure NetworkPolicy = original.NetworkPolicyAzure
+ NetworkPolicyCalico NetworkPolicy = original.NetworkPolicyCalico
)
type OSType = original.OSType
@@ -111,6 +126,27 @@ const (
Swarm OrchestratorTypes = original.Swarm
)
+type ResourceIdentityType = original.ResourceIdentityType
+
+const (
+ None ResourceIdentityType = original.None
+ SystemAssigned ResourceIdentityType = original.SystemAssigned
+)
+
+type ScaleSetEvictionPolicy = original.ScaleSetEvictionPolicy
+
+const (
+ Deallocate ScaleSetEvictionPolicy = original.Deallocate
+ Delete ScaleSetEvictionPolicy = original.Delete
+)
+
+type ScaleSetPriority = original.ScaleSetPriority
+
+const (
+ Low ScaleSetPriority = original.Low
+ Regular ScaleSetPriority = original.Regular
+)
+
type StorageProfileTypes = original.StorageProfileTypes
const (
@@ -298,7 +334,20 @@ const (
)
type AccessProfile = original.AccessProfile
+type AgentPool = original.AgentPool
+type AgentPoolAvailableVersions = original.AgentPoolAvailableVersions
+type AgentPoolAvailableVersionsProperties = original.AgentPoolAvailableVersionsProperties
+type AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem = original.AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem
+type AgentPoolListResult = original.AgentPoolListResult
+type AgentPoolListResultIterator = original.AgentPoolListResultIterator
+type AgentPoolListResultPage = original.AgentPoolListResultPage
type AgentPoolProfile = original.AgentPoolProfile
+type AgentPoolUpgradeProfile = original.AgentPoolUpgradeProfile
+type AgentPoolUpgradeProfileProperties = original.AgentPoolUpgradeProfileProperties
+type AgentPoolUpgradeProfilePropertiesUpgradesItem = original.AgentPoolUpgradeProfilePropertiesUpgradesItem
+type AgentPoolsClient = original.AgentPoolsClient
+type AgentPoolsCreateOrUpdateFuture = original.AgentPoolsCreateOrUpdateFuture
+type AgentPoolsDeleteFuture = original.AgentPoolsDeleteFuture
type BaseClient = original.BaseClient
type BasicOpenShiftManagedClusterBaseIdentityProvider = original.BasicOpenShiftManagedClusterBaseIdentityProvider
type CloudError = original.CloudError
@@ -318,22 +367,32 @@ type ListResultIterator = original.ListResultIterator
type ListResultPage = original.ListResultPage
type ManagedCluster = original.ManagedCluster
type ManagedClusterAADProfile = original.ManagedClusterAADProfile
+type ManagedClusterAPIServerAccessProfile = original.ManagedClusterAPIServerAccessProfile
type ManagedClusterAccessProfile = original.ManagedClusterAccessProfile
type ManagedClusterAddonProfile = original.ManagedClusterAddonProfile
type ManagedClusterAgentPoolProfile = original.ManagedClusterAgentPoolProfile
+type ManagedClusterAgentPoolProfileProperties = original.ManagedClusterAgentPoolProfileProperties
+type ManagedClusterIdentity = original.ManagedClusterIdentity
type ManagedClusterListResult = original.ManagedClusterListResult
type ManagedClusterListResultIterator = original.ManagedClusterListResultIterator
type ManagedClusterListResultPage = original.ManagedClusterListResultPage
+type ManagedClusterLoadBalancerProfile = original.ManagedClusterLoadBalancerProfile
+type ManagedClusterLoadBalancerProfileManagedOutboundIPs = original.ManagedClusterLoadBalancerProfileManagedOutboundIPs
+type ManagedClusterLoadBalancerProfileOutboundIPPrefixes = original.ManagedClusterLoadBalancerProfileOutboundIPPrefixes
+type ManagedClusterLoadBalancerProfileOutboundIPs = original.ManagedClusterLoadBalancerProfileOutboundIPs
type ManagedClusterPoolUpgradeProfile = original.ManagedClusterPoolUpgradeProfile
+type ManagedClusterPoolUpgradeProfileUpgradesItem = original.ManagedClusterPoolUpgradeProfileUpgradesItem
type ManagedClusterProperties = original.ManagedClusterProperties
type ManagedClusterServicePrincipalProfile = original.ManagedClusterServicePrincipalProfile
type ManagedClusterUpgradeProfile = original.ManagedClusterUpgradeProfile
type ManagedClusterUpgradeProfileProperties = original.ManagedClusterUpgradeProfileProperties
+type ManagedClusterWindowsProfile = original.ManagedClusterWindowsProfile
type ManagedClustersClient = original.ManagedClustersClient
type ManagedClustersCreateOrUpdateFuture = original.ManagedClustersCreateOrUpdateFuture
type ManagedClustersDeleteFuture = original.ManagedClustersDeleteFuture
type ManagedClustersResetAADProfileFuture = original.ManagedClustersResetAADProfileFuture
type ManagedClustersResetServicePrincipalProfileFuture = original.ManagedClustersResetServicePrincipalProfileFuture
+type ManagedClustersRotateClusterCertificatesFuture = original.ManagedClustersRotateClusterCertificatesFuture
type ManagedClustersUpdateTagsFuture = original.ManagedClustersUpdateTagsFuture
type MasterProfile = original.MasterProfile
type NetworkProfile = original.NetworkProfile
@@ -348,6 +407,7 @@ type OpenShiftManagedClusterListResult = original.OpenShiftManagedClusterListRes
type OpenShiftManagedClusterListResultIterator = original.OpenShiftManagedClusterListResultIterator
type OpenShiftManagedClusterListResultPage = original.OpenShiftManagedClusterListResultPage
type OpenShiftManagedClusterMasterPoolProfile = original.OpenShiftManagedClusterMasterPoolProfile
+type OpenShiftManagedClusterMonitorProfile = original.OpenShiftManagedClusterMonitorProfile
type OpenShiftManagedClusterProperties = original.OpenShiftManagedClusterProperties
type OpenShiftManagedClustersClient = original.OpenShiftManagedClustersClient
type OpenShiftManagedClustersCreateOrUpdateFuture = original.OpenShiftManagedClustersCreateOrUpdateFuture
@@ -366,9 +426,11 @@ type OrchestratorVersionProfileProperties = original.OrchestratorVersionProfileP
type Properties = original.Properties
type PurchasePlan = original.PurchasePlan
type Resource = original.Resource
+type ResourceReference = original.ResourceReference
type SSHConfiguration = original.SSHConfiguration
type SSHPublicKey = original.SSHPublicKey
type ServicePrincipalProfile = original.ServicePrincipalProfile
+type SubResource = original.SubResource
type TagsObject = original.TagsObject
type VMDiagnostics = original.VMDiagnostics
type WindowsProfile = original.WindowsProfile
@@ -376,6 +438,18 @@ type WindowsProfile = original.WindowsProfile
func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
}
+func NewAgentPoolListResultIterator(page AgentPoolListResultPage) AgentPoolListResultIterator {
+ return original.NewAgentPoolListResultIterator(page)
+}
+func NewAgentPoolListResultPage(getNextPage func(context.Context, AgentPoolListResult) (AgentPoolListResult, error)) AgentPoolListResultPage {
+ return original.NewAgentPoolListResultPage(getNextPage)
+}
+func NewAgentPoolsClient(subscriptionID string) AgentPoolsClient {
+ return original.NewAgentPoolsClient(subscriptionID)
+}
+func NewAgentPoolsClientWithBaseURI(baseURI string, subscriptionID string) AgentPoolsClient {
+ return original.NewAgentPoolsClientWithBaseURI(baseURI, subscriptionID)
+}
func NewContainerServicesClient(subscriptionID string) ContainerServicesClient {
return original.NewContainerServicesClient(subscriptionID)
}
@@ -421,9 +495,15 @@ func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) Opera
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
}
+func PossibleAgentPoolTypeValues() []AgentPoolType {
+ return original.PossibleAgentPoolTypeValues()
+}
func PossibleKindValues() []Kind {
return original.PossibleKindValues()
}
+func PossibleLoadBalancerSkuValues() []LoadBalancerSku {
+ return original.PossibleLoadBalancerSkuValues()
+}
func PossibleNetworkPluginValues() []NetworkPlugin {
return original.PossibleNetworkPluginValues()
}
@@ -442,6 +522,15 @@ func PossibleOpenShiftContainerServiceVMSizeValues() []OpenShiftContainerService
func PossibleOrchestratorTypesValues() []OrchestratorTypes {
return original.PossibleOrchestratorTypesValues()
}
+func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
+ return original.PossibleResourceIdentityTypeValues()
+}
+func PossibleScaleSetEvictionPolicyValues() []ScaleSetEvictionPolicy {
+ return original.PossibleScaleSetEvictionPolicyValues()
+}
+func PossibleScaleSetPriorityValues() []ScaleSetPriority {
+ return original.PossibleScaleSetPriorityValues()
+}
func PossibleStorageProfileTypesValues() []StorageProfileTypes {
return original.PossibleStorageProfileTypesValues()
}
diff --git a/profiles/preview/preview/costmanagement/mgmt/costmanagement/costmanagementapi/models.go b/profiles/preview/preview/costmanagement/mgmt/costmanagement/costmanagementapi/models.go
index 30692e98e72f..65d2217016c3 100644
--- a/profiles/preview/preview/costmanagement/mgmt/costmanagement/costmanagementapi/models.go
+++ b/profiles/preview/preview/costmanagement/mgmt/costmanagement/costmanagementapi/models.go
@@ -19,14 +19,9 @@
package costmanagementapi
-import original "github.com/Azure/azure-sdk-for-go/services/preview/costmanagement/mgmt/2019-03-01/costmanagement/costmanagementapi"
+import original "github.com/Azure/azure-sdk-for-go/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/costmanagementapi"
-type CloudConnectorClientAPI = original.CloudConnectorClientAPI
type DimensionsClientAPI = original.DimensionsClientAPI
-type ExternalBillingAccountClientAPI = original.ExternalBillingAccountClientAPI
-type ExternalSubscriptionClientAPI = original.ExternalSubscriptionClientAPI
-type ForecastClientAPI = original.ForecastClientAPI
+type ExportsClientAPI = original.ExportsClientAPI
type OperationsClientAPI = original.OperationsClientAPI
type QueryClientAPI = original.QueryClientAPI
-type ShowbackRuleClientAPI = original.ShowbackRuleClientAPI
-type ShowbackRulesClientAPI = original.ShowbackRulesClientAPI
diff --git a/profiles/preview/preview/costmanagement/mgmt/costmanagement/models.go b/profiles/preview/preview/costmanagement/mgmt/costmanagement/models.go
index b494b6bf547f..2cf56f16ec73 100644
--- a/profiles/preview/preview/costmanagement/mgmt/costmanagement/models.go
+++ b/profiles/preview/preview/costmanagement/mgmt/costmanagement/models.go
@@ -22,190 +22,141 @@ package costmanagement
import (
"context"
- original "github.com/Azure/azure-sdk-for-go/services/preview/costmanagement/mgmt/2019-03-01/costmanagement"
+ original "github.com/Azure/azure-sdk-for-go/services/preview/costmanagement/mgmt/2019-10-01/costmanagement"
)
const (
DefaultBaseURI = original.DefaultBaseURI
)
-type ConnectorBillingModel = original.ConnectorBillingModel
+type ExecutionStatus = original.ExecutionStatus
const (
- AutoUpgrade ConnectorBillingModel = original.AutoUpgrade
- Expired ConnectorBillingModel = original.Expired
- Premium ConnectorBillingModel = original.Premium
- Trial ConnectorBillingModel = original.Trial
+ Completed ExecutionStatus = original.Completed
+ DataNotAvailable ExecutionStatus = original.DataNotAvailable
+ Failed ExecutionStatus = original.Failed
+ InProgress ExecutionStatus = original.InProgress
+ NewDataNotAvailable ExecutionStatus = original.NewDataNotAvailable
+ Queued ExecutionStatus = original.Queued
+ Timeout ExecutionStatus = original.Timeout
)
-type ConnectorStatus = original.ConnectorStatus
+type ExecutionType = original.ExecutionType
const (
- ConnectorStatusActive ConnectorStatus = original.ConnectorStatusActive
- ConnectorStatusError ConnectorStatus = original.ConnectorStatusError
- ConnectorStatusExpired ConnectorStatus = original.ConnectorStatusExpired
- ConnectorStatusWarning ConnectorStatus = original.ConnectorStatusWarning
+ OnDemand ExecutionType = original.OnDemand
+ Scheduled ExecutionType = original.Scheduled
)
-type CostAllocationPolicy = original.CostAllocationPolicy
+type FormatType = original.FormatType
const (
- Evenly CostAllocationPolicy = original.Evenly
- Fixed CostAllocationPolicy = original.Fixed
- Proportional CostAllocationPolicy = original.Proportional
-)
-
-type Direction = original.Direction
-
-const (
- Ascending Direction = original.Ascending
- Descending Direction = original.Descending
-)
-
-type FunctionType = original.FunctionType
-
-const (
- AHUB FunctionType = original.AHUB
- All FunctionType = original.All
- None FunctionType = original.None
- Reservations FunctionType = original.Reservations
+ Csv FormatType = original.Csv
)
type GranularityType = original.GranularityType
const (
- Daily GranularityType = original.Daily
- Monthly GranularityType = original.Monthly
+ Daily GranularityType = original.Daily
+ Hourly GranularityType = original.Hourly
)
-type OperatorType = original.OperatorType
+type QueryColumnType = original.QueryColumnType
const (
- Contains OperatorType = original.Contains
- In OperatorType = original.In
+ QueryColumnTypeDimension QueryColumnType = original.QueryColumnTypeDimension
+ QueryColumnTypeTag QueryColumnType = original.QueryColumnTypeTag
)
-type ReportConfigColumnType = original.ReportConfigColumnType
+type RecurrenceType = original.RecurrenceType
const (
- ReportConfigColumnTypeDimension ReportConfigColumnType = original.ReportConfigColumnTypeDimension
- ReportConfigColumnTypeTag ReportConfigColumnType = original.ReportConfigColumnTypeTag
+ RecurrenceTypeAnnually RecurrenceType = original.RecurrenceTypeAnnually
+ RecurrenceTypeDaily RecurrenceType = original.RecurrenceTypeDaily
+ RecurrenceTypeMonthly RecurrenceType = original.RecurrenceTypeMonthly
+ RecurrenceTypeWeekly RecurrenceType = original.RecurrenceTypeWeekly
)
-type RuleType = original.RuleType
+type SortDirection = original.SortDirection
const (
- RuleTypeCostAllocation RuleType = original.RuleTypeCostAllocation
- RuleTypeCustomPrice RuleType = original.RuleTypeCustomPrice
- RuleTypeShowbackRuleProperties RuleType = original.RuleTypeShowbackRuleProperties
+ Ascending SortDirection = original.Ascending
+ Descending SortDirection = original.Descending
)
-type ShowbackRuleStatus = original.ShowbackRuleStatus
+type StatusType = original.StatusType
const (
- Active ShowbackRuleStatus = original.Active
- NotActive ShowbackRuleStatus = original.NotActive
+ Active StatusType = original.Active
+ Inactive StatusType = original.Inactive
)
type TimeframeType = original.TimeframeType
const (
- Custom TimeframeType = original.Custom
- MonthToDate TimeframeType = original.MonthToDate
- WeekToDate TimeframeType = original.WeekToDate
- YearToDate TimeframeType = original.YearToDate
+ Custom TimeframeType = original.Custom
+ MonthToDate TimeframeType = original.MonthToDate
+ TheLastMonth TimeframeType = original.TheLastMonth
+ TheLastWeek TimeframeType = original.TheLastWeek
+ TheLastYear TimeframeType = original.TheLastYear
+ WeekToDate TimeframeType = original.WeekToDate
+ YearToDate TimeframeType = original.YearToDate
)
type BaseClient = original.BaseClient
-type BasicShowbackRuleProperties = original.BasicShowbackRuleProperties
-type CloudConnectorClient = original.CloudConnectorClient
-type ConnectorCollectionErrorInfo = original.ConnectorCollectionErrorInfo
-type ConnectorCollectionInfo = original.ConnectorCollectionInfo
-type ConnectorDefinition = original.ConnectorDefinition
-type ConnectorDefinitionListResult = original.ConnectorDefinitionListResult
-type ConnectorProperties = original.ConnectorProperties
-type CostAllocationDetails = original.CostAllocationDetails
-type CostAllocationDetailsKind = original.CostAllocationDetailsKind
-type CustomPriceDetails = original.CustomPriceDetails
-type CustomPriceDetailsKind = original.CustomPriceDetailsKind
+type CommonExportProperties = original.CommonExportProperties
type Dimension = original.Dimension
type DimensionProperties = original.DimensionProperties
type DimensionsClient = original.DimensionsClient
type DimensionsListResult = original.DimensionsListResult
-type ErrorBase = original.ErrorBase
type ErrorDetails = original.ErrorDetails
type ErrorResponse = original.ErrorResponse
-type ExternalBillingAccountClient = original.ExternalBillingAccountClient
-type ExternalBillingAccountDefinition = original.ExternalBillingAccountDefinition
-type ExternalBillingAccountDefinitionListResult = original.ExternalBillingAccountDefinitionListResult
-type ExternalBillingAccountProperties = original.ExternalBillingAccountProperties
-type ExternalSubscriptionClient = original.ExternalSubscriptionClient
-type ExternalSubscriptionDefinition = original.ExternalSubscriptionDefinition
-type ExternalSubscriptionDefinitionListResult = original.ExternalSubscriptionDefinitionListResult
-type ExternalSubscriptionIDListRequest = original.ExternalSubscriptionIDListRequest
-type ExternalSubscriptionProperties = original.ExternalSubscriptionProperties
-type ForecastClient = original.ForecastClient
-type Markup = original.Markup
+type Export = original.Export
+type ExportDeliveryDestination = original.ExportDeliveryDestination
+type ExportDeliveryInfo = original.ExportDeliveryInfo
+type ExportExecution = original.ExportExecution
+type ExportExecutionListResult = original.ExportExecutionListResult
+type ExportExecutionProperties = original.ExportExecutionProperties
+type ExportListResult = original.ExportListResult
+type ExportProperties = original.ExportProperties
+type ExportRecurrencePeriod = original.ExportRecurrencePeriod
+type ExportSchedule = original.ExportSchedule
+type ExportsClient = original.ExportsClient
type Operation = original.Operation
type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult
type OperationListResultIterator = original.OperationListResultIterator
type OperationListResultPage = original.OperationListResultPage
type OperationsClient = original.OperationsClient
-type Query = original.Query
+type QueryAggregation = original.QueryAggregation
type QueryClient = original.QueryClient
type QueryColumn = original.QueryColumn
+type QueryComparisonExpression = original.QueryComparisonExpression
+type QueryDataset = original.QueryDataset
+type QueryDatasetConfiguration = original.QueryDatasetConfiguration
+type QueryDefinition = original.QueryDefinition
+type QueryFilter = original.QueryFilter
+type QueryGrouping = original.QueryGrouping
type QueryProperties = original.QueryProperties
type QueryResult = original.QueryResult
-type ReportConfigAggregation = original.ReportConfigAggregation
-type ReportConfigComparisonExpression = original.ReportConfigComparisonExpression
-type ReportConfigDataset = original.ReportConfigDataset
-type ReportConfigDatasetConfiguration = original.ReportConfigDatasetConfiguration
-type ReportConfigDefinition = original.ReportConfigDefinition
-type ReportConfigFilter = original.ReportConfigFilter
-type ReportConfigGrouping = original.ReportConfigGrouping
-type ReportConfigSorting = original.ReportConfigSorting
-type ReportConfigTimePeriod = original.ReportConfigTimePeriod
+type QuerySortingConfiguration = original.QuerySortingConfiguration
+type QueryTimePeriod = original.QueryTimePeriod
type Resource = original.Resource
-type Scope = original.Scope
-type ShowbackRule = original.ShowbackRule
-type ShowbackRuleClient = original.ShowbackRuleClient
-type ShowbackRuleListResult = original.ShowbackRuleListResult
-type ShowbackRuleProperties = original.ShowbackRuleProperties
-type ShowbackRulesClient = original.ShowbackRulesClient
func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
}
-func NewCloudConnectorClient(subscriptionID string) CloudConnectorClient {
- return original.NewCloudConnectorClient(subscriptionID)
-}
-func NewCloudConnectorClientWithBaseURI(baseURI string, subscriptionID string) CloudConnectorClient {
- return original.NewCloudConnectorClientWithBaseURI(baseURI, subscriptionID)
-}
func NewDimensionsClient(subscriptionID string) DimensionsClient {
return original.NewDimensionsClient(subscriptionID)
}
func NewDimensionsClientWithBaseURI(baseURI string, subscriptionID string) DimensionsClient {
return original.NewDimensionsClientWithBaseURI(baseURI, subscriptionID)
}
-func NewExternalBillingAccountClient(subscriptionID string) ExternalBillingAccountClient {
- return original.NewExternalBillingAccountClient(subscriptionID)
+func NewExportsClient(subscriptionID string) ExportsClient {
+ return original.NewExportsClient(subscriptionID)
}
-func NewExternalBillingAccountClientWithBaseURI(baseURI string, subscriptionID string) ExternalBillingAccountClient {
- return original.NewExternalBillingAccountClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewExternalSubscriptionClient(subscriptionID string) ExternalSubscriptionClient {
- return original.NewExternalSubscriptionClient(subscriptionID)
-}
-func NewExternalSubscriptionClientWithBaseURI(baseURI string, subscriptionID string) ExternalSubscriptionClient {
- return original.NewExternalSubscriptionClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewForecastClient(subscriptionID string) ForecastClient {
- return original.NewForecastClient(subscriptionID)
-}
-func NewForecastClientWithBaseURI(baseURI string, subscriptionID string) ForecastClient {
- return original.NewForecastClientWithBaseURI(baseURI, subscriptionID)
+func NewExportsClientWithBaseURI(baseURI string, subscriptionID string) ExportsClient {
+ return original.NewExportsClientWithBaseURI(baseURI, subscriptionID)
}
func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator {
return original.NewOperationListResultIterator(page)
@@ -225,50 +176,32 @@ func NewQueryClient(subscriptionID string) QueryClient {
func NewQueryClientWithBaseURI(baseURI string, subscriptionID string) QueryClient {
return original.NewQueryClientWithBaseURI(baseURI, subscriptionID)
}
-func NewShowbackRuleClient(subscriptionID string) ShowbackRuleClient {
- return original.NewShowbackRuleClient(subscriptionID)
-}
-func NewShowbackRuleClientWithBaseURI(baseURI string, subscriptionID string) ShowbackRuleClient {
- return original.NewShowbackRuleClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewShowbackRulesClient(subscriptionID string) ShowbackRulesClient {
- return original.NewShowbackRulesClient(subscriptionID)
-}
-func NewShowbackRulesClientWithBaseURI(baseURI string, subscriptionID string) ShowbackRulesClient {
- return original.NewShowbackRulesClientWithBaseURI(baseURI, subscriptionID)
-}
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
}
-func PossibleConnectorBillingModelValues() []ConnectorBillingModel {
- return original.PossibleConnectorBillingModelValues()
-}
-func PossibleConnectorStatusValues() []ConnectorStatus {
- return original.PossibleConnectorStatusValues()
-}
-func PossibleCostAllocationPolicyValues() []CostAllocationPolicy {
- return original.PossibleCostAllocationPolicyValues()
+func PossibleExecutionStatusValues() []ExecutionStatus {
+ return original.PossibleExecutionStatusValues()
}
-func PossibleDirectionValues() []Direction {
- return original.PossibleDirectionValues()
+func PossibleExecutionTypeValues() []ExecutionType {
+ return original.PossibleExecutionTypeValues()
}
-func PossibleFunctionTypeValues() []FunctionType {
- return original.PossibleFunctionTypeValues()
+func PossibleFormatTypeValues() []FormatType {
+ return original.PossibleFormatTypeValues()
}
func PossibleGranularityTypeValues() []GranularityType {
return original.PossibleGranularityTypeValues()
}
-func PossibleOperatorTypeValues() []OperatorType {
- return original.PossibleOperatorTypeValues()
+func PossibleQueryColumnTypeValues() []QueryColumnType {
+ return original.PossibleQueryColumnTypeValues()
}
-func PossibleReportConfigColumnTypeValues() []ReportConfigColumnType {
- return original.PossibleReportConfigColumnTypeValues()
+func PossibleRecurrenceTypeValues() []RecurrenceType {
+ return original.PossibleRecurrenceTypeValues()
}
-func PossibleRuleTypeValues() []RuleType {
- return original.PossibleRuleTypeValues()
+func PossibleSortDirectionValues() []SortDirection {
+ return original.PossibleSortDirectionValues()
}
-func PossibleShowbackRuleStatusValues() []ShowbackRuleStatus {
- return original.PossibleShowbackRuleStatusValues()
+func PossibleStatusTypeValues() []StatusType {
+ return original.PossibleStatusTypeValues()
}
func PossibleTimeframeTypeValues() []TimeframeType {
return original.PossibleTimeframeTypeValues()
diff --git a/profiles/preview/preview/datashare/mgmt/datashare/models.go b/profiles/preview/preview/datashare/mgmt/datashare/models.go
index a2f529f07097..35130fe8a3eb 100644
--- a/profiles/preview/preview/datashare/mgmt/datashare/models.go
+++ b/profiles/preview/preview/datashare/mgmt/datashare/models.go
@@ -47,6 +47,8 @@ const (
Blob DataSetType = original.Blob
BlobFolder DataSetType = original.BlobFolder
Container DataSetType = original.Container
+ KustoCluster DataSetType = original.KustoCluster
+ KustoDatabase DataSetType = original.KustoDatabase
SQLDBTable DataSetType = original.SQLDBTable
SQLDWTable DataSetType = original.SQLDWTable
)
@@ -72,6 +74,8 @@ const (
KindBlobFolder Kind = original.KindBlobFolder
KindContainer Kind = original.KindContainer
KindDataSet Kind = original.KindDataSet
+ KindKustoCluster Kind = original.KindKustoCluster
+ KindKustoDatabase Kind = original.KindKustoDatabase
KindSQLDBTable Kind = original.KindSQLDBTable
KindSQLDWTable Kind = original.KindSQLDWTable
)
@@ -86,6 +90,8 @@ const (
KindBasicDataSetMappingKindBlobFolder KindBasicDataSetMapping = original.KindBasicDataSetMappingKindBlobFolder
KindBasicDataSetMappingKindContainer KindBasicDataSetMapping = original.KindBasicDataSetMappingKindContainer
KindBasicDataSetMappingKindDataSetMapping KindBasicDataSetMapping = original.KindBasicDataSetMappingKindDataSetMapping
+ KindBasicDataSetMappingKindKustoCluster KindBasicDataSetMapping = original.KindBasicDataSetMappingKindKustoCluster
+ KindBasicDataSetMappingKindKustoDatabase KindBasicDataSetMapping = original.KindBasicDataSetMappingKindKustoDatabase
KindBasicDataSetMappingKindSQLDBTable KindBasicDataSetMapping = original.KindBasicDataSetMappingKindSQLDBTable
KindBasicDataSetMappingKindSQLDWTable KindBasicDataSetMapping = original.KindBasicDataSetMappingKindSQLDWTable
)
@@ -139,6 +145,7 @@ type ShareKind = original.ShareKind
const (
CopyBased ShareKind = original.CopyBased
+ InPlace ShareKind = original.InPlace
)
type ShareSubscriptionStatus = original.ShareSubscriptionStatus
@@ -249,6 +256,7 @@ type DataSetMappingModel = original.DataSetMappingModel
type DataSetMappingsClient = original.DataSetMappingsClient
type DataSetModel = original.DataSetModel
type DataSetsClient = original.DataSetsClient
+type DataSetsDeleteFuture = original.DataSetsDeleteFuture
type DefaultDto = original.DefaultDto
type DimensionProperties = original.DimensionProperties
type Error = original.Error
@@ -260,6 +268,14 @@ type InvitationListIterator = original.InvitationListIterator
type InvitationListPage = original.InvitationListPage
type InvitationProperties = original.InvitationProperties
type InvitationsClient = original.InvitationsClient
+type KustoClusterDataSet = original.KustoClusterDataSet
+type KustoClusterDataSetMapping = original.KustoClusterDataSetMapping
+type KustoClusterDataSetMappingProperties = original.KustoClusterDataSetMappingProperties
+type KustoClusterDataSetProperties = original.KustoClusterDataSetProperties
+type KustoDatabaseDataSet = original.KustoDatabaseDataSet
+type KustoDatabaseDataSetMapping = original.KustoDatabaseDataSetMapping
+type KustoDatabaseDataSetMappingProperties = original.KustoDatabaseDataSetMappingProperties
+type KustoDatabaseDataSetProperties = original.KustoDatabaseDataSetProperties
type OperationList = original.OperationList
type OperationListIterator = original.OperationListIterator
type OperationListPage = original.OperationListPage
diff --git a/profiles/preview/preview/eventhub/mgmt/eventhub/models.go b/profiles/preview/preview/eventhub/mgmt/eventhub/models.go
index 752727ce092e..f4cc4662efc8 100644
--- a/profiles/preview/preview/eventhub/mgmt/eventhub/models.go
+++ b/profiles/preview/preview/eventhub/mgmt/eventhub/models.go
@@ -43,6 +43,18 @@ const (
Reject IPAction = original.Reject
)
+type IdentityType = original.IdentityType
+
+const (
+ SystemAssigned IdentityType = original.SystemAssigned
+)
+
+type KeySource = original.KeySource
+
+const (
+ MicrosoftKeyVault KeySource = original.MicrosoftKeyVault
+)
+
type NetworkRuleIPAction = original.NetworkRuleIPAction
const (
@@ -85,12 +97,15 @@ type EHNamespaceListResult = original.EHNamespaceListResult
type EHNamespaceListResultIterator = original.EHNamespaceListResultIterator
type EHNamespaceListResultPage = original.EHNamespaceListResultPage
type EHNamespaceProperties = original.EHNamespaceProperties
+type Encryption = original.Encryption
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 Identity = original.Identity
+type KeyVaultProperties = original.KeyVaultProperties
type NWRuleSetIPRules = original.NWRuleSetIPRules
type NWRuleSetVirtualNetworkRules = original.NWRuleSetVirtualNetworkRules
type NamespacesClient = original.NamespacesClient
@@ -180,6 +195,12 @@ func PossibleDefaultActionValues() []DefaultAction {
func PossibleIPActionValues() []IPAction {
return original.PossibleIPActionValues()
}
+func PossibleIdentityTypeValues() []IdentityType {
+ return original.PossibleIdentityTypeValues()
+}
+func PossibleKeySourceValues() []KeySource {
+ return original.PossibleKeySourceValues()
+}
func PossibleNetworkRuleIPActionValues() []NetworkRuleIPAction {
return original.PossibleNetworkRuleIPActionValues()
}
diff --git a/profiles/preview/preview/hdinsight/mgmt/hdinsight/models.go b/profiles/preview/preview/hdinsight/mgmt/hdinsight/models.go
index 506072d9bc3e..88db56d34baf 100644
--- a/profiles/preview/preview/hdinsight/mgmt/hdinsight/models.go
+++ b/profiles/preview/preview/hdinsight/mgmt/hdinsight/models.go
@@ -29,19 +29,6 @@ const (
DefaultBaseURI = original.DefaultBaseURI
)
-type ApplicationHTTPSEndpointAccessMode = original.ApplicationHTTPSEndpointAccessMode
-
-const (
- WebPage ApplicationHTTPSEndpointAccessMode = original.WebPage
-)
-
-type ApplicationType = original.ApplicationType
-
-const (
- CustomApplication ApplicationType = original.CustomApplication
- RServer ApplicationType = original.RServer
-)
-
type AsyncOperationState = original.AsyncOperationState
const (
@@ -311,12 +298,6 @@ func NewScriptExecutionHistoryClientWithBaseURI(baseURI string, subscriptionID s
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
}
-func PossibleApplicationHTTPSEndpointAccessModeValues() []ApplicationHTTPSEndpointAccessMode {
- return original.PossibleApplicationHTTPSEndpointAccessModeValues()
-}
-func PossibleApplicationTypeValues() []ApplicationType {
- return original.PossibleApplicationTypeValues()
-}
func PossibleAsyncOperationStateValues() []AsyncOperationState {
return original.PossibleAsyncOperationStateValues()
}
diff --git a/profiles/preview/preview/hybridcompute/mgmt/hybridcompute/hybridcomputeapi/models.go b/profiles/preview/preview/hybridcompute/mgmt/hybridcompute/hybridcomputeapi/models.go
new file mode 100644
index 000000000000..cd8991e3187d
--- /dev/null
+++ b/profiles/preview/preview/hybridcompute/mgmt/hybridcompute/hybridcomputeapi/models.go
@@ -0,0 +1,25 @@
+// +build go1.9
+
+// Copyright 2019 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 hybridcomputeapi
+
+import original "github.com/Azure/azure-sdk-for-go/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute/hybridcomputeapi"
+
+type MachinesClientAPI = original.MachinesClientAPI
+type OperationsClientAPI = original.OperationsClientAPI
diff --git a/profiles/preview/preview/hybridcompute/mgmt/hybridcompute/models.go b/profiles/preview/preview/hybridcompute/mgmt/hybridcompute/models.go
new file mode 100644
index 000000000000..7f28840ce6a8
--- /dev/null
+++ b/profiles/preview/preview/hybridcompute/mgmt/hybridcompute/models.go
@@ -0,0 +1,103 @@
+// +build go1.9
+
+// Copyright 2019 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 hybridcompute
+
+import (
+ "context"
+
+ original "github.com/Azure/azure-sdk-for-go/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute"
+)
+
+const (
+ DefaultBaseURI = original.DefaultBaseURI
+)
+
+type InstanceViewTypes = original.InstanceViewTypes
+
+const (
+ InstanceView InstanceViewTypes = original.InstanceView
+)
+
+type StatusTypes = original.StatusTypes
+
+const (
+ Connected StatusTypes = original.Connected
+ Disconnected StatusTypes = original.Disconnected
+ Error StatusTypes = original.Error
+)
+
+type BaseClient = original.BaseClient
+type ErrorDetail = original.ErrorDetail
+type ErrorResponse = original.ErrorResponse
+type Identity = original.Identity
+type Machine = original.Machine
+type MachineListResult = original.MachineListResult
+type MachineListResultIterator = original.MachineListResultIterator
+type MachineListResultPage = original.MachineListResultPage
+type MachineProperties = original.MachineProperties
+type MachineReconnect = original.MachineReconnect
+type MachineReconnectProperties = original.MachineReconnectProperties
+type MachineUpdate = original.MachineUpdate
+type MachineUpdateProperties = original.MachineUpdateProperties
+type MachinesClient = original.MachinesClient
+type OSProfile = original.OSProfile
+type OperationListResult = original.OperationListResult
+type OperationValue = original.OperationValue
+type OperationValueDisplay = original.OperationValueDisplay
+type OperationsClient = original.OperationsClient
+type Resource = original.Resource
+type UpdateResource = original.UpdateResource
+
+func New(subscriptionID string) BaseClient {
+ return original.New(subscriptionID)
+}
+func NewMachineListResultIterator(page MachineListResultPage) MachineListResultIterator {
+ return original.NewMachineListResultIterator(page)
+}
+func NewMachineListResultPage(getNextPage func(context.Context, MachineListResult) (MachineListResult, error)) MachineListResultPage {
+ return original.NewMachineListResultPage(getNextPage)
+}
+func NewMachinesClient(subscriptionID string) MachinesClient {
+ return original.NewMachinesClient(subscriptionID)
+}
+func NewMachinesClientWithBaseURI(baseURI string, subscriptionID string) MachinesClient {
+ return original.NewMachinesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewOperationsClient(subscriptionID string) OperationsClient {
+ return original.NewOperationsClient(subscriptionID)
+}
+func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
+ return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
+ return original.NewWithBaseURI(baseURI, subscriptionID)
+}
+func PossibleInstanceViewTypesValues() []InstanceViewTypes {
+ return original.PossibleInstanceViewTypesValues()
+}
+func PossibleStatusTypesValues() []StatusTypes {
+ return original.PossibleStatusTypesValues()
+}
+func UserAgent() string {
+ return original.UserAgent() + " profiles/preview"
+}
+func Version() string {
+ return original.Version()
+}
diff --git a/profiles/preview/preview/mysql/mgmt/mysql/models.go b/profiles/preview/preview/mysql/mgmt/mysql/models.go
index 1b22f81ab506..6ed8532aef8c 100644
--- a/profiles/preview/preview/mysql/mgmt/mysql/models.go
+++ b/profiles/preview/preview/mysql/mgmt/mysql/models.go
@@ -148,6 +148,12 @@ type ProxyResource = original.ProxyResource
type ReplicasClient = original.ReplicasClient
type SecurityAlertPolicyProperties = original.SecurityAlertPolicyProperties
type Server = original.Server
+type ServerAdministratorProperties = original.ServerAdministratorProperties
+type ServerAdministratorResource = original.ServerAdministratorResource
+type ServerAdministratorResourceListResult = original.ServerAdministratorResourceListResult
+type ServerAdministratorsClient = original.ServerAdministratorsClient
+type ServerAdministratorsCreateOrUpdateFuture = original.ServerAdministratorsCreateOrUpdateFuture
+type ServerAdministratorsDeleteFuture = original.ServerAdministratorsDeleteFuture
type ServerForCreate = original.ServerForCreate
type ServerListResult = original.ServerListResult
type ServerProperties = original.ServerProperties
@@ -229,6 +235,12 @@ func NewReplicasClient(subscriptionID string) ReplicasClient {
func NewReplicasClientWithBaseURI(baseURI string, subscriptionID string) ReplicasClient {
return original.NewReplicasClientWithBaseURI(baseURI, subscriptionID)
}
+func NewServerAdministratorsClient(subscriptionID string) ServerAdministratorsClient {
+ return original.NewServerAdministratorsClient(subscriptionID)
+}
+func NewServerAdministratorsClientWithBaseURI(baseURI string, subscriptionID string) ServerAdministratorsClient {
+ return original.NewServerAdministratorsClientWithBaseURI(baseURI, subscriptionID)
+}
func NewServerSecurityAlertPoliciesClient(subscriptionID string) ServerSecurityAlertPoliciesClient {
return original.NewServerSecurityAlertPoliciesClient(subscriptionID)
}
diff --git a/profiles/preview/preview/mysql/mgmt/mysql/mysqlapi/models.go b/profiles/preview/preview/mysql/mgmt/mysql/mysqlapi/models.go
index 175d2fd4fd60..d2d2d155946f 100644
--- a/profiles/preview/preview/mysql/mgmt/mysql/mysqlapi/models.go
+++ b/profiles/preview/preview/mysql/mgmt/mysql/mysqlapi/models.go
@@ -29,6 +29,7 @@ type LocationBasedPerformanceTierClientAPI = original.LocationBasedPerformanceTi
type LogFilesClientAPI = original.LogFilesClientAPI
type OperationsClientAPI = original.OperationsClientAPI
type ReplicasClientAPI = original.ReplicasClientAPI
+type ServerAdministratorsClientAPI = original.ServerAdministratorsClientAPI
type ServerSecurityAlertPoliciesClientAPI = original.ServerSecurityAlertPoliciesClientAPI
type ServersClientAPI = original.ServersClientAPI
type VirtualNetworkRulesClientAPI = original.VirtualNetworkRulesClientAPI
diff --git a/profiles/preview/preview/peering/mgmt/peering/models.go b/profiles/preview/preview/peering/mgmt/peering/models.go
index cabe32ebf48e..80000056b1b1 100644
--- a/profiles/preview/preview/peering/mgmt/peering/models.go
+++ b/profiles/preview/preview/peering/mgmt/peering/models.go
@@ -22,7 +22,7 @@ package peering
import (
"context"
- original "github.com/Azure/azure-sdk-for-go/services/preview/peering/mgmt/2019-08-01-preview/peering"
+ original "github.com/Azure/azure-sdk-for-go/services/preview/peering/mgmt/2019-09-01-preview/peering"
)
const (
@@ -68,9 +68,9 @@ const (
type LearnedType = original.LearnedType
const (
- LearnedTypeNone LearnedType = original.LearnedTypeNone
- LearnedTypeViaPartner LearnedType = original.LearnedTypeViaPartner
- LearnedTypeViaSession LearnedType = original.LearnedTypeViaSession
+ LearnedTypeNone LearnedType = original.LearnedTypeNone
+ LearnedTypeViaServiceProvider LearnedType = original.LearnedTypeViaServiceProvider
+ LearnedTypeViaSession LearnedType = original.LearnedTypeViaSession
)
type Name = original.Name
@@ -93,6 +93,7 @@ const (
PrefixValidationStatePending PrefixValidationState = original.PrefixValidationStatePending
PrefixValidationStateUnknown PrefixValidationState = original.PrefixValidationStateUnknown
PrefixValidationStateVerified PrefixValidationState = original.PrefixValidationStateVerified
+ PrefixValidationStateWarning PrefixValidationState = original.PrefixValidationStateWarning
)
type ProvisioningState = original.ProvisioningState
@@ -220,11 +221,11 @@ type ServiceLocationListResultPage = original.ServiceLocationListResultPage
type ServiceLocationProperties = original.ServiceLocationProperties
type ServiceLocationsClient = original.ServiceLocationsClient
type ServicePrefix = original.ServicePrefix
+type ServicePrefixEvent = original.ServicePrefixEvent
type ServicePrefixListResult = original.ServicePrefixListResult
type ServicePrefixListResultIterator = original.ServicePrefixListResultIterator
type ServicePrefixListResultPage = original.ServicePrefixListResultPage
type ServicePrefixProperties = original.ServicePrefixProperties
-type ServicePrefixesClient = original.ServicePrefixesClient
type ServiceProperties = original.ServiceProperties
type ServiceProvider = original.ServiceProvider
type ServiceProviderListResult = original.ServiceProviderListResult
@@ -324,12 +325,6 @@ func NewServicePrefixListResultIterator(page ServicePrefixListResultPage) Servic
func NewServicePrefixListResultPage(getNextPage func(context.Context, ServicePrefixListResult) (ServicePrefixListResult, error)) ServicePrefixListResultPage {
return original.NewServicePrefixListResultPage(getNextPage)
}
-func NewServicePrefixesClient(subscriptionID string) ServicePrefixesClient {
- return original.NewServicePrefixesClient(subscriptionID)
-}
-func NewServicePrefixesClientWithBaseURI(baseURI string, subscriptionID string) ServicePrefixesClient {
- return original.NewServicePrefixesClientWithBaseURI(baseURI, subscriptionID)
-}
func NewServiceProviderListResultIterator(page ServiceProviderListResultPage) ServiceProviderListResultIterator {
return original.NewServiceProviderListResultIterator(page)
}
diff --git a/profiles/preview/preview/peering/mgmt/peering/peeringapi/models.go b/profiles/preview/preview/peering/mgmt/peering/peeringapi/models.go
index d3fea5f8eafa..d6b774c37b95 100644
--- a/profiles/preview/preview/peering/mgmt/peering/peeringapi/models.go
+++ b/profiles/preview/preview/peering/mgmt/peering/peeringapi/models.go
@@ -19,7 +19,7 @@
package peeringapi
-import original "github.com/Azure/azure-sdk-for-go/services/preview/peering/mgmt/2019-08-01-preview/peering/peeringapi"
+import original "github.com/Azure/azure-sdk-for-go/services/preview/peering/mgmt/2019-09-01-preview/peering/peeringapi"
type BaseClientAPI = original.BaseClientAPI
type LegacyPeeringsClientAPI = original.LegacyPeeringsClientAPI
@@ -29,6 +29,5 @@ type PeerAsnsClientAPI = original.PeerAsnsClientAPI
type PeeringsClientAPI = original.PeeringsClientAPI
type PrefixesClientAPI = original.PrefixesClientAPI
type ServiceLocationsClientAPI = original.ServiceLocationsClientAPI
-type ServicePrefixesClientAPI = original.ServicePrefixesClientAPI
type ServiceProvidersClientAPI = original.ServiceProvidersClientAPI
type ServicesClientAPI = original.ServicesClientAPI
diff --git a/profiles/preview/preview/postgresql/mgmt/postgresql/models.go b/profiles/preview/preview/postgresql/mgmt/postgresql/models.go
index 4bb162d2499e..bff224032dcd 100644
--- a/profiles/preview/preview/postgresql/mgmt/postgresql/models.go
+++ b/profiles/preview/preview/postgresql/mgmt/postgresql/models.go
@@ -152,6 +152,12 @@ type ProxyResource = original.ProxyResource
type ReplicasClient = original.ReplicasClient
type SecurityAlertPolicyProperties = original.SecurityAlertPolicyProperties
type Server = original.Server
+type ServerAdministratorProperties = original.ServerAdministratorProperties
+type ServerAdministratorResource = original.ServerAdministratorResource
+type ServerAdministratorResourceListResult = original.ServerAdministratorResourceListResult
+type ServerAdministratorsClient = original.ServerAdministratorsClient
+type ServerAdministratorsCreateOrUpdateFuture = original.ServerAdministratorsCreateOrUpdateFuture
+type ServerAdministratorsDeleteFuture = original.ServerAdministratorsDeleteFuture
type ServerForCreate = original.ServerForCreate
type ServerListResult = original.ServerListResult
type ServerProperties = original.ServerProperties
@@ -233,6 +239,12 @@ func NewReplicasClient(subscriptionID string) ReplicasClient {
func NewReplicasClientWithBaseURI(baseURI string, subscriptionID string) ReplicasClient {
return original.NewReplicasClientWithBaseURI(baseURI, subscriptionID)
}
+func NewServerAdministratorsClient(subscriptionID string) ServerAdministratorsClient {
+ return original.NewServerAdministratorsClient(subscriptionID)
+}
+func NewServerAdministratorsClientWithBaseURI(baseURI string, subscriptionID string) ServerAdministratorsClient {
+ return original.NewServerAdministratorsClientWithBaseURI(baseURI, subscriptionID)
+}
func NewServerSecurityAlertPoliciesClient(subscriptionID string) ServerSecurityAlertPoliciesClient {
return original.NewServerSecurityAlertPoliciesClient(subscriptionID)
}
diff --git a/profiles/preview/preview/postgresql/mgmt/postgresql/postgresqlapi/models.go b/profiles/preview/preview/postgresql/mgmt/postgresql/postgresqlapi/models.go
index bc9ef850e1c0..a50964de6acb 100644
--- a/profiles/preview/preview/postgresql/mgmt/postgresql/postgresqlapi/models.go
+++ b/profiles/preview/preview/postgresql/mgmt/postgresql/postgresqlapi/models.go
@@ -29,6 +29,7 @@ type LocationBasedPerformanceTierClientAPI = original.LocationBasedPerformanceTi
type LogFilesClientAPI = original.LogFilesClientAPI
type OperationsClientAPI = original.OperationsClientAPI
type ReplicasClientAPI = original.ReplicasClientAPI
+type ServerAdministratorsClientAPI = original.ServerAdministratorsClientAPI
type ServerSecurityAlertPoliciesClientAPI = original.ServerSecurityAlertPoliciesClientAPI
type ServersClientAPI = original.ServersClientAPI
type VirtualNetworkRulesClientAPI = original.VirtualNetworkRulesClientAPI
diff --git a/profiles/preview/preview/reservations/mgmt/reservations/models.go b/profiles/preview/preview/reservations/mgmt/reservations/models.go
index 93e8b2bf8b0f..8a48e611bb76 100644
--- a/profiles/preview/preview/reservations/mgmt/reservations/models.go
+++ b/profiles/preview/preview/reservations/mgmt/reservations/models.go
@@ -162,7 +162,6 @@ type CalculatePriceResponseProperties = original.CalculatePriceResponsePropertie
type CalculatePriceResponsePropertiesBillingCurrencyTotal = original.CalculatePriceResponsePropertiesBillingCurrencyTotal
type CalculatePriceResponsePropertiesPricingCurrencyTotal = original.CalculatePriceResponsePropertiesPricingCurrencyTotal
type Catalog = original.Catalog
-type CatalogBillingPlansItem = original.CatalogBillingPlansItem
type Client = original.Client
type Error = original.Error
type ExtendedErrorInfo = original.ExtendedErrorInfo
diff --git a/profiles/preview/preview/security/mgmt/security/models.go b/profiles/preview/preview/security/mgmt/security/models.go
index df35b6096df1..cf99cd57bc4e 100644
--- a/profiles/preview/preview/security/mgmt/security/models.go
+++ b/profiles/preview/preview/security/mgmt/security/models.go
@@ -518,6 +518,7 @@ type IoTSecurityAggregatedAlertList = original.IoTSecurityAggregatedAlertList
type IoTSecurityAggregatedAlertListIterator = original.IoTSecurityAggregatedAlertListIterator
type IoTSecurityAggregatedAlertListPage = original.IoTSecurityAggregatedAlertListPage
type IoTSecurityAggregatedAlertProperties = original.IoTSecurityAggregatedAlertProperties
+type IoTSecurityAggregatedAlertPropertiesTopDevicesListItem = original.IoTSecurityAggregatedAlertPropertiesTopDevicesListItem
type IoTSecurityAggregatedRecommendation = original.IoTSecurityAggregatedRecommendation
type IoTSecurityAggregatedRecommendationList = original.IoTSecurityAggregatedRecommendationList
type IoTSecurityAggregatedRecommendationListIterator = original.IoTSecurityAggregatedRecommendationListIterator
@@ -532,14 +533,9 @@ type IoTSecuritySolutionAnalyticsModelProperties = original.IoTSecuritySolutionA
type IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem = original.IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem
type IoTSecuritySolutionModel = original.IoTSecuritySolutionModel
type IoTSecuritySolutionProperties = original.IoTSecuritySolutionProperties
-type IoTSecuritySolutionsAnalyticsAggregatedAlertsClient = original.IoTSecuritySolutionsAnalyticsAggregatedAlertsClient
-type IoTSecuritySolutionsAnalyticsClient = original.IoTSecuritySolutionsAnalyticsClient
-type IoTSecuritySolutionsAnalyticsRecommendationsClient = original.IoTSecuritySolutionsAnalyticsRecommendationsClient
-type IoTSecuritySolutionsClient = original.IoTSecuritySolutionsClient
type IoTSecuritySolutionsList = original.IoTSecuritySolutionsList
type IoTSecuritySolutionsListIterator = original.IoTSecuritySolutionsListIterator
type IoTSecuritySolutionsListPage = original.IoTSecuritySolutionsListPage
-type IoTSecuritySolutionsResourceGroupClient = original.IoTSecuritySolutionsResourceGroupClient
type IoTSeverityMetrics = original.IoTSeverityMetrics
type IotSecuritySolutionAnalyticsClient = original.IotSecuritySolutionAnalyticsClient
type IotSecuritySolutionClient = original.IotSecuritySolutionClient
@@ -802,42 +798,12 @@ func NewIoTSecurityAggregatedRecommendationListIterator(page IoTSecurityAggregat
func NewIoTSecurityAggregatedRecommendationListPage(getNextPage func(context.Context, IoTSecurityAggregatedRecommendationList) (IoTSecurityAggregatedRecommendationList, error)) IoTSecurityAggregatedRecommendationListPage {
return original.NewIoTSecurityAggregatedRecommendationListPage(getNextPage)
}
-func NewIoTSecuritySolutionsAnalyticsAggregatedAlertsClient(subscriptionID string, ascLocation string) IoTSecuritySolutionsAnalyticsAggregatedAlertsClient {
- return original.NewIoTSecuritySolutionsAnalyticsAggregatedAlertsClient(subscriptionID, ascLocation)
-}
-func NewIoTSecuritySolutionsAnalyticsAggregatedAlertsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) IoTSecuritySolutionsAnalyticsAggregatedAlertsClient {
- return original.NewIoTSecuritySolutionsAnalyticsAggregatedAlertsClientWithBaseURI(baseURI, subscriptionID, ascLocation)
-}
-func NewIoTSecuritySolutionsAnalyticsClient(subscriptionID string, ascLocation string) IoTSecuritySolutionsAnalyticsClient {
- return original.NewIoTSecuritySolutionsAnalyticsClient(subscriptionID, ascLocation)
-}
-func NewIoTSecuritySolutionsAnalyticsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) IoTSecuritySolutionsAnalyticsClient {
- return original.NewIoTSecuritySolutionsAnalyticsClientWithBaseURI(baseURI, subscriptionID, ascLocation)
-}
-func NewIoTSecuritySolutionsAnalyticsRecommendationsClient(subscriptionID string, ascLocation string) IoTSecuritySolutionsAnalyticsRecommendationsClient {
- return original.NewIoTSecuritySolutionsAnalyticsRecommendationsClient(subscriptionID, ascLocation)
-}
-func NewIoTSecuritySolutionsAnalyticsRecommendationsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) IoTSecuritySolutionsAnalyticsRecommendationsClient {
- return original.NewIoTSecuritySolutionsAnalyticsRecommendationsClientWithBaseURI(baseURI, subscriptionID, ascLocation)
-}
-func NewIoTSecuritySolutionsClient(subscriptionID string, ascLocation string) IoTSecuritySolutionsClient {
- return original.NewIoTSecuritySolutionsClient(subscriptionID, ascLocation)
-}
-func NewIoTSecuritySolutionsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) IoTSecuritySolutionsClient {
- return original.NewIoTSecuritySolutionsClientWithBaseURI(baseURI, subscriptionID, ascLocation)
-}
func NewIoTSecuritySolutionsListIterator(page IoTSecuritySolutionsListPage) IoTSecuritySolutionsListIterator {
return original.NewIoTSecuritySolutionsListIterator(page)
}
func NewIoTSecuritySolutionsListPage(getNextPage func(context.Context, IoTSecuritySolutionsList) (IoTSecuritySolutionsList, error)) IoTSecuritySolutionsListPage {
return original.NewIoTSecuritySolutionsListPage(getNextPage)
}
-func NewIoTSecuritySolutionsResourceGroupClient(subscriptionID string, ascLocation string) IoTSecuritySolutionsResourceGroupClient {
- return original.NewIoTSecuritySolutionsResourceGroupClient(subscriptionID, ascLocation)
-}
-func NewIoTSecuritySolutionsResourceGroupClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) IoTSecuritySolutionsResourceGroupClient {
- return original.NewIoTSecuritySolutionsResourceGroupClientWithBaseURI(baseURI, subscriptionID, ascLocation)
-}
func NewIotSecuritySolutionAnalyticsClient(subscriptionID string, ascLocation string) IotSecuritySolutionAnalyticsClient {
return original.NewIotSecuritySolutionAnalyticsClient(subscriptionID, ascLocation)
}
diff --git a/profiles/preview/preview/sql/mgmt/sql/models.go b/profiles/preview/preview/sql/mgmt/sql/models.go
index 116fa93df32b..06ea636d3fe2 100644
--- a/profiles/preview/preview/sql/mgmt/sql/models.go
+++ b/profiles/preview/preview/sql/mgmt/sql/models.go
@@ -22,96 +22,13 @@ package sql
import (
"context"
- original "github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2018-06-15-preview/sql"
+ original "github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2018-06-01-preview/sql"
)
const (
DefaultBaseURI = original.DefaultBaseURI
)
-type AuthenticationType = original.AuthenticationType
-
-const (
- ADPassword AuthenticationType = original.ADPassword
- SQL AuthenticationType = original.SQL
-)
-
-type AutomaticTuningDisabledReason = original.AutomaticTuningDisabledReason
-
-const (
- AutoConfigured AutomaticTuningDisabledReason = original.AutoConfigured
- Default AutomaticTuningDisabledReason = original.Default
- Disabled AutomaticTuningDisabledReason = original.Disabled
- InheritedFromServer AutomaticTuningDisabledReason = original.InheritedFromServer
- NotSupported AutomaticTuningDisabledReason = original.NotSupported
- QueryStoreOff AutomaticTuningDisabledReason = original.QueryStoreOff
- QueryStoreReadOnly AutomaticTuningDisabledReason = original.QueryStoreReadOnly
-)
-
-type AutomaticTuningMode = original.AutomaticTuningMode
-
-const (
- Auto AutomaticTuningMode = original.Auto
- Custom AutomaticTuningMode = original.Custom
- Inherit AutomaticTuningMode = original.Inherit
- Unspecified AutomaticTuningMode = original.Unspecified
-)
-
-type AutomaticTuningOptionModeActual = original.AutomaticTuningOptionModeActual
-
-const (
- Off AutomaticTuningOptionModeActual = original.Off
- On AutomaticTuningOptionModeActual = original.On
-)
-
-type AutomaticTuningOptionModeDesired = original.AutomaticTuningOptionModeDesired
-
-const (
- AutomaticTuningOptionModeDesiredDefault AutomaticTuningOptionModeDesired = original.AutomaticTuningOptionModeDesiredDefault
- AutomaticTuningOptionModeDesiredOff AutomaticTuningOptionModeDesired = original.AutomaticTuningOptionModeDesiredOff
- AutomaticTuningOptionModeDesiredOn AutomaticTuningOptionModeDesired = original.AutomaticTuningOptionModeDesiredOn
-)
-
-type AutomaticTuningServerMode = original.AutomaticTuningServerMode
-
-const (
- AutomaticTuningServerModeAuto AutomaticTuningServerMode = original.AutomaticTuningServerModeAuto
- AutomaticTuningServerModeCustom AutomaticTuningServerMode = original.AutomaticTuningServerModeCustom
- AutomaticTuningServerModeUnspecified AutomaticTuningServerMode = original.AutomaticTuningServerModeUnspecified
-)
-
-type AutomaticTuningServerReason = original.AutomaticTuningServerReason
-
-const (
- AutomaticTuningServerReasonAutoConfigured AutomaticTuningServerReason = original.AutomaticTuningServerReasonAutoConfigured
- AutomaticTuningServerReasonDefault AutomaticTuningServerReason = original.AutomaticTuningServerReasonDefault
- AutomaticTuningServerReasonDisabled AutomaticTuningServerReason = original.AutomaticTuningServerReasonDisabled
-)
-
-type BlobAuditingPolicyState = original.BlobAuditingPolicyState
-
-const (
- BlobAuditingPolicyStateDisabled BlobAuditingPolicyState = original.BlobAuditingPolicyStateDisabled
- BlobAuditingPolicyStateEnabled BlobAuditingPolicyState = original.BlobAuditingPolicyStateEnabled
-)
-
-type CapabilityGroup = original.CapabilityGroup
-
-const (
- SupportedEditions CapabilityGroup = original.SupportedEditions
- SupportedElasticPoolEditions CapabilityGroup = original.SupportedElasticPoolEditions
- SupportedManagedInstanceVersions CapabilityGroup = original.SupportedManagedInstanceVersions
-)
-
-type CapabilityStatus = original.CapabilityStatus
-
-const (
- CapabilityStatusAvailable CapabilityStatus = original.CapabilityStatusAvailable
- CapabilityStatusDefault CapabilityStatus = original.CapabilityStatusDefault
- CapabilityStatusDisabled CapabilityStatus = original.CapabilityStatusDisabled
- CapabilityStatusVisible CapabilityStatus = original.CapabilityStatusVisible
-)
-
type CatalogCollationType = original.CatalogCollationType
const (
@@ -119,263 +36,26 @@ const (
SQLLatin1GeneralCP1CIAS CatalogCollationType = original.SQLLatin1GeneralCP1CIAS
)
-type CheckNameAvailabilityReason = original.CheckNameAvailabilityReason
-
-const (
- AlreadyExists CheckNameAvailabilityReason = original.AlreadyExists
- Invalid CheckNameAvailabilityReason = original.Invalid
-)
-
-type CreateMode = original.CreateMode
-
-const (
- CreateModeCopy CreateMode = original.CreateModeCopy
- CreateModeDefault CreateMode = original.CreateModeDefault
- CreateModeOnlineSecondary CreateMode = original.CreateModeOnlineSecondary
- CreateModePointInTimeRestore CreateMode = original.CreateModePointInTimeRestore
- CreateModeRecovery CreateMode = original.CreateModeRecovery
- CreateModeRestore CreateMode = original.CreateModeRestore
- CreateModeRestoreExternalBackup CreateMode = original.CreateModeRestoreExternalBackup
- CreateModeRestoreExternalBackupSecondary CreateMode = original.CreateModeRestoreExternalBackupSecondary
- CreateModeRestoreLongTermRetentionBackup CreateMode = original.CreateModeRestoreLongTermRetentionBackup
- CreateModeSecondary CreateMode = original.CreateModeSecondary
-)
-
-type DataMaskingFunction = original.DataMaskingFunction
-
-const (
- DataMaskingFunctionCCN DataMaskingFunction = original.DataMaskingFunctionCCN
- DataMaskingFunctionDefault DataMaskingFunction = original.DataMaskingFunctionDefault
- DataMaskingFunctionEmail DataMaskingFunction = original.DataMaskingFunctionEmail
- DataMaskingFunctionNumber DataMaskingFunction = original.DataMaskingFunctionNumber
- DataMaskingFunctionSSN DataMaskingFunction = original.DataMaskingFunctionSSN
- DataMaskingFunctionText DataMaskingFunction = original.DataMaskingFunctionText
-)
-
-type DataMaskingRuleState = original.DataMaskingRuleState
-
-const (
- DataMaskingRuleStateDisabled DataMaskingRuleState = original.DataMaskingRuleStateDisabled
- DataMaskingRuleStateEnabled DataMaskingRuleState = original.DataMaskingRuleStateEnabled
-)
-
-type DataMaskingState = original.DataMaskingState
-
-const (
- DataMaskingStateDisabled DataMaskingState = original.DataMaskingStateDisabled
- DataMaskingStateEnabled DataMaskingState = original.DataMaskingStateEnabled
-)
-
-type DatabaseEdition = original.DatabaseEdition
-
-const (
- Basic DatabaseEdition = original.Basic
- Business DatabaseEdition = original.Business
- BusinessCritical DatabaseEdition = original.BusinessCritical
- DataWarehouse DatabaseEdition = original.DataWarehouse
- Free DatabaseEdition = original.Free
- GeneralPurpose DatabaseEdition = original.GeneralPurpose
- Hyperscale DatabaseEdition = original.Hyperscale
- Premium DatabaseEdition = original.Premium
- PremiumRS DatabaseEdition = original.PremiumRS
- Standard DatabaseEdition = original.Standard
- Stretch DatabaseEdition = original.Stretch
- System DatabaseEdition = original.System
- System2 DatabaseEdition = original.System2
- Web DatabaseEdition = original.Web
-)
-
-type DatabaseLicenseType = original.DatabaseLicenseType
-
-const (
- BasePrice DatabaseLicenseType = original.BasePrice
- LicenseIncluded DatabaseLicenseType = original.LicenseIncluded
-)
-
-type DatabaseReadScale = original.DatabaseReadScale
-
-const (
- DatabaseReadScaleDisabled DatabaseReadScale = original.DatabaseReadScaleDisabled
- DatabaseReadScaleEnabled DatabaseReadScale = original.DatabaseReadScaleEnabled
-)
-
-type DatabaseStatus = original.DatabaseStatus
-
-const (
- DatabaseStatusAutoClosed DatabaseStatus = original.DatabaseStatusAutoClosed
- DatabaseStatusCopying DatabaseStatus = original.DatabaseStatusCopying
- DatabaseStatusCreating DatabaseStatus = original.DatabaseStatusCreating
- DatabaseStatusDisabled DatabaseStatus = original.DatabaseStatusDisabled
- DatabaseStatusEmergencyMode DatabaseStatus = original.DatabaseStatusEmergencyMode
- DatabaseStatusInaccessible DatabaseStatus = original.DatabaseStatusInaccessible
- DatabaseStatusOffline DatabaseStatus = original.DatabaseStatusOffline
- DatabaseStatusOfflineChangingDwPerformanceTiers DatabaseStatus = original.DatabaseStatusOfflineChangingDwPerformanceTiers
- DatabaseStatusOfflineSecondary DatabaseStatus = original.DatabaseStatusOfflineSecondary
- DatabaseStatusOnline DatabaseStatus = original.DatabaseStatusOnline
- DatabaseStatusOnlineChangingDwPerformanceTiers DatabaseStatus = original.DatabaseStatusOnlineChangingDwPerformanceTiers
- DatabaseStatusPaused DatabaseStatus = original.DatabaseStatusPaused
- DatabaseStatusPausing DatabaseStatus = original.DatabaseStatusPausing
- DatabaseStatusRecovering DatabaseStatus = original.DatabaseStatusRecovering
- DatabaseStatusRecoveryPending DatabaseStatus = original.DatabaseStatusRecoveryPending
- DatabaseStatusRestoring DatabaseStatus = original.DatabaseStatusRestoring
- DatabaseStatusResuming DatabaseStatus = original.DatabaseStatusResuming
- DatabaseStatusScaling DatabaseStatus = original.DatabaseStatusScaling
- DatabaseStatusShutdown DatabaseStatus = original.DatabaseStatusShutdown
- DatabaseStatusStandby DatabaseStatus = original.DatabaseStatusStandby
- DatabaseStatusSuspect DatabaseStatus = original.DatabaseStatusSuspect
-)
-
-type ElasticPoolEdition = original.ElasticPoolEdition
-
-const (
- ElasticPoolEditionBasic ElasticPoolEdition = original.ElasticPoolEditionBasic
- ElasticPoolEditionBusinessCritical ElasticPoolEdition = original.ElasticPoolEditionBusinessCritical
- ElasticPoolEditionGeneralPurpose ElasticPoolEdition = original.ElasticPoolEditionGeneralPurpose
- ElasticPoolEditionPremium ElasticPoolEdition = original.ElasticPoolEditionPremium
- ElasticPoolEditionStandard ElasticPoolEdition = original.ElasticPoolEditionStandard
-)
-
-type ElasticPoolLicenseType = original.ElasticPoolLicenseType
-
-const (
- ElasticPoolLicenseTypeBasePrice ElasticPoolLicenseType = original.ElasticPoolLicenseTypeBasePrice
- ElasticPoolLicenseTypeLicenseIncluded ElasticPoolLicenseType = original.ElasticPoolLicenseTypeLicenseIncluded
-)
-
-type ElasticPoolState = original.ElasticPoolState
-
-const (
- ElasticPoolStateCreating ElasticPoolState = original.ElasticPoolStateCreating
- ElasticPoolStateDisabled ElasticPoolState = original.ElasticPoolStateDisabled
- ElasticPoolStateReady ElasticPoolState = original.ElasticPoolStateReady
-)
-
-type FailoverGroupReplicationRole = original.FailoverGroupReplicationRole
-
-const (
- Primary FailoverGroupReplicationRole = original.Primary
- Secondary FailoverGroupReplicationRole = original.Secondary
-)
-
-type GeoBackupPolicyState = original.GeoBackupPolicyState
-
-const (
- GeoBackupPolicyStateDisabled GeoBackupPolicyState = original.GeoBackupPolicyStateDisabled
- GeoBackupPolicyStateEnabled GeoBackupPolicyState = original.GeoBackupPolicyStateEnabled
-)
-
type IdentityType = original.IdentityType
const (
SystemAssigned IdentityType = original.SystemAssigned
)
-type InstanceFailoverGroupReplicationRole = original.InstanceFailoverGroupReplicationRole
-
-const (
- InstanceFailoverGroupReplicationRolePrimary InstanceFailoverGroupReplicationRole = original.InstanceFailoverGroupReplicationRolePrimary
- InstanceFailoverGroupReplicationRoleSecondary InstanceFailoverGroupReplicationRole = original.InstanceFailoverGroupReplicationRoleSecondary
-)
-
type InstancePoolLicenseType = original.InstancePoolLicenseType
const (
- InstancePoolLicenseTypeBasePrice InstancePoolLicenseType = original.InstancePoolLicenseTypeBasePrice
- InstancePoolLicenseTypeLicenseIncluded InstancePoolLicenseType = original.InstancePoolLicenseTypeLicenseIncluded
-)
-
-type JobAgentState = original.JobAgentState
-
-const (
- JobAgentStateCreating JobAgentState = original.JobAgentStateCreating
- JobAgentStateDeleting JobAgentState = original.JobAgentStateDeleting
- JobAgentStateDisabled JobAgentState = original.JobAgentStateDisabled
- JobAgentStateReady JobAgentState = original.JobAgentStateReady
- JobAgentStateUpdating JobAgentState = original.JobAgentStateUpdating
-)
-
-type JobExecutionLifecycle = original.JobExecutionLifecycle
-
-const (
- Canceled JobExecutionLifecycle = original.Canceled
- Created JobExecutionLifecycle = original.Created
- Failed JobExecutionLifecycle = original.Failed
- InProgress JobExecutionLifecycle = original.InProgress
- Skipped JobExecutionLifecycle = original.Skipped
- Succeeded JobExecutionLifecycle = original.Succeeded
- SucceededWithSkipped JobExecutionLifecycle = original.SucceededWithSkipped
- TimedOut JobExecutionLifecycle = original.TimedOut
- WaitingForChildJobExecutions JobExecutionLifecycle = original.WaitingForChildJobExecutions
- WaitingForRetry JobExecutionLifecycle = original.WaitingForRetry
-)
-
-type JobScheduleType = original.JobScheduleType
-
-const (
- Once JobScheduleType = original.Once
- Recurring JobScheduleType = original.Recurring
-)
-
-type JobStepActionSource = original.JobStepActionSource
-
-const (
- Inline JobStepActionSource = original.Inline
-)
-
-type JobStepActionType = original.JobStepActionType
-
-const (
- TSQL JobStepActionType = original.TSQL
-)
-
-type JobStepOutputType = original.JobStepOutputType
-
-const (
- SQLDatabase JobStepOutputType = original.SQLDatabase
-)
-
-type JobTargetGroupMembershipType = original.JobTargetGroupMembershipType
-
-const (
- Exclude JobTargetGroupMembershipType = original.Exclude
- Include JobTargetGroupMembershipType = original.Include
-)
-
-type JobTargetType = original.JobTargetType
-
-const (
- JobTargetTypeSQLDatabase JobTargetType = original.JobTargetTypeSQLDatabase
- JobTargetTypeSQLElasticPool JobTargetType = original.JobTargetTypeSQLElasticPool
- JobTargetTypeSQLServer JobTargetType = original.JobTargetTypeSQLServer
- JobTargetTypeSQLShardMap JobTargetType = original.JobTargetTypeSQLShardMap
- JobTargetTypeTargetGroup JobTargetType = original.JobTargetTypeTargetGroup
-)
-
-type LogSizeUnit = original.LogSizeUnit
-
-const (
- Gigabytes LogSizeUnit = original.Gigabytes
- Megabytes LogSizeUnit = original.Megabytes
- Percent LogSizeUnit = original.Percent
- Petabytes LogSizeUnit = original.Petabytes
- Terabytes LogSizeUnit = original.Terabytes
-)
-
-type LongTermRetentionDatabaseState = original.LongTermRetentionDatabaseState
-
-const (
- All LongTermRetentionDatabaseState = original.All
- Deleted LongTermRetentionDatabaseState = original.Deleted
- Live LongTermRetentionDatabaseState = original.Live
+ BasePrice InstancePoolLicenseType = original.BasePrice
+ LicenseIncluded InstancePoolLicenseType = original.LicenseIncluded
)
type ManagedDatabaseCreateMode = original.ManagedDatabaseCreateMode
const (
- ManagedDatabaseCreateModeDefault ManagedDatabaseCreateMode = original.ManagedDatabaseCreateModeDefault
- ManagedDatabaseCreateModePointInTimeRestore ManagedDatabaseCreateMode = original.ManagedDatabaseCreateModePointInTimeRestore
- ManagedDatabaseCreateModeRecovery ManagedDatabaseCreateMode = original.ManagedDatabaseCreateModeRecovery
- ManagedDatabaseCreateModeRestoreExternalBackup ManagedDatabaseCreateMode = original.ManagedDatabaseCreateModeRestoreExternalBackup
+ Default ManagedDatabaseCreateMode = original.Default
+ PointInTimeRestore ManagedDatabaseCreateMode = original.PointInTimeRestore
+ Recovery ManagedDatabaseCreateMode = original.Recovery
+ RestoreExternalBackup ManagedDatabaseCreateMode = original.RestoreExternalBackup
)
type ManagedDatabaseStatus = original.ManagedDatabaseStatus
@@ -412,149 +92,6 @@ const (
ManagedServerCreateModePointInTimeRestore ManagedServerCreateMode = original.ManagedServerCreateModePointInTimeRestore
)
-type ManagementOperationState = original.ManagementOperationState
-
-const (
- ManagementOperationStateCancelInProgress ManagementOperationState = original.ManagementOperationStateCancelInProgress
- ManagementOperationStateCancelled ManagementOperationState = original.ManagementOperationStateCancelled
- ManagementOperationStateFailed ManagementOperationState = original.ManagementOperationStateFailed
- ManagementOperationStateInProgress ManagementOperationState = original.ManagementOperationStateInProgress
- ManagementOperationStatePending ManagementOperationState = original.ManagementOperationStatePending
- ManagementOperationStateSucceeded ManagementOperationState = original.ManagementOperationStateSucceeded
-)
-
-type MaxSizeUnit = original.MaxSizeUnit
-
-const (
- MaxSizeUnitGigabytes MaxSizeUnit = original.MaxSizeUnitGigabytes
- MaxSizeUnitMegabytes MaxSizeUnit = original.MaxSizeUnitMegabytes
- MaxSizeUnitPetabytes MaxSizeUnit = original.MaxSizeUnitPetabytes
- MaxSizeUnitTerabytes MaxSizeUnit = original.MaxSizeUnitTerabytes
-)
-
-type OperationOrigin = original.OperationOrigin
-
-const (
- OperationOriginSystem OperationOrigin = original.OperationOriginSystem
- OperationOriginUser OperationOrigin = original.OperationOriginUser
-)
-
-type PerformanceLevelUnit = original.PerformanceLevelUnit
-
-const (
- DTU PerformanceLevelUnit = original.DTU
- VCores PerformanceLevelUnit = original.VCores
-)
-
-type PrimaryAggregationType = original.PrimaryAggregationType
-
-const (
- Average PrimaryAggregationType = original.Average
- Count PrimaryAggregationType = original.Count
- Maximum PrimaryAggregationType = original.Maximum
- Minimum PrimaryAggregationType = original.Minimum
- None PrimaryAggregationType = original.None
- Total PrimaryAggregationType = original.Total
-)
-
-type ProvisioningState = original.ProvisioningState
-
-const (
- ProvisioningStateCanceled ProvisioningState = original.ProvisioningStateCanceled
- ProvisioningStateCreated ProvisioningState = original.ProvisioningStateCreated
- ProvisioningStateFailed ProvisioningState = original.ProvisioningStateFailed
- ProvisioningStateInProgress ProvisioningState = original.ProvisioningStateInProgress
- ProvisioningStateSucceeded ProvisioningState = original.ProvisioningStateSucceeded
-)
-
-type ReadOnlyEndpointFailoverPolicy = original.ReadOnlyEndpointFailoverPolicy
-
-const (
- ReadOnlyEndpointFailoverPolicyDisabled ReadOnlyEndpointFailoverPolicy = original.ReadOnlyEndpointFailoverPolicyDisabled
- ReadOnlyEndpointFailoverPolicyEnabled ReadOnlyEndpointFailoverPolicy = original.ReadOnlyEndpointFailoverPolicyEnabled
-)
-
-type ReadWriteEndpointFailoverPolicy = original.ReadWriteEndpointFailoverPolicy
-
-const (
- Automatic ReadWriteEndpointFailoverPolicy = original.Automatic
- Manual ReadWriteEndpointFailoverPolicy = original.Manual
-)
-
-type RecommendedIndexAction = original.RecommendedIndexAction
-
-const (
- Create RecommendedIndexAction = original.Create
- Drop RecommendedIndexAction = original.Drop
- Rebuild RecommendedIndexAction = original.Rebuild
-)
-
-type RecommendedIndexState = original.RecommendedIndexState
-
-const (
- Active RecommendedIndexState = original.Active
- Blocked RecommendedIndexState = original.Blocked
- Executing RecommendedIndexState = original.Executing
- Expired RecommendedIndexState = original.Expired
- Ignored RecommendedIndexState = original.Ignored
- Pending RecommendedIndexState = original.Pending
- PendingRevert RecommendedIndexState = original.PendingRevert
- Reverted RecommendedIndexState = original.Reverted
- Reverting RecommendedIndexState = original.Reverting
- Success RecommendedIndexState = original.Success
- Verifying RecommendedIndexState = original.Verifying
-)
-
-type RecommendedIndexType = original.RecommendedIndexType
-
-const (
- CLUSTERED RecommendedIndexType = original.CLUSTERED
- CLUSTEREDCOLUMNSTORE RecommendedIndexType = original.CLUSTEREDCOLUMNSTORE
- COLUMNSTORE RecommendedIndexType = original.COLUMNSTORE
- NONCLUSTERED RecommendedIndexType = original.NONCLUSTERED
-)
-
-type ReplicationRole = original.ReplicationRole
-
-const (
- ReplicationRoleCopy ReplicationRole = original.ReplicationRoleCopy
- ReplicationRoleNonReadableSecondary ReplicationRole = original.ReplicationRoleNonReadableSecondary
- ReplicationRolePrimary ReplicationRole = original.ReplicationRolePrimary
- ReplicationRoleSecondary ReplicationRole = original.ReplicationRoleSecondary
- ReplicationRoleSource ReplicationRole = original.ReplicationRoleSource
-)
-
-type ReplicationState = original.ReplicationState
-
-const (
- CATCHUP ReplicationState = original.CATCHUP
- PENDING ReplicationState = original.PENDING
- SEEDING ReplicationState = original.SEEDING
- SUSPENDED ReplicationState = original.SUSPENDED
-)
-
-type RestorePointType = original.RestorePointType
-
-const (
- CONTINUOUS RestorePointType = original.CONTINUOUS
- DISCRETE RestorePointType = original.DISCRETE
-)
-
-type SampleName = original.SampleName
-
-const (
- AdventureWorksLT SampleName = original.AdventureWorksLT
- WideWorldImportersFull SampleName = original.WideWorldImportersFull
- WideWorldImportersStd SampleName = original.WideWorldImportersStd
-)
-
-type SecurityAlertPolicyEmailAccountAdmins = original.SecurityAlertPolicyEmailAccountAdmins
-
-const (
- SecurityAlertPolicyEmailAccountAdminsDisabled SecurityAlertPolicyEmailAccountAdmins = original.SecurityAlertPolicyEmailAccountAdminsDisabled
- SecurityAlertPolicyEmailAccountAdminsEnabled SecurityAlertPolicyEmailAccountAdmins = original.SecurityAlertPolicyEmailAccountAdminsEnabled
-)
-
type SecurityAlertPolicyState = original.SecurityAlertPolicyState
const (
@@ -563,13 +100,6 @@ const (
SecurityAlertPolicyStateNew SecurityAlertPolicyState = original.SecurityAlertPolicyStateNew
)
-type SecurityAlertPolicyUseServerDefault = original.SecurityAlertPolicyUseServerDefault
-
-const (
- SecurityAlertPolicyUseServerDefaultDisabled SecurityAlertPolicyUseServerDefault = original.SecurityAlertPolicyUseServerDefaultDisabled
- SecurityAlertPolicyUseServerDefaultEnabled SecurityAlertPolicyUseServerDefault = original.SecurityAlertPolicyUseServerDefaultEnabled
-)
-
type SensitivityLabelSource = original.SensitivityLabelSource
const (
@@ -577,406 +107,17 @@ const (
Recommended SensitivityLabelSource = original.Recommended
)
-type ServerConnectionType = original.ServerConnectionType
-
-const (
- ServerConnectionTypeDefault ServerConnectionType = original.ServerConnectionTypeDefault
- ServerConnectionTypeProxy ServerConnectionType = original.ServerConnectionTypeProxy
- ServerConnectionTypeRedirect ServerConnectionType = original.ServerConnectionTypeRedirect
-)
-
-type ServerKeyType = original.ServerKeyType
-
-const (
- AzureKeyVault ServerKeyType = original.AzureKeyVault
- ServiceManaged ServerKeyType = original.ServiceManaged
-)
-
-type ServiceObjectiveName = original.ServiceObjectiveName
-
-const (
- ServiceObjectiveNameBasic ServiceObjectiveName = original.ServiceObjectiveNameBasic
- ServiceObjectiveNameDS100 ServiceObjectiveName = original.ServiceObjectiveNameDS100
- ServiceObjectiveNameDS1000 ServiceObjectiveName = original.ServiceObjectiveNameDS1000
- ServiceObjectiveNameDS1200 ServiceObjectiveName = original.ServiceObjectiveNameDS1200
- ServiceObjectiveNameDS1500 ServiceObjectiveName = original.ServiceObjectiveNameDS1500
- ServiceObjectiveNameDS200 ServiceObjectiveName = original.ServiceObjectiveNameDS200
- ServiceObjectiveNameDS2000 ServiceObjectiveName = original.ServiceObjectiveNameDS2000
- ServiceObjectiveNameDS300 ServiceObjectiveName = original.ServiceObjectiveNameDS300
- ServiceObjectiveNameDS400 ServiceObjectiveName = original.ServiceObjectiveNameDS400
- ServiceObjectiveNameDS500 ServiceObjectiveName = original.ServiceObjectiveNameDS500
- ServiceObjectiveNameDS600 ServiceObjectiveName = original.ServiceObjectiveNameDS600
- ServiceObjectiveNameDW100 ServiceObjectiveName = original.ServiceObjectiveNameDW100
- ServiceObjectiveNameDW1000 ServiceObjectiveName = original.ServiceObjectiveNameDW1000
- ServiceObjectiveNameDW10000c ServiceObjectiveName = original.ServiceObjectiveNameDW10000c
- ServiceObjectiveNameDW1000c ServiceObjectiveName = original.ServiceObjectiveNameDW1000c
- ServiceObjectiveNameDW1200 ServiceObjectiveName = original.ServiceObjectiveNameDW1200
- ServiceObjectiveNameDW1500 ServiceObjectiveName = original.ServiceObjectiveNameDW1500
- ServiceObjectiveNameDW15000c ServiceObjectiveName = original.ServiceObjectiveNameDW15000c
- ServiceObjectiveNameDW1500c ServiceObjectiveName = original.ServiceObjectiveNameDW1500c
- ServiceObjectiveNameDW200 ServiceObjectiveName = original.ServiceObjectiveNameDW200
- ServiceObjectiveNameDW2000 ServiceObjectiveName = original.ServiceObjectiveNameDW2000
- ServiceObjectiveNameDW2000c ServiceObjectiveName = original.ServiceObjectiveNameDW2000c
- ServiceObjectiveNameDW2500c ServiceObjectiveName = original.ServiceObjectiveNameDW2500c
- ServiceObjectiveNameDW300 ServiceObjectiveName = original.ServiceObjectiveNameDW300
- ServiceObjectiveNameDW3000 ServiceObjectiveName = original.ServiceObjectiveNameDW3000
- ServiceObjectiveNameDW30000c ServiceObjectiveName = original.ServiceObjectiveNameDW30000c
- ServiceObjectiveNameDW3000c ServiceObjectiveName = original.ServiceObjectiveNameDW3000c
- ServiceObjectiveNameDW400 ServiceObjectiveName = original.ServiceObjectiveNameDW400
- ServiceObjectiveNameDW500 ServiceObjectiveName = original.ServiceObjectiveNameDW500
- ServiceObjectiveNameDW5000c ServiceObjectiveName = original.ServiceObjectiveNameDW5000c
- ServiceObjectiveNameDW600 ServiceObjectiveName = original.ServiceObjectiveNameDW600
- ServiceObjectiveNameDW6000 ServiceObjectiveName = original.ServiceObjectiveNameDW6000
- ServiceObjectiveNameDW6000c ServiceObjectiveName = original.ServiceObjectiveNameDW6000c
- ServiceObjectiveNameDW7500c ServiceObjectiveName = original.ServiceObjectiveNameDW7500c
- ServiceObjectiveNameElasticPool ServiceObjectiveName = original.ServiceObjectiveNameElasticPool
- ServiceObjectiveNameFree ServiceObjectiveName = original.ServiceObjectiveNameFree
- ServiceObjectiveNameP1 ServiceObjectiveName = original.ServiceObjectiveNameP1
- ServiceObjectiveNameP11 ServiceObjectiveName = original.ServiceObjectiveNameP11
- ServiceObjectiveNameP15 ServiceObjectiveName = original.ServiceObjectiveNameP15
- ServiceObjectiveNameP2 ServiceObjectiveName = original.ServiceObjectiveNameP2
- ServiceObjectiveNameP3 ServiceObjectiveName = original.ServiceObjectiveNameP3
- ServiceObjectiveNameP4 ServiceObjectiveName = original.ServiceObjectiveNameP4
- ServiceObjectiveNameP6 ServiceObjectiveName = original.ServiceObjectiveNameP6
- ServiceObjectiveNamePRS1 ServiceObjectiveName = original.ServiceObjectiveNamePRS1
- ServiceObjectiveNamePRS2 ServiceObjectiveName = original.ServiceObjectiveNamePRS2
- ServiceObjectiveNamePRS4 ServiceObjectiveName = original.ServiceObjectiveNamePRS4
- ServiceObjectiveNamePRS6 ServiceObjectiveName = original.ServiceObjectiveNamePRS6
- ServiceObjectiveNameS0 ServiceObjectiveName = original.ServiceObjectiveNameS0
- ServiceObjectiveNameS1 ServiceObjectiveName = original.ServiceObjectiveNameS1
- ServiceObjectiveNameS12 ServiceObjectiveName = original.ServiceObjectiveNameS12
- ServiceObjectiveNameS2 ServiceObjectiveName = original.ServiceObjectiveNameS2
- ServiceObjectiveNameS3 ServiceObjectiveName = original.ServiceObjectiveNameS3
- ServiceObjectiveNameS4 ServiceObjectiveName = original.ServiceObjectiveNameS4
- ServiceObjectiveNameS6 ServiceObjectiveName = original.ServiceObjectiveNameS6
- ServiceObjectiveNameS7 ServiceObjectiveName = original.ServiceObjectiveNameS7
- ServiceObjectiveNameS9 ServiceObjectiveName = original.ServiceObjectiveNameS9
- ServiceObjectiveNameSystem ServiceObjectiveName = original.ServiceObjectiveNameSystem
- ServiceObjectiveNameSystem0 ServiceObjectiveName = original.ServiceObjectiveNameSystem0
- ServiceObjectiveNameSystem1 ServiceObjectiveName = original.ServiceObjectiveNameSystem1
- ServiceObjectiveNameSystem2 ServiceObjectiveName = original.ServiceObjectiveNameSystem2
- ServiceObjectiveNameSystem2L ServiceObjectiveName = original.ServiceObjectiveNameSystem2L
- ServiceObjectiveNameSystem3 ServiceObjectiveName = original.ServiceObjectiveNameSystem3
- ServiceObjectiveNameSystem3L ServiceObjectiveName = original.ServiceObjectiveNameSystem3L
- ServiceObjectiveNameSystem4 ServiceObjectiveName = original.ServiceObjectiveNameSystem4
- ServiceObjectiveNameSystem4L ServiceObjectiveName = original.ServiceObjectiveNameSystem4L
-)
-
-type StorageKeyType = original.StorageKeyType
-
-const (
- SharedAccessKey StorageKeyType = original.SharedAccessKey
- StorageAccessKey StorageKeyType = original.StorageAccessKey
-)
-
-type SyncAgentState = original.SyncAgentState
-
-const (
- SyncAgentStateNeverConnected SyncAgentState = original.SyncAgentStateNeverConnected
- SyncAgentStateOffline SyncAgentState = original.SyncAgentStateOffline
- SyncAgentStateOnline SyncAgentState = original.SyncAgentStateOnline
-)
-
-type SyncConflictResolutionPolicy = original.SyncConflictResolutionPolicy
-
-const (
- HubWin SyncConflictResolutionPolicy = original.HubWin
- MemberWin SyncConflictResolutionPolicy = original.MemberWin
-)
-
-type SyncDirection = original.SyncDirection
-
-const (
- Bidirectional SyncDirection = original.Bidirectional
- OneWayHubToMember SyncDirection = original.OneWayHubToMember
- OneWayMemberToHub SyncDirection = original.OneWayMemberToHub
-)
-
-type SyncGroupLogType = original.SyncGroupLogType
-
-const (
- SyncGroupLogTypeAll SyncGroupLogType = original.SyncGroupLogTypeAll
- SyncGroupLogTypeError SyncGroupLogType = original.SyncGroupLogTypeError
- SyncGroupLogTypeSuccess SyncGroupLogType = original.SyncGroupLogTypeSuccess
- SyncGroupLogTypeWarning SyncGroupLogType = original.SyncGroupLogTypeWarning
-)
-
-type SyncGroupState = original.SyncGroupState
-
-const (
- Error SyncGroupState = original.Error
- Good SyncGroupState = original.Good
- NotReady SyncGroupState = original.NotReady
- Progressing SyncGroupState = original.Progressing
- Warning SyncGroupState = original.Warning
-)
-
-type SyncMemberDbType = original.SyncMemberDbType
-
-const (
- AzureSQLDatabase SyncMemberDbType = original.AzureSQLDatabase
- SQLServerDatabase SyncMemberDbType = original.SQLServerDatabase
-)
-
-type SyncMemberState = original.SyncMemberState
-
-const (
- DeProvisioned SyncMemberState = original.DeProvisioned
- DeProvisionFailed SyncMemberState = original.DeProvisionFailed
- DeProvisioning SyncMemberState = original.DeProvisioning
- DisabledBackupRestore SyncMemberState = original.DisabledBackupRestore
- DisabledTombstoneCleanup SyncMemberState = original.DisabledTombstoneCleanup
- Provisioned SyncMemberState = original.Provisioned
- ProvisionFailed SyncMemberState = original.ProvisionFailed
- Provisioning SyncMemberState = original.Provisioning
- ReprovisionFailed SyncMemberState = original.ReprovisionFailed
- Reprovisioning SyncMemberState = original.Reprovisioning
- SyncCancelled SyncMemberState = original.SyncCancelled
- SyncCancelling SyncMemberState = original.SyncCancelling
- SyncFailed SyncMemberState = original.SyncFailed
- SyncInProgress SyncMemberState = original.SyncInProgress
- SyncSucceeded SyncMemberState = original.SyncSucceeded
- SyncSucceededWithWarnings SyncMemberState = original.SyncSucceededWithWarnings
- UnProvisioned SyncMemberState = original.UnProvisioned
- UnReprovisioned SyncMemberState = original.UnReprovisioned
-)
-
-type TransparentDataEncryptionActivityStatus = original.TransparentDataEncryptionActivityStatus
-
-const (
- Decrypting TransparentDataEncryptionActivityStatus = original.Decrypting
- Encrypting TransparentDataEncryptionActivityStatus = original.Encrypting
-)
-
-type TransparentDataEncryptionStatus = original.TransparentDataEncryptionStatus
-
-const (
- TransparentDataEncryptionStatusDisabled TransparentDataEncryptionStatus = original.TransparentDataEncryptionStatusDisabled
- TransparentDataEncryptionStatusEnabled TransparentDataEncryptionStatus = original.TransparentDataEncryptionStatusEnabled
-)
-
-type UnitDefinitionType = original.UnitDefinitionType
-
-const (
- UnitDefinitionTypeBytes UnitDefinitionType = original.UnitDefinitionTypeBytes
- UnitDefinitionTypeBytesPerSecond UnitDefinitionType = original.UnitDefinitionTypeBytesPerSecond
- UnitDefinitionTypeCount UnitDefinitionType = original.UnitDefinitionTypeCount
- UnitDefinitionTypeCountPerSecond UnitDefinitionType = original.UnitDefinitionTypeCountPerSecond
- UnitDefinitionTypePercent UnitDefinitionType = original.UnitDefinitionTypePercent
- UnitDefinitionTypeSeconds UnitDefinitionType = original.UnitDefinitionTypeSeconds
-)
-
-type UnitType = original.UnitType
-
-const (
- UnitTypeBytes UnitType = original.UnitTypeBytes
- UnitTypeBytesPerSecond UnitType = original.UnitTypeBytesPerSecond
- UnitTypeCount UnitType = original.UnitTypeCount
- UnitTypeCountPerSecond UnitType = original.UnitTypeCountPerSecond
- UnitTypePercent UnitType = original.UnitTypePercent
- UnitTypeSeconds UnitType = original.UnitTypeSeconds
-)
-
-type VirtualNetworkRuleState = original.VirtualNetworkRuleState
-
-const (
- VirtualNetworkRuleStateDeleting VirtualNetworkRuleState = original.VirtualNetworkRuleStateDeleting
- VirtualNetworkRuleStateInitializing VirtualNetworkRuleState = original.VirtualNetworkRuleStateInitializing
- VirtualNetworkRuleStateInProgress VirtualNetworkRuleState = original.VirtualNetworkRuleStateInProgress
- VirtualNetworkRuleStateReady VirtualNetworkRuleState = original.VirtualNetworkRuleStateReady
- VirtualNetworkRuleStateUnknown VirtualNetworkRuleState = original.VirtualNetworkRuleStateUnknown
-)
-
-type VulnerabilityAssessmentPolicyBaselineName = original.VulnerabilityAssessmentPolicyBaselineName
-
-const (
- VulnerabilityAssessmentPolicyBaselineNameDefault VulnerabilityAssessmentPolicyBaselineName = original.VulnerabilityAssessmentPolicyBaselineNameDefault
- VulnerabilityAssessmentPolicyBaselineNameMaster VulnerabilityAssessmentPolicyBaselineName = original.VulnerabilityAssessmentPolicyBaselineNameMaster
-)
-
-type VulnerabilityAssessmentScanState = original.VulnerabilityAssessmentScanState
-
-const (
- VulnerabilityAssessmentScanStateFailed VulnerabilityAssessmentScanState = original.VulnerabilityAssessmentScanStateFailed
- VulnerabilityAssessmentScanStateFailedToRun VulnerabilityAssessmentScanState = original.VulnerabilityAssessmentScanStateFailedToRun
- VulnerabilityAssessmentScanStateInProgress VulnerabilityAssessmentScanState = original.VulnerabilityAssessmentScanStateInProgress
- VulnerabilityAssessmentScanStatePassed VulnerabilityAssessmentScanState = original.VulnerabilityAssessmentScanStatePassed
-)
-
-type VulnerabilityAssessmentScanTriggerType = original.VulnerabilityAssessmentScanTriggerType
-
-const (
- VulnerabilityAssessmentScanTriggerTypeOnDemand VulnerabilityAssessmentScanTriggerType = original.VulnerabilityAssessmentScanTriggerTypeOnDemand
- VulnerabilityAssessmentScanTriggerTypeRecurring VulnerabilityAssessmentScanTriggerType = original.VulnerabilityAssessmentScanTriggerTypeRecurring
-)
-
-type AutomaticTuningOptions = original.AutomaticTuningOptions
-type AutomaticTuningServerOptions = original.AutomaticTuningServerOptions
-type AutomaticTuningServerProperties = original.AutomaticTuningServerProperties
-type BackupLongTermRetentionPoliciesClient = original.BackupLongTermRetentionPoliciesClient
-type BackupLongTermRetentionPoliciesCreateOrUpdateFuture = original.BackupLongTermRetentionPoliciesCreateOrUpdateFuture
-type BackupLongTermRetentionPolicy = original.BackupLongTermRetentionPolicy
-type BackupShortTermRetentionPoliciesClient = original.BackupShortTermRetentionPoliciesClient
-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 BaseClient = original.BaseClient
-type CapabilitiesClient = original.CapabilitiesClient
-type CheckNameAvailabilityRequest = original.CheckNameAvailabilityRequest
-type CheckNameAvailabilityResponse = original.CheckNameAvailabilityResponse
type CompleteDatabaseRestoreDefinition = original.CompleteDatabaseRestoreDefinition
-type CreateDatabaseRestorePointDefinition = original.CreateDatabaseRestorePointDefinition
-type DataMaskingPoliciesClient = original.DataMaskingPoliciesClient
-type DataMaskingPolicy = original.DataMaskingPolicy
-type DataMaskingPolicyProperties = original.DataMaskingPolicyProperties
-type DataMaskingRule = original.DataMaskingRule
-type DataMaskingRuleListResult = original.DataMaskingRuleListResult
-type DataMaskingRuleProperties = original.DataMaskingRuleProperties
-type DataMaskingRulesClient = original.DataMaskingRulesClient
-type Database = original.Database
-type DatabaseAutomaticTuning = original.DatabaseAutomaticTuning
-type DatabaseAutomaticTuningClient = original.DatabaseAutomaticTuningClient
-type DatabaseAutomaticTuningProperties = original.DatabaseAutomaticTuningProperties
-type DatabaseBlobAuditingPoliciesClient = original.DatabaseBlobAuditingPoliciesClient
-type DatabaseBlobAuditingPolicy = original.DatabaseBlobAuditingPolicy
-type DatabaseBlobAuditingPolicyListResult = original.DatabaseBlobAuditingPolicyListResult
-type DatabaseBlobAuditingPolicyListResultIterator = original.DatabaseBlobAuditingPolicyListResultIterator
-type DatabaseBlobAuditingPolicyListResultPage = original.DatabaseBlobAuditingPolicyListResultPage
-type DatabaseBlobAuditingPolicyProperties = original.DatabaseBlobAuditingPolicyProperties
-type DatabaseListResult = original.DatabaseListResult
-type DatabaseListResultIterator = original.DatabaseListResultIterator
-type DatabaseListResultPage = original.DatabaseListResultPage
-type DatabaseOperation = original.DatabaseOperation
-type DatabaseOperationListResult = original.DatabaseOperationListResult
-type DatabaseOperationListResultIterator = original.DatabaseOperationListResultIterator
-type DatabaseOperationListResultPage = original.DatabaseOperationListResultPage
-type DatabaseOperationProperties = original.DatabaseOperationProperties
-type DatabaseOperationsClient = original.DatabaseOperationsClient
-type DatabaseProperties = original.DatabaseProperties
+type DatabaseSecurityAlertListResult = original.DatabaseSecurityAlertListResult
+type DatabaseSecurityAlertListResultIterator = original.DatabaseSecurityAlertListResultIterator
+type DatabaseSecurityAlertListResultPage = original.DatabaseSecurityAlertListResultPage
+type DatabaseSecurityAlertPoliciesClient = original.DatabaseSecurityAlertPoliciesClient
type DatabaseSecurityAlertPolicy = original.DatabaseSecurityAlertPolicy
-type DatabaseSecurityAlertPolicyProperties = original.DatabaseSecurityAlertPolicyProperties
-type DatabaseThreatDetectionPoliciesClient = original.DatabaseThreatDetectionPoliciesClient
-type DatabaseUpdate = original.DatabaseUpdate
-type DatabaseUsage = original.DatabaseUsage
-type DatabaseUsageListResult = original.DatabaseUsageListResult
-type DatabaseUsagesClient = original.DatabaseUsagesClient
-type DatabaseVulnerabilityAssessment = original.DatabaseVulnerabilityAssessment
-type DatabaseVulnerabilityAssessmentListResult = original.DatabaseVulnerabilityAssessmentListResult
-type DatabaseVulnerabilityAssessmentListResultIterator = original.DatabaseVulnerabilityAssessmentListResultIterator
-type DatabaseVulnerabilityAssessmentListResultPage = original.DatabaseVulnerabilityAssessmentListResultPage
-type DatabaseVulnerabilityAssessmentProperties = original.DatabaseVulnerabilityAssessmentProperties
-type DatabaseVulnerabilityAssessmentRuleBaseline = original.DatabaseVulnerabilityAssessmentRuleBaseline
-type DatabaseVulnerabilityAssessmentRuleBaselineItem = original.DatabaseVulnerabilityAssessmentRuleBaselineItem
-type DatabaseVulnerabilityAssessmentRuleBaselineProperties = original.DatabaseVulnerabilityAssessmentRuleBaselineProperties
-type DatabaseVulnerabilityAssessmentRuleBaselinesClient = original.DatabaseVulnerabilityAssessmentRuleBaselinesClient
-type DatabaseVulnerabilityAssessmentScanExportProperties = original.DatabaseVulnerabilityAssessmentScanExportProperties
-type DatabaseVulnerabilityAssessmentScansClient = original.DatabaseVulnerabilityAssessmentScansClient
-type DatabaseVulnerabilityAssessmentScansExport = original.DatabaseVulnerabilityAssessmentScansExport
-type DatabaseVulnerabilityAssessmentScansInitiateScanFuture = original.DatabaseVulnerabilityAssessmentScansInitiateScanFuture
-type DatabaseVulnerabilityAssessmentsClient = original.DatabaseVulnerabilityAssessmentsClient
type DatabasesClient = original.DatabasesClient
-type DatabasesCreateImportOperationFuture = original.DatabasesCreateImportOperationFuture
-type DatabasesCreateOrUpdateFuture = original.DatabasesCreateOrUpdateFuture
-type DatabasesDeleteFuture = original.DatabasesDeleteFuture
-type DatabasesExportFuture = original.DatabasesExportFuture
type DatabasesFailoverFuture = original.DatabasesFailoverFuture
-type DatabasesImportFuture = original.DatabasesImportFuture
-type DatabasesPauseFuture = original.DatabasesPauseFuture
-type DatabasesResumeFuture = original.DatabasesResumeFuture
-type DatabasesUpdateFuture = original.DatabasesUpdateFuture
-type DatabasesUpgradeDataWarehouseFuture = original.DatabasesUpgradeDataWarehouseFuture
-type EditionCapability = original.EditionCapability
-type ElasticPool = original.ElasticPool
-type ElasticPoolActivitiesClient = original.ElasticPoolActivitiesClient
-type ElasticPoolActivity = original.ElasticPoolActivity
-type ElasticPoolActivityListResult = original.ElasticPoolActivityListResult
-type ElasticPoolActivityProperties = original.ElasticPoolActivityProperties
-type ElasticPoolDatabaseActivitiesClient = original.ElasticPoolDatabaseActivitiesClient
-type ElasticPoolDatabaseActivity = original.ElasticPoolDatabaseActivity
-type ElasticPoolDatabaseActivityListResult = original.ElasticPoolDatabaseActivityListResult
-type ElasticPoolDatabaseActivityProperties = original.ElasticPoolDatabaseActivityProperties
-type ElasticPoolEditionCapability = original.ElasticPoolEditionCapability
-type ElasticPoolListResult = original.ElasticPoolListResult
-type ElasticPoolListResultIterator = original.ElasticPoolListResultIterator
-type ElasticPoolListResultPage = original.ElasticPoolListResultPage
-type ElasticPoolOperation = original.ElasticPoolOperation
-type ElasticPoolOperationListResult = original.ElasticPoolOperationListResult
-type ElasticPoolOperationListResultIterator = original.ElasticPoolOperationListResultIterator
-type ElasticPoolOperationListResultPage = original.ElasticPoolOperationListResultPage
-type ElasticPoolOperationProperties = original.ElasticPoolOperationProperties
-type ElasticPoolOperationsClient = original.ElasticPoolOperationsClient
-type ElasticPoolPerDatabaseMaxPerformanceLevelCapability = original.ElasticPoolPerDatabaseMaxPerformanceLevelCapability
-type ElasticPoolPerDatabaseMinPerformanceLevelCapability = original.ElasticPoolPerDatabaseMinPerformanceLevelCapability
-type ElasticPoolPerDatabaseSettings = original.ElasticPoolPerDatabaseSettings
-type ElasticPoolPerformanceLevelCapability = original.ElasticPoolPerformanceLevelCapability
-type ElasticPoolProperties = original.ElasticPoolProperties
-type ElasticPoolUpdate = original.ElasticPoolUpdate
-type ElasticPoolUpdateProperties = original.ElasticPoolUpdateProperties
type ElasticPoolsClient = original.ElasticPoolsClient
-type ElasticPoolsCreateOrUpdateFuture = original.ElasticPoolsCreateOrUpdateFuture
-type ElasticPoolsDeleteFuture = original.ElasticPoolsDeleteFuture
type ElasticPoolsFailoverFuture = original.ElasticPoolsFailoverFuture
-type ElasticPoolsUpdateFuture = original.ElasticPoolsUpdateFuture
-type EncryptionProtector = original.EncryptionProtector
-type EncryptionProtectorListResult = original.EncryptionProtectorListResult
-type EncryptionProtectorListResultIterator = original.EncryptionProtectorListResultIterator
-type EncryptionProtectorListResultPage = original.EncryptionProtectorListResultPage
-type EncryptionProtectorProperties = original.EncryptionProtectorProperties
-type EncryptionProtectorsClient = original.EncryptionProtectorsClient
-type EncryptionProtectorsCreateOrUpdateFuture = original.EncryptionProtectorsCreateOrUpdateFuture
-type EncryptionProtectorsRevalidateFuture = original.EncryptionProtectorsRevalidateFuture
-type ExportRequest = original.ExportRequest
-type ExtendedDatabaseBlobAuditingPoliciesClient = original.ExtendedDatabaseBlobAuditingPoliciesClient
-type ExtendedDatabaseBlobAuditingPolicy = original.ExtendedDatabaseBlobAuditingPolicy
-type ExtendedDatabaseBlobAuditingPolicyProperties = original.ExtendedDatabaseBlobAuditingPolicyProperties
-type ExtendedServerBlobAuditingPoliciesClient = original.ExtendedServerBlobAuditingPoliciesClient
-type ExtendedServerBlobAuditingPoliciesCreateOrUpdateFuture = original.ExtendedServerBlobAuditingPoliciesCreateOrUpdateFuture
-type ExtendedServerBlobAuditingPolicy = original.ExtendedServerBlobAuditingPolicy
-type ExtendedServerBlobAuditingPolicyProperties = original.ExtendedServerBlobAuditingPolicyProperties
-type FailoverGroup = original.FailoverGroup
-type FailoverGroupListResult = original.FailoverGroupListResult
-type FailoverGroupListResultIterator = original.FailoverGroupListResultIterator
-type FailoverGroupListResultPage = original.FailoverGroupListResultPage
-type FailoverGroupProperties = original.FailoverGroupProperties
-type FailoverGroupReadOnlyEndpoint = original.FailoverGroupReadOnlyEndpoint
-type FailoverGroupReadWriteEndpoint = original.FailoverGroupReadWriteEndpoint
-type FailoverGroupUpdate = original.FailoverGroupUpdate
-type FailoverGroupUpdateProperties = original.FailoverGroupUpdateProperties
-type FailoverGroupsClient = original.FailoverGroupsClient
-type FailoverGroupsCreateOrUpdateFuture = original.FailoverGroupsCreateOrUpdateFuture
-type FailoverGroupsDeleteFuture = original.FailoverGroupsDeleteFuture
-type FailoverGroupsFailoverFuture = original.FailoverGroupsFailoverFuture
-type FailoverGroupsForceFailoverAllowDataLossFuture = original.FailoverGroupsForceFailoverAllowDataLossFuture
-type FailoverGroupsUpdateFuture = original.FailoverGroupsUpdateFuture
-type FirewallRule = original.FirewallRule
-type FirewallRuleListResult = original.FirewallRuleListResult
-type FirewallRuleProperties = original.FirewallRuleProperties
-type FirewallRulesClient = original.FirewallRulesClient
-type GeoBackupPoliciesClient = original.GeoBackupPoliciesClient
-type GeoBackupPolicy = original.GeoBackupPolicy
-type GeoBackupPolicyListResult = original.GeoBackupPolicyListResult
-type GeoBackupPolicyProperties = original.GeoBackupPolicyProperties
-type ImportExportResponse = original.ImportExportResponse
-type ImportExportResponseProperties = original.ImportExportResponseProperties
-type ImportExtensionProperties = original.ImportExtensionProperties
-type ImportExtensionRequest = original.ImportExtensionRequest
-type ImportRequest = original.ImportRequest
-type InstanceFailoverGroup = original.InstanceFailoverGroup
-type InstanceFailoverGroupListResult = original.InstanceFailoverGroupListResult
-type InstanceFailoverGroupListResultIterator = original.InstanceFailoverGroupListResultIterator
-type InstanceFailoverGroupListResultPage = original.InstanceFailoverGroupListResultPage
-type InstanceFailoverGroupProperties = original.InstanceFailoverGroupProperties
-type InstanceFailoverGroupReadOnlyEndpoint = original.InstanceFailoverGroupReadOnlyEndpoint
-type InstanceFailoverGroupReadWriteEndpoint = original.InstanceFailoverGroupReadWriteEndpoint
-type InstanceFailoverGroupsClient = original.InstanceFailoverGroupsClient
-type InstanceFailoverGroupsCreateOrUpdateFuture = original.InstanceFailoverGroupsCreateOrUpdateFuture
-type InstanceFailoverGroupsDeleteFuture = original.InstanceFailoverGroupsDeleteFuture
-type InstanceFailoverGroupsFailoverFuture = original.InstanceFailoverGroupsFailoverFuture
-type InstanceFailoverGroupsForceFailoverAllowDataLossFuture = original.InstanceFailoverGroupsForceFailoverAllowDataLossFuture
type InstancePool = original.InstancePool
type InstancePoolListResult = original.InstancePoolListResult
type InstancePoolListResultIterator = original.InstancePoolListResultIterator
@@ -987,84 +128,6 @@ type InstancePoolsClient = original.InstancePoolsClient
type InstancePoolsCreateOrUpdateFuture = original.InstancePoolsCreateOrUpdateFuture
type InstancePoolsDeleteFuture = original.InstancePoolsDeleteFuture
type InstancePoolsUpdateFuture = original.InstancePoolsUpdateFuture
-type Job = original.Job
-type JobAgent = original.JobAgent
-type JobAgentListResult = original.JobAgentListResult
-type JobAgentListResultIterator = original.JobAgentListResultIterator
-type JobAgentListResultPage = original.JobAgentListResultPage
-type JobAgentProperties = original.JobAgentProperties
-type JobAgentUpdate = original.JobAgentUpdate
-type JobAgentsClient = original.JobAgentsClient
-type JobAgentsCreateOrUpdateFuture = original.JobAgentsCreateOrUpdateFuture
-type JobAgentsDeleteFuture = original.JobAgentsDeleteFuture
-type JobAgentsUpdateFuture = original.JobAgentsUpdateFuture
-type JobCredential = original.JobCredential
-type JobCredentialListResult = original.JobCredentialListResult
-type JobCredentialListResultIterator = original.JobCredentialListResultIterator
-type JobCredentialListResultPage = original.JobCredentialListResultPage
-type JobCredentialProperties = original.JobCredentialProperties
-type JobCredentialsClient = original.JobCredentialsClient
-type JobExecution = original.JobExecution
-type JobExecutionListResult = original.JobExecutionListResult
-type JobExecutionListResultIterator = original.JobExecutionListResultIterator
-type JobExecutionListResultPage = original.JobExecutionListResultPage
-type JobExecutionProperties = original.JobExecutionProperties
-type JobExecutionTarget = original.JobExecutionTarget
-type JobExecutionsClient = original.JobExecutionsClient
-type JobExecutionsCreateFuture = original.JobExecutionsCreateFuture
-type JobExecutionsCreateOrUpdateFuture = original.JobExecutionsCreateOrUpdateFuture
-type JobListResult = original.JobListResult
-type JobListResultIterator = original.JobListResultIterator
-type JobListResultPage = original.JobListResultPage
-type JobProperties = original.JobProperties
-type JobSchedule = original.JobSchedule
-type JobStep = original.JobStep
-type JobStepAction = original.JobStepAction
-type JobStepExecutionOptions = original.JobStepExecutionOptions
-type JobStepExecutionsClient = original.JobStepExecutionsClient
-type JobStepListResult = original.JobStepListResult
-type JobStepListResultIterator = original.JobStepListResultIterator
-type JobStepListResultPage = original.JobStepListResultPage
-type JobStepOutput = original.JobStepOutput
-type JobStepProperties = original.JobStepProperties
-type JobStepsClient = original.JobStepsClient
-type JobTarget = original.JobTarget
-type JobTargetExecutionsClient = original.JobTargetExecutionsClient
-type JobTargetGroup = original.JobTargetGroup
-type JobTargetGroupListResult = original.JobTargetGroupListResult
-type JobTargetGroupListResultIterator = original.JobTargetGroupListResultIterator
-type JobTargetGroupListResultPage = original.JobTargetGroupListResultPage
-type JobTargetGroupProperties = original.JobTargetGroupProperties
-type JobTargetGroupsClient = original.JobTargetGroupsClient
-type JobVersion = original.JobVersion
-type JobVersionListResult = original.JobVersionListResult
-type JobVersionListResultIterator = original.JobVersionListResultIterator
-type JobVersionListResultPage = original.JobVersionListResultPage
-type JobVersionsClient = original.JobVersionsClient
-type JobsClient = original.JobsClient
-type LicenseTypeCapability = original.LicenseTypeCapability
-type LocationCapabilities = original.LocationCapabilities
-type LogSizeCapability = original.LogSizeCapability
-type LogicalServerSecurityAlertPolicyListResult = original.LogicalServerSecurityAlertPolicyListResult
-type LogicalServerSecurityAlertPolicyListResultIterator = original.LogicalServerSecurityAlertPolicyListResultIterator
-type LogicalServerSecurityAlertPolicyListResultPage = original.LogicalServerSecurityAlertPolicyListResultPage
-type LongTermRetentionBackup = original.LongTermRetentionBackup
-type LongTermRetentionBackupListResult = original.LongTermRetentionBackupListResult
-type LongTermRetentionBackupListResultIterator = original.LongTermRetentionBackupListResultIterator
-type LongTermRetentionBackupListResultPage = original.LongTermRetentionBackupListResultPage
-type LongTermRetentionBackupProperties = original.LongTermRetentionBackupProperties
-type LongTermRetentionBackupsClient = original.LongTermRetentionBackupsClient
-type LongTermRetentionBackupsDeleteByResourceGroupFuture = original.LongTermRetentionBackupsDeleteByResourceGroupFuture
-type LongTermRetentionBackupsDeleteFuture = original.LongTermRetentionBackupsDeleteFuture
-type LongTermRetentionPolicyProperties = original.LongTermRetentionPolicyProperties
-type ManagedBackupShortTermRetentionPoliciesClient = original.ManagedBackupShortTermRetentionPoliciesClient
-type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateFuture = original.ManagedBackupShortTermRetentionPoliciesCreateOrUpdateFuture
-type ManagedBackupShortTermRetentionPoliciesUpdateFuture = original.ManagedBackupShortTermRetentionPoliciesUpdateFuture
-type ManagedBackupShortTermRetentionPolicy = original.ManagedBackupShortTermRetentionPolicy
-type ManagedBackupShortTermRetentionPolicyListResult = original.ManagedBackupShortTermRetentionPolicyListResult
-type ManagedBackupShortTermRetentionPolicyListResultIterator = original.ManagedBackupShortTermRetentionPolicyListResultIterator
-type ManagedBackupShortTermRetentionPolicyListResultPage = original.ManagedBackupShortTermRetentionPolicyListResultPage
-type ManagedBackupShortTermRetentionPolicyProperties = original.ManagedBackupShortTermRetentionPolicyProperties
type ManagedDatabase = original.ManagedDatabase
type ManagedDatabaseListResult = original.ManagedDatabaseListResult
type ManagedDatabaseListResultIterator = original.ManagedDatabaseListResultIterator
@@ -1073,59 +136,19 @@ type ManagedDatabaseProperties = original.ManagedDatabaseProperties
type ManagedDatabaseRestoreDetailsClient = original.ManagedDatabaseRestoreDetailsClient
type ManagedDatabaseRestoreDetailsProperties = original.ManagedDatabaseRestoreDetailsProperties
type ManagedDatabaseRestoreDetailsResult = original.ManagedDatabaseRestoreDetailsResult
-type ManagedDatabaseSecurityAlertPoliciesClient = original.ManagedDatabaseSecurityAlertPoliciesClient
-type ManagedDatabaseSecurityAlertPolicy = original.ManagedDatabaseSecurityAlertPolicy
-type ManagedDatabaseSecurityAlertPolicyListResult = original.ManagedDatabaseSecurityAlertPolicyListResult
-type ManagedDatabaseSecurityAlertPolicyListResultIterator = original.ManagedDatabaseSecurityAlertPolicyListResultIterator
-type ManagedDatabaseSecurityAlertPolicyListResultPage = original.ManagedDatabaseSecurityAlertPolicyListResultPage
type ManagedDatabaseSensitivityLabelsClient = original.ManagedDatabaseSensitivityLabelsClient
type ManagedDatabaseUpdate = original.ManagedDatabaseUpdate
-type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient = original.ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient
-type ManagedDatabaseVulnerabilityAssessmentScansClient = original.ManagedDatabaseVulnerabilityAssessmentScansClient
-type ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture = original.ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture
-type ManagedDatabaseVulnerabilityAssessmentsClient = original.ManagedDatabaseVulnerabilityAssessmentsClient
type ManagedDatabasesClient = original.ManagedDatabasesClient
type ManagedDatabasesCompleteRestoreFuture = original.ManagedDatabasesCompleteRestoreFuture
type ManagedDatabasesCreateOrUpdateFuture = original.ManagedDatabasesCreateOrUpdateFuture
type ManagedDatabasesDeleteFuture = original.ManagedDatabasesDeleteFuture
type ManagedDatabasesUpdateFuture = original.ManagedDatabasesUpdateFuture
type ManagedInstance = original.ManagedInstance
-type ManagedInstanceAdministrator = original.ManagedInstanceAdministrator
-type ManagedInstanceAdministratorListResult = original.ManagedInstanceAdministratorListResult
-type ManagedInstanceAdministratorListResultIterator = original.ManagedInstanceAdministratorListResultIterator
-type ManagedInstanceAdministratorListResultPage = original.ManagedInstanceAdministratorListResultPage
-type ManagedInstanceAdministratorProperties = original.ManagedInstanceAdministratorProperties
-type ManagedInstanceAdministratorsClient = original.ManagedInstanceAdministratorsClient
-type ManagedInstanceAdministratorsCreateOrUpdateFuture = original.ManagedInstanceAdministratorsCreateOrUpdateFuture
-type ManagedInstanceAdministratorsDeleteFuture = original.ManagedInstanceAdministratorsDeleteFuture
-type ManagedInstanceEditionCapability = original.ManagedInstanceEditionCapability
-type ManagedInstanceEncryptionProtector = original.ManagedInstanceEncryptionProtector
-type ManagedInstanceEncryptionProtectorListResult = original.ManagedInstanceEncryptionProtectorListResult
-type ManagedInstanceEncryptionProtectorListResultIterator = original.ManagedInstanceEncryptionProtectorListResultIterator
-type ManagedInstanceEncryptionProtectorListResultPage = original.ManagedInstanceEncryptionProtectorListResultPage
-type ManagedInstanceEncryptionProtectorProperties = original.ManagedInstanceEncryptionProtectorProperties
-type ManagedInstanceEncryptionProtectorsClient = original.ManagedInstanceEncryptionProtectorsClient
-type ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture = original.ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture
-type ManagedInstanceEncryptionProtectorsRevalidateFuture = original.ManagedInstanceEncryptionProtectorsRevalidateFuture
-type ManagedInstanceFamilyCapability = original.ManagedInstanceFamilyCapability
-type ManagedInstanceKey = original.ManagedInstanceKey
-type ManagedInstanceKeyListResult = original.ManagedInstanceKeyListResult
-type ManagedInstanceKeyListResultIterator = original.ManagedInstanceKeyListResultIterator
-type ManagedInstanceKeyListResultPage = original.ManagedInstanceKeyListResultPage
-type ManagedInstanceKeyProperties = original.ManagedInstanceKeyProperties
-type ManagedInstanceKeysClient = original.ManagedInstanceKeysClient
-type ManagedInstanceKeysCreateOrUpdateFuture = original.ManagedInstanceKeysCreateOrUpdateFuture
-type ManagedInstanceKeysDeleteFuture = original.ManagedInstanceKeysDeleteFuture
type ManagedInstanceListResult = original.ManagedInstanceListResult
type ManagedInstanceListResultIterator = original.ManagedInstanceListResultIterator
type ManagedInstanceListResultPage = original.ManagedInstanceListResultPage
-type ManagedInstancePairInfo = original.ManagedInstancePairInfo
type ManagedInstanceProperties = original.ManagedInstanceProperties
-type ManagedInstanceTdeCertificatesClient = original.ManagedInstanceTdeCertificatesClient
-type ManagedInstanceTdeCertificatesCreateFuture = original.ManagedInstanceTdeCertificatesCreateFuture
type ManagedInstanceUpdate = original.ManagedInstanceUpdate
-type ManagedInstanceVcoresCapability = original.ManagedInstanceVcoresCapability
-type ManagedInstanceVersionCapability = original.ManagedInstanceVersionCapability
type ManagedInstanceVulnerabilityAssessment = original.ManagedInstanceVulnerabilityAssessment
type ManagedInstanceVulnerabilityAssessmentListResult = original.ManagedInstanceVulnerabilityAssessmentListResult
type ManagedInstanceVulnerabilityAssessmentListResultIterator = original.ManagedInstanceVulnerabilityAssessmentListResultIterator
@@ -1136,35 +159,7 @@ type ManagedInstancesClient = original.ManagedInstancesClient
type ManagedInstancesCreateOrUpdateFuture = original.ManagedInstancesCreateOrUpdateFuture
type ManagedInstancesDeleteFuture = original.ManagedInstancesDeleteFuture
type ManagedInstancesUpdateFuture = original.ManagedInstancesUpdateFuture
-type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient = original.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient
-type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateFuture = original.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateFuture
-type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateFuture = original.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateFuture
-type ManagedServerSecurityAlertPoliciesClient = original.ManagedServerSecurityAlertPoliciesClient
-type ManagedServerSecurityAlertPoliciesCreateOrUpdateFuture = original.ManagedServerSecurityAlertPoliciesCreateOrUpdateFuture
-type ManagedServerSecurityAlertPolicy = original.ManagedServerSecurityAlertPolicy
-type ManagedServerSecurityAlertPolicyListResult = original.ManagedServerSecurityAlertPolicyListResult
-type ManagedServerSecurityAlertPolicyListResultIterator = original.ManagedServerSecurityAlertPolicyListResultIterator
-type ManagedServerSecurityAlertPolicyListResultPage = original.ManagedServerSecurityAlertPolicyListResultPage
-type MaxSizeCapability = original.MaxSizeCapability
-type MaxSizeRangeCapability = original.MaxSizeRangeCapability
-type Metric = original.Metric
-type MetricAvailability = original.MetricAvailability
-type MetricDefinition = original.MetricDefinition
-type MetricDefinitionListResult = original.MetricDefinitionListResult
-type MetricListResult = original.MetricListResult
-type MetricName = original.MetricName
-type MetricValue = original.MetricValue
type Name = original.Name
-type Operation = original.Operation
-type OperationDisplay = original.OperationDisplay
-type OperationImpact = original.OperationImpact
-type OperationListResult = original.OperationListResult
-type OperationListResultIterator = original.OperationListResultIterator
-type OperationListResultPage = original.OperationListResultPage
-type OperationsClient = original.OperationsClient
-type PartnerInfo = original.PartnerInfo
-type PartnerRegionInfo = original.PartnerRegionInfo
-type PerformanceLevelCapability = original.PerformanceLevelCapability
type PrivateEndpointConnection = original.PrivateEndpointConnection
type PrivateEndpointConnectionListResult = original.PrivateEndpointConnectionListResult
type PrivateEndpointConnectionListResultIterator = original.PrivateEndpointConnectionListResultIterator
@@ -1174,449 +169,57 @@ type PrivateEndpointConnectionsClient = original.PrivateEndpointConnectionsClien
type PrivateEndpointConnectionsCreateOrUpdateFuture = original.PrivateEndpointConnectionsCreateOrUpdateFuture
type PrivateEndpointConnectionsDeleteFuture = original.PrivateEndpointConnectionsDeleteFuture
type PrivateEndpointProperty = original.PrivateEndpointProperty
-type PrivateLinkResource = original.PrivateLinkResource
-type PrivateLinkResourceListResult = original.PrivateLinkResourceListResult
-type PrivateLinkResourceListResultIterator = original.PrivateLinkResourceListResultIterator
-type PrivateLinkResourceListResultPage = original.PrivateLinkResourceListResultPage
-type PrivateLinkResourceProperties = original.PrivateLinkResourceProperties
-type PrivateLinkResourcesClient = original.PrivateLinkResourcesClient
type PrivateLinkServiceConnectionStateProperty = original.PrivateLinkServiceConnectionStateProperty
type ProxyResource = original.ProxyResource
-type RecommendedElasticPool = original.RecommendedElasticPool
-type RecommendedElasticPoolListMetricsResult = original.RecommendedElasticPoolListMetricsResult
-type RecommendedElasticPoolListResult = original.RecommendedElasticPoolListResult
-type RecommendedElasticPoolMetric = original.RecommendedElasticPoolMetric
-type RecommendedElasticPoolProperties = original.RecommendedElasticPoolProperties
-type RecommendedElasticPoolsClient = original.RecommendedElasticPoolsClient
-type RecommendedIndex = original.RecommendedIndex
-type RecommendedIndexProperties = original.RecommendedIndexProperties
-type RecoverableDatabase = original.RecoverableDatabase
-type RecoverableDatabaseListResult = original.RecoverableDatabaseListResult
-type RecoverableDatabaseProperties = original.RecoverableDatabaseProperties
-type RecoverableDatabasesClient = original.RecoverableDatabasesClient
-type RecoverableManagedDatabase = original.RecoverableManagedDatabase
-type RecoverableManagedDatabaseListResult = original.RecoverableManagedDatabaseListResult
-type RecoverableManagedDatabaseListResultIterator = original.RecoverableManagedDatabaseListResultIterator
-type RecoverableManagedDatabaseListResultPage = original.RecoverableManagedDatabaseListResultPage
-type RecoverableManagedDatabaseProperties = original.RecoverableManagedDatabaseProperties
-type RecoverableManagedDatabasesClient = original.RecoverableManagedDatabasesClient
-type ReplicationLink = original.ReplicationLink
-type ReplicationLinkListResult = original.ReplicationLinkListResult
-type ReplicationLinkProperties = original.ReplicationLinkProperties
-type ReplicationLinksClient = original.ReplicationLinksClient
-type ReplicationLinksFailoverAllowDataLossFuture = original.ReplicationLinksFailoverAllowDataLossFuture
-type ReplicationLinksFailoverFuture = original.ReplicationLinksFailoverFuture
type Resource = original.Resource
type ResourceIdentity = original.ResourceIdentity
-type ResourceMoveDefinition = original.ResourceMoveDefinition
-type RestorableDroppedDatabase = original.RestorableDroppedDatabase
-type RestorableDroppedDatabaseListResult = original.RestorableDroppedDatabaseListResult
-type RestorableDroppedDatabaseProperties = original.RestorableDroppedDatabaseProperties
-type RestorableDroppedDatabasesClient = original.RestorableDroppedDatabasesClient
-type RestorableDroppedManagedDatabase = original.RestorableDroppedManagedDatabase
-type RestorableDroppedManagedDatabaseListResult = original.RestorableDroppedManagedDatabaseListResult
-type RestorableDroppedManagedDatabaseListResultIterator = original.RestorableDroppedManagedDatabaseListResultIterator
-type RestorableDroppedManagedDatabaseListResultPage = original.RestorableDroppedManagedDatabaseListResultPage
-type RestorableDroppedManagedDatabaseProperties = original.RestorableDroppedManagedDatabaseProperties
-type RestorableDroppedManagedDatabasesClient = original.RestorableDroppedManagedDatabasesClient
-type RestorePoint = original.RestorePoint
-type RestorePointListResult = original.RestorePointListResult
-type RestorePointProperties = original.RestorePointProperties
-type RestorePointsClient = original.RestorePointsClient
-type RestorePointsCreateFuture = original.RestorePointsCreateFuture
type SecurityAlertPolicyProperties = original.SecurityAlertPolicyProperties
type SensitivityLabel = original.SensitivityLabel
type SensitivityLabelListResult = original.SensitivityLabelListResult
type SensitivityLabelListResultIterator = original.SensitivityLabelListResultIterator
type SensitivityLabelListResultPage = original.SensitivityLabelListResultPage
type SensitivityLabelProperties = original.SensitivityLabelProperties
-type SensitivityLabelsClient = original.SensitivityLabelsClient
-type Server = original.Server
-type ServerAdministratorListResult = original.ServerAdministratorListResult
-type ServerAdministratorProperties = original.ServerAdministratorProperties
-type ServerAutomaticTuning = original.ServerAutomaticTuning
-type ServerAutomaticTuningClient = original.ServerAutomaticTuningClient
-type ServerAzureADAdministrator = original.ServerAzureADAdministrator
-type ServerAzureADAdministratorsClient = original.ServerAzureADAdministratorsClient
-type ServerAzureADAdministratorsCreateOrUpdateFuture = original.ServerAzureADAdministratorsCreateOrUpdateFuture
-type ServerAzureADAdministratorsDeleteFuture = original.ServerAzureADAdministratorsDeleteFuture
-type ServerBlobAuditingPoliciesClient = original.ServerBlobAuditingPoliciesClient
-type ServerBlobAuditingPoliciesCreateOrUpdateFuture = original.ServerBlobAuditingPoliciesCreateOrUpdateFuture
-type ServerBlobAuditingPolicy = original.ServerBlobAuditingPolicy
-type ServerBlobAuditingPolicyListResult = original.ServerBlobAuditingPolicyListResult
-type ServerBlobAuditingPolicyListResultIterator = original.ServerBlobAuditingPolicyListResultIterator
-type ServerBlobAuditingPolicyListResultPage = original.ServerBlobAuditingPolicyListResultPage
-type ServerBlobAuditingPolicyProperties = original.ServerBlobAuditingPolicyProperties
-type ServerCommunicationLink = original.ServerCommunicationLink
-type ServerCommunicationLinkListResult = original.ServerCommunicationLinkListResult
-type ServerCommunicationLinkProperties = original.ServerCommunicationLinkProperties
-type ServerCommunicationLinksClient = original.ServerCommunicationLinksClient
-type ServerCommunicationLinksCreateOrUpdateFuture = original.ServerCommunicationLinksCreateOrUpdateFuture
-type ServerConnectionPoliciesClient = original.ServerConnectionPoliciesClient
-type ServerConnectionPolicy = original.ServerConnectionPolicy
-type ServerConnectionPolicyProperties = original.ServerConnectionPolicyProperties
-type ServerDNSAlias = original.ServerDNSAlias
-type ServerDNSAliasAcquisition = original.ServerDNSAliasAcquisition
-type ServerDNSAliasListResult = original.ServerDNSAliasListResult
-type ServerDNSAliasListResultIterator = original.ServerDNSAliasListResultIterator
-type ServerDNSAliasListResultPage = original.ServerDNSAliasListResultPage
-type ServerDNSAliasProperties = original.ServerDNSAliasProperties
-type ServerDNSAliasesAcquireFuture = original.ServerDNSAliasesAcquireFuture
-type ServerDNSAliasesClient = original.ServerDNSAliasesClient
-type ServerDNSAliasesCreateOrUpdateFuture = original.ServerDNSAliasesCreateOrUpdateFuture
-type ServerDNSAliasesDeleteFuture = original.ServerDNSAliasesDeleteFuture
-type ServerKey = original.ServerKey
-type ServerKeyListResult = original.ServerKeyListResult
-type ServerKeyListResultIterator = original.ServerKeyListResultIterator
-type ServerKeyListResultPage = original.ServerKeyListResultPage
-type ServerKeyProperties = original.ServerKeyProperties
-type ServerKeysClient = original.ServerKeysClient
-type ServerKeysCreateOrUpdateFuture = original.ServerKeysCreateOrUpdateFuture
-type ServerKeysDeleteFuture = original.ServerKeysDeleteFuture
-type ServerListResult = original.ServerListResult
-type ServerListResultIterator = original.ServerListResultIterator
-type ServerListResultPage = original.ServerListResultPage
-type ServerProperties = original.ServerProperties
-type ServerSecurityAlertPoliciesClient = original.ServerSecurityAlertPoliciesClient
-type ServerSecurityAlertPoliciesCreateOrUpdateFuture = original.ServerSecurityAlertPoliciesCreateOrUpdateFuture
-type ServerSecurityAlertPolicy = original.ServerSecurityAlertPolicy
-type ServerUpdate = original.ServerUpdate
-type ServerUsage = original.ServerUsage
-type ServerUsageListResult = original.ServerUsageListResult
-type ServerUsagesClient = original.ServerUsagesClient
-type ServerVersionCapability = original.ServerVersionCapability
type ServerVulnerabilityAssessment = original.ServerVulnerabilityAssessment
type ServerVulnerabilityAssessmentListResult = original.ServerVulnerabilityAssessmentListResult
type ServerVulnerabilityAssessmentListResultIterator = original.ServerVulnerabilityAssessmentListResultIterator
type ServerVulnerabilityAssessmentListResultPage = original.ServerVulnerabilityAssessmentListResultPage
type ServerVulnerabilityAssessmentProperties = original.ServerVulnerabilityAssessmentProperties
type ServerVulnerabilityAssessmentsClient = original.ServerVulnerabilityAssessmentsClient
-type ServersClient = original.ServersClient
-type ServersCreateOrUpdateFuture = original.ServersCreateOrUpdateFuture
-type ServersDeleteFuture = original.ServersDeleteFuture
-type ServersUpdateFuture = original.ServersUpdateFuture
-type ServiceObjective = original.ServiceObjective
-type ServiceObjectiveCapability = original.ServiceObjectiveCapability
-type ServiceObjectiveListResult = original.ServiceObjectiveListResult
-type ServiceObjectiveProperties = original.ServiceObjectiveProperties
-type ServiceObjectivesClient = original.ServiceObjectivesClient
-type ServiceTierAdvisor = original.ServiceTierAdvisor
-type ServiceTierAdvisorListResult = original.ServiceTierAdvisorListResult
-type ServiceTierAdvisorProperties = original.ServiceTierAdvisorProperties
-type ServiceTierAdvisorsClient = original.ServiceTierAdvisorsClient
type Sku = original.Sku
-type SloUsageMetric = original.SloUsageMetric
-type SubscriptionUsage = original.SubscriptionUsage
-type SubscriptionUsageListResult = original.SubscriptionUsageListResult
-type SubscriptionUsageListResultIterator = original.SubscriptionUsageListResultIterator
-type SubscriptionUsageListResultPage = original.SubscriptionUsageListResultPage
-type SubscriptionUsageProperties = original.SubscriptionUsageProperties
-type SubscriptionUsagesClient = original.SubscriptionUsagesClient
-type SyncAgent = original.SyncAgent
-type SyncAgentKeyProperties = original.SyncAgentKeyProperties
-type SyncAgentLinkedDatabase = original.SyncAgentLinkedDatabase
-type SyncAgentLinkedDatabaseListResult = original.SyncAgentLinkedDatabaseListResult
-type SyncAgentLinkedDatabaseListResultIterator = original.SyncAgentLinkedDatabaseListResultIterator
-type SyncAgentLinkedDatabaseListResultPage = original.SyncAgentLinkedDatabaseListResultPage
-type SyncAgentLinkedDatabaseProperties = original.SyncAgentLinkedDatabaseProperties
-type SyncAgentListResult = original.SyncAgentListResult
-type SyncAgentListResultIterator = original.SyncAgentListResultIterator
-type SyncAgentListResultPage = original.SyncAgentListResultPage
-type SyncAgentProperties = original.SyncAgentProperties
-type SyncAgentsClient = original.SyncAgentsClient
-type SyncAgentsCreateOrUpdateFuture = original.SyncAgentsCreateOrUpdateFuture
-type SyncAgentsDeleteFuture = original.SyncAgentsDeleteFuture
-type SyncDatabaseIDListResult = original.SyncDatabaseIDListResult
-type SyncDatabaseIDListResultIterator = original.SyncDatabaseIDListResultIterator
-type SyncDatabaseIDListResultPage = original.SyncDatabaseIDListResultPage
-type SyncDatabaseIDProperties = original.SyncDatabaseIDProperties
-type SyncFullSchemaProperties = original.SyncFullSchemaProperties
-type SyncFullSchemaPropertiesListResult = original.SyncFullSchemaPropertiesListResult
-type SyncFullSchemaPropertiesListResultIterator = original.SyncFullSchemaPropertiesListResultIterator
-type SyncFullSchemaPropertiesListResultPage = original.SyncFullSchemaPropertiesListResultPage
-type SyncFullSchemaTable = original.SyncFullSchemaTable
-type SyncFullSchemaTableColumn = original.SyncFullSchemaTableColumn
-type SyncGroup = original.SyncGroup
-type SyncGroupListResult = original.SyncGroupListResult
-type SyncGroupListResultIterator = original.SyncGroupListResultIterator
-type SyncGroupListResultPage = original.SyncGroupListResultPage
-type SyncGroupLogListResult = original.SyncGroupLogListResult
-type SyncGroupLogListResultIterator = original.SyncGroupLogListResultIterator
-type SyncGroupLogListResultPage = original.SyncGroupLogListResultPage
-type SyncGroupLogProperties = original.SyncGroupLogProperties
-type SyncGroupProperties = original.SyncGroupProperties
-type SyncGroupSchema = original.SyncGroupSchema
-type SyncGroupSchemaTable = original.SyncGroupSchemaTable
-type SyncGroupSchemaTableColumn = original.SyncGroupSchemaTableColumn
-type SyncGroupsClient = original.SyncGroupsClient
-type SyncGroupsCreateOrUpdateFuture = original.SyncGroupsCreateOrUpdateFuture
-type SyncGroupsDeleteFuture = original.SyncGroupsDeleteFuture
-type SyncGroupsRefreshHubSchemaFuture = original.SyncGroupsRefreshHubSchemaFuture
-type SyncGroupsUpdateFuture = original.SyncGroupsUpdateFuture
-type SyncMember = original.SyncMember
-type SyncMemberListResult = original.SyncMemberListResult
-type SyncMemberListResultIterator = original.SyncMemberListResultIterator
-type SyncMemberListResultPage = original.SyncMemberListResultPage
-type SyncMemberProperties = original.SyncMemberProperties
-type SyncMembersClient = original.SyncMembersClient
-type SyncMembersCreateOrUpdateFuture = original.SyncMembersCreateOrUpdateFuture
-type SyncMembersDeleteFuture = original.SyncMembersDeleteFuture
-type SyncMembersRefreshMemberSchemaFuture = original.SyncMembersRefreshMemberSchemaFuture
-type SyncMembersUpdateFuture = original.SyncMembersUpdateFuture
-type TdeCertificate = original.TdeCertificate
-type TdeCertificateProperties = original.TdeCertificateProperties
-type TdeCertificatesClient = original.TdeCertificatesClient
-type TdeCertificatesCreateFuture = original.TdeCertificatesCreateFuture
type TrackedResource = original.TrackedResource
-type TransparentDataEncryption = original.TransparentDataEncryption
-type TransparentDataEncryptionActivitiesClient = original.TransparentDataEncryptionActivitiesClient
-type TransparentDataEncryptionActivity = original.TransparentDataEncryptionActivity
-type TransparentDataEncryptionActivityListResult = original.TransparentDataEncryptionActivityListResult
-type TransparentDataEncryptionActivityProperties = original.TransparentDataEncryptionActivityProperties
-type TransparentDataEncryptionProperties = original.TransparentDataEncryptionProperties
-type TransparentDataEncryptionsClient = original.TransparentDataEncryptionsClient
type Usage = original.Usage
type UsageListResult = original.UsageListResult
type UsageListResultIterator = original.UsageListResultIterator
type UsageListResultPage = original.UsageListResultPage
-type UsagesClient = original.UsagesClient
-type VirtualCluster = original.VirtualCluster
-type VirtualClusterListResult = original.VirtualClusterListResult
-type VirtualClusterListResultIterator = original.VirtualClusterListResultIterator
-type VirtualClusterListResultPage = original.VirtualClusterListResultPage
-type VirtualClusterProperties = original.VirtualClusterProperties
-type VirtualClusterUpdate = original.VirtualClusterUpdate
-type VirtualClustersClient = original.VirtualClustersClient
-type VirtualClustersDeleteFuture = original.VirtualClustersDeleteFuture
-type VirtualClustersUpdateFuture = original.VirtualClustersUpdateFuture
-type VirtualNetworkRule = original.VirtualNetworkRule
-type VirtualNetworkRuleListResult = original.VirtualNetworkRuleListResult
-type VirtualNetworkRuleListResultIterator = original.VirtualNetworkRuleListResultIterator
-type VirtualNetworkRuleListResultPage = original.VirtualNetworkRuleListResultPage
-type VirtualNetworkRuleProperties = original.VirtualNetworkRuleProperties
-type VirtualNetworkRulesClient = original.VirtualNetworkRulesClient
-type VirtualNetworkRulesCreateOrUpdateFuture = original.VirtualNetworkRulesCreateOrUpdateFuture
-type VirtualNetworkRulesDeleteFuture = original.VirtualNetworkRulesDeleteFuture
-type VulnerabilityAssessmentRecurringScansProperties = original.VulnerabilityAssessmentRecurringScansProperties
-type VulnerabilityAssessmentScanError = original.VulnerabilityAssessmentScanError
-type VulnerabilityAssessmentScanRecord = original.VulnerabilityAssessmentScanRecord
-type VulnerabilityAssessmentScanRecordListResult = original.VulnerabilityAssessmentScanRecordListResult
-type VulnerabilityAssessmentScanRecordListResultIterator = original.VulnerabilityAssessmentScanRecordListResultIterator
-type VulnerabilityAssessmentScanRecordListResultPage = original.VulnerabilityAssessmentScanRecordListResultPage
-type VulnerabilityAssessmentScanRecordProperties = original.VulnerabilityAssessmentScanRecordProperties
-
-func New(subscriptionID string) BaseClient {
- return original.New(subscriptionID)
-}
-func NewBackupLongTermRetentionPoliciesClient(subscriptionID string) BackupLongTermRetentionPoliciesClient {
- return original.NewBackupLongTermRetentionPoliciesClient(subscriptionID)
-}
-func NewBackupLongTermRetentionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) BackupLongTermRetentionPoliciesClient {
- return original.NewBackupLongTermRetentionPoliciesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewBackupShortTermRetentionPoliciesClient(subscriptionID string) BackupShortTermRetentionPoliciesClient {
- return original.NewBackupShortTermRetentionPoliciesClient(subscriptionID)
-}
-func NewBackupShortTermRetentionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) BackupShortTermRetentionPoliciesClient {
- return original.NewBackupShortTermRetentionPoliciesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewBackupShortTermRetentionPolicyListResultIterator(page BackupShortTermRetentionPolicyListResultPage) BackupShortTermRetentionPolicyListResultIterator {
- return original.NewBackupShortTermRetentionPolicyListResultIterator(page)
-}
-func NewBackupShortTermRetentionPolicyListResultPage(getNextPage func(context.Context, BackupShortTermRetentionPolicyListResult) (BackupShortTermRetentionPolicyListResult, error)) BackupShortTermRetentionPolicyListResultPage {
- return original.NewBackupShortTermRetentionPolicyListResultPage(getNextPage)
-}
-func NewCapabilitiesClient(subscriptionID string) CapabilitiesClient {
- return original.NewCapabilitiesClient(subscriptionID)
-}
-func NewCapabilitiesClientWithBaseURI(baseURI string, subscriptionID string) CapabilitiesClient {
- return original.NewCapabilitiesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewDataMaskingPoliciesClient(subscriptionID string) DataMaskingPoliciesClient {
- return original.NewDataMaskingPoliciesClient(subscriptionID)
-}
-func NewDataMaskingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DataMaskingPoliciesClient {
- return original.NewDataMaskingPoliciesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewDataMaskingRulesClient(subscriptionID string) DataMaskingRulesClient {
- return original.NewDataMaskingRulesClient(subscriptionID)
-}
-func NewDataMaskingRulesClientWithBaseURI(baseURI string, subscriptionID string) DataMaskingRulesClient {
- return original.NewDataMaskingRulesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewDatabaseAutomaticTuningClient(subscriptionID string) DatabaseAutomaticTuningClient {
- return original.NewDatabaseAutomaticTuningClient(subscriptionID)
-}
-func NewDatabaseAutomaticTuningClientWithBaseURI(baseURI string, subscriptionID string) DatabaseAutomaticTuningClient {
- return original.NewDatabaseAutomaticTuningClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewDatabaseBlobAuditingPoliciesClient(subscriptionID string) DatabaseBlobAuditingPoliciesClient {
- return original.NewDatabaseBlobAuditingPoliciesClient(subscriptionID)
-}
-func NewDatabaseBlobAuditingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseBlobAuditingPoliciesClient {
- return original.NewDatabaseBlobAuditingPoliciesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewDatabaseBlobAuditingPolicyListResultIterator(page DatabaseBlobAuditingPolicyListResultPage) DatabaseBlobAuditingPolicyListResultIterator {
- return original.NewDatabaseBlobAuditingPolicyListResultIterator(page)
-}
-func NewDatabaseBlobAuditingPolicyListResultPage(getNextPage func(context.Context, DatabaseBlobAuditingPolicyListResult) (DatabaseBlobAuditingPolicyListResult, error)) DatabaseBlobAuditingPolicyListResultPage {
- return original.NewDatabaseBlobAuditingPolicyListResultPage(getNextPage)
-}
-func NewDatabaseListResultIterator(page DatabaseListResultPage) DatabaseListResultIterator {
- return original.NewDatabaseListResultIterator(page)
-}
-func NewDatabaseListResultPage(getNextPage func(context.Context, DatabaseListResult) (DatabaseListResult, error)) DatabaseListResultPage {
- return original.NewDatabaseListResultPage(getNextPage)
-}
-func NewDatabaseOperationListResultIterator(page DatabaseOperationListResultPage) DatabaseOperationListResultIterator {
- return original.NewDatabaseOperationListResultIterator(page)
-}
-func NewDatabaseOperationListResultPage(getNextPage func(context.Context, DatabaseOperationListResult) (DatabaseOperationListResult, error)) DatabaseOperationListResultPage {
- return original.NewDatabaseOperationListResultPage(getNextPage)
-}
-func NewDatabaseOperationsClient(subscriptionID string) DatabaseOperationsClient {
- return original.NewDatabaseOperationsClient(subscriptionID)
-}
-func NewDatabaseOperationsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseOperationsClient {
- return original.NewDatabaseOperationsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewDatabaseThreatDetectionPoliciesClient(subscriptionID string) DatabaseThreatDetectionPoliciesClient {
- return original.NewDatabaseThreatDetectionPoliciesClient(subscriptionID)
-}
-func NewDatabaseThreatDetectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseThreatDetectionPoliciesClient {
- return original.NewDatabaseThreatDetectionPoliciesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewDatabaseUsagesClient(subscriptionID string) DatabaseUsagesClient {
- return original.NewDatabaseUsagesClient(subscriptionID)
-}
-func NewDatabaseUsagesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseUsagesClient {
- return original.NewDatabaseUsagesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewDatabaseVulnerabilityAssessmentListResultIterator(page DatabaseVulnerabilityAssessmentListResultPage) DatabaseVulnerabilityAssessmentListResultIterator {
- return original.NewDatabaseVulnerabilityAssessmentListResultIterator(page)
-}
-func NewDatabaseVulnerabilityAssessmentListResultPage(getNextPage func(context.Context, DatabaseVulnerabilityAssessmentListResult) (DatabaseVulnerabilityAssessmentListResult, error)) DatabaseVulnerabilityAssessmentListResultPage {
- return original.NewDatabaseVulnerabilityAssessmentListResultPage(getNextPage)
-}
-func NewDatabaseVulnerabilityAssessmentRuleBaselinesClient(subscriptionID string) DatabaseVulnerabilityAssessmentRuleBaselinesClient {
- return original.NewDatabaseVulnerabilityAssessmentRuleBaselinesClient(subscriptionID)
-}
-func NewDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseVulnerabilityAssessmentRuleBaselinesClient {
- return original.NewDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewDatabaseVulnerabilityAssessmentScansClient(subscriptionID string) DatabaseVulnerabilityAssessmentScansClient {
- return original.NewDatabaseVulnerabilityAssessmentScansClient(subscriptionID)
-}
-func NewDatabaseVulnerabilityAssessmentScansClientWithBaseURI(baseURI string, subscriptionID string) DatabaseVulnerabilityAssessmentScansClient {
- return original.NewDatabaseVulnerabilityAssessmentScansClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewDatabaseVulnerabilityAssessmentsClient(subscriptionID string) DatabaseVulnerabilityAssessmentsClient {
- return original.NewDatabaseVulnerabilityAssessmentsClient(subscriptionID)
-}
-func NewDatabaseVulnerabilityAssessmentsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseVulnerabilityAssessmentsClient {
- return original.NewDatabaseVulnerabilityAssessmentsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewDatabasesClient(subscriptionID string) DatabasesClient {
- return original.NewDatabasesClient(subscriptionID)
-}
-func NewDatabasesClientWithBaseURI(baseURI string, subscriptionID string) DatabasesClient {
- return original.NewDatabasesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewElasticPoolActivitiesClient(subscriptionID string) ElasticPoolActivitiesClient {
- return original.NewElasticPoolActivitiesClient(subscriptionID)
-}
-func NewElasticPoolActivitiesClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolActivitiesClient {
- return original.NewElasticPoolActivitiesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewElasticPoolDatabaseActivitiesClient(subscriptionID string) ElasticPoolDatabaseActivitiesClient {
- return original.NewElasticPoolDatabaseActivitiesClient(subscriptionID)
-}
-func NewElasticPoolDatabaseActivitiesClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolDatabaseActivitiesClient {
- return original.NewElasticPoolDatabaseActivitiesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewElasticPoolListResultIterator(page ElasticPoolListResultPage) ElasticPoolListResultIterator {
- return original.NewElasticPoolListResultIterator(page)
-}
-func NewElasticPoolListResultPage(getNextPage func(context.Context, ElasticPoolListResult) (ElasticPoolListResult, error)) ElasticPoolListResultPage {
- return original.NewElasticPoolListResultPage(getNextPage)
-}
-func NewElasticPoolOperationListResultIterator(page ElasticPoolOperationListResultPage) ElasticPoolOperationListResultIterator {
- return original.NewElasticPoolOperationListResultIterator(page)
-}
-func NewElasticPoolOperationListResultPage(getNextPage func(context.Context, ElasticPoolOperationListResult) (ElasticPoolOperationListResult, error)) ElasticPoolOperationListResultPage {
- return original.NewElasticPoolOperationListResultPage(getNextPage)
-}
-func NewElasticPoolOperationsClient(subscriptionID string) ElasticPoolOperationsClient {
- return original.NewElasticPoolOperationsClient(subscriptionID)
-}
-func NewElasticPoolOperationsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolOperationsClient {
- return original.NewElasticPoolOperationsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewElasticPoolsClient(subscriptionID string) ElasticPoolsClient {
- return original.NewElasticPoolsClient(subscriptionID)
-}
-func NewElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolsClient {
- return original.NewElasticPoolsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewEncryptionProtectorListResultIterator(page EncryptionProtectorListResultPage) EncryptionProtectorListResultIterator {
- return original.NewEncryptionProtectorListResultIterator(page)
-}
-func NewEncryptionProtectorListResultPage(getNextPage func(context.Context, EncryptionProtectorListResult) (EncryptionProtectorListResult, error)) EncryptionProtectorListResultPage {
- return original.NewEncryptionProtectorListResultPage(getNextPage)
-}
-func NewEncryptionProtectorsClient(subscriptionID string) EncryptionProtectorsClient {
- return original.NewEncryptionProtectorsClient(subscriptionID)
-}
-func NewEncryptionProtectorsClientWithBaseURI(baseURI string, subscriptionID string) EncryptionProtectorsClient {
- return original.NewEncryptionProtectorsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewExtendedDatabaseBlobAuditingPoliciesClient(subscriptionID string) ExtendedDatabaseBlobAuditingPoliciesClient {
- return original.NewExtendedDatabaseBlobAuditingPoliciesClient(subscriptionID)
-}
-func NewExtendedDatabaseBlobAuditingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ExtendedDatabaseBlobAuditingPoliciesClient {
- return original.NewExtendedDatabaseBlobAuditingPoliciesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewExtendedServerBlobAuditingPoliciesClient(subscriptionID string) ExtendedServerBlobAuditingPoliciesClient {
- return original.NewExtendedServerBlobAuditingPoliciesClient(subscriptionID)
-}
-func NewExtendedServerBlobAuditingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ExtendedServerBlobAuditingPoliciesClient {
- return original.NewExtendedServerBlobAuditingPoliciesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewFailoverGroupListResultIterator(page FailoverGroupListResultPage) FailoverGroupListResultIterator {
- return original.NewFailoverGroupListResultIterator(page)
-}
-func NewFailoverGroupListResultPage(getNextPage func(context.Context, FailoverGroupListResult) (FailoverGroupListResult, error)) FailoverGroupListResultPage {
- return original.NewFailoverGroupListResultPage(getNextPage)
-}
-func NewFailoverGroupsClient(subscriptionID string) FailoverGroupsClient {
- return original.NewFailoverGroupsClient(subscriptionID)
-}
-func NewFailoverGroupsClientWithBaseURI(baseURI string, subscriptionID string) FailoverGroupsClient {
- return original.NewFailoverGroupsClientWithBaseURI(baseURI, subscriptionID)
+type UsagesClient = original.UsagesClient
+type VulnerabilityAssessmentRecurringScansProperties = original.VulnerabilityAssessmentRecurringScansProperties
+
+func New(subscriptionID string) BaseClient {
+ return original.New(subscriptionID)
}
-func NewFirewallRulesClient(subscriptionID string) FirewallRulesClient {
- return original.NewFirewallRulesClient(subscriptionID)
+func NewDatabaseSecurityAlertListResultIterator(page DatabaseSecurityAlertListResultPage) DatabaseSecurityAlertListResultIterator {
+ return original.NewDatabaseSecurityAlertListResultIterator(page)
}
-func NewFirewallRulesClientWithBaseURI(baseURI string, subscriptionID string) FirewallRulesClient {
- return original.NewFirewallRulesClientWithBaseURI(baseURI, subscriptionID)
+func NewDatabaseSecurityAlertListResultPage(getNextPage func(context.Context, DatabaseSecurityAlertListResult) (DatabaseSecurityAlertListResult, error)) DatabaseSecurityAlertListResultPage {
+ return original.NewDatabaseSecurityAlertListResultPage(getNextPage)
}
-func NewGeoBackupPoliciesClient(subscriptionID string) GeoBackupPoliciesClient {
- return original.NewGeoBackupPoliciesClient(subscriptionID)
+func NewDatabaseSecurityAlertPoliciesClient(subscriptionID string) DatabaseSecurityAlertPoliciesClient {
+ return original.NewDatabaseSecurityAlertPoliciesClient(subscriptionID)
}
-func NewGeoBackupPoliciesClientWithBaseURI(baseURI string, subscriptionID string) GeoBackupPoliciesClient {
- return original.NewGeoBackupPoliciesClientWithBaseURI(baseURI, subscriptionID)
+func NewDatabaseSecurityAlertPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseSecurityAlertPoliciesClient {
+ return original.NewDatabaseSecurityAlertPoliciesClientWithBaseURI(baseURI, subscriptionID)
}
-func NewInstanceFailoverGroupListResultIterator(page InstanceFailoverGroupListResultPage) InstanceFailoverGroupListResultIterator {
- return original.NewInstanceFailoverGroupListResultIterator(page)
+func NewDatabasesClient(subscriptionID string) DatabasesClient {
+ return original.NewDatabasesClient(subscriptionID)
}
-func NewInstanceFailoverGroupListResultPage(getNextPage func(context.Context, InstanceFailoverGroupListResult) (InstanceFailoverGroupListResult, error)) InstanceFailoverGroupListResultPage {
- return original.NewInstanceFailoverGroupListResultPage(getNextPage)
+func NewDatabasesClientWithBaseURI(baseURI string, subscriptionID string) DatabasesClient {
+ return original.NewDatabasesClientWithBaseURI(baseURI, subscriptionID)
}
-func NewInstanceFailoverGroupsClient(subscriptionID string) InstanceFailoverGroupsClient {
- return original.NewInstanceFailoverGroupsClient(subscriptionID)
+func NewElasticPoolsClient(subscriptionID string) ElasticPoolsClient {
+ return original.NewElasticPoolsClient(subscriptionID)
}
-func NewInstanceFailoverGroupsClientWithBaseURI(baseURI string, subscriptionID string) InstanceFailoverGroupsClient {
- return original.NewInstanceFailoverGroupsClientWithBaseURI(baseURI, subscriptionID)
+func NewElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolsClient {
+ return original.NewElasticPoolsClientWithBaseURI(baseURI, subscriptionID)
}
func NewInstancePoolListResultIterator(page InstancePoolListResultPage) InstancePoolListResultIterator {
return original.NewInstancePoolListResultIterator(page)
@@ -1630,132 +233,6 @@ func NewInstancePoolsClient(subscriptionID string) InstancePoolsClient {
func NewInstancePoolsClientWithBaseURI(baseURI string, subscriptionID string) InstancePoolsClient {
return original.NewInstancePoolsClientWithBaseURI(baseURI, subscriptionID)
}
-func NewJobAgentListResultIterator(page JobAgentListResultPage) JobAgentListResultIterator {
- return original.NewJobAgentListResultIterator(page)
-}
-func NewJobAgentListResultPage(getNextPage func(context.Context, JobAgentListResult) (JobAgentListResult, error)) JobAgentListResultPage {
- return original.NewJobAgentListResultPage(getNextPage)
-}
-func NewJobAgentsClient(subscriptionID string) JobAgentsClient {
- return original.NewJobAgentsClient(subscriptionID)
-}
-func NewJobAgentsClientWithBaseURI(baseURI string, subscriptionID string) JobAgentsClient {
- return original.NewJobAgentsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewJobCredentialListResultIterator(page JobCredentialListResultPage) JobCredentialListResultIterator {
- return original.NewJobCredentialListResultIterator(page)
-}
-func NewJobCredentialListResultPage(getNextPage func(context.Context, JobCredentialListResult) (JobCredentialListResult, error)) JobCredentialListResultPage {
- return original.NewJobCredentialListResultPage(getNextPage)
-}
-func NewJobCredentialsClient(subscriptionID string) JobCredentialsClient {
- return original.NewJobCredentialsClient(subscriptionID)
-}
-func NewJobCredentialsClientWithBaseURI(baseURI string, subscriptionID string) JobCredentialsClient {
- return original.NewJobCredentialsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewJobExecutionListResultIterator(page JobExecutionListResultPage) JobExecutionListResultIterator {
- return original.NewJobExecutionListResultIterator(page)
-}
-func NewJobExecutionListResultPage(getNextPage func(context.Context, JobExecutionListResult) (JobExecutionListResult, error)) JobExecutionListResultPage {
- return original.NewJobExecutionListResultPage(getNextPage)
-}
-func NewJobExecutionsClient(subscriptionID string) JobExecutionsClient {
- return original.NewJobExecutionsClient(subscriptionID)
-}
-func NewJobExecutionsClientWithBaseURI(baseURI string, subscriptionID string) JobExecutionsClient {
- return original.NewJobExecutionsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewJobListResultIterator(page JobListResultPage) JobListResultIterator {
- return original.NewJobListResultIterator(page)
-}
-func NewJobListResultPage(getNextPage func(context.Context, JobListResult) (JobListResult, error)) JobListResultPage {
- return original.NewJobListResultPage(getNextPage)
-}
-func NewJobStepExecutionsClient(subscriptionID string) JobStepExecutionsClient {
- return original.NewJobStepExecutionsClient(subscriptionID)
-}
-func NewJobStepExecutionsClientWithBaseURI(baseURI string, subscriptionID string) JobStepExecutionsClient {
- return original.NewJobStepExecutionsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewJobStepListResultIterator(page JobStepListResultPage) JobStepListResultIterator {
- return original.NewJobStepListResultIterator(page)
-}
-func NewJobStepListResultPage(getNextPage func(context.Context, JobStepListResult) (JobStepListResult, error)) JobStepListResultPage {
- return original.NewJobStepListResultPage(getNextPage)
-}
-func NewJobStepsClient(subscriptionID string) JobStepsClient {
- return original.NewJobStepsClient(subscriptionID)
-}
-func NewJobStepsClientWithBaseURI(baseURI string, subscriptionID string) JobStepsClient {
- return original.NewJobStepsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewJobTargetExecutionsClient(subscriptionID string) JobTargetExecutionsClient {
- return original.NewJobTargetExecutionsClient(subscriptionID)
-}
-func NewJobTargetExecutionsClientWithBaseURI(baseURI string, subscriptionID string) JobTargetExecutionsClient {
- return original.NewJobTargetExecutionsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewJobTargetGroupListResultIterator(page JobTargetGroupListResultPage) JobTargetGroupListResultIterator {
- return original.NewJobTargetGroupListResultIterator(page)
-}
-func NewJobTargetGroupListResultPage(getNextPage func(context.Context, JobTargetGroupListResult) (JobTargetGroupListResult, error)) JobTargetGroupListResultPage {
- return original.NewJobTargetGroupListResultPage(getNextPage)
-}
-func NewJobTargetGroupsClient(subscriptionID string) JobTargetGroupsClient {
- return original.NewJobTargetGroupsClient(subscriptionID)
-}
-func NewJobTargetGroupsClientWithBaseURI(baseURI string, subscriptionID string) JobTargetGroupsClient {
- return original.NewJobTargetGroupsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewJobVersionListResultIterator(page JobVersionListResultPage) JobVersionListResultIterator {
- return original.NewJobVersionListResultIterator(page)
-}
-func NewJobVersionListResultPage(getNextPage func(context.Context, JobVersionListResult) (JobVersionListResult, error)) JobVersionListResultPage {
- return original.NewJobVersionListResultPage(getNextPage)
-}
-func NewJobVersionsClient(subscriptionID string) JobVersionsClient {
- return original.NewJobVersionsClient(subscriptionID)
-}
-func NewJobVersionsClientWithBaseURI(baseURI string, subscriptionID string) JobVersionsClient {
- return original.NewJobVersionsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewJobsClient(subscriptionID string) JobsClient {
- return original.NewJobsClient(subscriptionID)
-}
-func NewJobsClientWithBaseURI(baseURI string, subscriptionID string) JobsClient {
- return original.NewJobsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewLogicalServerSecurityAlertPolicyListResultIterator(page LogicalServerSecurityAlertPolicyListResultPage) LogicalServerSecurityAlertPolicyListResultIterator {
- return original.NewLogicalServerSecurityAlertPolicyListResultIterator(page)
-}
-func NewLogicalServerSecurityAlertPolicyListResultPage(getNextPage func(context.Context, LogicalServerSecurityAlertPolicyListResult) (LogicalServerSecurityAlertPolicyListResult, error)) LogicalServerSecurityAlertPolicyListResultPage {
- return original.NewLogicalServerSecurityAlertPolicyListResultPage(getNextPage)
-}
-func NewLongTermRetentionBackupListResultIterator(page LongTermRetentionBackupListResultPage) LongTermRetentionBackupListResultIterator {
- return original.NewLongTermRetentionBackupListResultIterator(page)
-}
-func NewLongTermRetentionBackupListResultPage(getNextPage func(context.Context, LongTermRetentionBackupListResult) (LongTermRetentionBackupListResult, error)) LongTermRetentionBackupListResultPage {
- return original.NewLongTermRetentionBackupListResultPage(getNextPage)
-}
-func NewLongTermRetentionBackupsClient(subscriptionID string) LongTermRetentionBackupsClient {
- return original.NewLongTermRetentionBackupsClient(subscriptionID)
-}
-func NewLongTermRetentionBackupsClientWithBaseURI(baseURI string, subscriptionID string) LongTermRetentionBackupsClient {
- return original.NewLongTermRetentionBackupsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewManagedBackupShortTermRetentionPoliciesClient(subscriptionID string) ManagedBackupShortTermRetentionPoliciesClient {
- return original.NewManagedBackupShortTermRetentionPoliciesClient(subscriptionID)
-}
-func NewManagedBackupShortTermRetentionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ManagedBackupShortTermRetentionPoliciesClient {
- return original.NewManagedBackupShortTermRetentionPoliciesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewManagedBackupShortTermRetentionPolicyListResultIterator(page ManagedBackupShortTermRetentionPolicyListResultPage) ManagedBackupShortTermRetentionPolicyListResultIterator {
- return original.NewManagedBackupShortTermRetentionPolicyListResultIterator(page)
-}
-func NewManagedBackupShortTermRetentionPolicyListResultPage(getNextPage func(context.Context, ManagedBackupShortTermRetentionPolicyListResult) (ManagedBackupShortTermRetentionPolicyListResult, error)) ManagedBackupShortTermRetentionPolicyListResultPage {
- return original.NewManagedBackupShortTermRetentionPolicyListResultPage(getNextPage)
-}
func NewManagedDatabaseListResultIterator(page ManagedDatabaseListResultPage) ManagedDatabaseListResultIterator {
return original.NewManagedDatabaseListResultIterator(page)
}
@@ -1768,96 +245,24 @@ func NewManagedDatabaseRestoreDetailsClient(subscriptionID string) ManagedDataba
func NewManagedDatabaseRestoreDetailsClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseRestoreDetailsClient {
return original.NewManagedDatabaseRestoreDetailsClientWithBaseURI(baseURI, subscriptionID)
}
-func NewManagedDatabaseSecurityAlertPoliciesClient(subscriptionID string) ManagedDatabaseSecurityAlertPoliciesClient {
- return original.NewManagedDatabaseSecurityAlertPoliciesClient(subscriptionID)
-}
-func NewManagedDatabaseSecurityAlertPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseSecurityAlertPoliciesClient {
- return original.NewManagedDatabaseSecurityAlertPoliciesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewManagedDatabaseSecurityAlertPolicyListResultIterator(page ManagedDatabaseSecurityAlertPolicyListResultPage) ManagedDatabaseSecurityAlertPolicyListResultIterator {
- return original.NewManagedDatabaseSecurityAlertPolicyListResultIterator(page)
-}
-func NewManagedDatabaseSecurityAlertPolicyListResultPage(getNextPage func(context.Context, ManagedDatabaseSecurityAlertPolicyListResult) (ManagedDatabaseSecurityAlertPolicyListResult, error)) ManagedDatabaseSecurityAlertPolicyListResultPage {
- return original.NewManagedDatabaseSecurityAlertPolicyListResultPage(getNextPage)
-}
func NewManagedDatabaseSensitivityLabelsClient(subscriptionID string) ManagedDatabaseSensitivityLabelsClient {
return original.NewManagedDatabaseSensitivityLabelsClient(subscriptionID)
}
func NewManagedDatabaseSensitivityLabelsClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseSensitivityLabelsClient {
return original.NewManagedDatabaseSensitivityLabelsClientWithBaseURI(baseURI, subscriptionID)
}
-func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient(subscriptionID string) ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient {
- return original.NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient(subscriptionID)
-}
-func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient {
- return original.NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewManagedDatabaseVulnerabilityAssessmentScansClient(subscriptionID string) ManagedDatabaseVulnerabilityAssessmentScansClient {
- return original.NewManagedDatabaseVulnerabilityAssessmentScansClient(subscriptionID)
-}
-func NewManagedDatabaseVulnerabilityAssessmentScansClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseVulnerabilityAssessmentScansClient {
- return original.NewManagedDatabaseVulnerabilityAssessmentScansClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewManagedDatabaseVulnerabilityAssessmentsClient(subscriptionID string) ManagedDatabaseVulnerabilityAssessmentsClient {
- return original.NewManagedDatabaseVulnerabilityAssessmentsClient(subscriptionID)
-}
-func NewManagedDatabaseVulnerabilityAssessmentsClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseVulnerabilityAssessmentsClient {
- return original.NewManagedDatabaseVulnerabilityAssessmentsClientWithBaseURI(baseURI, subscriptionID)
-}
func NewManagedDatabasesClient(subscriptionID string) ManagedDatabasesClient {
return original.NewManagedDatabasesClient(subscriptionID)
}
func NewManagedDatabasesClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabasesClient {
return original.NewManagedDatabasesClientWithBaseURI(baseURI, subscriptionID)
}
-func NewManagedInstanceAdministratorListResultIterator(page ManagedInstanceAdministratorListResultPage) ManagedInstanceAdministratorListResultIterator {
- return original.NewManagedInstanceAdministratorListResultIterator(page)
-}
-func NewManagedInstanceAdministratorListResultPage(getNextPage func(context.Context, ManagedInstanceAdministratorListResult) (ManagedInstanceAdministratorListResult, error)) ManagedInstanceAdministratorListResultPage {
- return original.NewManagedInstanceAdministratorListResultPage(getNextPage)
-}
-func NewManagedInstanceAdministratorsClient(subscriptionID string) ManagedInstanceAdministratorsClient {
- return original.NewManagedInstanceAdministratorsClient(subscriptionID)
-}
-func NewManagedInstanceAdministratorsClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceAdministratorsClient {
- return original.NewManagedInstanceAdministratorsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewManagedInstanceEncryptionProtectorListResultIterator(page ManagedInstanceEncryptionProtectorListResultPage) ManagedInstanceEncryptionProtectorListResultIterator {
- return original.NewManagedInstanceEncryptionProtectorListResultIterator(page)
-}
-func NewManagedInstanceEncryptionProtectorListResultPage(getNextPage func(context.Context, ManagedInstanceEncryptionProtectorListResult) (ManagedInstanceEncryptionProtectorListResult, error)) ManagedInstanceEncryptionProtectorListResultPage {
- return original.NewManagedInstanceEncryptionProtectorListResultPage(getNextPage)
-}
-func NewManagedInstanceEncryptionProtectorsClient(subscriptionID string) ManagedInstanceEncryptionProtectorsClient {
- return original.NewManagedInstanceEncryptionProtectorsClient(subscriptionID)
-}
-func NewManagedInstanceEncryptionProtectorsClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceEncryptionProtectorsClient {
- return original.NewManagedInstanceEncryptionProtectorsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewManagedInstanceKeyListResultIterator(page ManagedInstanceKeyListResultPage) ManagedInstanceKeyListResultIterator {
- return original.NewManagedInstanceKeyListResultIterator(page)
-}
-func NewManagedInstanceKeyListResultPage(getNextPage func(context.Context, ManagedInstanceKeyListResult) (ManagedInstanceKeyListResult, error)) ManagedInstanceKeyListResultPage {
- return original.NewManagedInstanceKeyListResultPage(getNextPage)
-}
-func NewManagedInstanceKeysClient(subscriptionID string) ManagedInstanceKeysClient {
- return original.NewManagedInstanceKeysClient(subscriptionID)
-}
-func NewManagedInstanceKeysClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceKeysClient {
- return original.NewManagedInstanceKeysClientWithBaseURI(baseURI, subscriptionID)
-}
func NewManagedInstanceListResultIterator(page ManagedInstanceListResultPage) ManagedInstanceListResultIterator {
return original.NewManagedInstanceListResultIterator(page)
}
func NewManagedInstanceListResultPage(getNextPage func(context.Context, ManagedInstanceListResult) (ManagedInstanceListResult, error)) ManagedInstanceListResultPage {
return original.NewManagedInstanceListResultPage(getNextPage)
}
-func NewManagedInstanceTdeCertificatesClient(subscriptionID string) ManagedInstanceTdeCertificatesClient {
- return original.NewManagedInstanceTdeCertificatesClient(subscriptionID)
-}
-func NewManagedInstanceTdeCertificatesClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceTdeCertificatesClient {
- return original.NewManagedInstanceTdeCertificatesClientWithBaseURI(baseURI, subscriptionID)
-}
func NewManagedInstanceVulnerabilityAssessmentListResultIterator(page ManagedInstanceVulnerabilityAssessmentListResultPage) ManagedInstanceVulnerabilityAssessmentListResultIterator {
return original.NewManagedInstanceVulnerabilityAssessmentListResultIterator(page)
}
@@ -1876,36 +281,6 @@ func NewManagedInstancesClient(subscriptionID string) ManagedInstancesClient {
func NewManagedInstancesClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstancesClient {
return original.NewManagedInstancesClientWithBaseURI(baseURI, subscriptionID)
}
-func NewManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient(subscriptionID string) ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient {
- return original.NewManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient(subscriptionID)
-}
-func NewManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient {
- return original.NewManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewManagedServerSecurityAlertPoliciesClient(subscriptionID string) ManagedServerSecurityAlertPoliciesClient {
- return original.NewManagedServerSecurityAlertPoliciesClient(subscriptionID)
-}
-func NewManagedServerSecurityAlertPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ManagedServerSecurityAlertPoliciesClient {
- return original.NewManagedServerSecurityAlertPoliciesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewManagedServerSecurityAlertPolicyListResultIterator(page ManagedServerSecurityAlertPolicyListResultPage) ManagedServerSecurityAlertPolicyListResultIterator {
- return original.NewManagedServerSecurityAlertPolicyListResultIterator(page)
-}
-func NewManagedServerSecurityAlertPolicyListResultPage(getNextPage func(context.Context, ManagedServerSecurityAlertPolicyListResult) (ManagedServerSecurityAlertPolicyListResult, error)) ManagedServerSecurityAlertPolicyListResultPage {
- return original.NewManagedServerSecurityAlertPolicyListResultPage(getNextPage)
-}
-func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator {
- return original.NewOperationListResultIterator(page)
-}
-func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage {
- return original.NewOperationListResultPage(getNextPage)
-}
-func NewOperationsClient(subscriptionID string) OperationsClient {
- return original.NewOperationsClient(subscriptionID)
-}
-func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
- return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
-}
func NewPrivateEndpointConnectionListResultIterator(page PrivateEndpointConnectionListResultPage) PrivateEndpointConnectionListResultIterator {
return original.NewPrivateEndpointConnectionListResultIterator(page)
}
@@ -1918,162 +293,12 @@ func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointC
func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient {
return original.NewPrivateEndpointConnectionsClientWithBaseURI(baseURI, subscriptionID)
}
-func NewPrivateLinkResourceListResultIterator(page PrivateLinkResourceListResultPage) PrivateLinkResourceListResultIterator {
- return original.NewPrivateLinkResourceListResultIterator(page)
-}
-func NewPrivateLinkResourceListResultPage(getNextPage func(context.Context, PrivateLinkResourceListResult) (PrivateLinkResourceListResult, error)) PrivateLinkResourceListResultPage {
- return original.NewPrivateLinkResourceListResultPage(getNextPage)
-}
-func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesClient {
- return original.NewPrivateLinkResourcesClient(subscriptionID)
-}
-func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient {
- return original.NewPrivateLinkResourcesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewRecommendedElasticPoolsClient(subscriptionID string) RecommendedElasticPoolsClient {
- return original.NewRecommendedElasticPoolsClient(subscriptionID)
-}
-func NewRecommendedElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) RecommendedElasticPoolsClient {
- return original.NewRecommendedElasticPoolsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewRecoverableDatabasesClient(subscriptionID string) RecoverableDatabasesClient {
- return original.NewRecoverableDatabasesClient(subscriptionID)
-}
-func NewRecoverableDatabasesClientWithBaseURI(baseURI string, subscriptionID string) RecoverableDatabasesClient {
- return original.NewRecoverableDatabasesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewRecoverableManagedDatabaseListResultIterator(page RecoverableManagedDatabaseListResultPage) RecoverableManagedDatabaseListResultIterator {
- return original.NewRecoverableManagedDatabaseListResultIterator(page)
-}
-func NewRecoverableManagedDatabaseListResultPage(getNextPage func(context.Context, RecoverableManagedDatabaseListResult) (RecoverableManagedDatabaseListResult, error)) RecoverableManagedDatabaseListResultPage {
- return original.NewRecoverableManagedDatabaseListResultPage(getNextPage)
-}
-func NewRecoverableManagedDatabasesClient(subscriptionID string) RecoverableManagedDatabasesClient {
- return original.NewRecoverableManagedDatabasesClient(subscriptionID)
-}
-func NewRecoverableManagedDatabasesClientWithBaseURI(baseURI string, subscriptionID string) RecoverableManagedDatabasesClient {
- return original.NewRecoverableManagedDatabasesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewReplicationLinksClient(subscriptionID string) ReplicationLinksClient {
- return original.NewReplicationLinksClient(subscriptionID)
-}
-func NewReplicationLinksClientWithBaseURI(baseURI string, subscriptionID string) ReplicationLinksClient {
- return original.NewReplicationLinksClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewRestorableDroppedDatabasesClient(subscriptionID string) RestorableDroppedDatabasesClient {
- return original.NewRestorableDroppedDatabasesClient(subscriptionID)
-}
-func NewRestorableDroppedDatabasesClientWithBaseURI(baseURI string, subscriptionID string) RestorableDroppedDatabasesClient {
- return original.NewRestorableDroppedDatabasesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewRestorableDroppedManagedDatabaseListResultIterator(page RestorableDroppedManagedDatabaseListResultPage) RestorableDroppedManagedDatabaseListResultIterator {
- return original.NewRestorableDroppedManagedDatabaseListResultIterator(page)
-}
-func NewRestorableDroppedManagedDatabaseListResultPage(getNextPage func(context.Context, RestorableDroppedManagedDatabaseListResult) (RestorableDroppedManagedDatabaseListResult, error)) RestorableDroppedManagedDatabaseListResultPage {
- return original.NewRestorableDroppedManagedDatabaseListResultPage(getNextPage)
-}
-func NewRestorableDroppedManagedDatabasesClient(subscriptionID string) RestorableDroppedManagedDatabasesClient {
- return original.NewRestorableDroppedManagedDatabasesClient(subscriptionID)
-}
-func NewRestorableDroppedManagedDatabasesClientWithBaseURI(baseURI string, subscriptionID string) RestorableDroppedManagedDatabasesClient {
- return original.NewRestorableDroppedManagedDatabasesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewRestorePointsClient(subscriptionID string) RestorePointsClient {
- return original.NewRestorePointsClient(subscriptionID)
-}
-func NewRestorePointsClientWithBaseURI(baseURI string, subscriptionID string) RestorePointsClient {
- return original.NewRestorePointsClientWithBaseURI(baseURI, subscriptionID)
-}
func NewSensitivityLabelListResultIterator(page SensitivityLabelListResultPage) SensitivityLabelListResultIterator {
return original.NewSensitivityLabelListResultIterator(page)
}
func NewSensitivityLabelListResultPage(getNextPage func(context.Context, SensitivityLabelListResult) (SensitivityLabelListResult, error)) SensitivityLabelListResultPage {
return original.NewSensitivityLabelListResultPage(getNextPage)
}
-func NewSensitivityLabelsClient(subscriptionID string) SensitivityLabelsClient {
- return original.NewSensitivityLabelsClient(subscriptionID)
-}
-func NewSensitivityLabelsClientWithBaseURI(baseURI string, subscriptionID string) SensitivityLabelsClient {
- return original.NewSensitivityLabelsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewServerAutomaticTuningClient(subscriptionID string) ServerAutomaticTuningClient {
- return original.NewServerAutomaticTuningClient(subscriptionID)
-}
-func NewServerAutomaticTuningClientWithBaseURI(baseURI string, subscriptionID string) ServerAutomaticTuningClient {
- return original.NewServerAutomaticTuningClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewServerAzureADAdministratorsClient(subscriptionID string) ServerAzureADAdministratorsClient {
- return original.NewServerAzureADAdministratorsClient(subscriptionID)
-}
-func NewServerAzureADAdministratorsClientWithBaseURI(baseURI string, subscriptionID string) ServerAzureADAdministratorsClient {
- return original.NewServerAzureADAdministratorsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewServerBlobAuditingPoliciesClient(subscriptionID string) ServerBlobAuditingPoliciesClient {
- return original.NewServerBlobAuditingPoliciesClient(subscriptionID)
-}
-func NewServerBlobAuditingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServerBlobAuditingPoliciesClient {
- return original.NewServerBlobAuditingPoliciesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewServerBlobAuditingPolicyListResultIterator(page ServerBlobAuditingPolicyListResultPage) ServerBlobAuditingPolicyListResultIterator {
- return original.NewServerBlobAuditingPolicyListResultIterator(page)
-}
-func NewServerBlobAuditingPolicyListResultPage(getNextPage func(context.Context, ServerBlobAuditingPolicyListResult) (ServerBlobAuditingPolicyListResult, error)) ServerBlobAuditingPolicyListResultPage {
- return original.NewServerBlobAuditingPolicyListResultPage(getNextPage)
-}
-func NewServerCommunicationLinksClient(subscriptionID string) ServerCommunicationLinksClient {
- return original.NewServerCommunicationLinksClient(subscriptionID)
-}
-func NewServerCommunicationLinksClientWithBaseURI(baseURI string, subscriptionID string) ServerCommunicationLinksClient {
- return original.NewServerCommunicationLinksClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewServerConnectionPoliciesClient(subscriptionID string) ServerConnectionPoliciesClient {
- return original.NewServerConnectionPoliciesClient(subscriptionID)
-}
-func NewServerConnectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServerConnectionPoliciesClient {
- return original.NewServerConnectionPoliciesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewServerDNSAliasListResultIterator(page ServerDNSAliasListResultPage) ServerDNSAliasListResultIterator {
- return original.NewServerDNSAliasListResultIterator(page)
-}
-func NewServerDNSAliasListResultPage(getNextPage func(context.Context, ServerDNSAliasListResult) (ServerDNSAliasListResult, error)) ServerDNSAliasListResultPage {
- return original.NewServerDNSAliasListResultPage(getNextPage)
-}
-func NewServerDNSAliasesClient(subscriptionID string) ServerDNSAliasesClient {
- return original.NewServerDNSAliasesClient(subscriptionID)
-}
-func NewServerDNSAliasesClientWithBaseURI(baseURI string, subscriptionID string) ServerDNSAliasesClient {
- return original.NewServerDNSAliasesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewServerKeyListResultIterator(page ServerKeyListResultPage) ServerKeyListResultIterator {
- return original.NewServerKeyListResultIterator(page)
-}
-func NewServerKeyListResultPage(getNextPage func(context.Context, ServerKeyListResult) (ServerKeyListResult, error)) ServerKeyListResultPage {
- return original.NewServerKeyListResultPage(getNextPage)
-}
-func NewServerKeysClient(subscriptionID string) ServerKeysClient {
- return original.NewServerKeysClient(subscriptionID)
-}
-func NewServerKeysClientWithBaseURI(baseURI string, subscriptionID string) ServerKeysClient {
- return original.NewServerKeysClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewServerListResultIterator(page ServerListResultPage) ServerListResultIterator {
- return original.NewServerListResultIterator(page)
-}
-func NewServerListResultPage(getNextPage func(context.Context, ServerListResult) (ServerListResult, error)) ServerListResultPage {
- return original.NewServerListResultPage(getNextPage)
-}
-func NewServerSecurityAlertPoliciesClient(subscriptionID string) ServerSecurityAlertPoliciesClient {
- return original.NewServerSecurityAlertPoliciesClient(subscriptionID)
-}
-func NewServerSecurityAlertPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServerSecurityAlertPoliciesClient {
- return original.NewServerSecurityAlertPoliciesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewServerUsagesClient(subscriptionID string) ServerUsagesClient {
- return original.NewServerUsagesClient(subscriptionID)
-}
-func NewServerUsagesClientWithBaseURI(baseURI string, subscriptionID string) ServerUsagesClient {
- return original.NewServerUsagesClientWithBaseURI(baseURI, subscriptionID)
-}
func NewServerVulnerabilityAssessmentListResultIterator(page ServerVulnerabilityAssessmentListResultPage) ServerVulnerabilityAssessmentListResultIterator {
return original.NewServerVulnerabilityAssessmentListResultIterator(page)
}
@@ -2086,114 +311,6 @@ func NewServerVulnerabilityAssessmentsClient(subscriptionID string) ServerVulner
func NewServerVulnerabilityAssessmentsClientWithBaseURI(baseURI string, subscriptionID string) ServerVulnerabilityAssessmentsClient {
return original.NewServerVulnerabilityAssessmentsClientWithBaseURI(baseURI, subscriptionID)
}
-func NewServersClient(subscriptionID string) ServersClient {
- return original.NewServersClient(subscriptionID)
-}
-func NewServersClientWithBaseURI(baseURI string, subscriptionID string) ServersClient {
- return original.NewServersClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewServiceObjectivesClient(subscriptionID string) ServiceObjectivesClient {
- return original.NewServiceObjectivesClient(subscriptionID)
-}
-func NewServiceObjectivesClientWithBaseURI(baseURI string, subscriptionID string) ServiceObjectivesClient {
- return original.NewServiceObjectivesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewServiceTierAdvisorsClient(subscriptionID string) ServiceTierAdvisorsClient {
- return original.NewServiceTierAdvisorsClient(subscriptionID)
-}
-func NewServiceTierAdvisorsClientWithBaseURI(baseURI string, subscriptionID string) ServiceTierAdvisorsClient {
- return original.NewServiceTierAdvisorsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewSubscriptionUsageListResultIterator(page SubscriptionUsageListResultPage) SubscriptionUsageListResultIterator {
- return original.NewSubscriptionUsageListResultIterator(page)
-}
-func NewSubscriptionUsageListResultPage(getNextPage func(context.Context, SubscriptionUsageListResult) (SubscriptionUsageListResult, error)) SubscriptionUsageListResultPage {
- return original.NewSubscriptionUsageListResultPage(getNextPage)
-}
-func NewSubscriptionUsagesClient(subscriptionID string) SubscriptionUsagesClient {
- return original.NewSubscriptionUsagesClient(subscriptionID)
-}
-func NewSubscriptionUsagesClientWithBaseURI(baseURI string, subscriptionID string) SubscriptionUsagesClient {
- return original.NewSubscriptionUsagesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewSyncAgentLinkedDatabaseListResultIterator(page SyncAgentLinkedDatabaseListResultPage) SyncAgentLinkedDatabaseListResultIterator {
- return original.NewSyncAgentLinkedDatabaseListResultIterator(page)
-}
-func NewSyncAgentLinkedDatabaseListResultPage(getNextPage func(context.Context, SyncAgentLinkedDatabaseListResult) (SyncAgentLinkedDatabaseListResult, error)) SyncAgentLinkedDatabaseListResultPage {
- return original.NewSyncAgentLinkedDatabaseListResultPage(getNextPage)
-}
-func NewSyncAgentListResultIterator(page SyncAgentListResultPage) SyncAgentListResultIterator {
- return original.NewSyncAgentListResultIterator(page)
-}
-func NewSyncAgentListResultPage(getNextPage func(context.Context, SyncAgentListResult) (SyncAgentListResult, error)) SyncAgentListResultPage {
- return original.NewSyncAgentListResultPage(getNextPage)
-}
-func NewSyncAgentsClient(subscriptionID string) SyncAgentsClient {
- return original.NewSyncAgentsClient(subscriptionID)
-}
-func NewSyncAgentsClientWithBaseURI(baseURI string, subscriptionID string) SyncAgentsClient {
- return original.NewSyncAgentsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewSyncDatabaseIDListResultIterator(page SyncDatabaseIDListResultPage) SyncDatabaseIDListResultIterator {
- return original.NewSyncDatabaseIDListResultIterator(page)
-}
-func NewSyncDatabaseIDListResultPage(getNextPage func(context.Context, SyncDatabaseIDListResult) (SyncDatabaseIDListResult, error)) SyncDatabaseIDListResultPage {
- return original.NewSyncDatabaseIDListResultPage(getNextPage)
-}
-func NewSyncFullSchemaPropertiesListResultIterator(page SyncFullSchemaPropertiesListResultPage) SyncFullSchemaPropertiesListResultIterator {
- return original.NewSyncFullSchemaPropertiesListResultIterator(page)
-}
-func NewSyncFullSchemaPropertiesListResultPage(getNextPage func(context.Context, SyncFullSchemaPropertiesListResult) (SyncFullSchemaPropertiesListResult, error)) SyncFullSchemaPropertiesListResultPage {
- return original.NewSyncFullSchemaPropertiesListResultPage(getNextPage)
-}
-func NewSyncGroupListResultIterator(page SyncGroupListResultPage) SyncGroupListResultIterator {
- return original.NewSyncGroupListResultIterator(page)
-}
-func NewSyncGroupListResultPage(getNextPage func(context.Context, SyncGroupListResult) (SyncGroupListResult, error)) SyncGroupListResultPage {
- return original.NewSyncGroupListResultPage(getNextPage)
-}
-func NewSyncGroupLogListResultIterator(page SyncGroupLogListResultPage) SyncGroupLogListResultIterator {
- return original.NewSyncGroupLogListResultIterator(page)
-}
-func NewSyncGroupLogListResultPage(getNextPage func(context.Context, SyncGroupLogListResult) (SyncGroupLogListResult, error)) SyncGroupLogListResultPage {
- return original.NewSyncGroupLogListResultPage(getNextPage)
-}
-func NewSyncGroupsClient(subscriptionID string) SyncGroupsClient {
- return original.NewSyncGroupsClient(subscriptionID)
-}
-func NewSyncGroupsClientWithBaseURI(baseURI string, subscriptionID string) SyncGroupsClient {
- return original.NewSyncGroupsClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewSyncMemberListResultIterator(page SyncMemberListResultPage) SyncMemberListResultIterator {
- return original.NewSyncMemberListResultIterator(page)
-}
-func NewSyncMemberListResultPage(getNextPage func(context.Context, SyncMemberListResult) (SyncMemberListResult, error)) SyncMemberListResultPage {
- return original.NewSyncMemberListResultPage(getNextPage)
-}
-func NewSyncMembersClient(subscriptionID string) SyncMembersClient {
- return original.NewSyncMembersClient(subscriptionID)
-}
-func NewSyncMembersClientWithBaseURI(baseURI string, subscriptionID string) SyncMembersClient {
- return original.NewSyncMembersClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewTdeCertificatesClient(subscriptionID string) TdeCertificatesClient {
- return original.NewTdeCertificatesClient(subscriptionID)
-}
-func NewTdeCertificatesClientWithBaseURI(baseURI string, subscriptionID string) TdeCertificatesClient {
- return original.NewTdeCertificatesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewTransparentDataEncryptionActivitiesClient(subscriptionID string) TransparentDataEncryptionActivitiesClient {
- return original.NewTransparentDataEncryptionActivitiesClient(subscriptionID)
-}
-func NewTransparentDataEncryptionActivitiesClientWithBaseURI(baseURI string, subscriptionID string) TransparentDataEncryptionActivitiesClient {
- return original.NewTransparentDataEncryptionActivitiesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewTransparentDataEncryptionsClient(subscriptionID string) TransparentDataEncryptionsClient {
- return original.NewTransparentDataEncryptionsClient(subscriptionID)
-}
-func NewTransparentDataEncryptionsClientWithBaseURI(baseURI string, subscriptionID string) TransparentDataEncryptionsClient {
- return original.NewTransparentDataEncryptionsClientWithBaseURI(baseURI, subscriptionID)
-}
func NewUsageListResultIterator(page UsageListResultPage) UsageListResultIterator {
return original.NewUsageListResultIterator(page)
}
@@ -2206,153 +323,18 @@ func NewUsagesClient(subscriptionID string) UsagesClient {
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return original.NewUsagesClientWithBaseURI(baseURI, subscriptionID)
}
-func NewVirtualClusterListResultIterator(page VirtualClusterListResultPage) VirtualClusterListResultIterator {
- return original.NewVirtualClusterListResultIterator(page)
-}
-func NewVirtualClusterListResultPage(getNextPage func(context.Context, VirtualClusterListResult) (VirtualClusterListResult, error)) VirtualClusterListResultPage {
- return original.NewVirtualClusterListResultPage(getNextPage)
-}
-func NewVirtualClustersClient(subscriptionID string) VirtualClustersClient {
- return original.NewVirtualClustersClient(subscriptionID)
-}
-func NewVirtualClustersClientWithBaseURI(baseURI string, subscriptionID string) VirtualClustersClient {
- return original.NewVirtualClustersClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewVirtualNetworkRuleListResultIterator(page VirtualNetworkRuleListResultPage) VirtualNetworkRuleListResultIterator {
- return original.NewVirtualNetworkRuleListResultIterator(page)
-}
-func NewVirtualNetworkRuleListResultPage(getNextPage func(context.Context, VirtualNetworkRuleListResult) (VirtualNetworkRuleListResult, error)) VirtualNetworkRuleListResultPage {
- return original.NewVirtualNetworkRuleListResultPage(getNextPage)
-}
-func NewVirtualNetworkRulesClient(subscriptionID string) VirtualNetworkRulesClient {
- return original.NewVirtualNetworkRulesClient(subscriptionID)
-}
-func NewVirtualNetworkRulesClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkRulesClient {
- return original.NewVirtualNetworkRulesClientWithBaseURI(baseURI, subscriptionID)
-}
-func NewVulnerabilityAssessmentScanRecordListResultIterator(page VulnerabilityAssessmentScanRecordListResultPage) VulnerabilityAssessmentScanRecordListResultIterator {
- return original.NewVulnerabilityAssessmentScanRecordListResultIterator(page)
-}
-func NewVulnerabilityAssessmentScanRecordListResultPage(getNextPage func(context.Context, VulnerabilityAssessmentScanRecordListResult) (VulnerabilityAssessmentScanRecordListResult, error)) VulnerabilityAssessmentScanRecordListResultPage {
- return original.NewVulnerabilityAssessmentScanRecordListResultPage(getNextPage)
-}
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
}
-func PossibleAuthenticationTypeValues() []AuthenticationType {
- return original.PossibleAuthenticationTypeValues()
-}
-func PossibleAutomaticTuningDisabledReasonValues() []AutomaticTuningDisabledReason {
- return original.PossibleAutomaticTuningDisabledReasonValues()
-}
-func PossibleAutomaticTuningModeValues() []AutomaticTuningMode {
- return original.PossibleAutomaticTuningModeValues()
-}
-func PossibleAutomaticTuningOptionModeActualValues() []AutomaticTuningOptionModeActual {
- return original.PossibleAutomaticTuningOptionModeActualValues()
-}
-func PossibleAutomaticTuningOptionModeDesiredValues() []AutomaticTuningOptionModeDesired {
- return original.PossibleAutomaticTuningOptionModeDesiredValues()
-}
-func PossibleAutomaticTuningServerModeValues() []AutomaticTuningServerMode {
- return original.PossibleAutomaticTuningServerModeValues()
-}
-func PossibleAutomaticTuningServerReasonValues() []AutomaticTuningServerReason {
- return original.PossibleAutomaticTuningServerReasonValues()
-}
-func PossibleBlobAuditingPolicyStateValues() []BlobAuditingPolicyState {
- return original.PossibleBlobAuditingPolicyStateValues()
-}
-func PossibleCapabilityGroupValues() []CapabilityGroup {
- return original.PossibleCapabilityGroupValues()
-}
-func PossibleCapabilityStatusValues() []CapabilityStatus {
- return original.PossibleCapabilityStatusValues()
-}
func PossibleCatalogCollationTypeValues() []CatalogCollationType {
return original.PossibleCatalogCollationTypeValues()
}
-func PossibleCheckNameAvailabilityReasonValues() []CheckNameAvailabilityReason {
- return original.PossibleCheckNameAvailabilityReasonValues()
-}
-func PossibleCreateModeValues() []CreateMode {
- return original.PossibleCreateModeValues()
-}
-func PossibleDataMaskingFunctionValues() []DataMaskingFunction {
- return original.PossibleDataMaskingFunctionValues()
-}
-func PossibleDataMaskingRuleStateValues() []DataMaskingRuleState {
- return original.PossibleDataMaskingRuleStateValues()
-}
-func PossibleDataMaskingStateValues() []DataMaskingState {
- return original.PossibleDataMaskingStateValues()
-}
-func PossibleDatabaseEditionValues() []DatabaseEdition {
- return original.PossibleDatabaseEditionValues()
-}
-func PossibleDatabaseLicenseTypeValues() []DatabaseLicenseType {
- return original.PossibleDatabaseLicenseTypeValues()
-}
-func PossibleDatabaseReadScaleValues() []DatabaseReadScale {
- return original.PossibleDatabaseReadScaleValues()
-}
-func PossibleDatabaseStatusValues() []DatabaseStatus {
- return original.PossibleDatabaseStatusValues()
-}
-func PossibleElasticPoolEditionValues() []ElasticPoolEdition {
- return original.PossibleElasticPoolEditionValues()
-}
-func PossibleElasticPoolLicenseTypeValues() []ElasticPoolLicenseType {
- return original.PossibleElasticPoolLicenseTypeValues()
-}
-func PossibleElasticPoolStateValues() []ElasticPoolState {
- return original.PossibleElasticPoolStateValues()
-}
-func PossibleFailoverGroupReplicationRoleValues() []FailoverGroupReplicationRole {
- return original.PossibleFailoverGroupReplicationRoleValues()
-}
-func PossibleGeoBackupPolicyStateValues() []GeoBackupPolicyState {
- return original.PossibleGeoBackupPolicyStateValues()
-}
func PossibleIdentityTypeValues() []IdentityType {
return original.PossibleIdentityTypeValues()
}
-func PossibleInstanceFailoverGroupReplicationRoleValues() []InstanceFailoverGroupReplicationRole {
- return original.PossibleInstanceFailoverGroupReplicationRoleValues()
-}
func PossibleInstancePoolLicenseTypeValues() []InstancePoolLicenseType {
return original.PossibleInstancePoolLicenseTypeValues()
}
-func PossibleJobAgentStateValues() []JobAgentState {
- return original.PossibleJobAgentStateValues()
-}
-func PossibleJobExecutionLifecycleValues() []JobExecutionLifecycle {
- return original.PossibleJobExecutionLifecycleValues()
-}
-func PossibleJobScheduleTypeValues() []JobScheduleType {
- return original.PossibleJobScheduleTypeValues()
-}
-func PossibleJobStepActionSourceValues() []JobStepActionSource {
- return original.PossibleJobStepActionSourceValues()
-}
-func PossibleJobStepActionTypeValues() []JobStepActionType {
- return original.PossibleJobStepActionTypeValues()
-}
-func PossibleJobStepOutputTypeValues() []JobStepOutputType {
- return original.PossibleJobStepOutputTypeValues()
-}
-func PossibleJobTargetGroupMembershipTypeValues() []JobTargetGroupMembershipType {
- return original.PossibleJobTargetGroupMembershipTypeValues()
-}
-func PossibleJobTargetTypeValues() []JobTargetType {
- return original.PossibleJobTargetTypeValues()
-}
-func PossibleLogSizeUnitValues() []LogSizeUnit {
- return original.PossibleLogSizeUnitValues()
-}
-func PossibleLongTermRetentionDatabaseStateValues() []LongTermRetentionDatabaseState {
- return original.PossibleLongTermRetentionDatabaseStateValues()
-}
func PossibleManagedDatabaseCreateModeValues() []ManagedDatabaseCreateMode {
return original.PossibleManagedDatabaseCreateModeValues()
}
@@ -2368,120 +350,12 @@ func PossibleManagedInstanceProxyOverrideValues() []ManagedInstanceProxyOverride
func PossibleManagedServerCreateModeValues() []ManagedServerCreateMode {
return original.PossibleManagedServerCreateModeValues()
}
-func PossibleManagementOperationStateValues() []ManagementOperationState {
- return original.PossibleManagementOperationStateValues()
-}
-func PossibleMaxSizeUnitValues() []MaxSizeUnit {
- return original.PossibleMaxSizeUnitValues()
-}
-func PossibleOperationOriginValues() []OperationOrigin {
- return original.PossibleOperationOriginValues()
-}
-func PossiblePerformanceLevelUnitValues() []PerformanceLevelUnit {
- return original.PossiblePerformanceLevelUnitValues()
-}
-func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType {
- return original.PossiblePrimaryAggregationTypeValues()
-}
-func PossibleProvisioningStateValues() []ProvisioningState {
- return original.PossibleProvisioningStateValues()
-}
-func PossibleReadOnlyEndpointFailoverPolicyValues() []ReadOnlyEndpointFailoverPolicy {
- return original.PossibleReadOnlyEndpointFailoverPolicyValues()
-}
-func PossibleReadWriteEndpointFailoverPolicyValues() []ReadWriteEndpointFailoverPolicy {
- return original.PossibleReadWriteEndpointFailoverPolicyValues()
-}
-func PossibleRecommendedIndexActionValues() []RecommendedIndexAction {
- return original.PossibleRecommendedIndexActionValues()
-}
-func PossibleRecommendedIndexStateValues() []RecommendedIndexState {
- return original.PossibleRecommendedIndexStateValues()
-}
-func PossibleRecommendedIndexTypeValues() []RecommendedIndexType {
- return original.PossibleRecommendedIndexTypeValues()
-}
-func PossibleReplicationRoleValues() []ReplicationRole {
- return original.PossibleReplicationRoleValues()
-}
-func PossibleReplicationStateValues() []ReplicationState {
- return original.PossibleReplicationStateValues()
-}
-func PossibleRestorePointTypeValues() []RestorePointType {
- return original.PossibleRestorePointTypeValues()
-}
-func PossibleSampleNameValues() []SampleName {
- return original.PossibleSampleNameValues()
-}
-func PossibleSecurityAlertPolicyEmailAccountAdminsValues() []SecurityAlertPolicyEmailAccountAdmins {
- return original.PossibleSecurityAlertPolicyEmailAccountAdminsValues()
-}
func PossibleSecurityAlertPolicyStateValues() []SecurityAlertPolicyState {
return original.PossibleSecurityAlertPolicyStateValues()
}
-func PossibleSecurityAlertPolicyUseServerDefaultValues() []SecurityAlertPolicyUseServerDefault {
- return original.PossibleSecurityAlertPolicyUseServerDefaultValues()
-}
func PossibleSensitivityLabelSourceValues() []SensitivityLabelSource {
return original.PossibleSensitivityLabelSourceValues()
}
-func PossibleServerConnectionTypeValues() []ServerConnectionType {
- return original.PossibleServerConnectionTypeValues()
-}
-func PossibleServerKeyTypeValues() []ServerKeyType {
- return original.PossibleServerKeyTypeValues()
-}
-func PossibleServiceObjectiveNameValues() []ServiceObjectiveName {
- return original.PossibleServiceObjectiveNameValues()
-}
-func PossibleStorageKeyTypeValues() []StorageKeyType {
- return original.PossibleStorageKeyTypeValues()
-}
-func PossibleSyncAgentStateValues() []SyncAgentState {
- return original.PossibleSyncAgentStateValues()
-}
-func PossibleSyncConflictResolutionPolicyValues() []SyncConflictResolutionPolicy {
- return original.PossibleSyncConflictResolutionPolicyValues()
-}
-func PossibleSyncDirectionValues() []SyncDirection {
- return original.PossibleSyncDirectionValues()
-}
-func PossibleSyncGroupLogTypeValues() []SyncGroupLogType {
- return original.PossibleSyncGroupLogTypeValues()
-}
-func PossibleSyncGroupStateValues() []SyncGroupState {
- return original.PossibleSyncGroupStateValues()
-}
-func PossibleSyncMemberDbTypeValues() []SyncMemberDbType {
- return original.PossibleSyncMemberDbTypeValues()
-}
-func PossibleSyncMemberStateValues() []SyncMemberState {
- return original.PossibleSyncMemberStateValues()
-}
-func PossibleTransparentDataEncryptionActivityStatusValues() []TransparentDataEncryptionActivityStatus {
- return original.PossibleTransparentDataEncryptionActivityStatusValues()
-}
-func PossibleTransparentDataEncryptionStatusValues() []TransparentDataEncryptionStatus {
- return original.PossibleTransparentDataEncryptionStatusValues()
-}
-func PossibleUnitDefinitionTypeValues() []UnitDefinitionType {
- return original.PossibleUnitDefinitionTypeValues()
-}
-func PossibleUnitTypeValues() []UnitType {
- return original.PossibleUnitTypeValues()
-}
-func PossibleVirtualNetworkRuleStateValues() []VirtualNetworkRuleState {
- return original.PossibleVirtualNetworkRuleStateValues()
-}
-func PossibleVulnerabilityAssessmentPolicyBaselineNameValues() []VulnerabilityAssessmentPolicyBaselineName {
- return original.PossibleVulnerabilityAssessmentPolicyBaselineNameValues()
-}
-func PossibleVulnerabilityAssessmentScanStateValues() []VulnerabilityAssessmentScanState {
- return original.PossibleVulnerabilityAssessmentScanStateValues()
-}
-func PossibleVulnerabilityAssessmentScanTriggerTypeValues() []VulnerabilityAssessmentScanTriggerType {
- return original.PossibleVulnerabilityAssessmentScanTriggerTypeValues()
-}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}
diff --git a/profiles/preview/preview/sql/mgmt/sql/sqlapi/models.go b/profiles/preview/preview/sql/mgmt/sql/sqlapi/models.go
index 7692ddf3961e..46419e0025a9 100644
--- a/profiles/preview/preview/sql/mgmt/sql/sqlapi/models.go
+++ b/profiles/preview/preview/sql/mgmt/sql/sqlapi/models.go
@@ -19,91 +19,17 @@
package sqlapi
-import original "github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2018-06-15-preview/sql/sqlapi"
+import original "github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2018-06-01-preview/sql/sqlapi"
-type BackupLongTermRetentionPoliciesClientAPI = original.BackupLongTermRetentionPoliciesClientAPI
-type BackupShortTermRetentionPoliciesClientAPI = original.BackupShortTermRetentionPoliciesClientAPI
-type CapabilitiesClientAPI = original.CapabilitiesClientAPI
-type DataMaskingPoliciesClientAPI = original.DataMaskingPoliciesClientAPI
-type DataMaskingRulesClientAPI = original.DataMaskingRulesClientAPI
-type DatabaseAutomaticTuningClientAPI = original.DatabaseAutomaticTuningClientAPI
-type DatabaseBlobAuditingPoliciesClientAPI = original.DatabaseBlobAuditingPoliciesClientAPI
-type DatabaseOperationsClientAPI = original.DatabaseOperationsClientAPI
-type DatabaseThreatDetectionPoliciesClientAPI = original.DatabaseThreatDetectionPoliciesClientAPI
-type DatabaseUsagesClientAPI = original.DatabaseUsagesClientAPI
-type DatabaseVulnerabilityAssessmentRuleBaselinesClientAPI = original.DatabaseVulnerabilityAssessmentRuleBaselinesClientAPI
-type DatabaseVulnerabilityAssessmentScansClientAPI = original.DatabaseVulnerabilityAssessmentScansClientAPI
-type DatabaseVulnerabilityAssessmentsClientAPI = original.DatabaseVulnerabilityAssessmentsClientAPI
+type DatabaseSecurityAlertPoliciesClientAPI = original.DatabaseSecurityAlertPoliciesClientAPI
type DatabasesClientAPI = original.DatabasesClientAPI
-type ElasticPoolActivitiesClientAPI = original.ElasticPoolActivitiesClientAPI
-type ElasticPoolDatabaseActivitiesClientAPI = original.ElasticPoolDatabaseActivitiesClientAPI
-type ElasticPoolOperationsClientAPI = original.ElasticPoolOperationsClientAPI
type ElasticPoolsClientAPI = original.ElasticPoolsClientAPI
-type EncryptionProtectorsClientAPI = original.EncryptionProtectorsClientAPI
-type ExtendedDatabaseBlobAuditingPoliciesClientAPI = original.ExtendedDatabaseBlobAuditingPoliciesClientAPI
-type ExtendedServerBlobAuditingPoliciesClientAPI = original.ExtendedServerBlobAuditingPoliciesClientAPI
-type FailoverGroupsClientAPI = original.FailoverGroupsClientAPI
-type FirewallRulesClientAPI = original.FirewallRulesClientAPI
-type GeoBackupPoliciesClientAPI = original.GeoBackupPoliciesClientAPI
-type InstanceFailoverGroupsClientAPI = original.InstanceFailoverGroupsClientAPI
type InstancePoolsClientAPI = original.InstancePoolsClientAPI
-type JobAgentsClientAPI = original.JobAgentsClientAPI
-type JobCredentialsClientAPI = original.JobCredentialsClientAPI
-type JobExecutionsClientAPI = original.JobExecutionsClientAPI
-type JobStepExecutionsClientAPI = original.JobStepExecutionsClientAPI
-type JobStepsClientAPI = original.JobStepsClientAPI
-type JobTargetExecutionsClientAPI = original.JobTargetExecutionsClientAPI
-type JobTargetGroupsClientAPI = original.JobTargetGroupsClientAPI
-type JobVersionsClientAPI = original.JobVersionsClientAPI
-type JobsClientAPI = original.JobsClientAPI
-type LongTermRetentionBackupsClientAPI = original.LongTermRetentionBackupsClientAPI
-type ManagedBackupShortTermRetentionPoliciesClientAPI = original.ManagedBackupShortTermRetentionPoliciesClientAPI
type ManagedDatabaseRestoreDetailsClientAPI = original.ManagedDatabaseRestoreDetailsClientAPI
-type ManagedDatabaseSecurityAlertPoliciesClientAPI = original.ManagedDatabaseSecurityAlertPoliciesClientAPI
type ManagedDatabaseSensitivityLabelsClientAPI = original.ManagedDatabaseSensitivityLabelsClientAPI
-type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientAPI = original.ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientAPI
-type ManagedDatabaseVulnerabilityAssessmentScansClientAPI = original.ManagedDatabaseVulnerabilityAssessmentScansClientAPI
-type ManagedDatabaseVulnerabilityAssessmentsClientAPI = original.ManagedDatabaseVulnerabilityAssessmentsClientAPI
type ManagedDatabasesClientAPI = original.ManagedDatabasesClientAPI
-type ManagedInstanceAdministratorsClientAPI = original.ManagedInstanceAdministratorsClientAPI
-type ManagedInstanceEncryptionProtectorsClientAPI = original.ManagedInstanceEncryptionProtectorsClientAPI
-type ManagedInstanceKeysClientAPI = original.ManagedInstanceKeysClientAPI
-type ManagedInstanceTdeCertificatesClientAPI = original.ManagedInstanceTdeCertificatesClientAPI
type ManagedInstanceVulnerabilityAssessmentsClientAPI = original.ManagedInstanceVulnerabilityAssessmentsClientAPI
type ManagedInstancesClientAPI = original.ManagedInstancesClientAPI
-type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClientAPI = original.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClientAPI
-type ManagedServerSecurityAlertPoliciesClientAPI = original.ManagedServerSecurityAlertPoliciesClientAPI
-type OperationsClientAPI = original.OperationsClientAPI
type PrivateEndpointConnectionsClientAPI = original.PrivateEndpointConnectionsClientAPI
-type PrivateLinkResourcesClientAPI = original.PrivateLinkResourcesClientAPI
-type RecommendedElasticPoolsClientAPI = original.RecommendedElasticPoolsClientAPI
-type RecoverableDatabasesClientAPI = original.RecoverableDatabasesClientAPI
-type RecoverableManagedDatabasesClientAPI = original.RecoverableManagedDatabasesClientAPI
-type ReplicationLinksClientAPI = original.ReplicationLinksClientAPI
-type RestorableDroppedDatabasesClientAPI = original.RestorableDroppedDatabasesClientAPI
-type RestorableDroppedManagedDatabasesClientAPI = original.RestorableDroppedManagedDatabasesClientAPI
-type RestorePointsClientAPI = original.RestorePointsClientAPI
-type SensitivityLabelsClientAPI = original.SensitivityLabelsClientAPI
-type ServerAutomaticTuningClientAPI = original.ServerAutomaticTuningClientAPI
-type ServerAzureADAdministratorsClientAPI = original.ServerAzureADAdministratorsClientAPI
-type ServerBlobAuditingPoliciesClientAPI = original.ServerBlobAuditingPoliciesClientAPI
-type ServerCommunicationLinksClientAPI = original.ServerCommunicationLinksClientAPI
-type ServerConnectionPoliciesClientAPI = original.ServerConnectionPoliciesClientAPI
-type ServerDNSAliasesClientAPI = original.ServerDNSAliasesClientAPI
-type ServerKeysClientAPI = original.ServerKeysClientAPI
-type ServerSecurityAlertPoliciesClientAPI = original.ServerSecurityAlertPoliciesClientAPI
-type ServerUsagesClientAPI = original.ServerUsagesClientAPI
type ServerVulnerabilityAssessmentsClientAPI = original.ServerVulnerabilityAssessmentsClientAPI
-type ServersClientAPI = original.ServersClientAPI
-type ServiceObjectivesClientAPI = original.ServiceObjectivesClientAPI
-type ServiceTierAdvisorsClientAPI = original.ServiceTierAdvisorsClientAPI
-type SubscriptionUsagesClientAPI = original.SubscriptionUsagesClientAPI
-type SyncAgentsClientAPI = original.SyncAgentsClientAPI
-type SyncGroupsClientAPI = original.SyncGroupsClientAPI
-type SyncMembersClientAPI = original.SyncMembersClientAPI
-type TdeCertificatesClientAPI = original.TdeCertificatesClientAPI
-type TransparentDataEncryptionActivitiesClientAPI = original.TransparentDataEncryptionActivitiesClientAPI
-type TransparentDataEncryptionsClientAPI = original.TransparentDataEncryptionsClientAPI
type UsagesClientAPI = original.UsagesClientAPI
-type VirtualClustersClientAPI = original.VirtualClustersClientAPI
-type VirtualNetworkRulesClientAPI = original.VirtualNetworkRulesClientAPI
diff --git a/profiles/preview/preview/sqlvirtualmachine/mgmt/sqlvirtualmachine/models.go b/profiles/preview/preview/sqlvirtualmachine/mgmt/sqlvirtualmachine/models.go
index 389ad50698f3..a3fb9d42db63 100644
--- a/profiles/preview/preview/sqlvirtualmachine/mgmt/sqlvirtualmachine/models.go
+++ b/profiles/preview/preview/sqlvirtualmachine/mgmt/sqlvirtualmachine/models.go
@@ -142,6 +142,14 @@ const (
HA ScaleType = original.HA
)
+type StorageWorkloadType = original.StorageWorkloadType
+
+const (
+ StorageWorkloadTypeDW StorageWorkloadType = original.StorageWorkloadTypeDW
+ StorageWorkloadTypeGENERAL StorageWorkloadType = original.StorageWorkloadTypeGENERAL
+ StorageWorkloadTypeOLTP StorageWorkloadType = original.StorageWorkloadTypeOLTP
+)
+
type AdditionalFeaturesServerConfigurations = original.AdditionalFeaturesServerConfigurations
type AutoBackupSettings = original.AutoBackupSettings
type AutoPatchingSettings = original.AutoPatchingSettings
@@ -181,6 +189,7 @@ type ProxyResource = original.ProxyResource
type Resource = original.Resource
type ResourceIdentity = original.ResourceIdentity
type SQLConnectivityUpdateSettings = original.SQLConnectivityUpdateSettings
+type SQLStorageSettings = original.SQLStorageSettings
type SQLStorageUpdateSettings = original.SQLStorageUpdateSettings
type SQLVirtualMachine = original.SQLVirtualMachine
type SQLVirtualMachinesClient = original.SQLVirtualMachinesClient
@@ -189,6 +198,7 @@ type SQLVirtualMachinesDeleteFutureType = original.SQLVirtualMachinesDeleteFutur
type SQLVirtualMachinesUpdateFutureType = original.SQLVirtualMachinesUpdateFutureType
type SQLWorkloadTypeUpdateSettings = original.SQLWorkloadTypeUpdateSettings
type ServerConfigurationsManagementSettings = original.ServerConfigurationsManagementSettings
+type StorageConfigurationSettings = original.StorageConfigurationSettings
type TrackedResource = original.TrackedResource
type Update = original.Update
type WsfcDomainCredentials = original.WsfcDomainCredentials
@@ -293,6 +303,9 @@ func PossibleSQLWorkloadTypeValues() []SQLWorkloadType {
func PossibleScaleTypeValues() []ScaleType {
return original.PossibleScaleTypeValues()
}
+func PossibleStorageWorkloadTypeValues() []StorageWorkloadType {
+ return original.PossibleStorageWorkloadTypeValues()
+}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}
diff --git a/profiles/preview/recoveryservices/mgmt/backup/models.go b/profiles/preview/recoveryservices/mgmt/backup/models.go
index f78dac9391a6..230dba59d36a 100644
--- a/profiles/preview/recoveryservices/mgmt/backup/models.go
+++ b/profiles/preview/recoveryservices/mgmt/backup/models.go
@@ -265,14 +265,16 @@ const (
type JobOperationType = original.JobOperationType
const (
- JobOperationTypeBackup JobOperationType = original.JobOperationTypeBackup
- JobOperationTypeConfigureBackup JobOperationType = original.JobOperationTypeConfigureBackup
- JobOperationTypeDeleteBackupData JobOperationType = original.JobOperationTypeDeleteBackupData
- JobOperationTypeDisableBackup JobOperationType = original.JobOperationTypeDisableBackup
- JobOperationTypeInvalid JobOperationType = original.JobOperationTypeInvalid
- JobOperationTypeRegister JobOperationType = original.JobOperationTypeRegister
- JobOperationTypeRestore JobOperationType = original.JobOperationTypeRestore
- JobOperationTypeUnRegister JobOperationType = original.JobOperationTypeUnRegister
+ JobOperationTypeBackup JobOperationType = original.JobOperationTypeBackup
+ JobOperationTypeConfigureBackup JobOperationType = original.JobOperationTypeConfigureBackup
+ JobOperationTypeCrossRegionRestore JobOperationType = original.JobOperationTypeCrossRegionRestore
+ JobOperationTypeDeleteBackupData JobOperationType = original.JobOperationTypeDeleteBackupData
+ JobOperationTypeDisableBackup JobOperationType = original.JobOperationTypeDisableBackup
+ JobOperationTypeInvalid JobOperationType = original.JobOperationTypeInvalid
+ JobOperationTypeRegister JobOperationType = original.JobOperationTypeRegister
+ JobOperationTypeRestore JobOperationType = original.JobOperationTypeRestore
+ JobOperationTypeUndelete JobOperationType = original.JobOperationTypeUndelete
+ JobOperationTypeUnRegister JobOperationType = original.JobOperationTypeUnRegister
)
type JobStatus = original.JobStatus
@@ -390,8 +392,9 @@ const (
type ObjectTypeBasicILRRequest = original.ObjectTypeBasicILRRequest
const (
- ObjectTypeIaasVMILRRegistrationRequest ObjectTypeBasicILRRequest = original.ObjectTypeIaasVMILRRegistrationRequest
- ObjectTypeILRRequest ObjectTypeBasicILRRequest = original.ObjectTypeILRRequest
+ ObjectTypeAzureFileShareProvisionILRRequest ObjectTypeBasicILRRequest = original.ObjectTypeAzureFileShareProvisionILRRequest
+ ObjectTypeIaasVMILRRegistrationRequest ObjectTypeBasicILRRequest = original.ObjectTypeIaasVMILRRegistrationRequest
+ ObjectTypeILRRequest ObjectTypeBasicILRRequest = original.ObjectTypeILRRequest
)
type ObjectTypeBasicOperationStatusExtendedInfo = original.ObjectTypeBasicOperationStatusExtendedInfo
@@ -501,7 +504,6 @@ const (
ProtectableItemTypeIaaSVMProtectableItem ProtectableItemType = original.ProtectableItemTypeIaaSVMProtectableItem
ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftClassicComputevirtualMachines
ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftComputevirtualMachines
- ProtectableItemTypeSAPAseDatabase ProtectableItemType = original.ProtectableItemTypeSAPAseDatabase
ProtectableItemTypeSAPAseSystem ProtectableItemType = original.ProtectableItemTypeSAPAseSystem
ProtectableItemTypeSAPHanaDatabase ProtectableItemType = original.ProtectableItemTypeSAPHanaDatabase
ProtectableItemTypeSAPHanaSystem ProtectableItemType = original.ProtectableItemTypeSAPHanaSystem
@@ -581,6 +583,14 @@ const (
ProtectionStatusProtectionFailed ProtectionStatus = original.ProtectionStatusProtectionFailed
)
+type RecoveryMode = original.RecoveryMode
+
+const (
+ RecoveryModeFileRecovery RecoveryMode = original.RecoveryModeFileRecovery
+ RecoveryModeInvalid RecoveryMode = original.RecoveryModeInvalid
+ RecoveryModeWorkloadRecovery RecoveryMode = original.RecoveryModeWorkloadRecovery
+)
+
type RecoveryPointTierStatus = original.RecoveryPointTierStatus
const (
@@ -603,6 +613,7 @@ type RecoveryType = original.RecoveryType
const (
RecoveryTypeAlternateLocation RecoveryType = original.RecoveryTypeAlternateLocation
RecoveryTypeInvalid RecoveryType = original.RecoveryTypeInvalid
+ RecoveryTypeOffline RecoveryType = original.RecoveryTypeOffline
RecoveryTypeOriginalLocation RecoveryType = original.RecoveryTypeOriginalLocation
RecoveryTypeRestoreDisks RecoveryType = original.RecoveryTypeRestoreDisks
)
@@ -686,6 +697,14 @@ const (
ScheduleRunTypeWeekly ScheduleRunType = original.ScheduleRunTypeWeekly
)
+type SoftDeleteFeatureState = original.SoftDeleteFeatureState
+
+const (
+ SoftDeleteFeatureStateDisabled SoftDeleteFeatureState = original.SoftDeleteFeatureStateDisabled
+ SoftDeleteFeatureStateEnabled SoftDeleteFeatureState = original.SoftDeleteFeatureStateEnabled
+ SoftDeleteFeatureStateInvalid SoftDeleteFeatureState = original.SoftDeleteFeatureStateInvalid
+)
+
type StorageType = original.StorageType
const (
@@ -811,6 +830,7 @@ type AzureBackupServerEngine = original.AzureBackupServerEngine
type AzureFileShareBackupRequest = original.AzureFileShareBackupRequest
type AzureFileShareProtectableItem = original.AzureFileShareProtectableItem
type AzureFileShareProtectionPolicy = original.AzureFileShareProtectionPolicy
+type AzureFileShareProvisionILRRequest = original.AzureFileShareProvisionILRRequest
type AzureFileShareRecoveryPoint = original.AzureFileShareRecoveryPoint
type AzureFileShareRestoreRequest = original.AzureFileShareRestoreRequest
type AzureFileshareProtectedItem = original.AzureFileshareProtectedItem
@@ -851,7 +871,6 @@ type AzureVMWorkloadProtectableItem = original.AzureVMWorkloadProtectableItem
type AzureVMWorkloadProtectedItem = original.AzureVMWorkloadProtectedItem
type AzureVMWorkloadProtectedItemExtendedInfo = original.AzureVMWorkloadProtectedItemExtendedInfo
type AzureVMWorkloadProtectionPolicy = original.AzureVMWorkloadProtectionPolicy
-type AzureVMWorkloadSAPAseDatabaseProtectableItem = original.AzureVMWorkloadSAPAseDatabaseProtectableItem
type AzureVMWorkloadSAPAseDatabaseProtectedItem = original.AzureVMWorkloadSAPAseDatabaseProtectedItem
type AzureVMWorkloadSAPAseDatabaseWorkloadItem = original.AzureVMWorkloadSAPAseDatabaseWorkloadItem
type AzureVMWorkloadSAPAseSystemProtectableItem = original.AzureVMWorkloadSAPAseSystemProtectableItem
@@ -953,6 +972,8 @@ type DPMProtectedItemExtendedInfo = original.DPMProtectedItemExtendedInfo
type DailyRetentionFormat = original.DailyRetentionFormat
type DailyRetentionSchedule = original.DailyRetentionSchedule
type Day = original.Day
+type DiskExclusionProperties = original.DiskExclusionProperties
+type DiskInformation = original.DiskInformation
type DistributedNodesInfo = original.DistributedNodesInfo
type DpmBackupEngine = original.DpmBackupEngine
type DpmContainer = original.DpmContainer
@@ -971,6 +992,7 @@ type EnginesClient = original.EnginesClient
type ErrorDetail = original.ErrorDetail
type ExportJobsOperationResultInfo = original.ExportJobsOperationResultInfo
type ExportJobsOperationResultsClient = original.ExportJobsOperationResultsClient
+type ExtendedProperties = original.ExtendedProperties
type FeatureSupportClient = original.FeatureSupportClient
type FeatureSupportRequest = original.FeatureSupportRequest
type GenericContainer = original.GenericContainer
@@ -990,6 +1012,7 @@ type IaasVMRestoreRequest = original.IaasVMRestoreRequest
type InquiryInfo = original.InquiryInfo
type InquiryValidation = original.InquiryValidation
type InstantItemRecoveryTarget = original.InstantItemRecoveryTarget
+type InstantRPAdditionalDetails = original.InstantRPAdditionalDetails
type ItemLevelRecoveryConnectionsClient = original.ItemLevelRecoveryConnectionsClient
type Job = original.Job
type JobCancellationsClient = original.JobCancellationsClient
@@ -1084,6 +1107,7 @@ type ProtectionPolicyResourceList = original.ProtectionPolicyResourceList
type ProtectionPolicyResourceListIterator = original.ProtectionPolicyResourceListIterator
type ProtectionPolicyResourceListPage = original.ProtectionPolicyResourceListPage
type RecoveryPoint = original.RecoveryPoint
+type RecoveryPointDiskConfiguration = original.RecoveryPointDiskConfiguration
type RecoveryPointResource = original.RecoveryPointResource
type RecoveryPointResourceList = original.RecoveryPointResourceList
type RecoveryPointResourceListIterator = original.RecoveryPointResourceListIterator
@@ -1577,6 +1601,9 @@ func PossibleProtectionStateValues() []ProtectionState {
func PossibleProtectionStatusValues() []ProtectionStatus {
return original.PossibleProtectionStatusValues()
}
+func PossibleRecoveryModeValues() []RecoveryMode {
+ return original.PossibleRecoveryModeValues()
+}
func PossibleRecoveryPointTierStatusValues() []RecoveryPointTierStatus {
return original.PossibleRecoveryPointTierStatusValues()
}
@@ -1613,6 +1640,9 @@ func PossibleSchedulePolicyTypeValues() []SchedulePolicyType {
func PossibleScheduleRunTypeValues() []ScheduleRunType {
return original.PossibleScheduleRunTypeValues()
}
+func PossibleSoftDeleteFeatureStateValues() []SoftDeleteFeatureState {
+ return original.PossibleSoftDeleteFeatureStateValues()
+}
func PossibleStorageTypeStateValues() []StorageTypeState {
return original.PossibleStorageTypeStateValues()
}
diff --git a/profiles/preview/servicebus/mgmt/servicebus/models.go b/profiles/preview/servicebus/mgmt/servicebus/models.go
index be8dcde4933b..e92dd03050c6 100644
--- a/profiles/preview/servicebus/mgmt/servicebus/models.go
+++ b/profiles/preview/servicebus/mgmt/servicebus/models.go
@@ -72,13 +72,6 @@ const (
FilterTypeSQLFilter FilterType = original.FilterTypeSQLFilter
)
-type IPAction = original.IPAction
-
-const (
- Accept IPAction = original.Accept
- Reject IPAction = original.Reject
-)
-
type KeyType = original.KeyType
const (
@@ -168,11 +161,6 @@ type EventHubListResultPage = original.EventHubListResultPage
type EventHubsClient = original.EventHubsClient
type Eventhub = original.Eventhub
type EventhubProperties = original.EventhubProperties
-type IPFilterRule = original.IPFilterRule
-type IPFilterRuleListResult = original.IPFilterRuleListResult
-type IPFilterRuleListResultIterator = original.IPFilterRuleListResultIterator
-type IPFilterRuleListResultPage = original.IPFilterRuleListResultPage
-type IPFilterRuleProperties = original.IPFilterRuleProperties
type MessageCountDetails = original.MessageCountDetails
type MigrationConfigListResult = original.MigrationConfigListResult
type MigrationConfigListResultIterator = original.MigrationConfigListResultIterator
@@ -248,11 +236,6 @@ type Subnet = original.Subnet
type SubscriptionsClient = original.SubscriptionsClient
type TopicsClient = original.TopicsClient
type TrackedResource = original.TrackedResource
-type VirtualNetworkRule = original.VirtualNetworkRule
-type VirtualNetworkRuleListResult = original.VirtualNetworkRuleListResult
-type VirtualNetworkRuleListResultIterator = original.VirtualNetworkRuleListResultIterator
-type VirtualNetworkRuleListResultPage = original.VirtualNetworkRuleListResultPage
-type VirtualNetworkRuleProperties = original.VirtualNetworkRuleProperties
func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
@@ -413,9 +396,6 @@ func PossibleEntityStatusValues() []EntityStatus {
func PossibleFilterTypeValues() []FilterType {
return original.PossibleFilterTypeValues()
}
-func PossibleIPActionValues() []IPAction {
- return original.PossibleIPActionValues()
-}
func PossibleKeyTypeValues() []KeyType {
return original.PossibleKeyTypeValues()
}
diff --git a/profiles/preview/sql/mgmt/sql/models.go b/profiles/preview/sql/mgmt/sql/models.go
index c236e3c00709..1ef18e61db29 100644
--- a/profiles/preview/sql/mgmt/sql/models.go
+++ b/profiles/preview/sql/mgmt/sql/models.go
@@ -25,6 +25,15 @@ const (
DefaultBaseURI = original.DefaultBaseURI
)
+type AdvisorStatus = original.AdvisorStatus
+
+const (
+ GA AdvisorStatus = original.GA
+ LimitedPublicPreview AdvisorStatus = original.LimitedPublicPreview
+ PrivatePreview AdvisorStatus = original.PrivatePreview
+ PublicPreview AdvisorStatus = original.PublicPreview
+)
+
type AuthenticationType = original.AuthenticationType
const (
@@ -32,6 +41,30 @@ const (
SQL AuthenticationType = original.SQL
)
+type AutoExecuteStatus = original.AutoExecuteStatus
+
+const (
+ Default AutoExecuteStatus = original.Default
+ Disabled AutoExecuteStatus = original.Disabled
+ Enabled AutoExecuteStatus = original.Enabled
+)
+
+type BackupLongTermRetentionPolicyState = original.BackupLongTermRetentionPolicyState
+
+const (
+ BackupLongTermRetentionPolicyStateDisabled BackupLongTermRetentionPolicyState = original.BackupLongTermRetentionPolicyStateDisabled
+ BackupLongTermRetentionPolicyStateEnabled BackupLongTermRetentionPolicyState = original.BackupLongTermRetentionPolicyStateEnabled
+)
+
+type CapabilityStatus = original.CapabilityStatus
+
+const (
+ CapabilityStatusAvailable CapabilityStatus = original.CapabilityStatusAvailable
+ CapabilityStatusDefault CapabilityStatus = original.CapabilityStatusDefault
+ CapabilityStatusDisabled CapabilityStatus = original.CapabilityStatusDisabled
+ CapabilityStatusVisible CapabilityStatus = original.CapabilityStatusVisible
+)
+
type CheckNameAvailabilityReason = original.CheckNameAvailabilityReason
const (
@@ -42,14 +75,39 @@ const (
type CreateMode = original.CreateMode
const (
- Copy CreateMode = original.Copy
- Default CreateMode = original.Default
- NonReadableSecondary CreateMode = original.NonReadableSecondary
- OnlineSecondary CreateMode = original.OnlineSecondary
- PointInTimeRestore CreateMode = original.PointInTimeRestore
- Recovery CreateMode = original.Recovery
- Restore CreateMode = original.Restore
- RestoreLongTermRetentionBackup CreateMode = original.RestoreLongTermRetentionBackup
+ CreateModeCopy CreateMode = original.CreateModeCopy
+ CreateModeDefault CreateMode = original.CreateModeDefault
+ CreateModeNonReadableSecondary CreateMode = original.CreateModeNonReadableSecondary
+ CreateModeOnlineSecondary CreateMode = original.CreateModeOnlineSecondary
+ CreateModePointInTimeRestore CreateMode = original.CreateModePointInTimeRestore
+ CreateModeRecovery CreateMode = original.CreateModeRecovery
+ CreateModeRestore CreateMode = original.CreateModeRestore
+ CreateModeRestoreLongTermRetentionBackup CreateMode = original.CreateModeRestoreLongTermRetentionBackup
+)
+
+type DataMaskingFunction = original.DataMaskingFunction
+
+const (
+ DataMaskingFunctionCCN DataMaskingFunction = original.DataMaskingFunctionCCN
+ DataMaskingFunctionDefault DataMaskingFunction = original.DataMaskingFunctionDefault
+ DataMaskingFunctionEmail DataMaskingFunction = original.DataMaskingFunctionEmail
+ DataMaskingFunctionNumber DataMaskingFunction = original.DataMaskingFunctionNumber
+ DataMaskingFunctionSSN DataMaskingFunction = original.DataMaskingFunctionSSN
+ DataMaskingFunctionText DataMaskingFunction = original.DataMaskingFunctionText
+)
+
+type DataMaskingRuleState = original.DataMaskingRuleState
+
+const (
+ DataMaskingRuleStateDisabled DataMaskingRuleState = original.DataMaskingRuleStateDisabled
+ DataMaskingRuleStateEnabled DataMaskingRuleState = original.DataMaskingRuleStateEnabled
+)
+
+type DataMaskingState = original.DataMaskingState
+
+const (
+ DataMaskingStateDisabled DataMaskingState = original.DataMaskingStateDisabled
+ DataMaskingStateEnabled DataMaskingState = original.DataMaskingStateEnabled
)
type DatabaseEdition = original.DatabaseEdition
@@ -71,6 +129,37 @@ const (
Web DatabaseEdition = original.Web
)
+type DisasterRecoveryConfigurationAutoFailover = original.DisasterRecoveryConfigurationAutoFailover
+
+const (
+ Off DisasterRecoveryConfigurationAutoFailover = original.Off
+ On DisasterRecoveryConfigurationAutoFailover = original.On
+)
+
+type DisasterRecoveryConfigurationFailoverPolicy = original.DisasterRecoveryConfigurationFailoverPolicy
+
+const (
+ Automatic DisasterRecoveryConfigurationFailoverPolicy = original.Automatic
+ Manual DisasterRecoveryConfigurationFailoverPolicy = original.Manual
+)
+
+type DisasterRecoveryConfigurationRole = original.DisasterRecoveryConfigurationRole
+
+const (
+ None DisasterRecoveryConfigurationRole = original.None
+ Primary DisasterRecoveryConfigurationRole = original.Primary
+ Secondary DisasterRecoveryConfigurationRole = original.Secondary
+)
+
+type DisasterRecoveryConfigurationStatus = original.DisasterRecoveryConfigurationStatus
+
+const (
+ Creating DisasterRecoveryConfigurationStatus = original.Creating
+ Dropping DisasterRecoveryConfigurationStatus = original.Dropping
+ FailingOver DisasterRecoveryConfigurationStatus = original.FailingOver
+ Ready DisasterRecoveryConfigurationStatus = original.Ready
+)
+
type ElasticPoolEdition = original.ElasticPoolEdition
const (
@@ -84,9 +173,79 @@ const (
type ElasticPoolState = original.ElasticPoolState
const (
- Creating ElasticPoolState = original.Creating
- Disabled ElasticPoolState = original.Disabled
- Ready ElasticPoolState = original.Ready
+ ElasticPoolStateCreating ElasticPoolState = original.ElasticPoolStateCreating
+ ElasticPoolStateDisabled ElasticPoolState = original.ElasticPoolStateDisabled
+ ElasticPoolStateReady ElasticPoolState = original.ElasticPoolStateReady
+)
+
+type GeoBackupPolicyState = original.GeoBackupPolicyState
+
+const (
+ GeoBackupPolicyStateDisabled GeoBackupPolicyState = original.GeoBackupPolicyStateDisabled
+ GeoBackupPolicyStateEnabled GeoBackupPolicyState = original.GeoBackupPolicyStateEnabled
+)
+
+type MaxSizeUnits = original.MaxSizeUnits
+
+const (
+ Gigabytes MaxSizeUnits = original.Gigabytes
+ Megabytes MaxSizeUnits = original.Megabytes
+ Petabytes MaxSizeUnits = original.Petabytes
+ Terabytes MaxSizeUnits = original.Terabytes
+)
+
+type PerformanceLevelUnit = original.PerformanceLevelUnit
+
+const (
+ DTU PerformanceLevelUnit = original.DTU
+)
+
+type PrimaryAggregationType = original.PrimaryAggregationType
+
+const (
+ PrimaryAggregationTypeAverage PrimaryAggregationType = original.PrimaryAggregationTypeAverage
+ PrimaryAggregationTypeCount PrimaryAggregationType = original.PrimaryAggregationTypeCount
+ PrimaryAggregationTypeMaximum PrimaryAggregationType = original.PrimaryAggregationTypeMaximum
+ PrimaryAggregationTypeMinimum PrimaryAggregationType = original.PrimaryAggregationTypeMinimum
+ PrimaryAggregationTypeNone PrimaryAggregationType = original.PrimaryAggregationTypeNone
+ PrimaryAggregationTypeTotal PrimaryAggregationType = original.PrimaryAggregationTypeTotal
+)
+
+type QueryAggregationFunction = original.QueryAggregationFunction
+
+const (
+ Avg QueryAggregationFunction = original.Avg
+ Max QueryAggregationFunction = original.Max
+ Min QueryAggregationFunction = original.Min
+ Sum QueryAggregationFunction = original.Sum
+)
+
+type QueryExecutionType = original.QueryExecutionType
+
+const (
+ Aborted QueryExecutionType = original.Aborted
+ Any QueryExecutionType = original.Any
+ Exception QueryExecutionType = original.Exception
+ Irregular QueryExecutionType = original.Irregular
+ Regular QueryExecutionType = original.Regular
+)
+
+type QueryMetricUnit = original.QueryMetricUnit
+
+const (
+ KB QueryMetricUnit = original.KB
+ Microseconds QueryMetricUnit = original.Microseconds
+ Percentage QueryMetricUnit = original.Percentage
+)
+
+type QueryObservedMetricType = original.QueryObservedMetricType
+
+const (
+ CPU QueryObservedMetricType = original.CPU
+ Duration QueryObservedMetricType = original.Duration
+ ExecutionCount QueryObservedMetricType = original.ExecutionCount
+ Io QueryObservedMetricType = original.Io
+ Logio QueryObservedMetricType = original.Logio
)
type ReadScale = original.ReadScale
@@ -148,6 +307,13 @@ const (
SUSPENDED ReplicationState = original.SUSPENDED
)
+type RestorePointType = original.RestorePointType
+
+const (
+ CONTINUOUS RestorePointType = original.CONTINUOUS
+ DISCRETE RestorePointType = original.DISCRETE
+)
+
type SampleName = original.SampleName
const (
@@ -176,6 +342,28 @@ const (
SecurityAlertPolicyUseServerDefaultEnabled SecurityAlertPolicyUseServerDefault = original.SecurityAlertPolicyUseServerDefaultEnabled
)
+type ServerConnectionType = original.ServerConnectionType
+
+const (
+ ServerConnectionTypeDefault ServerConnectionType = original.ServerConnectionTypeDefault
+ ServerConnectionTypeProxy ServerConnectionType = original.ServerConnectionTypeProxy
+ ServerConnectionTypeRedirect ServerConnectionType = original.ServerConnectionTypeRedirect
+)
+
+type ServerState = original.ServerState
+
+const (
+ ServerStateDisabled ServerState = original.ServerStateDisabled
+ ServerStateReady ServerState = original.ServerStateReady
+)
+
+type ServerVersion = original.ServerVersion
+
+const (
+ OneTwoFullStopZero ServerVersion = original.OneTwoFullStopZero
+ TwoFullStopZero ServerVersion = original.TwoFullStopZero
+)
+
type ServiceObjectiveName = original.ServiceObjectiveName
const (
@@ -267,16 +455,70 @@ const (
TransparentDataEncryptionStatusEnabled TransparentDataEncryptionStatus = original.TransparentDataEncryptionStatusEnabled
)
+type UnitDefinitionType = original.UnitDefinitionType
+
+const (
+ Bytes UnitDefinitionType = original.Bytes
+ BytesPerSecond UnitDefinitionType = original.BytesPerSecond
+ Count UnitDefinitionType = original.Count
+ CountPerSecond UnitDefinitionType = original.CountPerSecond
+ Percent UnitDefinitionType = original.Percent
+ Seconds UnitDefinitionType = original.Seconds
+)
+
+type UnitType = original.UnitType
+
+const (
+ UnitTypeBytes UnitType = original.UnitTypeBytes
+ UnitTypeBytesPerSecond UnitType = original.UnitTypeBytesPerSecond
+ UnitTypeCount UnitType = original.UnitTypeCount
+ UnitTypeCountPerSecond UnitType = original.UnitTypeCountPerSecond
+ UnitTypePercent UnitType = original.UnitTypePercent
+ UnitTypeSeconds UnitType = original.UnitTypeSeconds
+)
+
+type Advisor = original.Advisor
+type AdvisorListResult = original.AdvisorListResult
+type AdvisorProperties = original.AdvisorProperties
+type BackupLongTermRetentionPoliciesClient = original.BackupLongTermRetentionPoliciesClient
+type BackupLongTermRetentionPoliciesCreateOrUpdateFuture = original.BackupLongTermRetentionPoliciesCreateOrUpdateFuture
+type BackupLongTermRetentionPolicy = original.BackupLongTermRetentionPolicy
+type BackupLongTermRetentionPolicyListResult = original.BackupLongTermRetentionPolicyListResult
+type BackupLongTermRetentionPolicyProperties = original.BackupLongTermRetentionPolicyProperties
+type BackupLongTermRetentionVault = original.BackupLongTermRetentionVault
+type BackupLongTermRetentionVaultListResult = original.BackupLongTermRetentionVaultListResult
+type BackupLongTermRetentionVaultProperties = original.BackupLongTermRetentionVaultProperties
+type BackupLongTermRetentionVaultsClient = original.BackupLongTermRetentionVaultsClient
+type BackupLongTermRetentionVaultsCreateOrUpdateFuture = original.BackupLongTermRetentionVaultsCreateOrUpdateFuture
type BaseClient = original.BaseClient
+type CapabilitiesClient = original.CapabilitiesClient
type CheckNameAvailabilityRequest = original.CheckNameAvailabilityRequest
type CheckNameAvailabilityResponse = original.CheckNameAvailabilityResponse
+type DataMaskingPoliciesClient = original.DataMaskingPoliciesClient
+type DataMaskingPolicy = original.DataMaskingPolicy
+type DataMaskingPolicyProperties = original.DataMaskingPolicyProperties
+type DataMaskingRule = original.DataMaskingRule
+type DataMaskingRuleListResult = original.DataMaskingRuleListResult
+type DataMaskingRuleProperties = original.DataMaskingRuleProperties
+type DataMaskingRulesClient = original.DataMaskingRulesClient
type Database = original.Database
+type DatabaseAdvisorsClient = original.DatabaseAdvisorsClient
+type DatabaseConnectionPoliciesClient = original.DatabaseConnectionPoliciesClient
+type DatabaseConnectionPolicy = original.DatabaseConnectionPolicy
+type DatabaseConnectionPolicyProperties = original.DatabaseConnectionPolicyProperties
type DatabaseListResult = original.DatabaseListResult
type DatabaseProperties = original.DatabaseProperties
type DatabaseSecurityAlertPolicy = original.DatabaseSecurityAlertPolicy
type DatabaseSecurityAlertPolicyProperties = original.DatabaseSecurityAlertPolicyProperties
+type DatabaseTableAuditingPoliciesClient = original.DatabaseTableAuditingPoliciesClient
+type DatabaseTableAuditingPolicy = original.DatabaseTableAuditingPolicy
+type DatabaseTableAuditingPolicyListResult = original.DatabaseTableAuditingPolicyListResult
+type DatabaseTableAuditingPolicyProperties = original.DatabaseTableAuditingPolicyProperties
type DatabaseThreatDetectionPoliciesClient = original.DatabaseThreatDetectionPoliciesClient
type DatabaseUpdate = original.DatabaseUpdate
+type DatabaseUsage = original.DatabaseUsage
+type DatabaseUsageListResult = original.DatabaseUsageListResult
+type DatabaseUsagesClient = original.DatabaseUsagesClient
type DatabasesClient = original.DatabasesClient
type DatabasesCreateImportOperationFuture = original.DatabasesCreateImportOperationFuture
type DatabasesCreateOrUpdateFuture = original.DatabasesCreateOrUpdateFuture
@@ -285,6 +527,15 @@ type DatabasesImportFuture = original.DatabasesImportFuture
type DatabasesPauseFuture = original.DatabasesPauseFuture
type DatabasesResumeFuture = original.DatabasesResumeFuture
type DatabasesUpdateFuture = original.DatabasesUpdateFuture
+type DisasterRecoveryConfiguration = original.DisasterRecoveryConfiguration
+type DisasterRecoveryConfigurationListResult = original.DisasterRecoveryConfigurationListResult
+type DisasterRecoveryConfigurationProperties = original.DisasterRecoveryConfigurationProperties
+type DisasterRecoveryConfigurationsClient = original.DisasterRecoveryConfigurationsClient
+type DisasterRecoveryConfigurationsCreateOrUpdateFuture = original.DisasterRecoveryConfigurationsCreateOrUpdateFuture
+type DisasterRecoveryConfigurationsDeleteFuture = original.DisasterRecoveryConfigurationsDeleteFuture
+type DisasterRecoveryConfigurationsFailoverAllowDataLossFuture = original.DisasterRecoveryConfigurationsFailoverAllowDataLossFuture
+type DisasterRecoveryConfigurationsFailoverFuture = original.DisasterRecoveryConfigurationsFailoverFuture
+type EditionCapability = original.EditionCapability
type ElasticPool = original.ElasticPool
type ElasticPoolActivitiesClient = original.ElasticPoolActivitiesClient
type ElasticPoolActivity = original.ElasticPoolActivity
@@ -294,24 +545,57 @@ type ElasticPoolDatabaseActivitiesClient = original.ElasticPoolDatabaseActivitie
type ElasticPoolDatabaseActivity = original.ElasticPoolDatabaseActivity
type ElasticPoolDatabaseActivityListResult = original.ElasticPoolDatabaseActivityListResult
type ElasticPoolDatabaseActivityProperties = original.ElasticPoolDatabaseActivityProperties
+type ElasticPoolDtuCapability = original.ElasticPoolDtuCapability
+type ElasticPoolEditionCapability = original.ElasticPoolEditionCapability
type ElasticPoolListResult = original.ElasticPoolListResult
+type ElasticPoolPerDatabaseMaxDtuCapability = original.ElasticPoolPerDatabaseMaxDtuCapability
+type ElasticPoolPerDatabaseMinDtuCapability = original.ElasticPoolPerDatabaseMinDtuCapability
type ElasticPoolProperties = original.ElasticPoolProperties
type ElasticPoolUpdate = original.ElasticPoolUpdate
type ElasticPoolsClient = original.ElasticPoolsClient
type ElasticPoolsCreateOrUpdateFuture = original.ElasticPoolsCreateOrUpdateFuture
type ElasticPoolsUpdateFuture = original.ElasticPoolsUpdateFuture
type ExportRequest = original.ExportRequest
+type ExtensionListResult = original.ExtensionListResult
+type ExtensionsClient = original.ExtensionsClient
type FirewallRule = original.FirewallRule
type FirewallRuleListResult = original.FirewallRuleListResult
type FirewallRuleProperties = original.FirewallRuleProperties
type FirewallRulesClient = original.FirewallRulesClient
+type GeoBackupPoliciesClient = original.GeoBackupPoliciesClient
+type GeoBackupPolicy = original.GeoBackupPolicy
+type GeoBackupPolicyListResult = original.GeoBackupPolicyListResult
+type GeoBackupPolicyProperties = original.GeoBackupPolicyProperties
type ImportExportResponse = original.ImportExportResponse
type ImportExportResponseProperties = original.ImportExportResponseProperties
type ImportExtensionProperties = original.ImportExtensionProperties
type ImportExtensionRequest = original.ImportExtensionRequest
type ImportRequest = original.ImportRequest
+type LocationCapabilities = original.LocationCapabilities
+type MaxSizeCapability = original.MaxSizeCapability
+type Metric = original.Metric
+type MetricAvailability = original.MetricAvailability
+type MetricDefinition = original.MetricDefinition
+type MetricDefinitionListResult = original.MetricDefinitionListResult
+type MetricListResult = original.MetricListResult
+type MetricName = original.MetricName
+type MetricValue = original.MetricValue
+type Operation = original.Operation
+type OperationDisplay = original.OperationDisplay
type OperationImpact = original.OperationImpact
+type OperationListResult = original.OperationListResult
+type OperationsClient = original.OperationsClient
+type PerformanceLevel = original.PerformanceLevel
type ProxyResource = original.ProxyResource
+type QueriesClient = original.QueriesClient
+type QueryInterval = original.QueryInterval
+type QueryMetric = original.QueryMetric
+type QueryStatistic = original.QueryStatistic
+type QueryStatisticListResult = original.QueryStatisticListResult
+type QueryStatisticsClient = original.QueryStatisticsClient
+type QueryText = original.QueryText
+type QueryTextListResult = original.QueryTextListResult
+type QueryTextsClient = original.QueryTextsClient
type RecommendedElasticPool = original.RecommendedElasticPool
type RecommendedElasticPoolListMetricsResult = original.RecommendedElasticPoolListMetricsResult
type RecommendedElasticPoolListResult = original.RecommendedElasticPoolListResult
@@ -320,6 +604,10 @@ type RecommendedElasticPoolProperties = original.RecommendedElasticPoolPropertie
type RecommendedElasticPoolsClient = original.RecommendedElasticPoolsClient
type RecommendedIndex = original.RecommendedIndex
type RecommendedIndexProperties = original.RecommendedIndexProperties
+type RecoverableDatabase = original.RecoverableDatabase
+type RecoverableDatabaseListResult = original.RecoverableDatabaseListResult
+type RecoverableDatabaseProperties = original.RecoverableDatabaseProperties
+type RecoverableDatabasesClient = original.RecoverableDatabasesClient
type ReplicationLink = original.ReplicationLink
type ReplicationLinkListResult = original.ReplicationLinkListResult
type ReplicationLinkProperties = original.ReplicationLinkProperties
@@ -327,36 +615,141 @@ type ReplicationLinksClient = original.ReplicationLinksClient
type ReplicationLinksFailoverAllowDataLossFuture = original.ReplicationLinksFailoverAllowDataLossFuture
type ReplicationLinksFailoverFuture = original.ReplicationLinksFailoverFuture
type Resource = original.Resource
+type RestorableDroppedDatabase = original.RestorableDroppedDatabase
+type RestorableDroppedDatabaseListResult = original.RestorableDroppedDatabaseListResult
+type RestorableDroppedDatabaseProperties = original.RestorableDroppedDatabaseProperties
+type RestorableDroppedDatabasesClient = original.RestorableDroppedDatabasesClient
+type RestorePoint = original.RestorePoint
+type RestorePointListResult = original.RestorePointListResult
+type RestorePointProperties = original.RestorePointProperties
+type RestorePointsClient = original.RestorePointsClient
+type Server = original.Server
+type ServerAdministratorListResult = original.ServerAdministratorListResult
+type ServerAdministratorProperties = original.ServerAdministratorProperties
+type ServerAdvisorsClient = original.ServerAdvisorsClient
+type ServerAzureADAdministrator = original.ServerAzureADAdministrator
+type ServerAzureADAdministratorsClient = original.ServerAzureADAdministratorsClient
+type ServerAzureADAdministratorsCreateOrUpdateFuture = original.ServerAzureADAdministratorsCreateOrUpdateFuture
+type ServerAzureADAdministratorsDeleteFuture = original.ServerAzureADAdministratorsDeleteFuture
+type ServerCommunicationLink = original.ServerCommunicationLink
+type ServerCommunicationLinkListResult = original.ServerCommunicationLinkListResult
+type ServerCommunicationLinkProperties = original.ServerCommunicationLinkProperties
+type ServerCommunicationLinksClient = original.ServerCommunicationLinksClient
+type ServerCommunicationLinksCreateOrUpdateFuture = original.ServerCommunicationLinksCreateOrUpdateFuture
+type ServerConnectionPoliciesClient = original.ServerConnectionPoliciesClient
+type ServerConnectionPolicy = original.ServerConnectionPolicy
+type ServerConnectionPolicyProperties = original.ServerConnectionPolicyProperties
+type ServerListResult = original.ServerListResult
+type ServerProperties = original.ServerProperties
+type ServerTableAuditingPoliciesClient = original.ServerTableAuditingPoliciesClient
+type ServerTableAuditingPolicy = original.ServerTableAuditingPolicy
+type ServerTableAuditingPolicyListResult = original.ServerTableAuditingPolicyListResult
+type ServerTableAuditingPolicyProperties = original.ServerTableAuditingPolicyProperties
+type ServerUpdate = original.ServerUpdate
+type ServerUsage = original.ServerUsage
+type ServerUsageListResult = original.ServerUsageListResult
+type ServerUsagesClient = original.ServerUsagesClient
+type ServerVersionCapability = original.ServerVersionCapability
type ServersClient = original.ServersClient
+type ServiceObjective = original.ServiceObjective
+type ServiceObjectiveCapability = original.ServiceObjectiveCapability
+type ServiceObjectiveListResult = original.ServiceObjectiveListResult
+type ServiceObjectiveProperties = original.ServiceObjectiveProperties
+type ServiceObjectivesClient = original.ServiceObjectivesClient
type ServiceTierAdvisor = original.ServiceTierAdvisor
type ServiceTierAdvisorListResult = original.ServiceTierAdvisorListResult
type ServiceTierAdvisorProperties = original.ServiceTierAdvisorProperties
type ServiceTierAdvisorsClient = original.ServiceTierAdvisorsClient
type SloUsageMetric = original.SloUsageMetric
+type TableAuditingPolicyProperties = original.TableAuditingPolicyProperties
+type TopQueries = original.TopQueries
+type TopQueriesListResult = original.TopQueriesListResult
type TrackedResource = original.TrackedResource
type TransparentDataEncryption = original.TransparentDataEncryption
type TransparentDataEncryptionActivitiesClient = original.TransparentDataEncryptionActivitiesClient
type TransparentDataEncryptionActivity = original.TransparentDataEncryptionActivity
type TransparentDataEncryptionActivityListResult = original.TransparentDataEncryptionActivityListResult
type TransparentDataEncryptionActivityProperties = original.TransparentDataEncryptionActivityProperties
+type TransparentDataEncryptionConfigurationsClient = original.TransparentDataEncryptionConfigurationsClient
+type TransparentDataEncryptionListResult = original.TransparentDataEncryptionListResult
type TransparentDataEncryptionProperties = original.TransparentDataEncryptionProperties
type TransparentDataEncryptionsClient = original.TransparentDataEncryptionsClient
func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
}
+func NewBackupLongTermRetentionPoliciesClient(subscriptionID string) BackupLongTermRetentionPoliciesClient {
+ return original.NewBackupLongTermRetentionPoliciesClient(subscriptionID)
+}
+func NewBackupLongTermRetentionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) BackupLongTermRetentionPoliciesClient {
+ return original.NewBackupLongTermRetentionPoliciesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewBackupLongTermRetentionVaultsClient(subscriptionID string) BackupLongTermRetentionVaultsClient {
+ return original.NewBackupLongTermRetentionVaultsClient(subscriptionID)
+}
+func NewBackupLongTermRetentionVaultsClientWithBaseURI(baseURI string, subscriptionID string) BackupLongTermRetentionVaultsClient {
+ return original.NewBackupLongTermRetentionVaultsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewCapabilitiesClient(subscriptionID string) CapabilitiesClient {
+ return original.NewCapabilitiesClient(subscriptionID)
+}
+func NewCapabilitiesClientWithBaseURI(baseURI string, subscriptionID string) CapabilitiesClient {
+ return original.NewCapabilitiesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewDataMaskingPoliciesClient(subscriptionID string) DataMaskingPoliciesClient {
+ return original.NewDataMaskingPoliciesClient(subscriptionID)
+}
+func NewDataMaskingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DataMaskingPoliciesClient {
+ return original.NewDataMaskingPoliciesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewDataMaskingRulesClient(subscriptionID string) DataMaskingRulesClient {
+ return original.NewDataMaskingRulesClient(subscriptionID)
+}
+func NewDataMaskingRulesClientWithBaseURI(baseURI string, subscriptionID string) DataMaskingRulesClient {
+ return original.NewDataMaskingRulesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewDatabaseAdvisorsClient(subscriptionID string) DatabaseAdvisorsClient {
+ return original.NewDatabaseAdvisorsClient(subscriptionID)
+}
+func NewDatabaseAdvisorsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseAdvisorsClient {
+ return original.NewDatabaseAdvisorsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewDatabaseConnectionPoliciesClient(subscriptionID string) DatabaseConnectionPoliciesClient {
+ return original.NewDatabaseConnectionPoliciesClient(subscriptionID)
+}
+func NewDatabaseConnectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseConnectionPoliciesClient {
+ return original.NewDatabaseConnectionPoliciesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewDatabaseTableAuditingPoliciesClient(subscriptionID string) DatabaseTableAuditingPoliciesClient {
+ return original.NewDatabaseTableAuditingPoliciesClient(subscriptionID)
+}
+func NewDatabaseTableAuditingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseTableAuditingPoliciesClient {
+ return original.NewDatabaseTableAuditingPoliciesClientWithBaseURI(baseURI, subscriptionID)
+}
func NewDatabaseThreatDetectionPoliciesClient(subscriptionID string) DatabaseThreatDetectionPoliciesClient {
return original.NewDatabaseThreatDetectionPoliciesClient(subscriptionID)
}
func NewDatabaseThreatDetectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseThreatDetectionPoliciesClient {
return original.NewDatabaseThreatDetectionPoliciesClientWithBaseURI(baseURI, subscriptionID)
}
+func NewDatabaseUsagesClient(subscriptionID string) DatabaseUsagesClient {
+ return original.NewDatabaseUsagesClient(subscriptionID)
+}
+func NewDatabaseUsagesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseUsagesClient {
+ return original.NewDatabaseUsagesClientWithBaseURI(baseURI, subscriptionID)
+}
func NewDatabasesClient(subscriptionID string) DatabasesClient {
return original.NewDatabasesClient(subscriptionID)
}
func NewDatabasesClientWithBaseURI(baseURI string, subscriptionID string) DatabasesClient {
return original.NewDatabasesClientWithBaseURI(baseURI, subscriptionID)
}
+func NewDisasterRecoveryConfigurationsClient(subscriptionID string) DisasterRecoveryConfigurationsClient {
+ return original.NewDisasterRecoveryConfigurationsClient(subscriptionID)
+}
+func NewDisasterRecoveryConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) DisasterRecoveryConfigurationsClient {
+ return original.NewDisasterRecoveryConfigurationsClientWithBaseURI(baseURI, subscriptionID)
+}
func NewElasticPoolActivitiesClient(subscriptionID string) ElasticPoolActivitiesClient {
return original.NewElasticPoolActivitiesClient(subscriptionID)
}
@@ -375,30 +768,126 @@ func NewElasticPoolsClient(subscriptionID string) ElasticPoolsClient {
func NewElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolsClient {
return original.NewElasticPoolsClientWithBaseURI(baseURI, subscriptionID)
}
+func NewExtensionsClient(subscriptionID string) ExtensionsClient {
+ return original.NewExtensionsClient(subscriptionID)
+}
+func NewExtensionsClientWithBaseURI(baseURI string, subscriptionID string) ExtensionsClient {
+ return original.NewExtensionsClientWithBaseURI(baseURI, subscriptionID)
+}
func NewFirewallRulesClient(subscriptionID string) FirewallRulesClient {
return original.NewFirewallRulesClient(subscriptionID)
}
func NewFirewallRulesClientWithBaseURI(baseURI string, subscriptionID string) FirewallRulesClient {
return original.NewFirewallRulesClientWithBaseURI(baseURI, subscriptionID)
}
+func NewGeoBackupPoliciesClient(subscriptionID string) GeoBackupPoliciesClient {
+ return original.NewGeoBackupPoliciesClient(subscriptionID)
+}
+func NewGeoBackupPoliciesClientWithBaseURI(baseURI string, subscriptionID string) GeoBackupPoliciesClient {
+ return original.NewGeoBackupPoliciesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewOperationsClient(subscriptionID string) OperationsClient {
+ return original.NewOperationsClient(subscriptionID)
+}
+func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
+ return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewQueriesClient(subscriptionID string) QueriesClient {
+ return original.NewQueriesClient(subscriptionID)
+}
+func NewQueriesClientWithBaseURI(baseURI string, subscriptionID string) QueriesClient {
+ return original.NewQueriesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewQueryStatisticsClient(subscriptionID string) QueryStatisticsClient {
+ return original.NewQueryStatisticsClient(subscriptionID)
+}
+func NewQueryStatisticsClientWithBaseURI(baseURI string, subscriptionID string) QueryStatisticsClient {
+ return original.NewQueryStatisticsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewQueryTextsClient(subscriptionID string) QueryTextsClient {
+ return original.NewQueryTextsClient(subscriptionID)
+}
+func NewQueryTextsClientWithBaseURI(baseURI string, subscriptionID string) QueryTextsClient {
+ return original.NewQueryTextsClientWithBaseURI(baseURI, subscriptionID)
+}
func NewRecommendedElasticPoolsClient(subscriptionID string) RecommendedElasticPoolsClient {
return original.NewRecommendedElasticPoolsClient(subscriptionID)
}
func NewRecommendedElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) RecommendedElasticPoolsClient {
return original.NewRecommendedElasticPoolsClientWithBaseURI(baseURI, subscriptionID)
}
+func NewRecoverableDatabasesClient(subscriptionID string) RecoverableDatabasesClient {
+ return original.NewRecoverableDatabasesClient(subscriptionID)
+}
+func NewRecoverableDatabasesClientWithBaseURI(baseURI string, subscriptionID string) RecoverableDatabasesClient {
+ return original.NewRecoverableDatabasesClientWithBaseURI(baseURI, subscriptionID)
+}
func NewReplicationLinksClient(subscriptionID string) ReplicationLinksClient {
return original.NewReplicationLinksClient(subscriptionID)
}
func NewReplicationLinksClientWithBaseURI(baseURI string, subscriptionID string) ReplicationLinksClient {
return original.NewReplicationLinksClientWithBaseURI(baseURI, subscriptionID)
}
+func NewRestorableDroppedDatabasesClient(subscriptionID string) RestorableDroppedDatabasesClient {
+ return original.NewRestorableDroppedDatabasesClient(subscriptionID)
+}
+func NewRestorableDroppedDatabasesClientWithBaseURI(baseURI string, subscriptionID string) RestorableDroppedDatabasesClient {
+ return original.NewRestorableDroppedDatabasesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewRestorePointsClient(subscriptionID string) RestorePointsClient {
+ return original.NewRestorePointsClient(subscriptionID)
+}
+func NewRestorePointsClientWithBaseURI(baseURI string, subscriptionID string) RestorePointsClient {
+ return original.NewRestorePointsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewServerAdvisorsClient(subscriptionID string) ServerAdvisorsClient {
+ return original.NewServerAdvisorsClient(subscriptionID)
+}
+func NewServerAdvisorsClientWithBaseURI(baseURI string, subscriptionID string) ServerAdvisorsClient {
+ return original.NewServerAdvisorsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewServerAzureADAdministratorsClient(subscriptionID string) ServerAzureADAdministratorsClient {
+ return original.NewServerAzureADAdministratorsClient(subscriptionID)
+}
+func NewServerAzureADAdministratorsClientWithBaseURI(baseURI string, subscriptionID string) ServerAzureADAdministratorsClient {
+ return original.NewServerAzureADAdministratorsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewServerCommunicationLinksClient(subscriptionID string) ServerCommunicationLinksClient {
+ return original.NewServerCommunicationLinksClient(subscriptionID)
+}
+func NewServerCommunicationLinksClientWithBaseURI(baseURI string, subscriptionID string) ServerCommunicationLinksClient {
+ return original.NewServerCommunicationLinksClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewServerConnectionPoliciesClient(subscriptionID string) ServerConnectionPoliciesClient {
+ return original.NewServerConnectionPoliciesClient(subscriptionID)
+}
+func NewServerConnectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServerConnectionPoliciesClient {
+ return original.NewServerConnectionPoliciesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewServerTableAuditingPoliciesClient(subscriptionID string) ServerTableAuditingPoliciesClient {
+ return original.NewServerTableAuditingPoliciesClient(subscriptionID)
+}
+func NewServerTableAuditingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServerTableAuditingPoliciesClient {
+ return original.NewServerTableAuditingPoliciesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewServerUsagesClient(subscriptionID string) ServerUsagesClient {
+ return original.NewServerUsagesClient(subscriptionID)
+}
+func NewServerUsagesClientWithBaseURI(baseURI string, subscriptionID string) ServerUsagesClient {
+ return original.NewServerUsagesClientWithBaseURI(baseURI, subscriptionID)
+}
func NewServersClient(subscriptionID string) ServersClient {
return original.NewServersClient(subscriptionID)
}
func NewServersClientWithBaseURI(baseURI string, subscriptionID string) ServersClient {
return original.NewServersClientWithBaseURI(baseURI, subscriptionID)
}
+func NewServiceObjectivesClient(subscriptionID string) ServiceObjectivesClient {
+ return original.NewServiceObjectivesClient(subscriptionID)
+}
+func NewServiceObjectivesClientWithBaseURI(baseURI string, subscriptionID string) ServiceObjectivesClient {
+ return original.NewServiceObjectivesClientWithBaseURI(baseURI, subscriptionID)
+}
func NewServiceTierAdvisorsClient(subscriptionID string) ServiceTierAdvisorsClient {
return original.NewServiceTierAdvisorsClient(subscriptionID)
}
@@ -411,6 +900,12 @@ func NewTransparentDataEncryptionActivitiesClient(subscriptionID string) Transpa
func NewTransparentDataEncryptionActivitiesClientWithBaseURI(baseURI string, subscriptionID string) TransparentDataEncryptionActivitiesClient {
return original.NewTransparentDataEncryptionActivitiesClientWithBaseURI(baseURI, subscriptionID)
}
+func NewTransparentDataEncryptionConfigurationsClient(subscriptionID string) TransparentDataEncryptionConfigurationsClient {
+ return original.NewTransparentDataEncryptionConfigurationsClient(subscriptionID)
+}
+func NewTransparentDataEncryptionConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) TransparentDataEncryptionConfigurationsClient {
+ return original.NewTransparentDataEncryptionConfigurationsClientWithBaseURI(baseURI, subscriptionID)
+}
func NewTransparentDataEncryptionsClient(subscriptionID string) TransparentDataEncryptionsClient {
return original.NewTransparentDataEncryptionsClient(subscriptionID)
}
@@ -420,24 +915,81 @@ func NewTransparentDataEncryptionsClientWithBaseURI(baseURI string, subscription
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
}
+func PossibleAdvisorStatusValues() []AdvisorStatus {
+ return original.PossibleAdvisorStatusValues()
+}
func PossibleAuthenticationTypeValues() []AuthenticationType {
return original.PossibleAuthenticationTypeValues()
}
+func PossibleAutoExecuteStatusValues() []AutoExecuteStatus {
+ return original.PossibleAutoExecuteStatusValues()
+}
+func PossibleBackupLongTermRetentionPolicyStateValues() []BackupLongTermRetentionPolicyState {
+ return original.PossibleBackupLongTermRetentionPolicyStateValues()
+}
+func PossibleCapabilityStatusValues() []CapabilityStatus {
+ return original.PossibleCapabilityStatusValues()
+}
func PossibleCheckNameAvailabilityReasonValues() []CheckNameAvailabilityReason {
return original.PossibleCheckNameAvailabilityReasonValues()
}
func PossibleCreateModeValues() []CreateMode {
return original.PossibleCreateModeValues()
}
+func PossibleDataMaskingFunctionValues() []DataMaskingFunction {
+ return original.PossibleDataMaskingFunctionValues()
+}
+func PossibleDataMaskingRuleStateValues() []DataMaskingRuleState {
+ return original.PossibleDataMaskingRuleStateValues()
+}
+func PossibleDataMaskingStateValues() []DataMaskingState {
+ return original.PossibleDataMaskingStateValues()
+}
func PossibleDatabaseEditionValues() []DatabaseEdition {
return original.PossibleDatabaseEditionValues()
}
+func PossibleDisasterRecoveryConfigurationAutoFailoverValues() []DisasterRecoveryConfigurationAutoFailover {
+ return original.PossibleDisasterRecoveryConfigurationAutoFailoverValues()
+}
+func PossibleDisasterRecoveryConfigurationFailoverPolicyValues() []DisasterRecoveryConfigurationFailoverPolicy {
+ return original.PossibleDisasterRecoveryConfigurationFailoverPolicyValues()
+}
+func PossibleDisasterRecoveryConfigurationRoleValues() []DisasterRecoveryConfigurationRole {
+ return original.PossibleDisasterRecoveryConfigurationRoleValues()
+}
+func PossibleDisasterRecoveryConfigurationStatusValues() []DisasterRecoveryConfigurationStatus {
+ return original.PossibleDisasterRecoveryConfigurationStatusValues()
+}
func PossibleElasticPoolEditionValues() []ElasticPoolEdition {
return original.PossibleElasticPoolEditionValues()
}
func PossibleElasticPoolStateValues() []ElasticPoolState {
return original.PossibleElasticPoolStateValues()
}
+func PossibleGeoBackupPolicyStateValues() []GeoBackupPolicyState {
+ return original.PossibleGeoBackupPolicyStateValues()
+}
+func PossibleMaxSizeUnitsValues() []MaxSizeUnits {
+ return original.PossibleMaxSizeUnitsValues()
+}
+func PossiblePerformanceLevelUnitValues() []PerformanceLevelUnit {
+ return original.PossiblePerformanceLevelUnitValues()
+}
+func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType {
+ return original.PossiblePrimaryAggregationTypeValues()
+}
+func PossibleQueryAggregationFunctionValues() []QueryAggregationFunction {
+ return original.PossibleQueryAggregationFunctionValues()
+}
+func PossibleQueryExecutionTypeValues() []QueryExecutionType {
+ return original.PossibleQueryExecutionTypeValues()
+}
+func PossibleQueryMetricUnitValues() []QueryMetricUnit {
+ return original.PossibleQueryMetricUnitValues()
+}
+func PossibleQueryObservedMetricTypeValues() []QueryObservedMetricType {
+ return original.PossibleQueryObservedMetricTypeValues()
+}
func PossibleReadScaleValues() []ReadScale {
return original.PossibleReadScaleValues()
}
@@ -456,6 +1008,9 @@ func PossibleReplicationRoleValues() []ReplicationRole {
func PossibleReplicationStateValues() []ReplicationState {
return original.PossibleReplicationStateValues()
}
+func PossibleRestorePointTypeValues() []RestorePointType {
+ return original.PossibleRestorePointTypeValues()
+}
func PossibleSampleNameValues() []SampleName {
return original.PossibleSampleNameValues()
}
@@ -468,6 +1023,15 @@ func PossibleSecurityAlertPolicyStateValues() []SecurityAlertPolicyState {
func PossibleSecurityAlertPolicyUseServerDefaultValues() []SecurityAlertPolicyUseServerDefault {
return original.PossibleSecurityAlertPolicyUseServerDefaultValues()
}
+func PossibleServerConnectionTypeValues() []ServerConnectionType {
+ return original.PossibleServerConnectionTypeValues()
+}
+func PossibleServerStateValues() []ServerState {
+ return original.PossibleServerStateValues()
+}
+func PossibleServerVersionValues() []ServerVersion {
+ return original.PossibleServerVersionValues()
+}
func PossibleServiceObjectiveNameValues() []ServiceObjectiveName {
return original.PossibleServiceObjectiveNameValues()
}
@@ -480,6 +1044,12 @@ func PossibleTransparentDataEncryptionActivityStatusValues() []TransparentDataEn
func PossibleTransparentDataEncryptionStatusValues() []TransparentDataEncryptionStatus {
return original.PossibleTransparentDataEncryptionStatusValues()
}
+func PossibleUnitDefinitionTypeValues() []UnitDefinitionType {
+ return original.PossibleUnitDefinitionTypeValues()
+}
+func PossibleUnitTypeValues() []UnitType {
+ return original.PossibleUnitTypeValues()
+}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}
diff --git a/profiles/preview/sql/mgmt/sql/sqlapi/models.go b/profiles/preview/sql/mgmt/sql/sqlapi/models.go
index 8a1a24d93635..d641097b6ea9 100644
--- a/profiles/preview/sql/mgmt/sql/sqlapi/models.go
+++ b/profiles/preview/sql/mgmt/sql/sqlapi/models.go
@@ -21,15 +21,42 @@ package sqlapi
import original "github.com/Azure/azure-sdk-for-go/services/sql/mgmt/2014-04-01/sql/sqlapi"
+type BackupLongTermRetentionPoliciesClientAPI = original.BackupLongTermRetentionPoliciesClientAPI
+type BackupLongTermRetentionVaultsClientAPI = original.BackupLongTermRetentionVaultsClientAPI
+type CapabilitiesClientAPI = original.CapabilitiesClientAPI
+type DataMaskingPoliciesClientAPI = original.DataMaskingPoliciesClientAPI
+type DataMaskingRulesClientAPI = original.DataMaskingRulesClientAPI
+type DatabaseAdvisorsClientAPI = original.DatabaseAdvisorsClientAPI
+type DatabaseConnectionPoliciesClientAPI = original.DatabaseConnectionPoliciesClientAPI
+type DatabaseTableAuditingPoliciesClientAPI = original.DatabaseTableAuditingPoliciesClientAPI
type DatabaseThreatDetectionPoliciesClientAPI = original.DatabaseThreatDetectionPoliciesClientAPI
+type DatabaseUsagesClientAPI = original.DatabaseUsagesClientAPI
type DatabasesClientAPI = original.DatabasesClientAPI
+type DisasterRecoveryConfigurationsClientAPI = original.DisasterRecoveryConfigurationsClientAPI
type ElasticPoolActivitiesClientAPI = original.ElasticPoolActivitiesClientAPI
type ElasticPoolDatabaseActivitiesClientAPI = original.ElasticPoolDatabaseActivitiesClientAPI
type ElasticPoolsClientAPI = original.ElasticPoolsClientAPI
+type ExtensionsClientAPI = original.ExtensionsClientAPI
type FirewallRulesClientAPI = original.FirewallRulesClientAPI
+type GeoBackupPoliciesClientAPI = original.GeoBackupPoliciesClientAPI
+type OperationsClientAPI = original.OperationsClientAPI
+type QueriesClientAPI = original.QueriesClientAPI
+type QueryStatisticsClientAPI = original.QueryStatisticsClientAPI
+type QueryTextsClientAPI = original.QueryTextsClientAPI
type RecommendedElasticPoolsClientAPI = original.RecommendedElasticPoolsClientAPI
+type RecoverableDatabasesClientAPI = original.RecoverableDatabasesClientAPI
type ReplicationLinksClientAPI = original.ReplicationLinksClientAPI
+type RestorableDroppedDatabasesClientAPI = original.RestorableDroppedDatabasesClientAPI
+type RestorePointsClientAPI = original.RestorePointsClientAPI
+type ServerAdvisorsClientAPI = original.ServerAdvisorsClientAPI
+type ServerAzureADAdministratorsClientAPI = original.ServerAzureADAdministratorsClientAPI
+type ServerCommunicationLinksClientAPI = original.ServerCommunicationLinksClientAPI
+type ServerConnectionPoliciesClientAPI = original.ServerConnectionPoliciesClientAPI
+type ServerTableAuditingPoliciesClientAPI = original.ServerTableAuditingPoliciesClientAPI
+type ServerUsagesClientAPI = original.ServerUsagesClientAPI
type ServersClientAPI = original.ServersClientAPI
+type ServiceObjectivesClientAPI = original.ServiceObjectivesClientAPI
type ServiceTierAdvisorsClientAPI = original.ServiceTierAdvisorsClientAPI
type TransparentDataEncryptionActivitiesClientAPI = original.TransparentDataEncryptionActivitiesClientAPI
+type TransparentDataEncryptionConfigurationsClientAPI = original.TransparentDataEncryptionConfigurationsClientAPI
type TransparentDataEncryptionsClientAPI = original.TransparentDataEncryptionsClientAPI
diff --git a/profiles/preview/storagecache/mgmt/storagecache/models.go b/profiles/preview/storagecache/mgmt/storagecache/models.go
new file mode 100644
index 000000000000..cbedb328a65a
--- /dev/null
+++ b/profiles/preview/storagecache/mgmt/storagecache/models.go
@@ -0,0 +1,217 @@
+// +build go1.9
+
+// Copyright 2019 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 storagecache
+
+import (
+ "context"
+
+ original "github.com/Azure/azure-sdk-for-go/services/storagecache/mgmt/2019-11-01/storagecache"
+)
+
+const (
+ DefaultBaseURI = original.DefaultBaseURI
+)
+
+type FirmwareStatusType = original.FirmwareStatusType
+
+const (
+ Available FirmwareStatusType = original.Available
+ Unavailable FirmwareStatusType = original.Unavailable
+)
+
+type HealthStateType = original.HealthStateType
+
+const (
+ Degraded HealthStateType = original.Degraded
+ Down HealthStateType = original.Down
+ Flushing HealthStateType = original.Flushing
+ Healthy HealthStateType = original.Healthy
+ Stopped HealthStateType = original.Stopped
+ Stopping HealthStateType = original.Stopping
+ Transitioning HealthStateType = original.Transitioning
+ Unknown HealthStateType = original.Unknown
+ Upgrading HealthStateType = original.Upgrading
+)
+
+type ProvisioningStateType = original.ProvisioningStateType
+
+const (
+ Cancelled ProvisioningStateType = original.Cancelled
+ Creating ProvisioningStateType = original.Creating
+ Deleting ProvisioningStateType = original.Deleting
+ Failed ProvisioningStateType = original.Failed
+ Succeeded ProvisioningStateType = original.Succeeded
+ Updating ProvisioningStateType = original.Updating
+)
+
+type ReasonCode = original.ReasonCode
+
+const (
+ NotAvailableForSubscription ReasonCode = original.NotAvailableForSubscription
+ QuotaID ReasonCode = original.QuotaID
+)
+
+type StorageTargetType = original.StorageTargetType
+
+const (
+ StorageTargetTypeClfs StorageTargetType = original.StorageTargetTypeClfs
+ StorageTargetTypeNfs3 StorageTargetType = original.StorageTargetTypeNfs3
+ StorageTargetTypeUnknown StorageTargetType = original.StorageTargetTypeUnknown
+)
+
+type APIOperation = original.APIOperation
+type APIOperationDisplay = original.APIOperationDisplay
+type APIOperationListResult = original.APIOperationListResult
+type APIOperationListResultIterator = original.APIOperationListResultIterator
+type APIOperationListResultPage = original.APIOperationListResultPage
+type BaseClient = original.BaseClient
+type Cache = original.Cache
+type CacheHealth = original.CacheHealth
+type CacheProperties = original.CacheProperties
+type CacheSku = original.CacheSku
+type CacheUpgradeStatus = original.CacheUpgradeStatus
+type CachesClient = original.CachesClient
+type CachesCreateOrUpdateFuture = original.CachesCreateOrUpdateFuture
+type CachesDeleteFuture = original.CachesDeleteFuture
+type CachesFlushFuture = original.CachesFlushFuture
+type CachesListResult = original.CachesListResult
+type CachesListResultIterator = original.CachesListResultIterator
+type CachesListResultPage = original.CachesListResultPage
+type CachesStartFuture = original.CachesStartFuture
+type CachesStopFuture = original.CachesStopFuture
+type CachesUpgradeFirmwareFuture = original.CachesUpgradeFirmwareFuture
+type ClfsTarget = original.ClfsTarget
+type CloudError = original.CloudError
+type CloudErrorBody = original.CloudErrorBody
+type NamespaceJunction = original.NamespaceJunction
+type Nfs3Target = original.Nfs3Target
+type OperationsClient = original.OperationsClient
+type ResourceSku = original.ResourceSku
+type ResourceSkuCapabilities = original.ResourceSkuCapabilities
+type ResourceSkuLocationInfo = original.ResourceSkuLocationInfo
+type ResourceSkusResult = original.ResourceSkusResult
+type ResourceSkusResultIterator = original.ResourceSkusResultIterator
+type ResourceSkusResultPage = original.ResourceSkusResultPage
+type Restriction = original.Restriction
+type SetObject = original.SetObject
+type SkusClient = original.SkusClient
+type StorageTarget = original.StorageTarget
+type StorageTargetProperties = original.StorageTargetProperties
+type StorageTargetsClient = original.StorageTargetsClient
+type StorageTargetsCreateOrUpdateFuture = original.StorageTargetsCreateOrUpdateFuture
+type StorageTargetsDeleteFuture = original.StorageTargetsDeleteFuture
+type StorageTargetsResult = original.StorageTargetsResult
+type StorageTargetsResultIterator = original.StorageTargetsResultIterator
+type StorageTargetsResultPage = original.StorageTargetsResultPage
+type UnknownTarget = original.UnknownTarget
+type UsageModel = original.UsageModel
+type UsageModelDisplay = original.UsageModelDisplay
+type UsageModelsClient = original.UsageModelsClient
+type UsageModelsResult = original.UsageModelsResult
+type UsageModelsResultIterator = original.UsageModelsResultIterator
+type UsageModelsResultPage = original.UsageModelsResultPage
+
+func New(subscriptionID string) BaseClient {
+ return original.New(subscriptionID)
+}
+func NewAPIOperationListResultIterator(page APIOperationListResultPage) APIOperationListResultIterator {
+ return original.NewAPIOperationListResultIterator(page)
+}
+func NewAPIOperationListResultPage(getNextPage func(context.Context, APIOperationListResult) (APIOperationListResult, error)) APIOperationListResultPage {
+ return original.NewAPIOperationListResultPage(getNextPage)
+}
+func NewCachesClient(subscriptionID string) CachesClient {
+ return original.NewCachesClient(subscriptionID)
+}
+func NewCachesClientWithBaseURI(baseURI string, subscriptionID string) CachesClient {
+ return original.NewCachesClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewCachesListResultIterator(page CachesListResultPage) CachesListResultIterator {
+ return original.NewCachesListResultIterator(page)
+}
+func NewCachesListResultPage(getNextPage func(context.Context, CachesListResult) (CachesListResult, error)) CachesListResultPage {
+ return original.NewCachesListResultPage(getNextPage)
+}
+func NewOperationsClient(subscriptionID string) OperationsClient {
+ return original.NewOperationsClient(subscriptionID)
+}
+func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
+ return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewResourceSkusResultIterator(page ResourceSkusResultPage) ResourceSkusResultIterator {
+ return original.NewResourceSkusResultIterator(page)
+}
+func NewResourceSkusResultPage(getNextPage func(context.Context, ResourceSkusResult) (ResourceSkusResult, error)) ResourceSkusResultPage {
+ return original.NewResourceSkusResultPage(getNextPage)
+}
+func NewSkusClient(subscriptionID string) SkusClient {
+ return original.NewSkusClient(subscriptionID)
+}
+func NewSkusClientWithBaseURI(baseURI string, subscriptionID string) SkusClient {
+ return original.NewSkusClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewStorageTargetsClient(subscriptionID string) StorageTargetsClient {
+ return original.NewStorageTargetsClient(subscriptionID)
+}
+func NewStorageTargetsClientWithBaseURI(baseURI string, subscriptionID string) StorageTargetsClient {
+ return original.NewStorageTargetsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewStorageTargetsResultIterator(page StorageTargetsResultPage) StorageTargetsResultIterator {
+ return original.NewStorageTargetsResultIterator(page)
+}
+func NewStorageTargetsResultPage(getNextPage func(context.Context, StorageTargetsResult) (StorageTargetsResult, error)) StorageTargetsResultPage {
+ return original.NewStorageTargetsResultPage(getNextPage)
+}
+func NewUsageModelsClient(subscriptionID string) UsageModelsClient {
+ return original.NewUsageModelsClient(subscriptionID)
+}
+func NewUsageModelsClientWithBaseURI(baseURI string, subscriptionID string) UsageModelsClient {
+ return original.NewUsageModelsClientWithBaseURI(baseURI, subscriptionID)
+}
+func NewUsageModelsResultIterator(page UsageModelsResultPage) UsageModelsResultIterator {
+ return original.NewUsageModelsResultIterator(page)
+}
+func NewUsageModelsResultPage(getNextPage func(context.Context, UsageModelsResult) (UsageModelsResult, error)) UsageModelsResultPage {
+ return original.NewUsageModelsResultPage(getNextPage)
+}
+func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
+ return original.NewWithBaseURI(baseURI, subscriptionID)
+}
+func PossibleFirmwareStatusTypeValues() []FirmwareStatusType {
+ return original.PossibleFirmwareStatusTypeValues()
+}
+func PossibleHealthStateTypeValues() []HealthStateType {
+ return original.PossibleHealthStateTypeValues()
+}
+func PossibleProvisioningStateTypeValues() []ProvisioningStateType {
+ return original.PossibleProvisioningStateTypeValues()
+}
+func PossibleReasonCodeValues() []ReasonCode {
+ return original.PossibleReasonCodeValues()
+}
+func PossibleStorageTargetTypeValues() []StorageTargetType {
+ return original.PossibleStorageTargetTypeValues()
+}
+func UserAgent() string {
+ return original.UserAgent() + " profiles/preview"
+}
+func Version() string {
+ return original.Version()
+}
diff --git a/profiles/preview/storagecache/mgmt/storagecache/storagecacheapi/models.go b/profiles/preview/storagecache/mgmt/storagecache/storagecacheapi/models.go
new file mode 100644
index 000000000000..77b8ab88ba0b
--- /dev/null
+++ b/profiles/preview/storagecache/mgmt/storagecache/storagecacheapi/models.go
@@ -0,0 +1,28 @@
+// +build go1.9
+
+// Copyright 2019 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 storagecacheapi
+
+import original "github.com/Azure/azure-sdk-for-go/services/storagecache/mgmt/2019-11-01/storagecache/storagecacheapi"
+
+type CachesClientAPI = original.CachesClientAPI
+type OperationsClientAPI = original.OperationsClientAPI
+type SkusClientAPI = original.SkusClientAPI
+type StorageTargetsClientAPI = original.StorageTargetsClientAPI
+type UsageModelsClientAPI = original.UsageModelsClientAPI
diff --git a/profiles/preview/vmwarecloudsimple/mgmt/vmwarecloudsimple/models.go b/profiles/preview/vmwarecloudsimple/mgmt/vmwarecloudsimple/models.go
index 16b467810cc4..e89218f20d0e 100644
--- a/profiles/preview/vmwarecloudsimple/mgmt/vmwarecloudsimple/models.go
+++ b/profiles/preview/vmwarecloudsimple/mgmt/vmwarecloudsimple/models.go
@@ -36,6 +36,13 @@ const (
Total AggregationType = original.Total
)
+type Allocation = original.Allocation
+
+const (
+ Dynamic Allocation = original.Dynamic
+ Static Allocation = original.Static
+)
+
type DiskIndependenceMode = original.DiskIndependenceMode
const (
@@ -102,6 +109,40 @@ const (
Suspend StopMode = original.Suspend
)
+type Type = original.Type
+
+const (
+ CUSTOMNAME Type = original.CUSTOMNAME
+ FIXED Type = original.FIXED
+ PREFIXBASED Type = original.PREFIXBASED
+ USERDEFINED Type = original.USERDEFINED
+ VIRTUALMACHINENAME Type = original.VIRTUALMACHINENAME
+)
+
+type Type1 = original.Type1
+
+const (
+ Type1CUSTOM Type1 = original.Type1CUSTOM
+ Type1DHCPIP Type1 = original.Type1DHCPIP
+ Type1FIXEDIP Type1 = original.Type1FIXEDIP
+ Type1USERDEFINED Type1 = original.Type1USERDEFINED
+)
+
+type Type2 = original.Type2
+
+const (
+ LINUX Type2 = original.LINUX
+ WINDOWS Type2 = original.WINDOWS
+ WINDOWSTEXT Type2 = original.WINDOWSTEXT
+)
+
+type Type3 = original.Type3
+
+const (
+ Type3LINUX Type3 = original.Type3LINUX
+ Type3WINDOWS Type3 = original.Type3WINDOWS
+)
+
type UsageCount = original.UsageCount
const (
@@ -129,40 +170,54 @@ type AvailableOperationDisplay = original.AvailableOperationDisplay
type AvailableOperationDisplayPropertyServiceSpecification = original.AvailableOperationDisplayPropertyServiceSpecification
type AvailableOperationDisplayPropertyServiceSpecificationMetricsItem = original.AvailableOperationDisplayPropertyServiceSpecificationMetricsItem
type AvailableOperationDisplayPropertyServiceSpecificationMetricsList = original.AvailableOperationDisplayPropertyServiceSpecificationMetricsList
-type AvailableOperationsClient = original.AvailableOperationsClient
type AvailableOperationsListResponse = original.AvailableOperationsListResponse
type AvailableOperationsListResponseIterator = original.AvailableOperationsListResponseIterator
type AvailableOperationsListResponsePage = original.AvailableOperationsListResponsePage
type BaseClient = original.BaseClient
type CSRPError = original.CSRPError
type CSRPErrorBody = original.CSRPErrorBody
+type CustomizationHostName = original.CustomizationHostName
+type CustomizationIPAddress = original.CustomizationIPAddress
+type CustomizationIPSettings = original.CustomizationIPSettings
+type CustomizationIdentity = original.CustomizationIdentity
+type CustomizationIdentityUserData = original.CustomizationIdentityUserData
+type CustomizationNicSetting = original.CustomizationNicSetting
+type CustomizationPoliciesClient = original.CustomizationPoliciesClient
+type CustomizationPoliciesListResponse = original.CustomizationPoliciesListResponse
+type CustomizationPoliciesListResponseIterator = original.CustomizationPoliciesListResponseIterator
+type CustomizationPoliciesListResponsePage = original.CustomizationPoliciesListResponsePage
+type CustomizationPolicy = original.CustomizationPolicy
+type CustomizationPolicyProperties = original.CustomizationPolicyProperties
+type CustomizationSpecification = original.CustomizationSpecification
type DedicatedCloudNode = original.DedicatedCloudNode
-type DedicatedCloudNodeClient = original.DedicatedCloudNodeClient
-type DedicatedCloudNodeCreateOrUpdateFuture = original.DedicatedCloudNodeCreateOrUpdateFuture
type DedicatedCloudNodeListResponse = original.DedicatedCloudNodeListResponse
type DedicatedCloudNodeListResponseIterator = original.DedicatedCloudNodeListResponseIterator
type DedicatedCloudNodeListResponsePage = original.DedicatedCloudNodeListResponsePage
type DedicatedCloudNodeProperties = original.DedicatedCloudNodeProperties
+type DedicatedCloudNodesClient = original.DedicatedCloudNodesClient
+type DedicatedCloudNodesCreateOrUpdateFuture = original.DedicatedCloudNodesCreateOrUpdateFuture
type DedicatedCloudService = original.DedicatedCloudService
-type DedicatedCloudServiceClient = original.DedicatedCloudServiceClient
-type DedicatedCloudServiceDeleteFuture = original.DedicatedCloudServiceDeleteFuture
type DedicatedCloudServiceListResponse = original.DedicatedCloudServiceListResponse
type DedicatedCloudServiceListResponseIterator = original.DedicatedCloudServiceListResponseIterator
type DedicatedCloudServiceListResponsePage = original.DedicatedCloudServiceListResponsePage
type DedicatedCloudServiceProperties = original.DedicatedCloudServiceProperties
+type DedicatedCloudServicesClient = original.DedicatedCloudServicesClient
+type DedicatedCloudServicesDeleteFuture = original.DedicatedCloudServicesDeleteFuture
+type GuestOSCustomization = original.GuestOSCustomization
+type GuestOSNICCustomization = original.GuestOSNICCustomization
type OperationError = original.OperationError
type OperationResource = original.OperationResource
+type OperationsClient = original.OperationsClient
type PatchPayload = original.PatchPayload
type PrivateCloud = original.PrivateCloud
-type PrivateCloudByRegionClient = original.PrivateCloudByRegionClient
type PrivateCloudList = original.PrivateCloudList
type PrivateCloudListIterator = original.PrivateCloudListIterator
type PrivateCloudListPage = original.PrivateCloudListPage
type PrivateCloudProperties = original.PrivateCloudProperties
+type PrivateCloudsClient = original.PrivateCloudsClient
type ResourcePool = original.ResourcePool
-type ResourcePoolByPCClient = original.ResourcePoolByPCClient
type ResourcePoolProperties = original.ResourcePoolProperties
-type ResourcePoolsByPCClient = original.ResourcePoolsByPCClient
+type ResourcePoolsClient = original.ResourcePoolsClient
type ResourcePoolsListResponse = original.ResourcePoolsListResponse
type ResourcePoolsListResponseIterator = original.ResourcePoolsListResponseIterator
type ResourcePoolsListResponsePage = original.ResourcePoolsListResponsePage
@@ -172,51 +227,43 @@ type SkuAvailabilityListResponse = original.SkuAvailabilityListResponse
type SkuAvailabilityListResponseIterator = original.SkuAvailabilityListResponseIterator
type SkuAvailabilityListResponsePage = original.SkuAvailabilityListResponsePage
type SkuDescription = original.SkuDescription
-type SkusAvailabilityWithinRegionClient = original.SkusAvailabilityWithinRegionClient
+type SkusAvailabilityClient = original.SkusAvailabilityClient
type Usage = original.Usage
type UsageListResponse = original.UsageListResponse
type UsageListResponseIterator = original.UsageListResponseIterator
type UsageListResponsePage = original.UsageListResponsePage
type UsageName = original.UsageName
-type UsagesWithinRegionClient = original.UsagesWithinRegionClient
+type UsagesClient = original.UsagesClient
type VirtualDisk = original.VirtualDisk
type VirtualDiskController = original.VirtualDiskController
type VirtualMachine = original.VirtualMachine
-type VirtualMachineClient = original.VirtualMachineClient
-type VirtualMachineCreateOrUpdateFuture = original.VirtualMachineCreateOrUpdateFuture
-type VirtualMachineDeleteFuture = original.VirtualMachineDeleteFuture
type VirtualMachineListResponse = original.VirtualMachineListResponse
type VirtualMachineListResponseIterator = original.VirtualMachineListResponseIterator
type VirtualMachineListResponsePage = original.VirtualMachineListResponsePage
type VirtualMachineProperties = original.VirtualMachineProperties
-type VirtualMachineStartFuture = original.VirtualMachineStartFuture
-type VirtualMachineStopFuture = original.VirtualMachineStopFuture
type VirtualMachineStopMode = original.VirtualMachineStopMode
type VirtualMachineTemplate = original.VirtualMachineTemplate
-type VirtualMachineTemplateByPCClient = original.VirtualMachineTemplateByPCClient
type VirtualMachineTemplateListResponse = original.VirtualMachineTemplateListResponse
type VirtualMachineTemplateListResponseIterator = original.VirtualMachineTemplateListResponseIterator
type VirtualMachineTemplateListResponsePage = original.VirtualMachineTemplateListResponsePage
type VirtualMachineTemplateProperties = original.VirtualMachineTemplateProperties
-type VirtualMachineTemplatesByPCClient = original.VirtualMachineTemplatesByPCClient
-type VirtualMachineUpdateFuture = original.VirtualMachineUpdateFuture
+type VirtualMachineTemplatesClient = original.VirtualMachineTemplatesClient
+type VirtualMachinesClient = original.VirtualMachinesClient
+type VirtualMachinesCreateOrUpdateFuture = original.VirtualMachinesCreateOrUpdateFuture
+type VirtualMachinesDeleteFuture = original.VirtualMachinesDeleteFuture
+type VirtualMachinesStartFuture = original.VirtualMachinesStartFuture
+type VirtualMachinesStopFuture = original.VirtualMachinesStopFuture
+type VirtualMachinesUpdateFuture = original.VirtualMachinesUpdateFuture
type VirtualNetwork = original.VirtualNetwork
-type VirtualNetworkByPCClient = original.VirtualNetworkByPCClient
type VirtualNetworkListResponse = original.VirtualNetworkListResponse
type VirtualNetworkListResponseIterator = original.VirtualNetworkListResponseIterator
type VirtualNetworkListResponsePage = original.VirtualNetworkListResponsePage
type VirtualNetworkProperties = original.VirtualNetworkProperties
-type VirtualNetworksByPCClient = original.VirtualNetworksByPCClient
+type VirtualNetworksClient = original.VirtualNetworksClient
type VirtualNic = original.VirtualNic
-func New(referer string, regionID string, subscriptionID string) BaseClient {
- return original.New(referer, regionID, subscriptionID)
-}
-func NewAvailableOperationsClient(referer string, regionID string, subscriptionID string) AvailableOperationsClient {
- return original.NewAvailableOperationsClient(referer, regionID, subscriptionID)
-}
-func NewAvailableOperationsClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) AvailableOperationsClient {
- return original.NewAvailableOperationsClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func New(subscriptionID string, referer string) BaseClient {
+ return original.New(subscriptionID, referer)
}
func NewAvailableOperationsListResponseIterator(page AvailableOperationsListResponsePage) AvailableOperationsListResponseIterator {
return original.NewAvailableOperationsListResponseIterator(page)
@@ -224,11 +271,17 @@ func NewAvailableOperationsListResponseIterator(page AvailableOperationsListResp
func NewAvailableOperationsListResponsePage(getNextPage func(context.Context, AvailableOperationsListResponse) (AvailableOperationsListResponse, error)) AvailableOperationsListResponsePage {
return original.NewAvailableOperationsListResponsePage(getNextPage)
}
-func NewDedicatedCloudNodeClient(referer string, regionID string, subscriptionID string) DedicatedCloudNodeClient {
- return original.NewDedicatedCloudNodeClient(referer, regionID, subscriptionID)
+func NewCustomizationPoliciesClient(subscriptionID string, referer string) CustomizationPoliciesClient {
+ return original.NewCustomizationPoliciesClient(subscriptionID, referer)
+}
+func NewCustomizationPoliciesClientWithBaseURI(baseURI string, subscriptionID string, referer string) CustomizationPoliciesClient {
+ return original.NewCustomizationPoliciesClientWithBaseURI(baseURI, subscriptionID, referer)
}
-func NewDedicatedCloudNodeClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) DedicatedCloudNodeClient {
- return original.NewDedicatedCloudNodeClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewCustomizationPoliciesListResponseIterator(page CustomizationPoliciesListResponsePage) CustomizationPoliciesListResponseIterator {
+ return original.NewCustomizationPoliciesListResponseIterator(page)
+}
+func NewCustomizationPoliciesListResponsePage(getNextPage func(context.Context, CustomizationPoliciesListResponse) (CustomizationPoliciesListResponse, error)) CustomizationPoliciesListResponsePage {
+ return original.NewCustomizationPoliciesListResponsePage(getNextPage)
}
func NewDedicatedCloudNodeListResponseIterator(page DedicatedCloudNodeListResponsePage) DedicatedCloudNodeListResponseIterator {
return original.NewDedicatedCloudNodeListResponseIterator(page)
@@ -236,11 +289,11 @@ func NewDedicatedCloudNodeListResponseIterator(page DedicatedCloudNodeListRespon
func NewDedicatedCloudNodeListResponsePage(getNextPage func(context.Context, DedicatedCloudNodeListResponse) (DedicatedCloudNodeListResponse, error)) DedicatedCloudNodeListResponsePage {
return original.NewDedicatedCloudNodeListResponsePage(getNextPage)
}
-func NewDedicatedCloudServiceClient(referer string, regionID string, subscriptionID string) DedicatedCloudServiceClient {
- return original.NewDedicatedCloudServiceClient(referer, regionID, subscriptionID)
+func NewDedicatedCloudNodesClient(subscriptionID string, referer string) DedicatedCloudNodesClient {
+ return original.NewDedicatedCloudNodesClient(subscriptionID, referer)
}
-func NewDedicatedCloudServiceClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) DedicatedCloudServiceClient {
- return original.NewDedicatedCloudServiceClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewDedicatedCloudNodesClientWithBaseURI(baseURI string, subscriptionID string, referer string) DedicatedCloudNodesClient {
+ return original.NewDedicatedCloudNodesClientWithBaseURI(baseURI, subscriptionID, referer)
}
func NewDedicatedCloudServiceListResponseIterator(page DedicatedCloudServiceListResponsePage) DedicatedCloudServiceListResponseIterator {
return original.NewDedicatedCloudServiceListResponseIterator(page)
@@ -248,11 +301,17 @@ func NewDedicatedCloudServiceListResponseIterator(page DedicatedCloudServiceList
func NewDedicatedCloudServiceListResponsePage(getNextPage func(context.Context, DedicatedCloudServiceListResponse) (DedicatedCloudServiceListResponse, error)) DedicatedCloudServiceListResponsePage {
return original.NewDedicatedCloudServiceListResponsePage(getNextPage)
}
-func NewPrivateCloudByRegionClient(referer string, regionID string, subscriptionID string) PrivateCloudByRegionClient {
- return original.NewPrivateCloudByRegionClient(referer, regionID, subscriptionID)
+func NewDedicatedCloudServicesClient(subscriptionID string, referer string) DedicatedCloudServicesClient {
+ return original.NewDedicatedCloudServicesClient(subscriptionID, referer)
+}
+func NewDedicatedCloudServicesClientWithBaseURI(baseURI string, subscriptionID string, referer string) DedicatedCloudServicesClient {
+ return original.NewDedicatedCloudServicesClientWithBaseURI(baseURI, subscriptionID, referer)
}
-func NewPrivateCloudByRegionClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) PrivateCloudByRegionClient {
- return original.NewPrivateCloudByRegionClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewOperationsClient(subscriptionID string, referer string) OperationsClient {
+ return original.NewOperationsClient(subscriptionID, referer)
+}
+func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string, referer string) OperationsClient {
+ return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID, referer)
}
func NewPrivateCloudListIterator(page PrivateCloudListPage) PrivateCloudListIterator {
return original.NewPrivateCloudListIterator(page)
@@ -260,17 +319,17 @@ func NewPrivateCloudListIterator(page PrivateCloudListPage) PrivateCloudListIter
func NewPrivateCloudListPage(getNextPage func(context.Context, PrivateCloudList) (PrivateCloudList, error)) PrivateCloudListPage {
return original.NewPrivateCloudListPage(getNextPage)
}
-func NewResourcePoolByPCClient(referer string, regionID string, subscriptionID string) ResourcePoolByPCClient {
- return original.NewResourcePoolByPCClient(referer, regionID, subscriptionID)
+func NewPrivateCloudsClient(subscriptionID string, referer string) PrivateCloudsClient {
+ return original.NewPrivateCloudsClient(subscriptionID, referer)
}
-func NewResourcePoolByPCClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) ResourcePoolByPCClient {
- return original.NewResourcePoolByPCClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewPrivateCloudsClientWithBaseURI(baseURI string, subscriptionID string, referer string) PrivateCloudsClient {
+ return original.NewPrivateCloudsClientWithBaseURI(baseURI, subscriptionID, referer)
}
-func NewResourcePoolsByPCClient(referer string, regionID string, subscriptionID string) ResourcePoolsByPCClient {
- return original.NewResourcePoolsByPCClient(referer, regionID, subscriptionID)
+func NewResourcePoolsClient(subscriptionID string, referer string) ResourcePoolsClient {
+ return original.NewResourcePoolsClient(subscriptionID, referer)
}
-func NewResourcePoolsByPCClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) ResourcePoolsByPCClient {
- return original.NewResourcePoolsByPCClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewResourcePoolsClientWithBaseURI(baseURI string, subscriptionID string, referer string) ResourcePoolsClient {
+ return original.NewResourcePoolsClientWithBaseURI(baseURI, subscriptionID, referer)
}
func NewResourcePoolsListResponseIterator(page ResourcePoolsListResponsePage) ResourcePoolsListResponseIterator {
return original.NewResourcePoolsListResponseIterator(page)
@@ -284,11 +343,11 @@ func NewSkuAvailabilityListResponseIterator(page SkuAvailabilityListResponsePage
func NewSkuAvailabilityListResponsePage(getNextPage func(context.Context, SkuAvailabilityListResponse) (SkuAvailabilityListResponse, error)) SkuAvailabilityListResponsePage {
return original.NewSkuAvailabilityListResponsePage(getNextPage)
}
-func NewSkusAvailabilityWithinRegionClient(referer string, regionID string, subscriptionID string) SkusAvailabilityWithinRegionClient {
- return original.NewSkusAvailabilityWithinRegionClient(referer, regionID, subscriptionID)
+func NewSkusAvailabilityClient(subscriptionID string, referer string) SkusAvailabilityClient {
+ return original.NewSkusAvailabilityClient(subscriptionID, referer)
}
-func NewSkusAvailabilityWithinRegionClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) SkusAvailabilityWithinRegionClient {
- return original.NewSkusAvailabilityWithinRegionClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewSkusAvailabilityClientWithBaseURI(baseURI string, subscriptionID string, referer string) SkusAvailabilityClient {
+ return original.NewSkusAvailabilityClientWithBaseURI(baseURI, subscriptionID, referer)
}
func NewUsageListResponseIterator(page UsageListResponsePage) UsageListResponseIterator {
return original.NewUsageListResponseIterator(page)
@@ -296,17 +355,11 @@ func NewUsageListResponseIterator(page UsageListResponsePage) UsageListResponseI
func NewUsageListResponsePage(getNextPage func(context.Context, UsageListResponse) (UsageListResponse, error)) UsageListResponsePage {
return original.NewUsageListResponsePage(getNextPage)
}
-func NewUsagesWithinRegionClient(referer string, regionID string, subscriptionID string) UsagesWithinRegionClient {
- return original.NewUsagesWithinRegionClient(referer, regionID, subscriptionID)
-}
-func NewUsagesWithinRegionClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) UsagesWithinRegionClient {
- return original.NewUsagesWithinRegionClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewUsagesClient(subscriptionID string, referer string) UsagesClient {
+ return original.NewUsagesClient(subscriptionID, referer)
}
-func NewVirtualMachineClient(referer string, regionID string, subscriptionID string) VirtualMachineClient {
- return original.NewVirtualMachineClient(referer, regionID, subscriptionID)
-}
-func NewVirtualMachineClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) VirtualMachineClient {
- return original.NewVirtualMachineClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string, referer string) UsagesClient {
+ return original.NewUsagesClientWithBaseURI(baseURI, subscriptionID, referer)
}
func NewVirtualMachineListResponseIterator(page VirtualMachineListResponsePage) VirtualMachineListResponseIterator {
return original.NewVirtualMachineListResponseIterator(page)
@@ -314,29 +367,23 @@ func NewVirtualMachineListResponseIterator(page VirtualMachineListResponsePage)
func NewVirtualMachineListResponsePage(getNextPage func(context.Context, VirtualMachineListResponse) (VirtualMachineListResponse, error)) VirtualMachineListResponsePage {
return original.NewVirtualMachineListResponsePage(getNextPage)
}
-func NewVirtualMachineTemplateByPCClient(referer string, regionID string, subscriptionID string) VirtualMachineTemplateByPCClient {
- return original.NewVirtualMachineTemplateByPCClient(referer, regionID, subscriptionID)
-}
-func NewVirtualMachineTemplateByPCClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) VirtualMachineTemplateByPCClient {
- return original.NewVirtualMachineTemplateByPCClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
-}
func NewVirtualMachineTemplateListResponseIterator(page VirtualMachineTemplateListResponsePage) VirtualMachineTemplateListResponseIterator {
return original.NewVirtualMachineTemplateListResponseIterator(page)
}
func NewVirtualMachineTemplateListResponsePage(getNextPage func(context.Context, VirtualMachineTemplateListResponse) (VirtualMachineTemplateListResponse, error)) VirtualMachineTemplateListResponsePage {
return original.NewVirtualMachineTemplateListResponsePage(getNextPage)
}
-func NewVirtualMachineTemplatesByPCClient(referer string, regionID string, subscriptionID string) VirtualMachineTemplatesByPCClient {
- return original.NewVirtualMachineTemplatesByPCClient(referer, regionID, subscriptionID)
+func NewVirtualMachineTemplatesClient(subscriptionID string, referer string) VirtualMachineTemplatesClient {
+ return original.NewVirtualMachineTemplatesClient(subscriptionID, referer)
}
-func NewVirtualMachineTemplatesByPCClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) VirtualMachineTemplatesByPCClient {
- return original.NewVirtualMachineTemplatesByPCClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewVirtualMachineTemplatesClientWithBaseURI(baseURI string, subscriptionID string, referer string) VirtualMachineTemplatesClient {
+ return original.NewVirtualMachineTemplatesClientWithBaseURI(baseURI, subscriptionID, referer)
}
-func NewVirtualNetworkByPCClient(referer string, regionID string, subscriptionID string) VirtualNetworkByPCClient {
- return original.NewVirtualNetworkByPCClient(referer, regionID, subscriptionID)
+func NewVirtualMachinesClient(subscriptionID string, referer string) VirtualMachinesClient {
+ return original.NewVirtualMachinesClient(subscriptionID, referer)
}
-func NewVirtualNetworkByPCClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) VirtualNetworkByPCClient {
- return original.NewVirtualNetworkByPCClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewVirtualMachinesClientWithBaseURI(baseURI string, subscriptionID string, referer string) VirtualMachinesClient {
+ return original.NewVirtualMachinesClientWithBaseURI(baseURI, subscriptionID, referer)
}
func NewVirtualNetworkListResponseIterator(page VirtualNetworkListResponsePage) VirtualNetworkListResponseIterator {
return original.NewVirtualNetworkListResponseIterator(page)
@@ -344,18 +391,21 @@ func NewVirtualNetworkListResponseIterator(page VirtualNetworkListResponsePage)
func NewVirtualNetworkListResponsePage(getNextPage func(context.Context, VirtualNetworkListResponse) (VirtualNetworkListResponse, error)) VirtualNetworkListResponsePage {
return original.NewVirtualNetworkListResponsePage(getNextPage)
}
-func NewVirtualNetworksByPCClient(referer string, regionID string, subscriptionID string) VirtualNetworksByPCClient {
- return original.NewVirtualNetworksByPCClient(referer, regionID, subscriptionID)
+func NewVirtualNetworksClient(subscriptionID string, referer string) VirtualNetworksClient {
+ return original.NewVirtualNetworksClient(subscriptionID, referer)
}
-func NewVirtualNetworksByPCClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) VirtualNetworksByPCClient {
- return original.NewVirtualNetworksByPCClientWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string, referer string) VirtualNetworksClient {
+ return original.NewVirtualNetworksClientWithBaseURI(baseURI, subscriptionID, referer)
}
-func NewWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) BaseClient {
- return original.NewWithBaseURI(baseURI, referer, regionID, subscriptionID)
+func NewWithBaseURI(baseURI string, subscriptionID string, referer string) BaseClient {
+ return original.NewWithBaseURI(baseURI, subscriptionID, referer)
}
func PossibleAggregationTypeValues() []AggregationType {
return original.PossibleAggregationTypeValues()
}
+func PossibleAllocationValues() []Allocation {
+ return original.PossibleAllocationValues()
+}
func PossibleDiskIndependenceModeValues() []DiskIndependenceMode {
return original.PossibleDiskIndependenceModeValues()
}
@@ -380,6 +430,18 @@ func PossiblePrivateCloudResourceTypeValues() []PrivateCloudResourceType {
func PossibleStopModeValues() []StopMode {
return original.PossibleStopModeValues()
}
+func PossibleType1Values() []Type1 {
+ return original.PossibleType1Values()
+}
+func PossibleType2Values() []Type2 {
+ return original.PossibleType2Values()
+}
+func PossibleType3Values() []Type3 {
+ return original.PossibleType3Values()
+}
+func PossibleTypeValues() []Type {
+ return original.PossibleTypeValues()
+}
func PossibleUsageCountValues() []UsageCount {
return original.PossibleUsageCountValues()
}
diff --git a/profiles/preview/vmwarecloudsimple/mgmt/vmwarecloudsimple/vmwarecloudsimpleapi/models.go b/profiles/preview/vmwarecloudsimple/mgmt/vmwarecloudsimple/vmwarecloudsimpleapi/models.go
index 30246cb7a73b..ed837345e317 100644
--- a/profiles/preview/vmwarecloudsimple/mgmt/vmwarecloudsimple/vmwarecloudsimpleapi/models.go
+++ b/profiles/preview/vmwarecloudsimple/mgmt/vmwarecloudsimple/vmwarecloudsimpleapi/models.go
@@ -21,17 +21,14 @@ package vmwarecloudsimpleapi
import original "github.com/Azure/azure-sdk-for-go/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/vmwarecloudsimpleapi"
-type AvailableOperationsClientAPI = original.AvailableOperationsClientAPI
-type BaseClientAPI = original.BaseClientAPI
-type DedicatedCloudNodeClientAPI = original.DedicatedCloudNodeClientAPI
-type DedicatedCloudServiceClientAPI = original.DedicatedCloudServiceClientAPI
-type PrivateCloudByRegionClientAPI = original.PrivateCloudByRegionClientAPI
-type ResourcePoolByPCClientAPI = original.ResourcePoolByPCClientAPI
-type ResourcePoolsByPCClientAPI = original.ResourcePoolsByPCClientAPI
-type SkusAvailabilityWithinRegionClientAPI = original.SkusAvailabilityWithinRegionClientAPI
-type UsagesWithinRegionClientAPI = original.UsagesWithinRegionClientAPI
-type VirtualMachineClientAPI = original.VirtualMachineClientAPI
-type VirtualMachineTemplateByPCClientAPI = original.VirtualMachineTemplateByPCClientAPI
-type VirtualMachineTemplatesByPCClientAPI = original.VirtualMachineTemplatesByPCClientAPI
-type VirtualNetworkByPCClientAPI = original.VirtualNetworkByPCClientAPI
-type VirtualNetworksByPCClientAPI = original.VirtualNetworksByPCClientAPI
+type CustomizationPoliciesClientAPI = original.CustomizationPoliciesClientAPI
+type DedicatedCloudNodesClientAPI = original.DedicatedCloudNodesClientAPI
+type DedicatedCloudServicesClientAPI = original.DedicatedCloudServicesClientAPI
+type OperationsClientAPI = original.OperationsClientAPI
+type PrivateCloudsClientAPI = original.PrivateCloudsClientAPI
+type ResourcePoolsClientAPI = original.ResourcePoolsClientAPI
+type SkusAvailabilityClientAPI = original.SkusAvailabilityClientAPI
+type UsagesClientAPI = original.UsagesClientAPI
+type VirtualMachineTemplatesClientAPI = original.VirtualMachineTemplatesClientAPI
+type VirtualMachinesClientAPI = original.VirtualMachinesClientAPI
+type VirtualNetworksClientAPI = original.VirtualNetworksClientAPI
diff --git a/profiles/preview/web/mgmt/web/models.go b/profiles/preview/web/mgmt/web/models.go
index 327ea975f9f7..09d21472b55a 100644
--- a/profiles/preview/web/mgmt/web/models.go
+++ b/profiles/preview/web/mgmt/web/models.go
@@ -192,6 +192,18 @@ const (
ComputeModeOptionsShared ComputeModeOptions = original.ComputeModeOptionsShared
)
+type ConfigReferenceLocation = original.ConfigReferenceLocation
+
+const (
+ ApplicationSetting ConfigReferenceLocation = original.ApplicationSetting
+)
+
+type ConfigReferenceSource = original.ConfigReferenceSource
+
+const (
+ KeyVault ConfigReferenceSource = original.KeyVault
+)
+
type ConnectionStringType = original.ConnectionStringType
const (
@@ -416,10 +428,9 @@ const (
type ManagedServiceIdentityType = original.ManagedServiceIdentityType
const (
- ManagedServiceIdentityTypeNone ManagedServiceIdentityType = original.ManagedServiceIdentityTypeNone
- ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = original.ManagedServiceIdentityTypeSystemAssigned
- ManagedServiceIdentityTypeSystemAssignedUserAssigned ManagedServiceIdentityType = original.ManagedServiceIdentityTypeSystemAssignedUserAssigned
- ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = original.ManagedServiceIdentityTypeUserAssigned
+ ManagedServiceIdentityTypeNone ManagedServiceIdentityType = original.ManagedServiceIdentityTypeNone
+ ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = original.ManagedServiceIdentityTypeSystemAssigned
+ ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = original.ManagedServiceIdentityTypeUserAssigned
)
type MySQLMigrationType = original.MySQLMigrationType
@@ -493,6 +504,20 @@ const (
TimeSeriesPerInstance RenderingType = original.TimeSeriesPerInstance
)
+type ResolveStatus = original.ResolveStatus
+
+const (
+ AccessToKeyVaultDenied ResolveStatus = original.AccessToKeyVaultDenied
+ Initialized ResolveStatus = original.Initialized
+ InvalidSyntax ResolveStatus = original.InvalidSyntax
+ MSINotEnabled ResolveStatus = original.MSINotEnabled
+ OtherReasons ResolveStatus = original.OtherReasons
+ Resolved ResolveStatus = original.Resolved
+ SecretNotFound ResolveStatus = original.SecretNotFound
+ SecretVersionNotFound ResolveStatus = original.SecretVersionNotFound
+ VaultNotFound ResolveStatus = original.VaultNotFound
+)
+
type ResourceScopeType = original.ResourceScopeType
const (
@@ -525,6 +550,7 @@ const (
ScmTypeOneDrive ScmType = original.ScmTypeOneDrive
ScmTypeTfs ScmType = original.ScmTypeTfs
ScmTypeVSO ScmType = original.ScmTypeVSO
+ ScmTypeVSTSRM ScmType = original.ScmTypeVSTSRM
)
type SiteAvailabilityState = original.SiteAvailabilityState
@@ -552,6 +578,14 @@ const (
WeightedTotalTraffic SiteLoadBalancing = original.WeightedTotalTraffic
)
+type SiteRuntimeState = original.SiteRuntimeState
+
+const (
+ READY SiteRuntimeState = original.READY
+ STOPPED SiteRuntimeState = original.STOPPED
+ UNKNOWN SiteRuntimeState = original.UNKNOWN
+)
+
type SkuName = original.SkuName
const (
@@ -631,19 +665,23 @@ const (
type WorkerSizeOptions = original.WorkerSizeOptions
const (
- WorkerSizeOptionsD1 WorkerSizeOptions = original.WorkerSizeOptionsD1
- WorkerSizeOptionsD2 WorkerSizeOptions = original.WorkerSizeOptionsD2
- WorkerSizeOptionsD3 WorkerSizeOptions = original.WorkerSizeOptionsD3
- WorkerSizeOptionsDefault WorkerSizeOptions = original.WorkerSizeOptionsDefault
- WorkerSizeOptionsLarge WorkerSizeOptions = original.WorkerSizeOptionsLarge
- WorkerSizeOptionsMedium WorkerSizeOptions = original.WorkerSizeOptionsMedium
- WorkerSizeOptionsSmall WorkerSizeOptions = original.WorkerSizeOptionsSmall
+ WorkerSizeOptionsD1 WorkerSizeOptions = original.WorkerSizeOptionsD1
+ WorkerSizeOptionsD2 WorkerSizeOptions = original.WorkerSizeOptionsD2
+ WorkerSizeOptionsD3 WorkerSizeOptions = original.WorkerSizeOptionsD3
+ WorkerSizeOptionsDefault WorkerSizeOptions = original.WorkerSizeOptionsDefault
+ WorkerSizeOptionsLarge WorkerSizeOptions = original.WorkerSizeOptionsLarge
+ WorkerSizeOptionsMedium WorkerSizeOptions = original.WorkerSizeOptionsMedium
+ WorkerSizeOptionsNestedSmall WorkerSizeOptions = original.WorkerSizeOptionsNestedSmall
+ WorkerSizeOptionsSmall WorkerSizeOptions = original.WorkerSizeOptionsSmall
)
type APIDefinitionInfo = original.APIDefinitionInfo
+type APIKVReference = original.APIKVReference
+type APIManagementConfig = original.APIManagementConfig
type AbnormalTimePeriod = original.AbnormalTimePeriod
type Address = original.Address
type AddressResponse = original.AddressResponse
+type AddressResponseProperties = original.AddressResponseProperties
type AnalysisData = original.AnalysisData
type AnalysisDefinition = original.AnalysisDefinition
type AnalysisDefinitionProperties = original.AnalysisDefinitionProperties
@@ -700,7 +738,10 @@ type ApplicationStack = original.ApplicationStack
type ApplicationStackCollection = original.ApplicationStackCollection
type ApplicationStackCollectionIterator = original.ApplicationStackCollectionIterator
type ApplicationStackCollectionPage = original.ApplicationStackCollectionPage
+type ApplicationStackResource = original.ApplicationStackResource
type AppsClient = original.AppsClient
+type AppsCopyProductionSlotFuture = original.AppsCopyProductionSlotFuture
+type AppsCopySlotSlotFuture = original.AppsCopySlotSlotFuture
type AppsCreateFunctionFuture = original.AppsCreateFunctionFuture
type AppsCreateInstanceFunctionSlotFuture = original.AppsCreateInstanceFunctionSlotFuture
type AppsCreateInstanceMSDeployOperationFuture = original.AppsCreateInstanceMSDeployOperationFuture
@@ -774,12 +815,19 @@ type ConnStringInfo = original.ConnStringInfo
type ConnStringValueTypePair = original.ConnStringValueTypePair
type ConnectionStringDictionary = original.ConnectionStringDictionary
type Contact = original.Contact
+type ContainerCPUStatistics = original.ContainerCPUStatistics
+type ContainerCPUUsage = original.ContainerCPUUsage
+type ContainerInfo = original.ContainerInfo
+type ContainerMemoryStatistics = original.ContainerMemoryStatistics
+type ContainerNetworkInterfaceStatistics = original.ContainerNetworkInterfaceStatistics
+type ContainerThrottlingData = original.ContainerThrottlingData
type ContinuousWebJob = original.ContinuousWebJob
type ContinuousWebJobCollection = original.ContinuousWebJobCollection
type ContinuousWebJobCollectionIterator = original.ContinuousWebJobCollectionIterator
type ContinuousWebJobCollectionPage = original.ContinuousWebJobCollectionPage
type ContinuousWebJobProperties = original.ContinuousWebJobProperties
type CorsSettings = original.CorsSettings
+type CsmCopySlotEntity = original.CsmCopySlotEntity
type CsmMoveResourceEnvelope = original.CsmMoveResourceEnvelope
type CsmOperationCollection = original.CsmOperationCollection
type CsmOperationCollectionIterator = original.CsmOperationCollectionIterator
@@ -846,7 +894,7 @@ type DiagnosticMetricSet = original.DiagnosticMetricSet
type DiagnosticsClient = original.DiagnosticsClient
type Dimension = original.Dimension
type Domain = original.Domain
-type DomainAvailablilityCheckResult = original.DomainAvailablilityCheckResult
+type DomainAvailabilityCheckResult = original.DomainAvailabilityCheckResult
type DomainCollection = original.DomainCollection
type DomainCollectionIterator = original.DomainCollectionIterator
type DomainCollectionPage = original.DomainCollectionPage
@@ -878,7 +926,6 @@ type FunctionEnvelopeCollectionPage = original.FunctionEnvelopeCollectionPage
type FunctionEnvelopeProperties = original.FunctionEnvelopeProperties
type FunctionSecrets = original.FunctionSecrets
type FunctionSecretsProperties = original.FunctionSecretsProperties
-type GeoDistribution = original.GeoDistribution
type GeoRegion = original.GeoRegion
type GeoRegionCollection = original.GeoRegionCollection
type GeoRegionCollectionIterator = original.GeoRegionCollectionIterator
@@ -921,6 +968,9 @@ type JobCollection = original.JobCollection
type JobCollectionIterator = original.JobCollectionIterator
type JobCollectionPage = original.JobCollectionPage
type JobProperties = original.JobProperties
+type KeyVaultReferenceCollection = original.KeyVaultReferenceCollection
+type KeyVaultReferenceCollectionProperties = original.KeyVaultReferenceCollectionProperties
+type KeyVaultReferenceResource = original.KeyVaultReferenceResource
type ListCapability = original.ListCapability
type ListCertificateEmail = original.ListCertificateEmail
type ListCertificateOrderAction = original.ListCertificateOrderAction
@@ -940,10 +990,7 @@ type MSDeployStatus = original.MSDeployStatus
type MSDeployStatusProperties = original.MSDeployStatusProperties
type ManagedServiceIdentity = original.ManagedServiceIdentity
type ManagedServiceIdentityUserAssignedIdentitiesValue = original.ManagedServiceIdentityUserAssignedIdentitiesValue
-type MetricAvailabilily = original.MetricAvailabilily
type MetricAvailability = original.MetricAvailability
-type MetricDefinition = original.MetricDefinition
-type MetricDefinitionProperties = original.MetricDefinitionProperties
type MetricSpecification = original.MetricSpecification
type MigrateMySQLRequest = original.MigrateMySQLRequest
type MigrateMySQLRequestProperties = original.MigrateMySQLRequestProperties
@@ -1034,19 +1081,12 @@ type ResourceHealthMetadataCollection = original.ResourceHealthMetadataCollectio
type ResourceHealthMetadataCollectionIterator = original.ResourceHealthMetadataCollectionIterator
type ResourceHealthMetadataCollectionPage = original.ResourceHealthMetadataCollectionPage
type ResourceHealthMetadataProperties = original.ResourceHealthMetadataProperties
-type ResourceMetric = original.ResourceMetric
type ResourceMetricAvailability = original.ResourceMetricAvailability
-type ResourceMetricCollection = original.ResourceMetricCollection
-type ResourceMetricCollectionIterator = original.ResourceMetricCollectionIterator
-type ResourceMetricCollectionPage = original.ResourceMetricCollectionPage
type ResourceMetricDefinition = original.ResourceMetricDefinition
type ResourceMetricDefinitionCollection = original.ResourceMetricDefinitionCollection
type ResourceMetricDefinitionCollectionIterator = original.ResourceMetricDefinitionCollectionIterator
type ResourceMetricDefinitionCollectionPage = original.ResourceMetricDefinitionCollectionPage
type ResourceMetricDefinitionProperties = original.ResourceMetricDefinitionProperties
-type ResourceMetricName = original.ResourceMetricName
-type ResourceMetricProperty = original.ResourceMetricProperty
-type ResourceMetricValue = original.ResourceMetricValue
type ResourceNameAvailability = original.ResourceNameAvailability
type ResourceNameAvailabilityRequest = original.ResourceNameAvailabilityRequest
type ResponseMetaData = original.ResponseMetaData
@@ -1076,6 +1116,8 @@ type SiteExtensionInfoCollectionPage = original.SiteExtensionInfoCollectionPage
type SiteExtensionInfoProperties = original.SiteExtensionInfoProperties
type SiteInstance = original.SiteInstance
type SiteInstanceProperties = original.SiteInstanceProperties
+type SiteInstanceStatus = original.SiteInstanceStatus
+type SiteInstanceStatusProperties = original.SiteInstanceStatusProperties
type SiteLimits = original.SiteLimits
type SiteLogsConfig = original.SiteLogsConfig
type SiteLogsConfigProperties = original.SiteLogsConfigProperties
@@ -1164,7 +1206,6 @@ type UsageCollectionPage = original.UsageCollectionPage
type UsageProperties = original.UsageProperties
type User = original.User
type UserProperties = original.UserProperties
-type ValidateContainerSettingsRequest = original.ValidateContainerSettingsRequest
type ValidateProperties = original.ValidateProperties
type ValidateRequest = original.ValidateRequest
type ValidateResponse = original.ValidateResponse
@@ -1506,12 +1547,6 @@ func NewResourceHealthMetadataCollectionIterator(page ResourceHealthMetadataColl
func NewResourceHealthMetadataCollectionPage(getNextPage func(context.Context, ResourceHealthMetadataCollection) (ResourceHealthMetadataCollection, error)) ResourceHealthMetadataCollectionPage {
return original.NewResourceHealthMetadataCollectionPage(getNextPage)
}
-func NewResourceMetricCollectionIterator(page ResourceMetricCollectionPage) ResourceMetricCollectionIterator {
- return original.NewResourceMetricCollectionIterator(page)
-}
-func NewResourceMetricCollectionPage(getNextPage func(context.Context, ResourceMetricCollection) (ResourceMetricCollection, error)) ResourceMetricCollectionPage {
- return original.NewResourceMetricCollectionPage(getNextPage)
-}
func NewResourceMetricDefinitionCollectionIterator(page ResourceMetricDefinitionCollectionPage) ResourceMetricDefinitionCollectionIterator {
return original.NewResourceMetricDefinitionCollectionIterator(page)
}
@@ -1659,6 +1694,12 @@ func PossibleCloneAbilityResultValues() []CloneAbilityResult {
func PossibleComputeModeOptionsValues() []ComputeModeOptions {
return original.PossibleComputeModeOptionsValues()
}
+func PossibleConfigReferenceLocationValues() []ConfigReferenceLocation {
+ return original.PossibleConfigReferenceLocationValues()
+}
+func PossibleConfigReferenceSourceValues() []ConfigReferenceSource {
+ return original.PossibleConfigReferenceSourceValues()
+}
func PossibleConnectionStringTypeValues() []ConnectionStringType {
return original.PossibleConnectionStringTypeValues()
}
@@ -1755,6 +1796,9 @@ func PossibleRedundancyModeValues() []RedundancyMode {
func PossibleRenderingTypeValues() []RenderingType {
return original.PossibleRenderingTypeValues()
}
+func PossibleResolveStatusValues() []ResolveStatus {
+ return original.PossibleResolveStatusValues()
+}
func PossibleResourceScopeTypeValues() []ResourceScopeType {
return original.PossibleResourceScopeTypeValues()
}
@@ -1773,6 +1817,9 @@ func PossibleSiteExtensionTypeValues() []SiteExtensionType {
func PossibleSiteLoadBalancingValues() []SiteLoadBalancing {
return original.PossibleSiteLoadBalancingValues()
}
+func PossibleSiteRuntimeStateValues() []SiteRuntimeState {
+ return original.PossibleSiteRuntimeStateValues()
+}
func PossibleSkuNameValues() []SkuName {
return original.PossibleSkuNameValues()
}
diff --git a/services/advisor/mgmt/2017-03-31/advisor/models.go b/services/advisor/mgmt/2017-03-31/advisor/models.go
index a418c947c64d..0e4ae546d0a6 100644
--- a/services/advisor/mgmt/2017-03-31/advisor/models.go
+++ b/services/advisor/mgmt/2017-03-31/advisor/models.go
@@ -39,6 +39,8 @@ const (
Cost Category = "Cost"
// HighAvailability ...
HighAvailability Category = "HighAvailability"
+ // OperationalExcellence ...
+ OperationalExcellence Category = "OperationalExcellence"
// Performance ...
Performance Category = "Performance"
// Security ...
@@ -47,7 +49,7 @@ const (
// PossibleCategoryValues returns an array of possible values for the Category const type.
func PossibleCategoryValues() []Category {
- return []Category{Cost, HighAvailability, Performance, Security}
+ return []Category{Cost, HighAvailability, OperationalExcellence, Performance, Security}
}
// Impact enumerates the values for impact.
@@ -258,7 +260,7 @@ func NewOperationEntityListResultPage(getNextPage func(context.Context, Operatio
// RecommendationProperties the properties of the recommendation.
type RecommendationProperties struct {
- // Category - The category of the recommendation. Possible values include: 'HighAvailability', 'Security', 'Performance', 'Cost'
+ // Category - The category of the recommendation. Possible values include: 'HighAvailability', 'Security', 'Performance', 'Cost', 'OperationalExcellence'
Category Category `json:"category,omitempty"`
// Impact - The business impact of the recommendation. Possible values include: 'High', 'Medium', 'Low'
Impact Impact `json:"impact,omitempty"`
diff --git a/services/advisor/mgmt/2017-04-19/advisor/models.go b/services/advisor/mgmt/2017-04-19/advisor/models.go
index 759a2b8c7acd..788887c60712 100644
--- a/services/advisor/mgmt/2017-04-19/advisor/models.go
+++ b/services/advisor/mgmt/2017-04-19/advisor/models.go
@@ -39,6 +39,8 @@ const (
Cost Category = "Cost"
// HighAvailability ...
HighAvailability Category = "HighAvailability"
+ // OperationalExcellence ...
+ OperationalExcellence Category = "OperationalExcellence"
// Performance ...
Performance Category = "Performance"
// Security ...
@@ -47,7 +49,7 @@ const (
// PossibleCategoryValues returns an array of possible values for the Category const type.
func PossibleCategoryValues() []Category {
- return []Category{Cost, HighAvailability, Performance, Security}
+ return []Category{Cost, HighAvailability, OperationalExcellence, Performance, Security}
}
// Impact enumerates the values for impact.
@@ -749,7 +751,7 @@ func NewOperationEntityListResultPage(getNextPage func(context.Context, Operatio
// RecommendationProperties the properties of the recommendation.
type RecommendationProperties struct {
- // Category - The category of the recommendation. Possible values include: 'HighAvailability', 'Security', 'Performance', 'Cost'
+ // Category - The category of the recommendation. Possible values include: 'HighAvailability', 'Security', 'Performance', 'Cost', 'OperationalExcellence'
Category Category `json:"category,omitempty"`
// Impact - The business impact of the recommendation. Possible values include: 'High', 'Medium', 'Low'
Impact Impact `json:"impact,omitempty"`
diff --git a/services/apimanagement/mgmt/2019-01-01/apimanagement/models.go b/services/apimanagement/mgmt/2019-01-01/apimanagement/models.go
index 5895c52c995c..dd5b2d4daf44 100644
--- a/services/apimanagement/mgmt/2019-01-01/apimanagement/models.go
+++ b/services/apimanagement/mgmt/2019-01-01/apimanagement/models.go
@@ -4598,6 +4598,8 @@ type HTTPMessageDiagnostic struct {
type IdentityProviderBaseParameters struct {
// Type - Identity Provider Type identifier. Possible values include: 'Facebook', 'Google', 'Microsoft', 'Twitter', 'Aad', 'AadB2C'
Type IdentityProviderType `json:"type,omitempty"`
+ // SigninTenant - The TenantId to use instead of Common when logging into Active Directory
+ SigninTenant *string `json:"signinTenant,omitempty"`
// AllowedTenants - List of Allowed Tenants when configuring Azure Active Directory login.
AllowedTenants *[]string `json:"allowedTenants,omitempty"`
// Authority - OpenID Connect discovery endpoint hostname for AAD or AAD B2C.
@@ -4695,6 +4697,8 @@ type IdentityProviderContractProperties struct {
ClientSecret *string `json:"clientSecret,omitempty"`
// Type - Identity Provider Type identifier. Possible values include: 'Facebook', 'Google', 'Microsoft', 'Twitter', 'Aad', 'AadB2C'
Type IdentityProviderType `json:"type,omitempty"`
+ // SigninTenant - The TenantId to use instead of Common when logging into Active Directory
+ SigninTenant *string `json:"signinTenant,omitempty"`
// AllowedTenants - List of Allowed Tenants when configuring Azure Active Directory login.
AllowedTenants *[]string `json:"allowedTenants,omitempty"`
// Authority - OpenID Connect discovery endpoint hostname for AAD or AAD B2C.
@@ -4902,6 +4906,8 @@ type IdentityProviderUpdateProperties struct {
ClientSecret *string `json:"clientSecret,omitempty"`
// Type - Identity Provider Type identifier. Possible values include: 'Facebook', 'Google', 'Microsoft', 'Twitter', 'Aad', 'AadB2C'
Type IdentityProviderType `json:"type,omitempty"`
+ // SigninTenant - The TenantId to use instead of Common when logging into Active Directory
+ SigninTenant *string `json:"signinTenant,omitempty"`
// AllowedTenants - List of Allowed Tenants when configuring Azure Active Directory login.
AllowedTenants *[]string `json:"allowedTenants,omitempty"`
// Authority - OpenID Connect discovery endpoint hostname for AAD or AAD B2C.
diff --git a/services/appconfiguration/mgmt/2019-10-01/appconfiguration/appconfigurationapi/interfaces.go b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/appconfigurationapi/interfaces.go
new file mode 100644
index 000000000000..ca316075bf32
--- /dev/null
+++ b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/appconfigurationapi/interfaces.go
@@ -0,0 +1,46 @@
+package appconfigurationapi
+
+// 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/azure-sdk-for-go/services/appconfiguration/mgmt/2019-10-01/appconfiguration"
+)
+
+// ConfigurationStoresClientAPI contains the set of methods on the ConfigurationStoresClient type.
+type ConfigurationStoresClientAPI interface {
+ Create(ctx context.Context, resourceGroupName string, configStoreName string, configStoreCreationParameters appconfiguration.ConfigurationStore) (result appconfiguration.ConfigurationStoresCreateFuture, err error)
+ Delete(ctx context.Context, resourceGroupName string, configStoreName string) (result appconfiguration.ConfigurationStoresDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, configStoreName string) (result appconfiguration.ConfigurationStore, err error)
+ List(ctx context.Context, skipToken string) (result appconfiguration.ConfigurationStoreListResultPage, err error)
+ ListByResourceGroup(ctx context.Context, resourceGroupName string, skipToken string) (result appconfiguration.ConfigurationStoreListResultPage, err error)
+ ListKeys(ctx context.Context, resourceGroupName string, configStoreName string, skipToken string) (result appconfiguration.APIKeyListResultPage, err error)
+ ListKeyValue(ctx context.Context, resourceGroupName string, configStoreName string, listKeyValueParameters appconfiguration.ListKeyValueParameters) (result appconfiguration.KeyValue, err error)
+ RegenerateKey(ctx context.Context, resourceGroupName string, configStoreName string, regenerateKeyParameters appconfiguration.RegenerateKeyParameters) (result appconfiguration.APIKey, err error)
+ Update(ctx context.Context, resourceGroupName string, configStoreName string, configStoreUpdateParameters appconfiguration.ConfigurationStoreUpdateParameters) (result appconfiguration.ConfigurationStoresUpdateFuture, err error)
+}
+
+var _ ConfigurationStoresClientAPI = (*appconfiguration.ConfigurationStoresClient)(nil)
+
+// OperationsClientAPI contains the set of methods on the OperationsClient type.
+type OperationsClientAPI interface {
+ CheckNameAvailability(ctx context.Context, checkNameAvailabilityParameters appconfiguration.CheckNameAvailabilityParameters) (result appconfiguration.NameAvailabilityStatus, err error)
+ List(ctx context.Context, skipToken string) (result appconfiguration.OperationDefinitionListResultPage, err error)
+}
+
+var _ OperationsClientAPI = (*appconfiguration.OperationsClient)(nil)
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/client.go b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/client.go
similarity index 77%
rename from services/preview/sql/mgmt/2018-06-15-preview/sql/client.go
rename to services/appconfiguration/mgmt/2019-10-01/appconfiguration/client.go
index 40ec57b36bab..ca729e4e34ff 100644
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/client.go
+++ b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/client.go
@@ -1,8 +1,7 @@
-// Package sql implements the Azure ARM Sql service API version .
+// Package appconfiguration implements the Azure ARM Appconfiguration service API version 2019-10-01.
//
-// The Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database
-// services to manage your databases. The API enables you to create, retrieve, update, and delete databases.
-package sql
+//
+package appconfiguration
// Copyright (c) Microsoft and contributors. All rights reserved.
//
@@ -26,11 +25,11 @@ import (
)
const (
- // DefaultBaseURI is the default URI used for the service Sql
+ // DefaultBaseURI is the default URI used for the service Appconfiguration
DefaultBaseURI = "https://management.azure.com"
)
-// BaseClient is the base client for Sql.
+// BaseClient is the base client for Appconfiguration.
type BaseClient struct {
autorest.Client
BaseURI string
diff --git a/services/appconfiguration/mgmt/2019-10-01/appconfiguration/configurationstores.go b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/configurationstores.go
new file mode 100644
index 000000000000..40daddce716f
--- /dev/null
+++ b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/configurationstores.go
@@ -0,0 +1,933 @@
+package appconfiguration
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ConfigurationStoresClient is the client for the ConfigurationStores methods of the Appconfiguration service.
+type ConfigurationStoresClient struct {
+ BaseClient
+}
+
+// NewConfigurationStoresClient creates an instance of the ConfigurationStoresClient client.
+func NewConfigurationStoresClient(subscriptionID string) ConfigurationStoresClient {
+ return NewConfigurationStoresClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewConfigurationStoresClientWithBaseURI creates an instance of the ConfigurationStoresClient client.
+func NewConfigurationStoresClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationStoresClient {
+ return ConfigurationStoresClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Create creates a configuration store with the specified parameters.
+// Parameters:
+// resourceGroupName - the name of the resource group to which the container registry belongs.
+// configStoreName - the name of the configuration store.
+// configStoreCreationParameters - the parameters for creating a configuration store.
+func (client ConfigurationStoresClient) Create(ctx context.Context, resourceGroupName string, configStoreName string, configStoreCreationParameters ConfigurationStore) (result ConfigurationStoresCreateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConfigurationStoresClient.Create")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: configStoreName,
+ Constraints: []validation.Constraint{{Target: "configStoreName", Name: validation.MaxLength, Rule: 50, Chain: nil},
+ {Target: "configStoreName", Name: validation.MinLength, Rule: 5, Chain: nil},
+ {Target: "configStoreName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_-]*$`, Chain: nil}}},
+ {TargetValue: configStoreCreationParameters,
+ Constraints: []validation.Constraint{{Target: "configStoreCreationParameters.Sku", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "configStoreCreationParameters.Sku.Name", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("appconfiguration.ConfigurationStoresClient", "Create", err.Error())
+ }
+
+ req, err := client.CreatePreparer(ctx, resourceGroupName, configStoreName, configStoreCreationParameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "Create", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "Create", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreatePreparer prepares the Create request.
+func (client ConfigurationStoresClient) CreatePreparer(ctx context.Context, resourceGroupName string, configStoreName string, configStoreCreationParameters ConfigurationStore) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "configStoreName": autorest.Encode("path", configStoreName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-10-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.AppConfiguration/configurationStores/{configStoreName}", pathParameters),
+ autorest.WithJSON(configStoreCreationParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateSender sends the Create request. The method will close the
+// http.Response Body if it receives an error.
+func (client ConfigurationStoresClient) CreateSender(req *http.Request) (future ConfigurationStoresCreateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateResponder handles the response to the Create request. The method always
+// closes the http.Response Body.
+func (client ConfigurationStoresClient) CreateResponder(resp *http.Response) (result ConfigurationStore, 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 deletes a configuration store.
+// Parameters:
+// resourceGroupName - the name of the resource group to which the container registry belongs.
+// configStoreName - the name of the configuration store.
+func (client ConfigurationStoresClient) Delete(ctx context.Context, resourceGroupName string, configStoreName string) (result ConfigurationStoresDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConfigurationStoresClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: configStoreName,
+ Constraints: []validation.Constraint{{Target: "configStoreName", Name: validation.MaxLength, Rule: 50, Chain: nil},
+ {Target: "configStoreName", Name: validation.MinLength, Rule: 5, Chain: nil},
+ {Target: "configStoreName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_-]*$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("appconfiguration.ConfigurationStoresClient", "Delete", err.Error())
+ }
+
+ req, err := client.DeletePreparer(ctx, resourceGroupName, configStoreName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ConfigurationStoresClient) DeletePreparer(ctx context.Context, resourceGroupName string, configStoreName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "configStoreName": autorest.Encode("path", configStoreName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-10-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.AppConfiguration/configurationStores/{configStoreName}", 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 ConfigurationStoresClient) DeleteSender(req *http.Request) (future ConfigurationStoresDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ConfigurationStoresClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the properties of the specified configuration store.
+// Parameters:
+// resourceGroupName - the name of the resource group to which the container registry belongs.
+// configStoreName - the name of the configuration store.
+func (client ConfigurationStoresClient) Get(ctx context.Context, resourceGroupName string, configStoreName string) (result ConfigurationStore, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConfigurationStoresClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: configStoreName,
+ Constraints: []validation.Constraint{{Target: "configStoreName", Name: validation.MaxLength, Rule: 50, Chain: nil},
+ {Target: "configStoreName", Name: validation.MinLength, Rule: 5, Chain: nil},
+ {Target: "configStoreName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_-]*$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("appconfiguration.ConfigurationStoresClient", "Get", err.Error())
+ }
+
+ req, err := client.GetPreparer(ctx, resourceGroupName, configStoreName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ConfigurationStoresClient) GetPreparer(ctx context.Context, resourceGroupName string, configStoreName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "configStoreName": autorest.Encode("path", configStoreName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-10-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.AppConfiguration/configurationStores/{configStoreName}", 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 ConfigurationStoresClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ConfigurationStoresClient) GetResponder(resp *http.Response) (result ConfigurationStore, 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 lists the configuration stores for a given subscription.
+// Parameters:
+// skipToken - a skip token is used to continue retrieving items after an operation returns a partial result.
+// If a previous response contains a nextLink element, the value of the nextLink element will include a
+// skipToken parameter that specifies a starting point to use for subsequent calls.
+func (client ConfigurationStoresClient) List(ctx context.Context, skipToken string) (result ConfigurationStoreListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConfigurationStoresClient.List")
+ defer func() {
+ sc := -1
+ if result.cslr.Response.Response != nil {
+ sc = result.cslr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.cslr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.cslr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ConfigurationStoresClient) ListPreparer(ctx context.Context, skipToken string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/configurationStores", 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 ConfigurationStoresClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ConfigurationStoresClient) ListResponder(resp *http.Response) (result ConfigurationStoreListResult, 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 ConfigurationStoresClient) listNextResults(ctx context.Context, lastResults ConfigurationStoreListResult) (result ConfigurationStoreListResult, err error) {
+ req, err := lastResults.configurationStoreListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "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, "appconfiguration.ConfigurationStoresClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ConfigurationStoresClient) ListComplete(ctx context.Context, skipToken string) (result ConfigurationStoreListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConfigurationStoresClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, skipToken)
+ return
+}
+
+// ListByResourceGroup lists the configuration stores for a given resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group to which the container registry belongs.
+// skipToken - a skip token is used to continue retrieving items after an operation returns a partial result.
+// If a previous response contains a nextLink element, the value of the nextLink element will include a
+// skipToken parameter that specifies a starting point to use for subsequent calls.
+func (client ConfigurationStoresClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, skipToken string) (result ConfigurationStoreListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConfigurationStoresClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.cslr.Response.Response != nil {
+ sc = result.cslr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByResourceGroupNextResults
+ req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.cslr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.cslr, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client ConfigurationStoresClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, skipToken string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client ConfigurationStoresClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client ConfigurationStoresClient) ListByResourceGroupResponder(resp *http.Response) (result ConfigurationStoreListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByResourceGroupNextResults retrieves the next set of results, if any.
+func (client ConfigurationStoresClient) listByResourceGroupNextResults(ctx context.Context, lastResults ConfigurationStoreListResult) (result ConfigurationStoreListResult, err error) {
+ req, err := lastResults.configurationStoreListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ConfigurationStoresClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, skipToken string) (result ConfigurationStoreListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConfigurationStoresClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByResourceGroup(ctx, resourceGroupName, skipToken)
+ return
+}
+
+// ListKeys lists the access key for the specified configuration store.
+// Parameters:
+// resourceGroupName - the name of the resource group to which the container registry belongs.
+// configStoreName - the name of the configuration store.
+// skipToken - a skip token is used to continue retrieving items after an operation returns a partial result.
+// If a previous response contains a nextLink element, the value of the nextLink element will include a
+// skipToken parameter that specifies a starting point to use for subsequent calls.
+func (client ConfigurationStoresClient) ListKeys(ctx context.Context, resourceGroupName string, configStoreName string, skipToken string) (result APIKeyListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConfigurationStoresClient.ListKeys")
+ defer func() {
+ sc := -1
+ if result.aklr.Response.Response != nil {
+ sc = result.aklr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: configStoreName,
+ Constraints: []validation.Constraint{{Target: "configStoreName", Name: validation.MaxLength, Rule: 50, Chain: nil},
+ {Target: "configStoreName", Name: validation.MinLength, Rule: 5, Chain: nil},
+ {Target: "configStoreName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_-]*$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("appconfiguration.ConfigurationStoresClient", "ListKeys", err.Error())
+ }
+
+ result.fn = client.listKeysNextResults
+ req, err := client.ListKeysPreparer(ctx, resourceGroupName, configStoreName, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListKeys", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListKeysSender(req)
+ if err != nil {
+ result.aklr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListKeys", resp, "Failure sending request")
+ return
+ }
+
+ result.aklr, err = client.ListKeysResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListKeys", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListKeysPreparer prepares the ListKeys request.
+func (client ConfigurationStoresClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, configStoreName string, skipToken string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "configStoreName": autorest.Encode("path", configStoreName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/ListKeys", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListKeysSender sends the ListKeys request. The method will close the
+// http.Response Body if it receives an error.
+func (client ConfigurationStoresClient) ListKeysSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListKeysResponder handles the response to the ListKeys request. The method always
+// closes the http.Response Body.
+func (client ConfigurationStoresClient) ListKeysResponder(resp *http.Response) (result APIKeyListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listKeysNextResults retrieves the next set of results, if any.
+func (client ConfigurationStoresClient) listKeysNextResults(ctx context.Context, lastResults APIKeyListResult) (result APIKeyListResult, err error) {
+ req, err := lastResults.aPIKeyListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listKeysNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListKeysSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listKeysNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListKeysResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "listKeysNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListKeysComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ConfigurationStoresClient) ListKeysComplete(ctx context.Context, resourceGroupName string, configStoreName string, skipToken string) (result APIKeyListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConfigurationStoresClient.ListKeys")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListKeys(ctx, resourceGroupName, configStoreName, skipToken)
+ return
+}
+
+// ListKeyValue lists a configuration store key-value.
+// Parameters:
+// resourceGroupName - the name of the resource group to which the container registry belongs.
+// configStoreName - the name of the configuration store.
+// listKeyValueParameters - the parameters for retrieving a key-value.
+func (client ConfigurationStoresClient) ListKeyValue(ctx context.Context, resourceGroupName string, configStoreName string, listKeyValueParameters ListKeyValueParameters) (result KeyValue, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConfigurationStoresClient.ListKeyValue")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: configStoreName,
+ Constraints: []validation.Constraint{{Target: "configStoreName", Name: validation.MaxLength, Rule: 50, Chain: nil},
+ {Target: "configStoreName", Name: validation.MinLength, Rule: 5, Chain: nil},
+ {Target: "configStoreName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_-]*$`, Chain: nil}}},
+ {TargetValue: listKeyValueParameters,
+ Constraints: []validation.Constraint{{Target: "listKeyValueParameters.Key", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("appconfiguration.ConfigurationStoresClient", "ListKeyValue", err.Error())
+ }
+
+ req, err := client.ListKeyValuePreparer(ctx, resourceGroupName, configStoreName, listKeyValueParameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListKeyValue", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListKeyValueSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListKeyValue", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListKeyValueResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "ListKeyValue", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListKeyValuePreparer prepares the ListKeyValue request.
+func (client ConfigurationStoresClient) ListKeyValuePreparer(ctx context.Context, resourceGroupName string, configStoreName string, listKeyValueParameters ListKeyValueParameters) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "configStoreName": autorest.Encode("path", configStoreName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-10-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("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeyValue", pathParameters),
+ autorest.WithJSON(listKeyValueParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListKeyValueSender sends the ListKeyValue request. The method will close the
+// http.Response Body if it receives an error.
+func (client ConfigurationStoresClient) ListKeyValueSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListKeyValueResponder handles the response to the ListKeyValue request. The method always
+// closes the http.Response Body.
+func (client ConfigurationStoresClient) ListKeyValueResponder(resp *http.Response) (result KeyValue, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// RegenerateKey regenerates an access key for the specified configuration store.
+// Parameters:
+// resourceGroupName - the name of the resource group to which the container registry belongs.
+// configStoreName - the name of the configuration store.
+// regenerateKeyParameters - the parameters for regenerating an access key.
+func (client ConfigurationStoresClient) RegenerateKey(ctx context.Context, resourceGroupName string, configStoreName string, regenerateKeyParameters RegenerateKeyParameters) (result APIKey, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConfigurationStoresClient.RegenerateKey")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: configStoreName,
+ Constraints: []validation.Constraint{{Target: "configStoreName", Name: validation.MaxLength, Rule: 50, Chain: nil},
+ {Target: "configStoreName", Name: validation.MinLength, Rule: 5, Chain: nil},
+ {Target: "configStoreName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_-]*$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("appconfiguration.ConfigurationStoresClient", "RegenerateKey", err.Error())
+ }
+
+ req, err := client.RegenerateKeyPreparer(ctx, resourceGroupName, configStoreName, regenerateKeyParameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "RegenerateKey", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.RegenerateKeySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "RegenerateKey", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.RegenerateKeyResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "RegenerateKey", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// RegenerateKeyPreparer prepares the RegenerateKey request.
+func (client ConfigurationStoresClient) RegenerateKeyPreparer(ctx context.Context, resourceGroupName string, configStoreName string, regenerateKeyParameters RegenerateKeyParameters) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "configStoreName": autorest.Encode("path", configStoreName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-10-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("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/RegenerateKey", pathParameters),
+ autorest.WithJSON(regenerateKeyParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// RegenerateKeySender sends the RegenerateKey request. The method will close the
+// http.Response Body if it receives an error.
+func (client ConfigurationStoresClient) RegenerateKeySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// RegenerateKeyResponder handles the response to the RegenerateKey request. The method always
+// closes the http.Response Body.
+func (client ConfigurationStoresClient) RegenerateKeyResponder(resp *http.Response) (result APIKey, 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 configuration store with the specified parameters.
+// Parameters:
+// resourceGroupName - the name of the resource group to which the container registry belongs.
+// configStoreName - the name of the configuration store.
+// configStoreUpdateParameters - the parameters for updating a configuration store.
+func (client ConfigurationStoresClient) Update(ctx context.Context, resourceGroupName string, configStoreName string, configStoreUpdateParameters ConfigurationStoreUpdateParameters) (result ConfigurationStoresUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConfigurationStoresClient.Update")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: configStoreName,
+ Constraints: []validation.Constraint{{Target: "configStoreName", Name: validation.MaxLength, Rule: 50, Chain: nil},
+ {Target: "configStoreName", Name: validation.MinLength, Rule: 5, Chain: nil},
+ {Target: "configStoreName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9_-]*$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("appconfiguration.ConfigurationStoresClient", "Update", err.Error())
+ }
+
+ req, err := client.UpdatePreparer(ctx, resourceGroupName, configStoreName, configStoreUpdateParameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "Update", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.UpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresClient", "Update", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// UpdatePreparer prepares the Update request.
+func (client ConfigurationStoresClient) UpdatePreparer(ctx context.Context, resourceGroupName string, configStoreName string, configStoreUpdateParameters ConfigurationStoreUpdateParameters) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "configStoreName": autorest.Encode("path", configStoreName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-10-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.AppConfiguration/configurationStores/{configStoreName}", pathParameters),
+ autorest.WithJSON(configStoreUpdateParameters),
+ 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 ConfigurationStoresClient) UpdateSender(req *http.Request) (future ConfigurationStoresUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// UpdateResponder handles the response to the Update request. The method always
+// closes the http.Response Body.
+func (client ConfigurationStoresClient) UpdateResponder(resp *http.Response) (result ConfigurationStore, 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
+}
diff --git a/services/appconfiguration/mgmt/2019-10-01/appconfiguration/models.go b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/models.go
new file mode 100644
index 000000000000..66ce6f2bd531
--- /dev/null
+++ b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/models.go
@@ -0,0 +1,937 @@
+package appconfiguration
+
+// 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"
+ "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/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// The package's fully qualified name.
+const fqdn = "github.com/Azure/azure-sdk-for-go/services/appconfiguration/mgmt/2019-10-01/appconfiguration"
+
+// IdentityType enumerates the values for identity type.
+type IdentityType string
+
+const (
+ // None ...
+ None IdentityType = "None"
+ // SystemAssigned ...
+ SystemAssigned IdentityType = "SystemAssigned"
+ // SystemAssignedUserAssigned ...
+ SystemAssignedUserAssigned IdentityType = "SystemAssigned, UserAssigned"
+ // UserAssigned ...
+ UserAssigned IdentityType = "UserAssigned"
+)
+
+// PossibleIdentityTypeValues returns an array of possible values for the IdentityType const type.
+func PossibleIdentityTypeValues() []IdentityType {
+ return []IdentityType{None, SystemAssigned, SystemAssignedUserAssigned, UserAssigned}
+}
+
+// ProvisioningState enumerates the values for provisioning state.
+type ProvisioningState string
+
+const (
+ // Canceled ...
+ Canceled ProvisioningState = "Canceled"
+ // Creating ...
+ Creating ProvisioningState = "Creating"
+ // Deleting ...
+ Deleting ProvisioningState = "Deleting"
+ // Failed ...
+ Failed ProvisioningState = "Failed"
+ // Succeeded ...
+ Succeeded ProvisioningState = "Succeeded"
+ // Updating ...
+ Updating ProvisioningState = "Updating"
+)
+
+// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
+func PossibleProvisioningStateValues() []ProvisioningState {
+ return []ProvisioningState{Canceled, Creating, Deleting, Failed, Succeeded, Updating}
+}
+
+// APIKey an API key used for authenticating with a configuration store endpoint.
+type APIKey struct {
+ autorest.Response `json:"-"`
+ // ID - READ-ONLY; The key ID.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; A name for the key describing its usage.
+ Name *string `json:"name,omitempty"`
+ // Value - READ-ONLY; The value of the key that is used for authentication purposes.
+ Value *string `json:"value,omitempty"`
+ // ConnectionString - READ-ONLY; A connection string that can be used by supporting clients for authentication.
+ ConnectionString *string `json:"connectionString,omitempty"`
+ // LastModified - READ-ONLY; The last time any of the key's properties were modified.
+ LastModified *date.Time `json:"lastModified,omitempty"`
+ // ReadOnly - READ-ONLY; Whether this key can only be used for read operations.
+ ReadOnly *bool `json:"readOnly,omitempty"`
+}
+
+// APIKeyListResult the result of a request to list API keys.
+type APIKeyListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The collection value.
+ Value *[]APIKey `json:"value,omitempty"`
+ // NextLink - The URI that can be used to request the next set of paged results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// APIKeyListResultIterator provides access to a complete listing of APIKey values.
+type APIKeyListResultIterator struct {
+ i int
+ page APIKeyListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *APIKeyListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/APIKeyListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *APIKeyListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter APIKeyListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter APIKeyListResultIterator) Response() APIKeyListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter APIKeyListResultIterator) Value() APIKey {
+ if !iter.page.NotDone() {
+ return APIKey{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the APIKeyListResultIterator type.
+func NewAPIKeyListResultIterator(page APIKeyListResultPage) APIKeyListResultIterator {
+ return APIKeyListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (aklr APIKeyListResult) IsEmpty() bool {
+ return aklr.Value == nil || len(*aklr.Value) == 0
+}
+
+// aPIKeyListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (aklr APIKeyListResult) aPIKeyListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if aklr.NextLink == nil || len(to.String(aklr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(aklr.NextLink)))
+}
+
+// APIKeyListResultPage contains a page of APIKey values.
+type APIKeyListResultPage struct {
+ fn func(context.Context, APIKeyListResult) (APIKeyListResult, error)
+ aklr APIKeyListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *APIKeyListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/APIKeyListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.aklr)
+ if err != nil {
+ return err
+ }
+ page.aklr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *APIKeyListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page APIKeyListResultPage) NotDone() bool {
+ return !page.aklr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page APIKeyListResultPage) Response() APIKeyListResult {
+ return page.aklr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page APIKeyListResultPage) Values() []APIKey {
+ if page.aklr.IsEmpty() {
+ return nil
+ }
+ return *page.aklr.Value
+}
+
+// Creates a new instance of the APIKeyListResultPage type.
+func NewAPIKeyListResultPage(getNextPage func(context.Context, APIKeyListResult) (APIKeyListResult, error)) APIKeyListResultPage {
+ return APIKeyListResultPage{fn: getNextPage}
+}
+
+// CheckNameAvailabilityParameters parameters used for checking whether a resource name is available.
+type CheckNameAvailabilityParameters struct {
+ // Name - The name to check for availability.
+ Name *string `json:"name,omitempty"`
+ // Type - The resource type to check for name availability.
+ Type *string `json:"type,omitempty"`
+}
+
+// ConfigurationStore the configuration store along with all resource properties. The Configuration Store
+// will have all information to begin utilizing it.
+type ConfigurationStore struct {
+ autorest.Response `json:"-"`
+ // Identity - The managed identity information, if configured.
+ Identity *ResourceIdentity `json:"identity,omitempty"`
+ // ConfigurationStoreProperties - The properties of a configuration store.
+ *ConfigurationStoreProperties `json:"properties,omitempty"`
+ // Sku - The sku of the configuration store.
+ Sku *Sku `json:"sku,omitempty"`
+ // ID - READ-ONLY; The resource ID.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; The name of the resource.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; The type of the resource.
+ Type *string `json:"type,omitempty"`
+ // Location - The location of the resource. This cannot be changed after the resource is created.
+ Location *string `json:"location,omitempty"`
+ // Tags - The tags of the resource.
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for ConfigurationStore.
+func (cs ConfigurationStore) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if cs.Identity != nil {
+ objectMap["identity"] = cs.Identity
+ }
+ if cs.ConfigurationStoreProperties != nil {
+ objectMap["properties"] = cs.ConfigurationStoreProperties
+ }
+ if cs.Sku != nil {
+ objectMap["sku"] = cs.Sku
+ }
+ if cs.Location != nil {
+ objectMap["location"] = cs.Location
+ }
+ if cs.Tags != nil {
+ objectMap["tags"] = cs.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ConfigurationStore struct.
+func (cs *ConfigurationStore) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "identity":
+ if v != nil {
+ var identity ResourceIdentity
+ err = json.Unmarshal(*v, &identity)
+ if err != nil {
+ return err
+ }
+ cs.Identity = &identity
+ }
+ case "properties":
+ if v != nil {
+ var configurationStoreProperties ConfigurationStoreProperties
+ err = json.Unmarshal(*v, &configurationStoreProperties)
+ if err != nil {
+ return err
+ }
+ cs.ConfigurationStoreProperties = &configurationStoreProperties
+ }
+ case "sku":
+ if v != nil {
+ var sku Sku
+ err = json.Unmarshal(*v, &sku)
+ if err != nil {
+ return err
+ }
+ cs.Sku = &sku
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ cs.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ cs.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ cs.Type = &typeVar
+ }
+ case "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ cs.Location = &location
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ cs.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// ConfigurationStoreListResult the result of a request to list configuration stores.
+type ConfigurationStoreListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The collection value.
+ Value *[]ConfigurationStore `json:"value,omitempty"`
+ // NextLink - The URI that can be used to request the next set of paged results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// ConfigurationStoreListResultIterator provides access to a complete listing of ConfigurationStore values.
+type ConfigurationStoreListResultIterator struct {
+ i int
+ page ConfigurationStoreListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *ConfigurationStoreListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConfigurationStoreListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *ConfigurationStoreListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter ConfigurationStoreListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter ConfigurationStoreListResultIterator) Response() ConfigurationStoreListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter ConfigurationStoreListResultIterator) Value() ConfigurationStore {
+ if !iter.page.NotDone() {
+ return ConfigurationStore{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the ConfigurationStoreListResultIterator type.
+func NewConfigurationStoreListResultIterator(page ConfigurationStoreListResultPage) ConfigurationStoreListResultIterator {
+ return ConfigurationStoreListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (cslr ConfigurationStoreListResult) IsEmpty() bool {
+ return cslr.Value == nil || len(*cslr.Value) == 0
+}
+
+// configurationStoreListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (cslr ConfigurationStoreListResult) configurationStoreListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if cslr.NextLink == nil || len(to.String(cslr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(cslr.NextLink)))
+}
+
+// ConfigurationStoreListResultPage contains a page of ConfigurationStore values.
+type ConfigurationStoreListResultPage struct {
+ fn func(context.Context, ConfigurationStoreListResult) (ConfigurationStoreListResult, error)
+ cslr ConfigurationStoreListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *ConfigurationStoreListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConfigurationStoreListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.cslr)
+ if err != nil {
+ return err
+ }
+ page.cslr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *ConfigurationStoreListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page ConfigurationStoreListResultPage) NotDone() bool {
+ return !page.cslr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page ConfigurationStoreListResultPage) Response() ConfigurationStoreListResult {
+ return page.cslr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page ConfigurationStoreListResultPage) Values() []ConfigurationStore {
+ if page.cslr.IsEmpty() {
+ return nil
+ }
+ return *page.cslr.Value
+}
+
+// Creates a new instance of the ConfigurationStoreListResultPage type.
+func NewConfigurationStoreListResultPage(getNextPage func(context.Context, ConfigurationStoreListResult) (ConfigurationStoreListResult, error)) ConfigurationStoreListResultPage {
+ return ConfigurationStoreListResultPage{fn: getNextPage}
+}
+
+// ConfigurationStoreProperties the properties of a configuration store.
+type ConfigurationStoreProperties struct {
+ // ProvisioningState - READ-ONLY; The provisioning state of the configuration store. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+ // CreationDate - READ-ONLY; The creation date of configuration store.
+ CreationDate *date.Time `json:"creationDate,omitempty"`
+ // Endpoint - READ-ONLY; The DNS endpoint where the configuration store API will be available.
+ Endpoint *string `json:"endpoint,omitempty"`
+}
+
+// ConfigurationStoresCreateFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ConfigurationStoresCreateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ConfigurationStoresCreateFuture) Result(client ConfigurationStoresClient) (cs ConfigurationStore, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresCreateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("appconfiguration.ConfigurationStoresCreateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if cs.Response.Response, err = future.GetResult(sender); err == nil && cs.Response.Response.StatusCode != http.StatusNoContent {
+ cs, err = client.CreateResponder(cs.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresCreateFuture", "Result", cs.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// ConfigurationStoresDeleteFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ConfigurationStoresDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ConfigurationStoresDeleteFuture) Result(client ConfigurationStoresClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("appconfiguration.ConfigurationStoresDeleteFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// ConfigurationStoresUpdateFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ConfigurationStoresUpdateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ConfigurationStoresUpdateFuture) Result(client ConfigurationStoresClient) (cs ConfigurationStore, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresUpdateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("appconfiguration.ConfigurationStoresUpdateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if cs.Response.Response, err = future.GetResult(sender); err == nil && cs.Response.Response.StatusCode != http.StatusNoContent {
+ cs, err = client.UpdateResponder(cs.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.ConfigurationStoresUpdateFuture", "Result", cs.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// ConfigurationStoreUpdateParameters the parameters for updating a configuration store.
+type ConfigurationStoreUpdateParameters struct {
+ // Properties - The properties for updating a configuration store.
+ Properties interface{} `json:"properties,omitempty"`
+ // Identity - The managed identity information for the configuration store.
+ Identity *ResourceIdentity `json:"identity,omitempty"`
+ // Sku - The SKU of the configuration store.
+ Sku *Sku `json:"sku,omitempty"`
+ // Tags - The ARM resource tags.
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for ConfigurationStoreUpdateParameters.
+func (csup ConfigurationStoreUpdateParameters) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if csup.Properties != nil {
+ objectMap["properties"] = csup.Properties
+ }
+ if csup.Identity != nil {
+ objectMap["identity"] = csup.Identity
+ }
+ if csup.Sku != nil {
+ objectMap["sku"] = csup.Sku
+ }
+ if csup.Tags != nil {
+ objectMap["tags"] = csup.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// Error appConfiguration error object.
+type Error struct {
+ // Code - Error code.
+ Code *string `json:"code,omitempty"`
+ // Message - Error message.
+ Message *string `json:"message,omitempty"`
+}
+
+// KeyValue the result of a request to retrieve a key-value from the specified configuration store.
+type KeyValue struct {
+ autorest.Response `json:"-"`
+ // Key - READ-ONLY; The primary identifier of a key-value.
+ // The key is used in unison with the label to uniquely identify a key-value.
+ Key *string `json:"key,omitempty"`
+ // Label - READ-ONLY; A value used to group key-values.
+ // The label is used in unison with the key to uniquely identify a key-value.
+ Label *string `json:"label,omitempty"`
+ // Value - READ-ONLY; The value of the key-value.
+ Value *string `json:"value,omitempty"`
+ // ContentType - READ-ONLY; The content type of the key-value's value.
+ // Providing a proper content-type can enable transformations of values when they are retrieved by applications.
+ ContentType *string `json:"contentType,omitempty"`
+ // ETag - READ-ONLY; An ETag indicating the state of a key-value within a configuration store.
+ ETag *string `json:"eTag,omitempty"`
+ // LastModified - READ-ONLY; The last time a modifying operation was performed on the given key-value.
+ LastModified *date.Time `json:"lastModified,omitempty"`
+ // Locked - READ-ONLY; A value indicating whether the key-value is locked.
+ // A locked key-value may not be modified until it is unlocked.
+ Locked *bool `json:"locked,omitempty"`
+ // Tags - READ-ONLY; A dictionary of tags that can help identify what a key-value may be applicable for.
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for KeyValue.
+func (kv KeyValue) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ return json.Marshal(objectMap)
+}
+
+// ListKeyValueParameters the parameters used to list a configuration store key-value
+type ListKeyValueParameters struct {
+ // Key - The key to retrieve.
+ Key *string `json:"key,omitempty"`
+ // Label - The label of the key.
+ Label *string `json:"label,omitempty"`
+}
+
+// NameAvailabilityStatus the result of a request to check the availability of a resource name.
+type NameAvailabilityStatus struct {
+ autorest.Response `json:"-"`
+ // NameAvailable - READ-ONLY; The value indicating whether the resource name is available.
+ NameAvailable *bool `json:"nameAvailable,omitempty"`
+ // Message - READ-ONLY; If any, the error message that provides more detail for the reason that the name is not available.
+ Message *string `json:"message,omitempty"`
+ // Reason - READ-ONLY; If any, the reason that the name is not available.
+ Reason *string `json:"reason,omitempty"`
+}
+
+// OperationDefinition the definition of a configuration store operation.
+type OperationDefinition struct {
+ // Name - Operation name: {provider}/{resource}/{operation}.
+ Name *string `json:"name,omitempty"`
+ // Display - The display information for the configuration store operation.
+ Display *OperationDefinitionDisplay `json:"display,omitempty"`
+}
+
+// OperationDefinitionDisplay the display information for a configuration store operation.
+type OperationDefinitionDisplay struct {
+ // Provider - READ-ONLY; The resource provider name: Microsoft App Configuration."
+ Provider *string `json:"provider,omitempty"`
+ // Resource - The resource on which the operation is performed.
+ Resource *string `json:"resource,omitempty"`
+ // Operation - The operation that users can perform.
+ Operation *string `json:"operation,omitempty"`
+ // Description - The description for the operation.
+ Description *string `json:"description,omitempty"`
+}
+
+// OperationDefinitionListResult the result of a request to list configuration store operations.
+type OperationDefinitionListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The collection value.
+ Value *[]OperationDefinition `json:"value,omitempty"`
+ // NextLink - The URI that can be used to request the next set of paged results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// OperationDefinitionListResultIterator provides access to a complete listing of OperationDefinition
+// values.
+type OperationDefinitionListResultIterator struct {
+ i int
+ page OperationDefinitionListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *OperationDefinitionListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationDefinitionListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *OperationDefinitionListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter OperationDefinitionListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter OperationDefinitionListResultIterator) Response() OperationDefinitionListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter OperationDefinitionListResultIterator) Value() OperationDefinition {
+ if !iter.page.NotDone() {
+ return OperationDefinition{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the OperationDefinitionListResultIterator type.
+func NewOperationDefinitionListResultIterator(page OperationDefinitionListResultPage) OperationDefinitionListResultIterator {
+ return OperationDefinitionListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (odlr OperationDefinitionListResult) IsEmpty() bool {
+ return odlr.Value == nil || len(*odlr.Value) == 0
+}
+
+// operationDefinitionListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (odlr OperationDefinitionListResult) operationDefinitionListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if odlr.NextLink == nil || len(to.String(odlr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(odlr.NextLink)))
+}
+
+// OperationDefinitionListResultPage contains a page of OperationDefinition values.
+type OperationDefinitionListResultPage struct {
+ fn func(context.Context, OperationDefinitionListResult) (OperationDefinitionListResult, error)
+ odlr OperationDefinitionListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *OperationDefinitionListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationDefinitionListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.odlr)
+ if err != nil {
+ return err
+ }
+ page.odlr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *OperationDefinitionListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page OperationDefinitionListResultPage) NotDone() bool {
+ return !page.odlr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page OperationDefinitionListResultPage) Response() OperationDefinitionListResult {
+ return page.odlr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page OperationDefinitionListResultPage) Values() []OperationDefinition {
+ if page.odlr.IsEmpty() {
+ return nil
+ }
+ return *page.odlr.Value
+}
+
+// Creates a new instance of the OperationDefinitionListResultPage type.
+func NewOperationDefinitionListResultPage(getNextPage func(context.Context, OperationDefinitionListResult) (OperationDefinitionListResult, error)) OperationDefinitionListResultPage {
+ return OperationDefinitionListResultPage{fn: getNextPage}
+}
+
+// RegenerateKeyParameters the parameters used to regenerate an API key.
+type RegenerateKeyParameters struct {
+ // ID - The id of the key to regenerate.
+ ID *string `json:"id,omitempty"`
+}
+
+// Resource an Azure resource.
+type Resource struct {
+ // ID - READ-ONLY; The resource ID.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; The name of the resource.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; The type of the resource.
+ Type *string `json:"type,omitempty"`
+ // Location - The location of the resource. This cannot be changed after the resource is created.
+ Location *string `json:"location,omitempty"`
+ // Tags - The tags of the resource.
+ 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.Location != nil {
+ objectMap["location"] = r.Location
+ }
+ if r.Tags != nil {
+ objectMap["tags"] = r.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// ResourceIdentity ...
+type ResourceIdentity struct {
+ // Type - The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identities. Possible values include: 'None', 'SystemAssigned', 'UserAssigned', 'SystemAssignedUserAssigned'
+ Type IdentityType `json:"type,omitempty"`
+ // UserAssignedIdentities - The list of user-assigned identities associated with the resource. The user-assigned identity dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+ UserAssignedIdentities map[string]*UserIdentity `json:"userAssignedIdentities"`
+ // PrincipalID - READ-ONLY; The principal id of the identity. This property will only be provided for a system-assigned identity.
+ PrincipalID *string `json:"principalId,omitempty"`
+ // TenantID - READ-ONLY; The tenant id associated with the resource's identity. This property will only be provided for a system-assigned identity.
+ TenantID *string `json:"tenantId,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ResourceIdentity.
+func (ri ResourceIdentity) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if ri.Type != "" {
+ objectMap["type"] = ri.Type
+ }
+ if ri.UserAssignedIdentities != nil {
+ objectMap["userAssignedIdentities"] = ri.UserAssignedIdentities
+ }
+ return json.Marshal(objectMap)
+}
+
+// Sku describes a configuration store SKU.
+type Sku struct {
+ // Name - The SKU name of the configuration store.
+ Name *string `json:"name,omitempty"`
+}
+
+// UserIdentity ...
+type UserIdentity struct {
+ // PrincipalID - READ-ONLY; The principal ID of the user-assigned identity.
+ PrincipalID *string `json:"principalId,omitempty"`
+ // ClientID - READ-ONLY; The client ID of the user-assigned identity.
+ ClientID *string `json:"clientId,omitempty"`
+}
diff --git a/services/appconfiguration/mgmt/2019-10-01/appconfiguration/operations.go b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/operations.go
new file mode 100644
index 000000000000..8840f7d4abdc
--- /dev/null
+++ b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/operations.go
@@ -0,0 +1,238 @@
+package appconfiguration
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// OperationsClient is the client for the Operations methods of the Appconfiguration service.
+type OperationsClient struct {
+ BaseClient
+}
+
+// NewOperationsClient creates an instance of the OperationsClient client.
+func NewOperationsClient(subscriptionID string) OperationsClient {
+ return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
+ return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CheckNameAvailability checks whether the configuration store name is available for use.
+// Parameters:
+// checkNameAvailabilityParameters - the object containing information for the availability request.
+func (client OperationsClient) CheckNameAvailability(ctx context.Context, checkNameAvailabilityParameters CheckNameAvailabilityParameters) (result NameAvailabilityStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.CheckNameAvailability")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: checkNameAvailabilityParameters,
+ Constraints: []validation.Constraint{{Target: "checkNameAvailabilityParameters.Name", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "checkNameAvailabilityParameters.Type", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("appconfiguration.OperationsClient", "CheckNameAvailability", err.Error())
+ }
+
+ req, err := client.CheckNameAvailabilityPreparer(ctx, checkNameAvailabilityParameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "CheckNameAvailability", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CheckNameAvailabilitySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "CheckNameAvailability", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CheckNameAvailabilityResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "CheckNameAvailability", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.
+func (client OperationsClient) CheckNameAvailabilityPreparer(ctx context.Context, checkNameAvailabilityParameters CheckNameAvailabilityParameters) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-10-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("/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/checkNameAvailability", pathParameters),
+ autorest.WithJSON(checkNameAvailabilityParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the
+// http.Response Body if it receives an error.
+func (client OperationsClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always
+// closes the http.Response Body.
+func (client OperationsClient) CheckNameAvailabilityResponder(resp *http.Response) (result NameAvailabilityStatus, 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 lists the operations available from this provider.
+// Parameters:
+// skipToken - a skip token is used to continue retrieving items after an operation returns a partial result.
+// If a previous response contains a nextLink element, the value of the nextLink element will include a
+// skipToken parameter that specifies a starting point to use for subsequent calls.
+func (client OperationsClient) List(ctx context.Context, skipToken string) (result OperationDefinitionListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List")
+ defer func() {
+ sc := -1
+ if result.odlr.Response.Response != nil {
+ sc = result.odlr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.odlr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.odlr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client OperationsClient) ListPreparer(ctx context.Context, skipToken string) (*http.Request, error) {
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPath("/providers/Microsoft.AppConfiguration/operations"),
+ 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 OperationsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client OperationsClient) ListResponder(resp *http.Response) (result OperationDefinitionListResult, 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 OperationsClient) listNextResults(ctx context.Context, lastResults OperationDefinitionListResult) (result OperationDefinitionListResult, err error) {
+ req, err := lastResults.operationDefinitionListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "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, "appconfiguration.OperationsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appconfiguration.OperationsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client OperationsClient) ListComplete(ctx context.Context, skipToken string) (result OperationDefinitionListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, skipToken)
+ return
+}
diff --git a/services/appconfiguration/mgmt/2019-10-01/appconfiguration/version.go b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/version.go
new file mode 100644
index 000000000000..122ce7758d0a
--- /dev/null
+++ b/services/appconfiguration/mgmt/2019-10-01/appconfiguration/version.go
@@ -0,0 +1,30 @@
+package appconfiguration
+
+import "github.com/Azure/azure-sdk-for-go/version"
+
+// 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.
+
+// UserAgent returns the UserAgent string to use when sending http.Requests.
+func UserAgent() string {
+ return "Azure-SDK-For-Go/" + version.Number + " appconfiguration/2019-10-01"
+}
+
+// Version returns the semantic version (see http://semver.org) of the client.
+func Version() string {
+ return version.Number
+}
diff --git a/services/automation/mgmt/2015-10-31/automation/jobschedule.go b/services/automation/mgmt/2015-10-31/automation/jobschedule.go
index 02866fdea827..78fd95ae7562 100644
--- a/services/automation/mgmt/2015-10-31/automation/jobschedule.go
+++ b/services/automation/mgmt/2015-10-31/automation/jobschedule.go
@@ -19,13 +19,12 @@ package automation
import (
"context"
- "net/http"
-
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/validation"
"github.com/Azure/go-autorest/tracing"
"github.com/satori/go.uuid"
+ "net/http"
)
// JobScheduleClient is the automation Client
diff --git a/services/cdn/mgmt/2019-04-15/cdn/models.go b/services/cdn/mgmt/2019-04-15/cdn/models.go
index 504a6cac16d5..30ad3746658e 100644
--- a/services/cdn/mgmt/2019-04-15/cdn/models.go
+++ b/services/cdn/mgmt/2019-04-15/cdn/models.go
@@ -79,6 +79,35 @@ func PossibleCertificateTypeValues() []CertificateType {
return []CertificateType{Dedicated, Shared}
}
+// CookiesOperator enumerates the values for cookies operator.
+type CookiesOperator string
+
+const (
+ // Any ...
+ Any CookiesOperator = "Any"
+ // BeginsWith ...
+ BeginsWith CookiesOperator = "BeginsWith"
+ // Contains ...
+ Contains CookiesOperator = "Contains"
+ // EndsWith ...
+ EndsWith CookiesOperator = "EndsWith"
+ // Equal ...
+ Equal CookiesOperator = "Equal"
+ // GreaterThan ...
+ GreaterThan CookiesOperator = "GreaterThan"
+ // GreaterThanOrEqual ...
+ GreaterThanOrEqual CookiesOperator = "GreaterThanOrEqual"
+ // LessThan ...
+ LessThan CookiesOperator = "LessThan"
+ // LessThanOrEqual ...
+ LessThanOrEqual CookiesOperator = "LessThanOrEqual"
+)
+
+// PossibleCookiesOperatorValues returns an array of possible values for the CookiesOperator const type.
+func PossibleCookiesOperatorValues() []CookiesOperator {
+ return []CookiesOperator{Any, BeginsWith, Contains, EndsWith, Equal, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual}
+}
+
// CustomDomainResourceState enumerates the values for custom domain resource state.
type CustomDomainResourceState string
@@ -220,12 +249,33 @@ func PossibleHeaderActionValues() []HeaderAction {
return []HeaderAction{Append, Delete, Overwrite}
}
+// MinimumTLSVersion enumerates the values for minimum tls version.
+type MinimumTLSVersion string
+
+const (
+ // None ...
+ None MinimumTLSVersion = "None"
+ // TLS10 ...
+ TLS10 MinimumTLSVersion = "TLS10"
+ // TLS12 ...
+ TLS12 MinimumTLSVersion = "TLS12"
+)
+
+// PossibleMinimumTLSVersionValues returns an array of possible values for the MinimumTLSVersion const type.
+func PossibleMinimumTLSVersionValues() []MinimumTLSVersion {
+ return []MinimumTLSVersion{None, TLS10, TLS12}
+}
+
// Name enumerates the values for name.
type Name string
const (
+ // NameCookies ...
+ NameCookies Name = "Cookies"
// NameDeliveryRuleCondition ...
NameDeliveryRuleCondition Name = "DeliveryRuleCondition"
+ // NameHTTPVersion ...
+ NameHTTPVersion Name = "HttpVersion"
// NameIsDevice ...
NameIsDevice Name = "IsDevice"
// NamePostArgs ...
@@ -254,7 +304,7 @@ const (
// PossibleNameValues returns an array of possible values for the Name const type.
func PossibleNameValues() []Name {
- return []Name{NameDeliveryRuleCondition, NameIsDevice, NamePostArgs, NameQueryString, NameRemoteAddress, NameRequestBody, NameRequestHeader, NameRequestMethod, NameRequestScheme, NameRequestURI, NameURLFileExtension, NameURLFileName, NameURLPath}
+ return []Name{NameCookies, NameDeliveryRuleCondition, NameHTTPVersion, NameIsDevice, NamePostArgs, NameQueryString, NameRemoteAddress, NameRequestBody, NameRequestHeader, NameRequestMethod, NameRequestScheme, NameRequestURI, NameURLFileExtension, NameURLFileName, NameURLPath}
}
// NameBasicDeliveryRuleAction enumerates the values for name basic delivery rule action.
@@ -324,29 +374,29 @@ func PossibleOriginResourceStateValues() []OriginResourceState {
type PostArgsOperator string
const (
- // Any ...
- Any PostArgsOperator = "Any"
- // BeginsWith ...
- BeginsWith PostArgsOperator = "BeginsWith"
- // Contains ...
- Contains PostArgsOperator = "Contains"
- // EndsWith ...
- EndsWith PostArgsOperator = "EndsWith"
- // Equal ...
- Equal PostArgsOperator = "Equal"
- // GreaterThan ...
- GreaterThan PostArgsOperator = "GreaterThan"
- // GreaterThanOrEqual ...
- GreaterThanOrEqual PostArgsOperator = "GreaterThanOrEqual"
- // LessThan ...
- LessThan PostArgsOperator = "LessThan"
- // LessThanOrEqual ...
- LessThanOrEqual PostArgsOperator = "LessThanOrEqual"
+ // PostArgsOperatorAny ...
+ PostArgsOperatorAny PostArgsOperator = "Any"
+ // PostArgsOperatorBeginsWith ...
+ PostArgsOperatorBeginsWith PostArgsOperator = "BeginsWith"
+ // PostArgsOperatorContains ...
+ PostArgsOperatorContains PostArgsOperator = "Contains"
+ // PostArgsOperatorEndsWith ...
+ PostArgsOperatorEndsWith PostArgsOperator = "EndsWith"
+ // PostArgsOperatorEqual ...
+ PostArgsOperatorEqual PostArgsOperator = "Equal"
+ // PostArgsOperatorGreaterThan ...
+ PostArgsOperatorGreaterThan PostArgsOperator = "GreaterThan"
+ // PostArgsOperatorGreaterThanOrEqual ...
+ PostArgsOperatorGreaterThanOrEqual PostArgsOperator = "GreaterThanOrEqual"
+ // PostArgsOperatorLessThan ...
+ PostArgsOperatorLessThan PostArgsOperator = "LessThan"
+ // PostArgsOperatorLessThanOrEqual ...
+ PostArgsOperatorLessThanOrEqual PostArgsOperator = "LessThanOrEqual"
)
// PossiblePostArgsOperatorValues returns an array of possible values for the PostArgsOperator const type.
func PossiblePostArgsOperatorValues() []PostArgsOperator {
- return []PostArgsOperator{Any, BeginsWith, Contains, EndsWith, Equal, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual}
+ return []PostArgsOperator{PostArgsOperatorAny, PostArgsOperatorBeginsWith, PostArgsOperatorContains, PostArgsOperatorEndsWith, PostArgsOperatorEqual, PostArgsOperatorGreaterThan, PostArgsOperatorGreaterThanOrEqual, PostArgsOperatorLessThan, PostArgsOperatorLessThanOrEqual}
}
// ProfileResourceState enumerates the values for profile resource state.
@@ -770,6 +820,21 @@ type CidrIPAddress struct {
PrefixLength *int32 `json:"prefixLength,omitempty"`
}
+// CookiesMatchConditionParameters defines the parameters for Cookies match conditions
+type CookiesMatchConditionParameters struct {
+ OdataType *string `json:"@odata.type,omitempty"`
+ // Selector - Name of Cookies to be matched
+ Selector *string `json:"selector,omitempty"`
+ // Operator - Describes operator to be matched. Possible values include: 'Any', 'Equal', 'Contains', 'BeginsWith', 'EndsWith', 'LessThan', 'LessThanOrEqual', 'GreaterThan', 'GreaterThanOrEqual'
+ Operator CookiesOperator `json:"operator,omitempty"`
+ // NegateCondition - Describes if this is negate condition or not
+ NegateCondition *bool `json:"negateCondition,omitempty"`
+ // MatchValues - The match value for the condition of the delivery rule
+ MatchValues *[]string `json:"matchValues,omitempty"`
+ // Transforms - List of transforms
+ Transforms *[]Transform `json:"transforms,omitempty"`
+}
+
// CustomDomain friendly domain name mapping to the endpoint hostname that the customer provides for
// branding purposes, e.g. www.contoso.com.
type CustomDomain struct {
@@ -854,6 +919,8 @@ type BasicCustomDomainHTTPSParameters interface {
type CustomDomainHTTPSParameters struct {
// ProtocolType - Defines the TLS extension protocol that is used for secure delivery. Possible values include: 'ServerNameIndication', 'IPBased'
ProtocolType ProtocolType `json:"protocolType,omitempty"`
+ // MinimumTLSVersion - TLS protocol version that will be used for Https. Possible values include: 'None', 'TLS10', 'TLS12'
+ MinimumTLSVersion MinimumTLSVersion `json:"minimumTlsVersion,omitempty"`
// CertificateSource - Possible values include: 'CertificateSourceCustomDomainHTTPSParameters', 'CertificateSourceCdn', 'CertificateSourceAzureKeyVault'
CertificateSource CertificateSource `json:"certificateSource,omitempty"`
}
@@ -906,6 +973,9 @@ func (cdhp CustomDomainHTTPSParameters) MarshalJSON() ([]byte, error) {
if cdhp.ProtocolType != "" {
objectMap["protocolType"] = cdhp.ProtocolType
}
+ if cdhp.MinimumTLSVersion != "" {
+ objectMap["minimumTlsVersion"] = cdhp.MinimumTLSVersion
+ }
if cdhp.CertificateSource != "" {
objectMap["certificateSource"] = cdhp.CertificateSource
}
@@ -1127,12 +1197,91 @@ type CustomDomainProperties struct {
CustomHTTPSProvisioningState CustomHTTPSProvisioningState `json:"customHttpsProvisioningState,omitempty"`
// CustomHTTPSProvisioningSubstate - READ-ONLY; Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step. Possible values include: 'SubmittingDomainControlValidationRequest', 'PendingDomainControlValidationREquestApproval', 'DomainControlValidationRequestApproved', 'DomainControlValidationRequestRejected', 'DomainControlValidationRequestTimedOut', 'IssuingCertificate', 'DeployingCertificate', 'CertificateDeployed', 'DeletingCertificate', 'CertificateDeleted'
CustomHTTPSProvisioningSubstate CustomHTTPSProvisioningSubstate `json:"customHttpsProvisioningSubstate,omitempty"`
+ // CustomHTTPSParameters - Certificate parameters for securing custom HTTPS
+ CustomHTTPSParameters BasicCustomDomainHTTPSParameters `json:"customHttpsParameters,omitempty"`
// ValidationData - Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in China.
ValidationData *string `json:"validationData,omitempty"`
// ProvisioningState - READ-ONLY; Provisioning status of the custom domain.
ProvisioningState *string `json:"provisioningState,omitempty"`
}
+// UnmarshalJSON is the custom unmarshaler for CustomDomainProperties struct.
+func (cdp *CustomDomainProperties) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "hostName":
+ if v != nil {
+ var hostName string
+ err = json.Unmarshal(*v, &hostName)
+ if err != nil {
+ return err
+ }
+ cdp.HostName = &hostName
+ }
+ case "resourceState":
+ if v != nil {
+ var resourceState CustomDomainResourceState
+ err = json.Unmarshal(*v, &resourceState)
+ if err != nil {
+ return err
+ }
+ cdp.ResourceState = resourceState
+ }
+ case "customHttpsProvisioningState":
+ if v != nil {
+ var customHTTPSProvisioningState CustomHTTPSProvisioningState
+ err = json.Unmarshal(*v, &customHTTPSProvisioningState)
+ if err != nil {
+ return err
+ }
+ cdp.CustomHTTPSProvisioningState = customHTTPSProvisioningState
+ }
+ case "customHttpsProvisioningSubstate":
+ if v != nil {
+ var customHTTPSProvisioningSubstate CustomHTTPSProvisioningSubstate
+ err = json.Unmarshal(*v, &customHTTPSProvisioningSubstate)
+ if err != nil {
+ return err
+ }
+ cdp.CustomHTTPSProvisioningSubstate = customHTTPSProvisioningSubstate
+ }
+ case "customHttpsParameters":
+ if v != nil {
+ customHTTPSParameters, err := unmarshalBasicCustomDomainHTTPSParameters(*v)
+ if err != nil {
+ return err
+ }
+ cdp.CustomHTTPSParameters = customHTTPSParameters
+ }
+ case "validationData":
+ if v != nil {
+ var validationData string
+ err = json.Unmarshal(*v, &validationData)
+ if err != nil {
+ return err
+ }
+ cdp.ValidationData = &validationData
+ }
+ case "provisioningState":
+ if v != nil {
+ var provisioningState string
+ err = json.Unmarshal(*v, &provisioningState)
+ if err != nil {
+ return err
+ }
+ cdp.ProvisioningState = &provisioningState
+ }
+ }
+ }
+
+ return nil
+}
+
// CustomDomainPropertiesParameters the JSON object that contains the properties of the custom domain to
// create.
type CustomDomainPropertiesParameters struct {
@@ -1580,13 +1729,15 @@ type BasicDeliveryRuleCondition interface {
AsDeliveryRuleURLPathCondition() (*DeliveryRuleURLPathCondition, bool)
AsDeliveryRuleURLFileExtensionCondition() (*DeliveryRuleURLFileExtensionCondition, bool)
AsDeliveryRuleURLFileNameCondition() (*DeliveryRuleURLFileNameCondition, bool)
+ AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool)
+ AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool)
AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool)
AsDeliveryRuleCondition() (*DeliveryRuleCondition, bool)
}
// DeliveryRuleCondition a condition for the delivery rule.
type DeliveryRuleCondition struct {
- // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameIsDevice'
+ // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice'
Name Name `json:"name,omitempty"`
}
@@ -1642,6 +1793,14 @@ func unmarshalBasicDeliveryRuleCondition(body []byte) (BasicDeliveryRuleConditio
var drufnc DeliveryRuleURLFileNameCondition
err := json.Unmarshal(body, &drufnc)
return drufnc, err
+ case string(NameHTTPVersion):
+ var drhvc DeliveryRuleHTTPVersionCondition
+ err := json.Unmarshal(body, &drhvc)
+ return drhvc, err
+ case string(NameCookies):
+ var drcc DeliveryRuleCookiesCondition
+ err := json.Unmarshal(body, &drcc)
+ return drcc, err
case string(NameIsDevice):
var dridc DeliveryRuleIsDeviceCondition
err := json.Unmarshal(body, &dridc)
@@ -1736,6 +1895,16 @@ func (drc DeliveryRuleCondition) AsDeliveryRuleURLFileNameCondition() (*Delivery
return nil, false
}
+// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCondition.
+func (drc DeliveryRuleCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCondition.
+func (drc DeliveryRuleCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) {
+ return nil, false
+}
+
// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCondition.
func (drc DeliveryRuleCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) {
return nil, false
@@ -1751,11 +1920,213 @@ func (drc DeliveryRuleCondition) AsBasicDeliveryRuleCondition() (BasicDeliveryRu
return &drc, true
}
+// DeliveryRuleCookiesCondition defines the Cookies condition for the delivery rule.
+type DeliveryRuleCookiesCondition struct {
+ // Parameters - Defines the parameters for the condition.
+ Parameters *CookiesMatchConditionParameters `json:"parameters,omitempty"`
+ // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice'
+ Name Name `json:"name,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for DeliveryRuleCookiesCondition.
+func (drcc DeliveryRuleCookiesCondition) MarshalJSON() ([]byte, error) {
+ drcc.Name = NameCookies
+ objectMap := make(map[string]interface{})
+ if drcc.Parameters != nil {
+ objectMap["parameters"] = drcc.Parameters
+ }
+ if drcc.Name != "" {
+ objectMap["name"] = drcc.Name
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsDeliveryRuleRemoteAddressCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition.
+func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleRemoteAddressCondition() (*DeliveryRuleRemoteAddressCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleRequestMethodCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition.
+func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleRequestMethodCondition() (*DeliveryRuleRequestMethodCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleQueryStringCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition.
+func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleQueryStringCondition() (*DeliveryRuleQueryStringCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRulePostArgsCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition.
+func (drcc DeliveryRuleCookiesCondition) AsDeliveryRulePostArgsCondition() (*DeliveryRulePostArgsCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleRequestURICondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition.
+func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleRequestURICondition() (*DeliveryRuleRequestURICondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleRequestHeaderCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition.
+func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleRequestHeaderCondition() (*DeliveryRuleRequestHeaderCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleRequestBodyCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition.
+func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleRequestBodyCondition() (*DeliveryRuleRequestBodyCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleRequestSchemeCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition.
+func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleRequestSchemeCondition() (*DeliveryRuleRequestSchemeCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleURLPathCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition.
+func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleURLPathCondition() (*DeliveryRuleURLPathCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleURLFileExtensionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition.
+func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleURLFileExtensionCondition() (*DeliveryRuleURLFileExtensionCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleURLFileNameCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition.
+func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleURLFileNameCondition() (*DeliveryRuleURLFileNameCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition.
+func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition.
+func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) {
+ return &drcc, true
+}
+
+// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition.
+func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition.
+func (drcc DeliveryRuleCookiesCondition) AsDeliveryRuleCondition() (*DeliveryRuleCondition, bool) {
+ return nil, false
+}
+
+// AsBasicDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleCookiesCondition.
+func (drcc DeliveryRuleCookiesCondition) AsBasicDeliveryRuleCondition() (BasicDeliveryRuleCondition, bool) {
+ return &drcc, true
+}
+
+// DeliveryRuleHTTPVersionCondition defines the HttpVersion condition for the delivery rule.
+type DeliveryRuleHTTPVersionCondition struct {
+ // Parameters - Defines the parameters for the condition.
+ Parameters *HTTPVersionMatchConditionParameters `json:"parameters,omitempty"`
+ // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice'
+ Name Name `json:"name,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for DeliveryRuleHTTPVersionCondition.
+func (drhvc DeliveryRuleHTTPVersionCondition) MarshalJSON() ([]byte, error) {
+ drhvc.Name = NameHTTPVersion
+ objectMap := make(map[string]interface{})
+ if drhvc.Parameters != nil {
+ objectMap["parameters"] = drhvc.Parameters
+ }
+ if drhvc.Name != "" {
+ objectMap["name"] = drhvc.Name
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsDeliveryRuleRemoteAddressCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition.
+func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleRemoteAddressCondition() (*DeliveryRuleRemoteAddressCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleRequestMethodCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition.
+func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleRequestMethodCondition() (*DeliveryRuleRequestMethodCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleQueryStringCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition.
+func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleQueryStringCondition() (*DeliveryRuleQueryStringCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRulePostArgsCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition.
+func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRulePostArgsCondition() (*DeliveryRulePostArgsCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleRequestURICondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition.
+func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleRequestURICondition() (*DeliveryRuleRequestURICondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleRequestHeaderCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition.
+func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleRequestHeaderCondition() (*DeliveryRuleRequestHeaderCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleRequestBodyCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition.
+func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleRequestBodyCondition() (*DeliveryRuleRequestBodyCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleRequestSchemeCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition.
+func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleRequestSchemeCondition() (*DeliveryRuleRequestSchemeCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleURLPathCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition.
+func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleURLPathCondition() (*DeliveryRuleURLPathCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleURLFileExtensionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition.
+func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleURLFileExtensionCondition() (*DeliveryRuleURLFileExtensionCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleURLFileNameCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition.
+func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleURLFileNameCondition() (*DeliveryRuleURLFileNameCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition.
+func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) {
+ return &drhvc, true
+}
+
+// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition.
+func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition.
+func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition.
+func (drhvc DeliveryRuleHTTPVersionCondition) AsDeliveryRuleCondition() (*DeliveryRuleCondition, bool) {
+ return nil, false
+}
+
+// AsBasicDeliveryRuleCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleHTTPVersionCondition.
+func (drhvc DeliveryRuleHTTPVersionCondition) AsBasicDeliveryRuleCondition() (BasicDeliveryRuleCondition, bool) {
+ return &drhvc, true
+}
+
// DeliveryRuleIsDeviceCondition defines the IsDevice condition for the delivery rule.
type DeliveryRuleIsDeviceCondition struct {
// Parameters - Defines the parameters for the condition.
Parameters *IsDeviceMatchConditionParameters `json:"parameters,omitempty"`
- // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameIsDevice'
+ // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice'
Name Name `json:"name,omitempty"`
}
@@ -1827,6 +2198,16 @@ func (dridc DeliveryRuleIsDeviceCondition) AsDeliveryRuleURLFileNameCondition()
return nil, false
}
+// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleIsDeviceCondition.
+func (dridc DeliveryRuleIsDeviceCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleIsDeviceCondition.
+func (dridc DeliveryRuleIsDeviceCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) {
+ return nil, false
+}
+
// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleIsDeviceCondition.
func (dridc DeliveryRuleIsDeviceCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) {
return &dridc, true
@@ -1846,7 +2227,7 @@ func (dridc DeliveryRuleIsDeviceCondition) AsBasicDeliveryRuleCondition() (Basic
type DeliveryRulePostArgsCondition struct {
// Parameters - Defines the parameters for the condition.
Parameters *PostArgsMatchConditionParameters `json:"parameters,omitempty"`
- // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameIsDevice'
+ // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice'
Name Name `json:"name,omitempty"`
}
@@ -1918,6 +2299,16 @@ func (drpac DeliveryRulePostArgsCondition) AsDeliveryRuleURLFileNameCondition()
return nil, false
}
+// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRulePostArgsCondition.
+func (drpac DeliveryRulePostArgsCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRulePostArgsCondition.
+func (drpac DeliveryRulePostArgsCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) {
+ return nil, false
+}
+
// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRulePostArgsCondition.
func (drpac DeliveryRulePostArgsCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) {
return nil, false
@@ -1937,7 +2328,7 @@ func (drpac DeliveryRulePostArgsCondition) AsBasicDeliveryRuleCondition() (Basic
type DeliveryRuleQueryStringCondition struct {
// Parameters - Defines the parameters for the condition.
Parameters *QueryStringMatchConditionParameters `json:"parameters,omitempty"`
- // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameIsDevice'
+ // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice'
Name Name `json:"name,omitempty"`
}
@@ -2009,6 +2400,16 @@ func (drqsc DeliveryRuleQueryStringCondition) AsDeliveryRuleURLFileNameCondition
return nil, false
}
+// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleQueryStringCondition.
+func (drqsc DeliveryRuleQueryStringCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleQueryStringCondition.
+func (drqsc DeliveryRuleQueryStringCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) {
+ return nil, false
+}
+
// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleQueryStringCondition.
func (drqsc DeliveryRuleQueryStringCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) {
return nil, false
@@ -2028,7 +2429,7 @@ func (drqsc DeliveryRuleQueryStringCondition) AsBasicDeliveryRuleCondition() (Ba
type DeliveryRuleRemoteAddressCondition struct {
// Parameters - Defines the parameters for the condition.
Parameters *RemoteAddressMatchConditionParameters `json:"parameters,omitempty"`
- // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameIsDevice'
+ // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice'
Name Name `json:"name,omitempty"`
}
@@ -2100,6 +2501,16 @@ func (drrac DeliveryRuleRemoteAddressCondition) AsDeliveryRuleURLFileNameConditi
return nil, false
}
+// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRemoteAddressCondition.
+func (drrac DeliveryRuleRemoteAddressCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRemoteAddressCondition.
+func (drrac DeliveryRuleRemoteAddressCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) {
+ return nil, false
+}
+
// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRemoteAddressCondition.
func (drrac DeliveryRuleRemoteAddressCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) {
return nil, false
@@ -2119,7 +2530,7 @@ func (drrac DeliveryRuleRemoteAddressCondition) AsBasicDeliveryRuleCondition() (
type DeliveryRuleRequestBodyCondition struct {
// Parameters - Defines the parameters for the condition.
Parameters *RequestBodyMatchConditionParameters `json:"parameters,omitempty"`
- // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameIsDevice'
+ // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice'
Name Name `json:"name,omitempty"`
}
@@ -2191,6 +2602,16 @@ func (drrbc DeliveryRuleRequestBodyCondition) AsDeliveryRuleURLFileNameCondition
return nil, false
}
+// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestBodyCondition.
+func (drrbc DeliveryRuleRequestBodyCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestBodyCondition.
+func (drrbc DeliveryRuleRequestBodyCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) {
+ return nil, false
+}
+
// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestBodyCondition.
func (drrbc DeliveryRuleRequestBodyCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) {
return nil, false
@@ -2271,7 +2692,7 @@ func (drrha DeliveryRuleRequestHeaderAction) AsBasicDeliveryRuleAction() (BasicD
type DeliveryRuleRequestHeaderCondition struct {
// Parameters - Defines the parameters for the condition.
Parameters *RequestHeaderMatchConditionParameters `json:"parameters,omitempty"`
- // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameIsDevice'
+ // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice'
Name Name `json:"name,omitempty"`
}
@@ -2343,6 +2764,16 @@ func (drrhc DeliveryRuleRequestHeaderCondition) AsDeliveryRuleURLFileNameConditi
return nil, false
}
+// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestHeaderCondition.
+func (drrhc DeliveryRuleRequestHeaderCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestHeaderCondition.
+func (drrhc DeliveryRuleRequestHeaderCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) {
+ return nil, false
+}
+
// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestHeaderCondition.
func (drrhc DeliveryRuleRequestHeaderCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) {
return nil, false
@@ -2362,7 +2793,7 @@ func (drrhc DeliveryRuleRequestHeaderCondition) AsBasicDeliveryRuleCondition() (
type DeliveryRuleRequestMethodCondition struct {
// Parameters - Defines the parameters for the condition.
Parameters *RequestMethodMatchConditionParameters `json:"parameters,omitempty"`
- // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameIsDevice'
+ // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice'
Name Name `json:"name,omitempty"`
}
@@ -2434,6 +2865,16 @@ func (drrmc DeliveryRuleRequestMethodCondition) AsDeliveryRuleURLFileNameConditi
return nil, false
}
+// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestMethodCondition.
+func (drrmc DeliveryRuleRequestMethodCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestMethodCondition.
+func (drrmc DeliveryRuleRequestMethodCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) {
+ return nil, false
+}
+
// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestMethodCondition.
func (drrmc DeliveryRuleRequestMethodCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) {
return nil, false
@@ -2453,7 +2894,7 @@ func (drrmc DeliveryRuleRequestMethodCondition) AsBasicDeliveryRuleCondition() (
type DeliveryRuleRequestSchemeCondition struct {
// Parameters - Defines the parameters for the condition.
Parameters *RequestSchemeMatchConditionParameters `json:"parameters,omitempty"`
- // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameIsDevice'
+ // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice'
Name Name `json:"name,omitempty"`
}
@@ -2525,6 +2966,16 @@ func (drrsc DeliveryRuleRequestSchemeCondition) AsDeliveryRuleURLFileNameConditi
return nil, false
}
+// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestSchemeCondition.
+func (drrsc DeliveryRuleRequestSchemeCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestSchemeCondition.
+func (drrsc DeliveryRuleRequestSchemeCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) {
+ return nil, false
+}
+
// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestSchemeCondition.
func (drrsc DeliveryRuleRequestSchemeCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) {
return nil, false
@@ -2544,7 +2995,7 @@ func (drrsc DeliveryRuleRequestSchemeCondition) AsBasicDeliveryRuleCondition() (
type DeliveryRuleRequestURICondition struct {
// Parameters - Defines the parameters for the condition.
Parameters *RequestURIMatchConditionParameters `json:"parameters,omitempty"`
- // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameIsDevice'
+ // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice'
Name Name `json:"name,omitempty"`
}
@@ -2616,6 +3067,16 @@ func (drruc DeliveryRuleRequestURICondition) AsDeliveryRuleURLFileNameCondition(
return nil, false
}
+// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestURICondition.
+func (drruc DeliveryRuleRequestURICondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestURICondition.
+func (drruc DeliveryRuleRequestURICondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) {
+ return nil, false
+}
+
// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleRequestURICondition.
func (drruc DeliveryRuleRequestURICondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) {
return nil, false
@@ -2696,7 +3157,7 @@ func (drrha DeliveryRuleResponseHeaderAction) AsBasicDeliveryRuleAction() (Basic
type DeliveryRuleURLFileExtensionCondition struct {
// Parameters - Defines the parameters for the condition.
Parameters *URLFileExtensionMatchConditionParameters `json:"parameters,omitempty"`
- // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameIsDevice'
+ // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice'
Name Name `json:"name,omitempty"`
}
@@ -2768,6 +3229,16 @@ func (drufec DeliveryRuleURLFileExtensionCondition) AsDeliveryRuleURLFileNameCon
return nil, false
}
+// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileExtensionCondition.
+func (drufec DeliveryRuleURLFileExtensionCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileExtensionCondition.
+func (drufec DeliveryRuleURLFileExtensionCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) {
+ return nil, false
+}
+
// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileExtensionCondition.
func (drufec DeliveryRuleURLFileExtensionCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) {
return nil, false
@@ -2787,7 +3258,7 @@ func (drufec DeliveryRuleURLFileExtensionCondition) AsBasicDeliveryRuleCondition
type DeliveryRuleURLFileNameCondition struct {
// Parameters - Defines the parameters for the condition.
Parameters *URLFileNameMatchConditionParameters `json:"parameters,omitempty"`
- // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameIsDevice'
+ // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice'
Name Name `json:"name,omitempty"`
}
@@ -2859,6 +3330,16 @@ func (drufnc DeliveryRuleURLFileNameCondition) AsDeliveryRuleURLFileNameConditio
return &drufnc, true
}
+// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileNameCondition.
+func (drufnc DeliveryRuleURLFileNameCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileNameCondition.
+func (drufnc DeliveryRuleURLFileNameCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) {
+ return nil, false
+}
+
// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLFileNameCondition.
func (drufnc DeliveryRuleURLFileNameCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) {
return nil, false
@@ -2878,7 +3359,7 @@ func (drufnc DeliveryRuleURLFileNameCondition) AsBasicDeliveryRuleCondition() (B
type DeliveryRuleURLPathCondition struct {
// Parameters - Defines the parameters for the condition.
Parameters *URLPathMatchConditionParameters `json:"parameters,omitempty"`
- // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameIsDevice'
+ // Name - Possible values include: 'NameDeliveryRuleCondition', 'NameRemoteAddress', 'NameRequestMethod', 'NameQueryString', 'NamePostArgs', 'NameRequestURI', 'NameRequestHeader', 'NameRequestBody', 'NameRequestScheme', 'NameURLPath', 'NameURLFileExtension', 'NameURLFileName', 'NameHTTPVersion', 'NameCookies', 'NameIsDevice'
Name Name `json:"name,omitempty"`
}
@@ -2950,6 +3431,16 @@ func (drupc DeliveryRuleURLPathCondition) AsDeliveryRuleURLFileNameCondition() (
return nil, false
}
+// AsDeliveryRuleHTTPVersionCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLPathCondition.
+func (drupc DeliveryRuleURLPathCondition) AsDeliveryRuleHTTPVersionCondition() (*DeliveryRuleHTTPVersionCondition, bool) {
+ return nil, false
+}
+
+// AsDeliveryRuleCookiesCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLPathCondition.
+func (drupc DeliveryRuleURLPathCondition) AsDeliveryRuleCookiesCondition() (*DeliveryRuleCookiesCondition, bool) {
+ return nil, false
+}
+
// AsDeliveryRuleIsDeviceCondition is the BasicDeliveryRuleCondition implementation for DeliveryRuleURLPathCondition.
func (drupc DeliveryRuleURLPathCondition) AsDeliveryRuleIsDeviceCondition() (*DeliveryRuleIsDeviceCondition, bool) {
return nil, false
@@ -3774,6 +4265,17 @@ type HeaderActionParameters struct {
Value *string `json:"value,omitempty"`
}
+// HTTPVersionMatchConditionParameters defines the parameters for HttpVersion match conditions
+type HTTPVersionMatchConditionParameters struct {
+ OdataType *string `json:"@odata.type,omitempty"`
+ // Operator - Describes operator to be matched
+ Operator *string `json:"operator,omitempty"`
+ // NegateCondition - Describes if this is negate condition or not
+ NegateCondition *bool `json:"negateCondition,omitempty"`
+ // MatchValues - The match value for the condition of the delivery rule
+ MatchValues *[]string `json:"matchValues,omitempty"`
+}
+
// IPAddressGroup CDN Ip address group
type IPAddressGroup struct {
// DeliveryRegion - The delivery region of the ip address group
@@ -3830,6 +4332,8 @@ type ManagedHTTPSParameters struct {
CertificateSourceParameters *CertificateSourceParameters `json:"certificateSourceParameters,omitempty"`
// ProtocolType - Defines the TLS extension protocol that is used for secure delivery. Possible values include: 'ServerNameIndication', 'IPBased'
ProtocolType ProtocolType `json:"protocolType,omitempty"`
+ // MinimumTLSVersion - TLS protocol version that will be used for Https. Possible values include: 'None', 'TLS10', 'TLS12'
+ MinimumTLSVersion MinimumTLSVersion `json:"minimumTlsVersion,omitempty"`
// CertificateSource - Possible values include: 'CertificateSourceCustomDomainHTTPSParameters', 'CertificateSourceCdn', 'CertificateSourceAzureKeyVault'
CertificateSource CertificateSource `json:"certificateSource,omitempty"`
}
@@ -3844,6 +4348,9 @@ func (mhp ManagedHTTPSParameters) MarshalJSON() ([]byte, error) {
if mhp.ProtocolType != "" {
objectMap["protocolType"] = mhp.ProtocolType
}
+ if mhp.MinimumTLSVersion != "" {
+ objectMap["minimumTlsVersion"] = mhp.MinimumTLSVersion
+ }
if mhp.CertificateSource != "" {
objectMap["certificateSource"] = mhp.CertificateSource
}
@@ -4380,7 +4887,7 @@ type PostArgsMatchConditionParameters struct {
OdataType *string `json:"@odata.type,omitempty"`
// Selector - Name of PostArg to be matched
Selector *string `json:"selector,omitempty"`
- // Operator - Describes operator to be matched. Possible values include: 'Any', 'Equal', 'Contains', 'BeginsWith', 'EndsWith', 'LessThan', 'LessThanOrEqual', 'GreaterThan', 'GreaterThanOrEqual'
+ // Operator - Describes operator to be matched. Possible values include: 'PostArgsOperatorAny', 'PostArgsOperatorEqual', 'PostArgsOperatorContains', 'PostArgsOperatorBeginsWith', 'PostArgsOperatorEndsWith', 'PostArgsOperatorLessThan', 'PostArgsOperatorLessThanOrEqual', 'PostArgsOperatorGreaterThan', 'PostArgsOperatorGreaterThanOrEqual'
Operator PostArgsOperator `json:"operator,omitempty"`
// NegateCondition - Describes if this is negate condition or not
NegateCondition *bool `json:"negateCondition,omitempty"`
@@ -5272,6 +5779,8 @@ type UserManagedHTTPSParameters struct {
CertificateSourceParameters *KeyVaultCertificateSourceParameters `json:"certificateSourceParameters,omitempty"`
// ProtocolType - Defines the TLS extension protocol that is used for secure delivery. Possible values include: 'ServerNameIndication', 'IPBased'
ProtocolType ProtocolType `json:"protocolType,omitempty"`
+ // MinimumTLSVersion - TLS protocol version that will be used for Https. Possible values include: 'None', 'TLS10', 'TLS12'
+ MinimumTLSVersion MinimumTLSVersion `json:"minimumTlsVersion,omitempty"`
// CertificateSource - Possible values include: 'CertificateSourceCustomDomainHTTPSParameters', 'CertificateSourceCdn', 'CertificateSourceAzureKeyVault'
CertificateSource CertificateSource `json:"certificateSource,omitempty"`
}
@@ -5286,6 +5795,9 @@ func (umhp UserManagedHTTPSParameters) MarshalJSON() ([]byte, error) {
if umhp.ProtocolType != "" {
objectMap["protocolType"] = umhp.ProtocolType
}
+ if umhp.MinimumTLSVersion != "" {
+ objectMap["minimumTlsVersion"] = umhp.MinimumTLSVersion
+ }
if umhp.CertificateSource != "" {
objectMap["certificateSource"] = umhp.CertificateSource
}
diff --git a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/accounts.go b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/accounts.go
index 3e3eea0f5422..96aa03010e9f 100644
--- a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/accounts.go
+++ b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/accounts.go
@@ -46,8 +46,8 @@ func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) Account
// Parameters:
// resourceGroupName - the name of the resource group within the user's subscription.
// accountName - the name of Cognitive Services account.
-// parameters - the parameters to provide for the created account.
-func (client AccountsClient) Create(ctx context.Context, resourceGroupName string, accountName string, parameters AccountCreateParameters) (result Account, err error) {
+// account - the parameters to provide for the created account.
+func (client AccountsClient) Create(ctx context.Context, resourceGroupName string, accountName string, account Account) (result Account, err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.Create")
defer func() {
@@ -63,16 +63,25 @@ func (client AccountsClient) Create(ctx context.Context, resourceGroupName strin
Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 64, Chain: nil},
{Target: "accountName", Name: validation.MinLength, Rule: 2, Chain: nil},
{Target: "accountName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9][a-zA-Z0-9_.-]*$`, Chain: nil}}},
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.Sku", Name: validation.Null, Rule: true,
- Chain: []validation.Constraint{{Target: "parameters.Sku.Name", Name: validation.Null, Rule: true, Chain: nil}}},
- {Target: "parameters.Kind", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.Location", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.Properties", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ {TargetValue: account,
+ Constraints: []validation.Constraint{{Target: "account.Properties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "account.Properties.APIProperties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "account.Properties.APIProperties.EventHubConnectionString", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "account.Properties.APIProperties.EventHubConnectionString", Name: validation.MaxLength, Rule: 1000, Chain: nil},
+ {Target: "account.Properties.APIProperties.EventHubConnectionString", Name: validation.Pattern, Rule: `^( *)Endpoint=sb://(.*);( *)SharedAccessKeyName=(.*);( *)SharedAccessKey=(.*)$`, Chain: nil},
+ }},
+ {Target: "account.Properties.APIProperties.StorageAccountConnectionString", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "account.Properties.APIProperties.StorageAccountConnectionString", Name: validation.MaxLength, Rule: 1000, Chain: nil},
+ {Target: "account.Properties.APIProperties.StorageAccountConnectionString", Name: validation.Pattern, Rule: `^(( *)DefaultEndpointsProtocol=(http|https)( *);( *))?AccountName=(.*)AccountKey=(.*)EndpointSuffix=(.*)$`, Chain: nil},
+ }},
+ }},
+ }},
+ {Target: "account.Sku", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "account.Sku.Name", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil {
return result, validation.NewError("cognitiveservices.AccountsClient", "Create", err.Error())
}
- req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, parameters)
+ req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, account)
if err != nil {
err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "Create", nil, "Failure preparing request")
return
@@ -94,7 +103,7 @@ func (client AccountsClient) Create(ctx context.Context, resourceGroupName strin
}
// CreatePreparer prepares the Create request.
-func (client AccountsClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, parameters AccountCreateParameters) (*http.Request, error) {
+func (client AccountsClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, account Account) (*http.Request, error) {
pathParameters := map[string]interface{}{
"accountName": autorest.Encode("path", accountName),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
@@ -106,12 +115,16 @@ func (client AccountsClient) CreatePreparer(ctx context.Context, resourceGroupNa
"api-version": APIVersion,
}
+ account.Etag = nil
+ account.ID = nil
+ account.Name = nil
+ account.Type = nil
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPut(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}", pathParameters),
- autorest.WithJSON(parameters),
+ autorest.WithJSON(account),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
@@ -880,8 +893,8 @@ func (client AccountsClient) RegenerateKeyResponder(resp *http.Response) (result
// Parameters:
// resourceGroupName - the name of the resource group within the user's subscription.
// accountName - the name of Cognitive Services account.
-// parameters - the parameters to provide for the created account.
-func (client AccountsClient) Update(ctx context.Context, resourceGroupName string, accountName string, parameters AccountUpdateParameters) (result Account, err error) {
+// account - the parameters to provide for the created account.
+func (client AccountsClient) Update(ctx context.Context, resourceGroupName string, accountName string, account Account) (result Account, err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.Update")
defer func() {
@@ -900,7 +913,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin
return result, validation.NewError("cognitiveservices.AccountsClient", "Update", err.Error())
}
- req, err := client.UpdatePreparer(ctx, resourceGroupName, accountName, parameters)
+ req, err := client.UpdatePreparer(ctx, resourceGroupName, accountName, account)
if err != nil {
err = autorest.NewErrorWithError(err, "cognitiveservices.AccountsClient", "Update", nil, "Failure preparing request")
return
@@ -922,7 +935,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin
}
// UpdatePreparer prepares the Update request.
-func (client AccountsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, parameters AccountUpdateParameters) (*http.Request, error) {
+func (client AccountsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, account Account) (*http.Request, error) {
pathParameters := map[string]interface{}{
"accountName": autorest.Encode("path", accountName),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
@@ -934,12 +947,16 @@ func (client AccountsClient) UpdatePreparer(ctx context.Context, resourceGroupNa
"api-version": APIVersion,
}
+ account.Etag = nil
+ account.ID = nil
+ account.Name = nil
+ account.Type = nil
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPatch(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}", pathParameters),
- autorest.WithJSON(parameters),
+ autorest.WithJSON(account),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
diff --git a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/checkskuavailability.go b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/checkskuavailability.go
deleted file mode 100644
index 4339b18a4838..000000000000
--- a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/checkskuavailability.go
+++ /dev/null
@@ -1,128 +0,0 @@
-package cognitiveservices
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// CheckSkuAvailabilityClient is the cognitive Services Management Client
-type CheckSkuAvailabilityClient struct {
- BaseClient
-}
-
-// NewCheckSkuAvailabilityClient creates an instance of the CheckSkuAvailabilityClient client.
-func NewCheckSkuAvailabilityClient(subscriptionID string) CheckSkuAvailabilityClient {
- return NewCheckSkuAvailabilityClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewCheckSkuAvailabilityClientWithBaseURI creates an instance of the CheckSkuAvailabilityClient client.
-func NewCheckSkuAvailabilityClientWithBaseURI(baseURI string, subscriptionID string) CheckSkuAvailabilityClient {
- return CheckSkuAvailabilityClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// List check available SKUs.
-// Parameters:
-// location - resource location.
-// parameters - check SKU Availability POST body.
-func (client CheckSkuAvailabilityClient) List(ctx context.Context, location string, parameters CheckSkuAvailabilityParameter) (result CheckSkuAvailabilityResultList, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/CheckSkuAvailabilityClient.List")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.Skus", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.Kind", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.Type", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
- return result, validation.NewError("cognitiveservices.CheckSkuAvailabilityClient", "List", err.Error())
- }
-
- req, err := client.ListPreparer(ctx, location, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "cognitiveservices.CheckSkuAvailabilityClient", "List", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "cognitiveservices.CheckSkuAvailabilityClient", "List", resp, "Failure sending request")
- return
- }
-
- result, err = client.ListResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "cognitiveservices.CheckSkuAvailabilityClient", "List", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListPreparer prepares the List request.
-func (client CheckSkuAvailabilityClient) ListPreparer(ctx context.Context, location string, parameters CheckSkuAvailabilityParameter) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "location": autorest.Encode("path", location),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-04-18"
- 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("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/checkSkuAvailability", pathParameters),
- autorest.WithJSON(parameters),
- 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 CheckSkuAvailabilityClient) ListSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListResponder handles the response to the List request. The method always
-// closes the http.Response Body.
-func (client CheckSkuAvailabilityClient) ListResponder(resp *http.Response) (result CheckSkuAvailabilityResultList, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
diff --git a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/client.go b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/client.go
index ba2be90e1e99..49599b4fa9a3 100644
--- a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/client.go
+++ b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/client.go
@@ -137,3 +137,89 @@ func (client BaseClient) CheckDomainAvailabilityResponder(resp *http.Response) (
result.Response = autorest.Response{Response: resp}
return
}
+
+// CheckSkuAvailability check available SKUs.
+// Parameters:
+// location - resource location.
+// parameters - check SKU Availability POST body.
+func (client BaseClient) CheckSkuAvailability(ctx context.Context, location string, parameters CheckSkuAvailabilityParameter) (result CheckSkuAvailabilityResultList, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CheckSkuAvailability")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.Skus", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.Kind", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.Type", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("cognitiveservices.BaseClient", "CheckSkuAvailability", err.Error())
+ }
+
+ req, err := client.CheckSkuAvailabilityPreparer(ctx, location, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "cognitiveservices.BaseClient", "CheckSkuAvailability", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CheckSkuAvailabilitySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "cognitiveservices.BaseClient", "CheckSkuAvailability", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CheckSkuAvailabilityResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "cognitiveservices.BaseClient", "CheckSkuAvailability", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CheckSkuAvailabilityPreparer prepares the CheckSkuAvailability request.
+func (client BaseClient) CheckSkuAvailabilityPreparer(ctx context.Context, location string, parameters CheckSkuAvailabilityParameter) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "location": autorest.Encode("path", location),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2017-04-18"
+ 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("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/checkSkuAvailability", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CheckSkuAvailabilitySender sends the CheckSkuAvailability request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) CheckSkuAvailabilitySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CheckSkuAvailabilityResponder handles the response to the CheckSkuAvailability request. The method always
+// closes the http.Response Body.
+func (client BaseClient) CheckSkuAvailabilityResponder(resp *http.Response) (result CheckSkuAvailabilityResultList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/cognitiveservicesapi/interfaces.go b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/cognitiveservicesapi/interfaces.go
index 41455e9a1424..c8748ef2db14 100644
--- a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/cognitiveservicesapi/interfaces.go
+++ b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/cognitiveservicesapi/interfaces.go
@@ -26,13 +26,14 @@ import (
// BaseClientAPI contains the set of methods on the BaseClient type.
type BaseClientAPI interface {
CheckDomainAvailability(ctx context.Context, parameters cognitiveservices.CheckDomainAvailabilityParameter) (result cognitiveservices.CheckDomainAvailabilityResult, err error)
+ CheckSkuAvailability(ctx context.Context, location string, parameters cognitiveservices.CheckSkuAvailabilityParameter) (result cognitiveservices.CheckSkuAvailabilityResultList, err error)
}
var _ BaseClientAPI = (*cognitiveservices.BaseClient)(nil)
// AccountsClientAPI contains the set of methods on the AccountsClient type.
type AccountsClientAPI interface {
- Create(ctx context.Context, resourceGroupName string, accountName string, parameters cognitiveservices.AccountCreateParameters) (result cognitiveservices.Account, err error)
+ Create(ctx context.Context, resourceGroupName string, accountName string, account cognitiveservices.Account) (result cognitiveservices.Account, err error)
Delete(ctx context.Context, resourceGroupName string, accountName string) (result autorest.Response, err error)
GetProperties(ctx context.Context, resourceGroupName string, accountName string) (result cognitiveservices.Account, err error)
GetUsages(ctx context.Context, resourceGroupName string, accountName string, filter string) (result cognitiveservices.UsagesResult, err error)
@@ -41,7 +42,7 @@ type AccountsClientAPI interface {
ListKeys(ctx context.Context, resourceGroupName string, accountName string) (result cognitiveservices.AccountKeys, err error)
ListSkus(ctx context.Context, resourceGroupName string, accountName string) (result cognitiveservices.AccountEnumerateSkusResult, err error)
RegenerateKey(ctx context.Context, resourceGroupName string, accountName string, parameters cognitiveservices.RegenerateKeyParameters) (result cognitiveservices.AccountKeys, err error)
- Update(ctx context.Context, resourceGroupName string, accountName string, parameters cognitiveservices.AccountUpdateParameters) (result cognitiveservices.Account, err error)
+ Update(ctx context.Context, resourceGroupName string, accountName string, account cognitiveservices.Account) (result cognitiveservices.Account, err error)
}
var _ AccountsClientAPI = (*cognitiveservices.AccountsClient)(nil)
@@ -59,10 +60,3 @@ type OperationsClientAPI interface {
}
var _ OperationsClientAPI = (*cognitiveservices.OperationsClient)(nil)
-
-// CheckSkuAvailabilityClientAPI contains the set of methods on the CheckSkuAvailabilityClient type.
-type CheckSkuAvailabilityClientAPI interface {
- List(ctx context.Context, location string, parameters cognitiveservices.CheckSkuAvailabilityParameter) (result cognitiveservices.CheckSkuAvailabilityResultList, err error)
-}
-
-var _ CheckSkuAvailabilityClientAPI = (*cognitiveservices.CheckSkuAvailabilityClient)(nil)
diff --git a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/models.go b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/models.go
index 4478c4e38058..732c8f44c7b1 100644
--- a/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/models.go
+++ b/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices/models.go
@@ -59,21 +59,6 @@ func PossibleNetworkRuleActionValues() []NetworkRuleAction {
return []NetworkRuleAction{Allow, Deny}
}
-// NetworkRuleBypassOptions enumerates the values for network rule bypass options.
-type NetworkRuleBypassOptions string
-
-const (
- // AzureServices ...
- AzureServices NetworkRuleBypassOptions = "AzureServices"
- // None ...
- None NetworkRuleBypassOptions = "None"
-)
-
-// PossibleNetworkRuleBypassOptionsValues returns an array of possible values for the NetworkRuleBypassOptions const type.
-func PossibleNetworkRuleBypassOptionsValues() []NetworkRuleBypassOptions {
- return []NetworkRuleBypassOptions{AzureServices, None}
-}
-
// ProvisioningState enumerates the values for provisioning state.
type ProvisioningState string
@@ -192,18 +177,18 @@ func PossibleUnitTypeValues() []UnitType {
// location and SKU.
type Account struct {
autorest.Response `json:"-"`
- // Etag - Entity Tag
+ // Etag - READ-ONLY; Entity Tag
Etag *string `json:"etag,omitempty"`
// ID - READ-ONLY; The id of the created account
ID *string `json:"id,omitempty"`
- // Kind - Type of cognitive service account.
+ // Kind - The Kind of the resource.
Kind *string `json:"kind,omitempty"`
// Location - The location of the resource
Location *string `json:"location,omitempty"`
// Name - READ-ONLY; The name of the created account
Name *string `json:"name,omitempty"`
- // AccountProperties - Properties of Cognitive Services account.
- *AccountProperties `json:"properties,omitempty"`
+ // Properties - Properties of Cognitive Services account.
+ Properties *AccountProperties `json:"properties,omitempty"`
// Sku - The SKU of Cognitive Services account.
Sku *Sku `json:"sku,omitempty"`
// Tags - Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters.
@@ -215,17 +200,14 @@ type Account struct {
// MarshalJSON is the custom marshaler for Account.
func (a Account) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
- if a.Etag != nil {
- objectMap["etag"] = a.Etag
- }
if a.Kind != nil {
objectMap["kind"] = a.Kind
}
if a.Location != nil {
objectMap["location"] = a.Location
}
- if a.AccountProperties != nil {
- objectMap["properties"] = a.AccountProperties
+ if a.Properties != nil {
+ objectMap["properties"] = a.Properties
}
if a.Sku != nil {
objectMap["sku"] = a.Sku
@@ -236,135 +218,16 @@ func (a Account) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// UnmarshalJSON is the custom unmarshaler for Account struct.
-func (a *Account) UnmarshalJSON(body []byte) error {
- var m map[string]*json.RawMessage
- err := json.Unmarshal(body, &m)
- if err != nil {
- return err
- }
- for k, v := range m {
- switch k {
- case "etag":
- if v != nil {
- var etag string
- err = json.Unmarshal(*v, &etag)
- if err != nil {
- return err
- }
- a.Etag = &etag
- }
- case "id":
- if v != nil {
- var ID string
- err = json.Unmarshal(*v, &ID)
- if err != nil {
- return err
- }
- a.ID = &ID
- }
- case "kind":
- if v != nil {
- var kind string
- err = json.Unmarshal(*v, &kind)
- if err != nil {
- return err
- }
- a.Kind = &kind
- }
- case "location":
- if v != nil {
- var location string
- err = json.Unmarshal(*v, &location)
- if err != nil {
- return err
- }
- a.Location = &location
- }
- case "name":
- if v != nil {
- var name string
- err = json.Unmarshal(*v, &name)
- if err != nil {
- return err
- }
- a.Name = &name
- }
- case "properties":
- if v != nil {
- var accountProperties AccountProperties
- err = json.Unmarshal(*v, &accountProperties)
- if err != nil {
- return err
- }
- a.AccountProperties = &accountProperties
- }
- case "sku":
- if v != nil {
- var sku Sku
- err = json.Unmarshal(*v, &sku)
- if err != nil {
- return err
- }
- a.Sku = &sku
- }
- case "tags":
- if v != nil {
- var tags map[string]*string
- err = json.Unmarshal(*v, &tags)
- if err != nil {
- return err
- }
- a.Tags = tags
- }
- case "type":
- if v != nil {
- var typeVar string
- err = json.Unmarshal(*v, &typeVar)
- if err != nil {
- return err
- }
- a.Type = &typeVar
- }
- }
- }
-
- return nil
-}
-
-// AccountCreateParameters the parameters to provide for the account.
-type AccountCreateParameters struct {
- // Sku - Required. Gets or sets the SKU of the resource.
- Sku *Sku `json:"sku,omitempty"`
- // Kind - Required. Gets or sets the Kind of the resource.
- Kind *string `json:"kind,omitempty"`
- // Location - Required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update the request will succeed.
- Location *string `json:"location,omitempty"`
- // Tags - Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters.
- Tags map[string]*string `json:"tags"`
- // Properties - Must exist in the request. Must be an empty object. Must not be null.
- Properties interface{} `json:"properties,omitempty"`
-}
-
-// MarshalJSON is the custom marshaler for AccountCreateParameters.
-func (acp AccountCreateParameters) MarshalJSON() ([]byte, error) {
- objectMap := make(map[string]interface{})
- if acp.Sku != nil {
- objectMap["sku"] = acp.Sku
- }
- if acp.Kind != nil {
- objectMap["kind"] = acp.Kind
- }
- if acp.Location != nil {
- objectMap["location"] = acp.Location
- }
- if acp.Tags != nil {
- objectMap["tags"] = acp.Tags
- }
- if acp.Properties != nil {
- objectMap["properties"] = acp.Properties
- }
- return json.Marshal(objectMap)
+// AccountAPIProperties the api properties for special APIs.
+type AccountAPIProperties struct {
+ // QnaRuntimeEndpoint - (QnAMaker Only) The runtime endpoint of QnAMaker.
+ QnaRuntimeEndpoint *string `json:"qnaRuntimeEndpoint,omitempty"`
+ // StatisticsEnabled - (Bing Search Only) The flag to enable statistics of Bing Search.
+ StatisticsEnabled *bool `json:"statisticsEnabled,omitempty"`
+ // EventHubConnectionString - (Personalization Only) The flag to enable statistics of Bing Search.
+ EventHubConnectionString *string `json:"eventHubConnectionString,omitempty"`
+ // StorageAccountConnectionString - (Personalization Only) The storage account connection string.
+ StorageAccountConnectionString *string `json:"storageAccountConnectionString,omitempty"`
}
// AccountEnumerateSkusResult the list of cognitive services accounts operation response.
@@ -533,39 +396,16 @@ func NewAccountListResultPage(getNextPage func(context.Context, AccountListResul
type AccountProperties struct {
// ProvisioningState - READ-ONLY; Gets the status of the cognitive services account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Moving', 'Deleting', 'Succeeded', 'Failed'
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
- // Endpoint - Endpoint of the created account.
+ // Endpoint - READ-ONLY; Endpoint of the created account.
Endpoint *string `json:"endpoint,omitempty"`
- // InternalID - The internal identifier.
+ // InternalID - READ-ONLY; The internal identifier.
InternalID *string `json:"internalId,omitempty"`
// CustomSubDomainName - Optional subdomain name used for token-based authentication.
CustomSubDomainName *string `json:"customSubDomainName,omitempty"`
// NetworkAcls - A collection of rules governing the accessibility from specific network locations.
NetworkAcls *NetworkRuleSet `json:"networkAcls,omitempty"`
-}
-
-// AccountUpdateParameters the parameters to provide for the account.
-type AccountUpdateParameters struct {
- // Sku - Gets or sets the SKU of the resource.
- Sku *Sku `json:"sku,omitempty"`
- // Tags - Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters.
- Tags map[string]*string `json:"tags"`
- // Properties - Additional properties for Account. Only provided fields will be updated.
- Properties interface{} `json:"properties,omitempty"`
-}
-
-// MarshalJSON is the custom marshaler for AccountUpdateParameters.
-func (aup AccountUpdateParameters) MarshalJSON() ([]byte, error) {
- objectMap := make(map[string]interface{})
- if aup.Sku != nil {
- objectMap["sku"] = aup.Sku
- }
- if aup.Tags != nil {
- objectMap["tags"] = aup.Tags
- }
- if aup.Properties != nil {
- objectMap["properties"] = aup.Properties
- }
- return json.Marshal(objectMap)
+ // APIProperties - The api properties for special APIs.
+ APIProperties *AccountAPIProperties `json:"apiProperties,omitempty"`
}
// CheckDomainAvailabilityParameter check Domain availability parameter.
@@ -652,8 +492,6 @@ type MetricName struct {
// NetworkRuleSet a set of rules governing the network accessibility.
type NetworkRuleSet struct {
- // Bypass - Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'. If not specified the default is 'AzureServices'. Possible values include: 'AzureServices', 'None'
- Bypass NetworkRuleBypassOptions `json:"bypass,omitempty"`
// DefaultAction - The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated. Possible values include: 'Allow', 'Deny'
DefaultAction NetworkRuleAction `json:"defaultAction,omitempty"`
// IPRules - The list of IP address rules.
diff --git a/services/cognitiveservices/v3.1/customvision/training/client.go b/services/cognitiveservices/v3.1/customvision/training/client.go
new file mode 100644
index 000000000000..d2e44f28285d
--- /dev/null
+++ b/services/cognitiveservices/v3.1/customvision/training/client.go
@@ -0,0 +1,3930 @@
+// Package training implements the Azure ARM Training service API version 3.1.
+//
+//
+package training
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "github.com/satori/go.uuid"
+ "io"
+ "net/http"
+)
+
+// BaseClient is the base client for Training.
+type BaseClient struct {
+ autorest.Client
+ APIKey string
+ Endpoint string
+}
+
+// New creates an instance of the BaseClient client.
+func New(aPIKey string, endpoint string) BaseClient {
+ return NewWithoutDefaults(aPIKey, endpoint)
+}
+
+// NewWithoutDefaults creates an instance of the BaseClient client.
+func NewWithoutDefaults(aPIKey string, endpoint string) BaseClient {
+ return BaseClient{
+ Client: autorest.NewClientWithUserAgent(UserAgent()),
+ APIKey: aPIKey,
+ Endpoint: endpoint,
+ }
+}
+
+// CreateImageRegions this API accepts a batch of image regions, and optionally tags, to update existing images with
+// region information.
+// There is a limit of 64 entries in the batch.
+// Parameters:
+// projectID - the project id.
+// batch - batch of image regions which include a tag and bounding box. Limited to 64.
+func (client BaseClient) CreateImageRegions(ctx context.Context, projectID uuid.UUID, batch ImageRegionCreateBatch) (result ImageRegionCreateSummary, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CreateImageRegions")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateImageRegionsPreparer(ctx, projectID, batch)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageRegions", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateImageRegionsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageRegions", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateImageRegionsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageRegions", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateImageRegionsPreparer prepares the CreateImageRegions request.
+func (client BaseClient) CreateImageRegionsPreparer(ctx context.Context, projectID uuid.UUID, batch ImageRegionCreateBatch) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/images/regions", pathParameters),
+ autorest.WithJSON(batch),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateImageRegionsSender sends the CreateImageRegions request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) CreateImageRegionsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateImageRegionsResponder handles the response to the CreateImageRegions request. The method always
+// closes the http.Response Body.
+func (client BaseClient) CreateImageRegionsResponder(resp *http.Response) (result ImageRegionCreateSummary, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreateImagesFromData this API accepts body content as multipart/form-data and application/octet-stream. When using
+// multipart
+// multiple image files can be sent at once, with a maximum of 64 files
+// Parameters:
+// projectID - the project id.
+// imageData - binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 6MB.
+// tagIds - the tags ids with which to tag each image. Limited to 20.
+func (client BaseClient) CreateImagesFromData(ctx context.Context, projectID uuid.UUID, imageData io.ReadCloser, tagIds []uuid.UUID) (result ImageCreateSummary, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CreateImagesFromData")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: tagIds,
+ Constraints: []validation.Constraint{{Target: "tagIds", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "tagIds", Name: validation.MaxItems, Rule: 20, Chain: nil},
+ {Target: "tagIds", Name: validation.MinItems, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("training.BaseClient", "CreateImagesFromData", err.Error())
+ }
+
+ req, err := client.CreateImagesFromDataPreparer(ctx, projectID, imageData, tagIds)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromData", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateImagesFromDataSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromData", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateImagesFromDataResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromData", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateImagesFromDataPreparer prepares the CreateImagesFromData request.
+func (client BaseClient) CreateImagesFromDataPreparer(ctx context.Context, projectID uuid.UUID, imageData io.ReadCloser, tagIds []uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if tagIds != nil && len(tagIds) > 0 {
+ queryParameters["tagIds"] = autorest.Encode("query", tagIds, ",")
+ }
+
+ formDataParameters := map[string]interface{}{
+ "imageData": imageData,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/images", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithMultiPartFormData(formDataParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateImagesFromDataSender sends the CreateImagesFromData request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) CreateImagesFromDataSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateImagesFromDataResponder handles the response to the CreateImagesFromData request. The method always
+// closes the http.Response Body.
+func (client BaseClient) CreateImagesFromDataResponder(resp *http.Response) (result ImageCreateSummary, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreateImagesFromFiles this API accepts a batch of files, and optionally tags, to create images. There is a limit of
+// 64 images and 20 tags.
+// Parameters:
+// projectID - the project id.
+// batch - the batch of image files to add. Limited to 64 images and 20 tags per batch.
+func (client BaseClient) CreateImagesFromFiles(ctx context.Context, projectID uuid.UUID, batch ImageFileCreateBatch) (result ImageCreateSummary, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CreateImagesFromFiles")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateImagesFromFilesPreparer(ctx, projectID, batch)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromFiles", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateImagesFromFilesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromFiles", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateImagesFromFilesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromFiles", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateImagesFromFilesPreparer prepares the CreateImagesFromFiles request.
+func (client BaseClient) CreateImagesFromFilesPreparer(ctx context.Context, projectID uuid.UUID, batch ImageFileCreateBatch) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/images/files", pathParameters),
+ autorest.WithJSON(batch),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateImagesFromFilesSender sends the CreateImagesFromFiles request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) CreateImagesFromFilesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateImagesFromFilesResponder handles the response to the CreateImagesFromFiles request. The method always
+// closes the http.Response Body.
+func (client BaseClient) CreateImagesFromFilesResponder(resp *http.Response) (result ImageCreateSummary, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreateImagesFromPredictions this API creates a batch of images from predicted images specified. There is a limit of
+// 64 images and 20 tags.
+// Parameters:
+// projectID - the project id.
+// batch - image and tag ids. Limited to 64 images and 20 tags per batch.
+func (client BaseClient) CreateImagesFromPredictions(ctx context.Context, projectID uuid.UUID, batch ImageIDCreateBatch) (result ImageCreateSummary, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CreateImagesFromPredictions")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateImagesFromPredictionsPreparer(ctx, projectID, batch)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromPredictions", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateImagesFromPredictionsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromPredictions", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateImagesFromPredictionsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromPredictions", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateImagesFromPredictionsPreparer prepares the CreateImagesFromPredictions request.
+func (client BaseClient) CreateImagesFromPredictionsPreparer(ctx context.Context, projectID uuid.UUID, batch ImageIDCreateBatch) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/images/predictions", pathParameters),
+ autorest.WithJSON(batch),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateImagesFromPredictionsSender sends the CreateImagesFromPredictions request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) CreateImagesFromPredictionsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateImagesFromPredictionsResponder handles the response to the CreateImagesFromPredictions request. The method always
+// closes the http.Response Body.
+func (client BaseClient) CreateImagesFromPredictionsResponder(resp *http.Response) (result ImageCreateSummary, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreateImagesFromUrls this API accepts a batch of urls, and optionally tags, to create images. There is a limit of 64
+// images and 20 tags.
+// Parameters:
+// projectID - the project id.
+// batch - image urls and tag ids. Limited to 64 images and 20 tags per batch.
+func (client BaseClient) CreateImagesFromUrls(ctx context.Context, projectID uuid.UUID, batch ImageURLCreateBatch) (result ImageCreateSummary, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CreateImagesFromUrls")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateImagesFromUrlsPreparer(ctx, projectID, batch)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromUrls", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateImagesFromUrlsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromUrls", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateImagesFromUrlsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImagesFromUrls", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateImagesFromUrlsPreparer prepares the CreateImagesFromUrls request.
+func (client BaseClient) CreateImagesFromUrlsPreparer(ctx context.Context, projectID uuid.UUID, batch ImageURLCreateBatch) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/images/urls", pathParameters),
+ autorest.WithJSON(batch),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateImagesFromUrlsSender sends the CreateImagesFromUrls request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) CreateImagesFromUrlsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateImagesFromUrlsResponder handles the response to the CreateImagesFromUrls request. The method always
+// closes the http.Response Body.
+func (client BaseClient) CreateImagesFromUrlsResponder(resp *http.Response) (result ImageCreateSummary, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreateImageTags sends the create image tags request.
+// Parameters:
+// projectID - the project id.
+// batch - batch of image tags. Limited to 128 tags per batch.
+func (client BaseClient) CreateImageTags(ctx context.Context, projectID uuid.UUID, batch ImageTagCreateBatch) (result ImageTagCreateSummary, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CreateImageTags")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateImageTagsPreparer(ctx, projectID, batch)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageTags", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateImageTagsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageTags", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateImageTagsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateImageTags", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateImageTagsPreparer prepares the CreateImageTags request.
+func (client BaseClient) CreateImageTagsPreparer(ctx context.Context, projectID uuid.UUID, batch ImageTagCreateBatch) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/images/tags", pathParameters),
+ autorest.WithJSON(batch),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateImageTagsSender sends the CreateImageTags request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) CreateImageTagsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateImageTagsResponder handles the response to the CreateImageTags request. The method always
+// closes the http.Response Body.
+func (client BaseClient) CreateImageTagsResponder(resp *http.Response) (result ImageTagCreateSummary, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreateProject sends the create project request.
+// Parameters:
+// name - name of the project.
+// description - the description of the project.
+// domainID - the id of the domain to use for this project. Defaults to General.
+// classificationType - the type of classifier to create for this project.
+// targetExportPlatforms - list of platforms the trained model is intending exporting to.
+func (client BaseClient) CreateProject(ctx context.Context, name string, description string, domainID *uuid.UUID, classificationType string, targetExportPlatforms []string) (result Project, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CreateProject")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateProjectPreparer(ctx, name, description, domainID, classificationType, targetExportPlatforms)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateProject", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateProjectSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateProject", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateProjectResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateProject", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateProjectPreparer prepares the CreateProject request.
+func (client BaseClient) CreateProjectPreparer(ctx context.Context, name string, description string, domainID *uuid.UUID, classificationType string, targetExportPlatforms []string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ queryParameters := map[string]interface{}{
+ "name": autorest.Encode("query", name),
+ }
+ if len(description) > 0 {
+ queryParameters["description"] = autorest.Encode("query", description)
+ }
+ if domainID != nil {
+ queryParameters["domainId"] = autorest.Encode("query", *domainID)
+ }
+ if len(string(classificationType)) > 0 {
+ queryParameters["classificationType"] = autorest.Encode("query", classificationType)
+ }
+ if targetExportPlatforms != nil && len(targetExportPlatforms) > 0 {
+ queryParameters["targetExportPlatforms"] = autorest.Encode("query", targetExportPlatforms, ",")
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPath("/projects"),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateProjectSender sends the CreateProject request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) CreateProjectSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateProjectResponder handles the response to the CreateProject request. The method always
+// closes the http.Response Body.
+func (client BaseClient) CreateProjectResponder(resp *http.Response) (result Project, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreateTag sends the create tag request.
+// Parameters:
+// projectID - the project id.
+// name - the tag name.
+// description - optional description for the tag.
+// typeParameter - optional type for the tag.
+func (client BaseClient) CreateTag(ctx context.Context, projectID uuid.UUID, name string, description string, typeParameter string) (result Tag, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CreateTag")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateTagPreparer(ctx, projectID, name, description, typeParameter)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateTag", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateTagSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateTag", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateTagResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "CreateTag", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateTagPreparer prepares the CreateTag request.
+func (client BaseClient) CreateTagPreparer(ctx context.Context, projectID uuid.UUID, name string, description string, typeParameter string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{
+ "name": autorest.Encode("query", name),
+ }
+ if len(description) > 0 {
+ queryParameters["description"] = autorest.Encode("query", description)
+ }
+ if len(string(typeParameter)) > 0 {
+ queryParameters["type"] = autorest.Encode("query", typeParameter)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/tags", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateTagSender sends the CreateTag request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) CreateTagSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateTagResponder handles the response to the CreateTag request. The method always
+// closes the http.Response Body.
+func (client BaseClient) CreateTagResponder(resp *http.Response) (result Tag, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteImageRegions sends the delete image regions request.
+// Parameters:
+// projectID - the project id.
+// regionIds - regions to delete. Limited to 64.
+func (client BaseClient) DeleteImageRegions(ctx context.Context, projectID uuid.UUID, regionIds []uuid.UUID) (result autorest.Response, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.DeleteImageRegions")
+ defer func() {
+ sc := -1
+ if result.Response != nil {
+ sc = result.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: regionIds,
+ Constraints: []validation.Constraint{{Target: "regionIds", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "regionIds", Name: validation.MaxItems, Rule: 64, Chain: nil},
+ {Target: "regionIds", Name: validation.MinItems, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("training.BaseClient", "DeleteImageRegions", err.Error())
+ }
+
+ req, err := client.DeleteImageRegionsPreparer(ctx, projectID, regionIds)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageRegions", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteImageRegionsSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageRegions", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteImageRegionsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageRegions", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteImageRegionsPreparer prepares the DeleteImageRegions request.
+func (client BaseClient) DeleteImageRegionsPreparer(ctx context.Context, projectID uuid.UUID, regionIds []uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{
+ "regionIds": autorest.Encode("query", regionIds, ","),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/images/regions", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteImageRegionsSender sends the DeleteImageRegions request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) DeleteImageRegionsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteImageRegionsResponder handles the response to the DeleteImageRegions request. The method always
+// closes the http.Response Body.
+func (client BaseClient) DeleteImageRegionsResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// DeleteImages sends the delete images request.
+// Parameters:
+// projectID - the project id.
+// imageIds - ids of the images to be deleted. Limited to 256 images per batch.
+// allImages - flag to specify delete all images, specify this flag or a list of images. Using this flag will
+// return a 202 response to indicate the images are being deleted.
+// allIterations - removes these images from all iterations, not just the current workspace. Using this flag
+// will return a 202 response to indicate the images are being deleted.
+func (client BaseClient) DeleteImages(ctx context.Context, projectID uuid.UUID, imageIds []uuid.UUID, allImages *bool, allIterations *bool) (result autorest.Response, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.DeleteImages")
+ defer func() {
+ sc := -1
+ if result.Response != nil {
+ sc = result.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: imageIds,
+ Constraints: []validation.Constraint{{Target: "imageIds", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "imageIds", Name: validation.MaxItems, Rule: 256, Chain: nil},
+ {Target: "imageIds", Name: validation.MinItems, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("training.BaseClient", "DeleteImages", err.Error())
+ }
+
+ req, err := client.DeleteImagesPreparer(ctx, projectID, imageIds, allImages, allIterations)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImages", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteImagesSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImages", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteImagesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImages", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteImagesPreparer prepares the DeleteImages request.
+func (client BaseClient) DeleteImagesPreparer(ctx context.Context, projectID uuid.UUID, imageIds []uuid.UUID, allImages *bool, allIterations *bool) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if imageIds != nil && len(imageIds) > 0 {
+ queryParameters["imageIds"] = autorest.Encode("query", imageIds, ",")
+ }
+ if allImages != nil {
+ queryParameters["allImages"] = autorest.Encode("query", *allImages)
+ }
+ if allIterations != nil {
+ queryParameters["allIterations"] = autorest.Encode("query", *allIterations)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/images", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteImagesSender sends the DeleteImages request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) DeleteImagesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteImagesResponder handles the response to the DeleteImages request. The method always
+// closes the http.Response Body.
+func (client BaseClient) DeleteImagesResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// DeleteImageTags sends the delete image tags request.
+// Parameters:
+// projectID - the project id.
+// imageIds - image ids. Limited to 64 images.
+// tagIds - tags to be deleted from the specified images. Limited to 20 tags.
+func (client BaseClient) DeleteImageTags(ctx context.Context, projectID uuid.UUID, imageIds []uuid.UUID, tagIds []uuid.UUID) (result autorest.Response, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.DeleteImageTags")
+ defer func() {
+ sc := -1
+ if result.Response != nil {
+ sc = result.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: imageIds,
+ Constraints: []validation.Constraint{{Target: "imageIds", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "imageIds", Name: validation.MaxItems, Rule: 64, Chain: nil},
+ {Target: "imageIds", Name: validation.MinItems, Rule: 0, Chain: nil},
+ }}}},
+ {TargetValue: tagIds,
+ Constraints: []validation.Constraint{{Target: "tagIds", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "tagIds", Name: validation.MaxItems, Rule: 20, Chain: nil},
+ {Target: "tagIds", Name: validation.MinItems, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("training.BaseClient", "DeleteImageTags", err.Error())
+ }
+
+ req, err := client.DeleteImageTagsPreparer(ctx, projectID, imageIds, tagIds)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageTags", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteImageTagsSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageTags", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteImageTagsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteImageTags", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteImageTagsPreparer prepares the DeleteImageTags request.
+func (client BaseClient) DeleteImageTagsPreparer(ctx context.Context, projectID uuid.UUID, imageIds []uuid.UUID, tagIds []uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{
+ "imageIds": autorest.Encode("query", imageIds, ","),
+ "tagIds": autorest.Encode("query", tagIds, ","),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/images/tags", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteImageTagsSender sends the DeleteImageTags request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) DeleteImageTagsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteImageTagsResponder handles the response to the DeleteImageTags request. The method always
+// closes the http.Response Body.
+func (client BaseClient) DeleteImageTagsResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// DeleteIteration sends the delete iteration request.
+// Parameters:
+// projectID - the project id.
+// iterationID - the iteration id.
+func (client BaseClient) DeleteIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (result autorest.Response, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.DeleteIteration")
+ defer func() {
+ sc := -1
+ if result.Response != nil {
+ sc = result.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteIterationPreparer(ctx, projectID, iterationID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteIteration", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteIterationSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteIteration", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteIterationResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteIteration", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteIterationPreparer prepares the DeleteIteration request.
+func (client BaseClient) DeleteIterationPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "iterationId": autorest.Encode("path", iterationID),
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/iterations/{iterationId}", pathParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteIterationSender sends the DeleteIteration request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) DeleteIterationSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteIterationResponder handles the response to the DeleteIteration request. The method always
+// closes the http.Response Body.
+func (client BaseClient) DeleteIterationResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// DeletePrediction sends the delete prediction request.
+// Parameters:
+// projectID - the project id.
+// ids - the prediction ids. Limited to 64.
+func (client BaseClient) DeletePrediction(ctx context.Context, projectID uuid.UUID, ids []uuid.UUID) (result autorest.Response, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.DeletePrediction")
+ defer func() {
+ sc := -1
+ if result.Response != nil {
+ sc = result.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: ids,
+ Constraints: []validation.Constraint{{Target: "ids", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "ids", Name: validation.MaxItems, Rule: 64, Chain: nil},
+ {Target: "ids", Name: validation.MinItems, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("training.BaseClient", "DeletePrediction", err.Error())
+ }
+
+ req, err := client.DeletePredictionPreparer(ctx, projectID, ids)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeletePrediction", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeletePredictionSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeletePrediction", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeletePredictionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeletePrediction", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePredictionPreparer prepares the DeletePrediction request.
+func (client BaseClient) DeletePredictionPreparer(ctx context.Context, projectID uuid.UUID, ids []uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{
+ "ids": autorest.Encode("query", ids, ","),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/predictions", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeletePredictionSender sends the DeletePrediction request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) DeletePredictionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeletePredictionResponder handles the response to the DeletePrediction request. The method always
+// closes the http.Response Body.
+func (client BaseClient) DeletePredictionResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// DeleteProject sends the delete project request.
+// Parameters:
+// projectID - the project id.
+func (client BaseClient) DeleteProject(ctx context.Context, projectID uuid.UUID) (result autorest.Response, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.DeleteProject")
+ defer func() {
+ sc := -1
+ if result.Response != nil {
+ sc = result.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteProjectPreparer(ctx, projectID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteProject", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteProjectSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteProject", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteProjectResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteProject", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteProjectPreparer prepares the DeleteProject request.
+func (client BaseClient) DeleteProjectPreparer(ctx context.Context, projectID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}", pathParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteProjectSender sends the DeleteProject request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) DeleteProjectSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteProjectResponder handles the response to the DeleteProject request. The method always
+// closes the http.Response Body.
+func (client BaseClient) DeleteProjectResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// DeleteTag sends the delete tag request.
+// Parameters:
+// projectID - the project id.
+// tagID - id of the tag to be deleted.
+func (client BaseClient) DeleteTag(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID) (result autorest.Response, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.DeleteTag")
+ defer func() {
+ sc := -1
+ if result.Response != nil {
+ sc = result.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteTagPreparer(ctx, projectID, tagID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteTag", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteTagSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteTag", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteTagResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "DeleteTag", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteTagPreparer prepares the DeleteTag request.
+func (client BaseClient) DeleteTagPreparer(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ "tagId": autorest.Encode("path", tagID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/tags/{tagId}", pathParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteTagSender sends the DeleteTag request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) DeleteTagSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteTagResponder handles the response to the DeleteTag request. The method always
+// closes the http.Response Body.
+func (client BaseClient) DeleteTagResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// ExportIteration sends the export iteration request.
+// Parameters:
+// projectID - the project id.
+// iterationID - the iteration id.
+// platform - the target platform.
+// flavor - the flavor of the target platform.
+func (client BaseClient) ExportIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, platform string, flavor string) (result Export, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.ExportIteration")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ExportIterationPreparer(ctx, projectID, iterationID, platform, flavor)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "ExportIteration", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ExportIterationSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "ExportIteration", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ExportIterationResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "ExportIteration", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ExportIterationPreparer prepares the ExportIteration request.
+func (client BaseClient) ExportIterationPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, platform string, flavor string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "iterationId": autorest.Encode("path", iterationID),
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{
+ "platform": autorest.Encode("query", platform),
+ }
+ if len(string(flavor)) > 0 {
+ queryParameters["flavor"] = autorest.Encode("query", flavor)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/iterations/{iterationId}/export", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ExportIterationSender sends the ExportIteration request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) ExportIterationSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ExportIterationResponder handles the response to the ExportIteration request. The method always
+// closes the http.Response Body.
+func (client BaseClient) ExportIterationResponder(resp *http.Response) (result Export, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetDomain sends the get domain request.
+// Parameters:
+// domainID - the id of the domain to get information about.
+func (client BaseClient) GetDomain(ctx context.Context, domainID uuid.UUID) (result Domain, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetDomain")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetDomainPreparer(ctx, domainID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomain", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetDomainSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomain", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetDomainResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomain", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetDomainPreparer prepares the GetDomain request.
+func (client BaseClient) GetDomainPreparer(ctx context.Context, domainID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "domainId": autorest.Encode("path", domainID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/domains/{domainId}", pathParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetDomainSender sends the GetDomain request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetDomainSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetDomainResponder handles the response to the GetDomain request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetDomainResponder(resp *http.Response) (result Domain, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetDomains sends the get domains request.
+func (client BaseClient) GetDomains(ctx context.Context) (result ListDomain, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetDomains")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetDomainsPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomains", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetDomainsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomains", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetDomainsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetDomains", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetDomainsPreparer prepares the GetDomains request.
+func (client BaseClient) GetDomainsPreparer(ctx context.Context) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPath("/domains"),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetDomainsSender sends the GetDomains request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetDomainsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetDomainsResponder handles the response to the GetDomains request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetDomainsResponder(resp *http.Response) (result ListDomain, 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
+}
+
+// GetExports sends the get exports request.
+// Parameters:
+// projectID - the project id.
+// iterationID - the iteration id.
+func (client BaseClient) GetExports(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (result ListExport, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetExports")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetExportsPreparer(ctx, projectID, iterationID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetExports", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetExportsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetExports", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetExportsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetExports", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetExportsPreparer prepares the GetExports request.
+func (client BaseClient) GetExportsPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "iterationId": autorest.Encode("path", iterationID),
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/iterations/{iterationId}/export", pathParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetExportsSender sends the GetExports request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetExportsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetExportsResponder handles the response to the GetExports request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetExportsResponder(resp *http.Response) (result ListExport, 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
+}
+
+// GetImagePerformanceCount the filtering is on an and/or relationship. For example, if the provided tag ids are for
+// the "Dog" and
+// "Cat" tags, then only images tagged with Dog and/or Cat will be returned
+// Parameters:
+// projectID - the project id.
+// iterationID - the iteration id. Defaults to workspace.
+// tagIds - a list of tags ids to filter the images to count. Defaults to all tags when null.
+func (client BaseClient) GetImagePerformanceCount(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, tagIds []uuid.UUID) (result Int32, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetImagePerformanceCount")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetImagePerformanceCountPreparer(ctx, projectID, iterationID, tagIds)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformanceCount", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetImagePerformanceCountSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformanceCount", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetImagePerformanceCountResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformanceCount", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetImagePerformanceCountPreparer prepares the GetImagePerformanceCount request.
+func (client BaseClient) GetImagePerformanceCountPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, tagIds []uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "iterationId": autorest.Encode("path", iterationID),
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if tagIds != nil && len(tagIds) > 0 {
+ queryParameters["tagIds"] = autorest.Encode("query", tagIds, ",")
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/iterations/{iterationId}/performance/images/count", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetImagePerformanceCountSender sends the GetImagePerformanceCount request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetImagePerformanceCountSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetImagePerformanceCountResponder handles the response to the GetImagePerformanceCount request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetImagePerformanceCountResponder(resp *http.Response) (result Int32, 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
+}
+
+// GetImagePerformances this API supports batching and range selection. By default it will only return first 50 images
+// matching images.
+// Use the {take} and {skip} parameters to control how many images to return in a given batch.
+// The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and
+// "Cat" tags, then only images tagged with Dog and/or Cat will be returned
+// Parameters:
+// projectID - the project id.
+// iterationID - the iteration id. Defaults to workspace.
+// tagIds - a list of tags ids to filter the images. Defaults to all tagged images when null. Limited to 20.
+// orderBy - the ordering. Defaults to newest.
+// take - maximum number of images to return. Defaults to 50, limited to 256.
+// skip - number of images to skip before beginning the image batch. Defaults to 0.
+func (client BaseClient) GetImagePerformances(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, tagIds []uuid.UUID, orderBy string, take *int32, skip *int32) (result ListImagePerformance, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetImagePerformances")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: tagIds,
+ Constraints: []validation.Constraint{{Target: "tagIds", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "tagIds", Name: validation.MaxItems, Rule: 20, Chain: nil},
+ {Target: "tagIds", Name: validation.MinItems, Rule: 0, Chain: nil},
+ }}}},
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(256), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("training.BaseClient", "GetImagePerformances", err.Error())
+ }
+
+ req, err := client.GetImagePerformancesPreparer(ctx, projectID, iterationID, tagIds, orderBy, take, skip)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformances", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetImagePerformancesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformances", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetImagePerformancesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagePerformances", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetImagePerformancesPreparer prepares the GetImagePerformances request.
+func (client BaseClient) GetImagePerformancesPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, tagIds []uuid.UUID, orderBy string, take *int32, skip *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "iterationId": autorest.Encode("path", iterationID),
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if tagIds != nil && len(tagIds) > 0 {
+ queryParameters["tagIds"] = autorest.Encode("query", tagIds, ",")
+ }
+ if len(string(orderBy)) > 0 {
+ queryParameters["orderBy"] = autorest.Encode("query", orderBy)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 50)
+ }
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/iterations/{iterationId}/performance/images", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetImagePerformancesSender sends the GetImagePerformances request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetImagePerformancesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetImagePerformancesResponder handles the response to the GetImagePerformances request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetImagePerformancesResponder(resp *http.Response) (result ListImagePerformance, 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
+}
+
+// GetImageRegionProposals this API will get region proposals for an image along with confidences for the region. It
+// returns an empty array if no proposals are found.
+// Parameters:
+// projectID - the project id.
+// imageID - the image id.
+func (client BaseClient) GetImageRegionProposals(ctx context.Context, projectID uuid.UUID, imageID uuid.UUID) (result ImageRegionProposal, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetImageRegionProposals")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetImageRegionProposalsPreparer(ctx, projectID, imageID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImageRegionProposals", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetImageRegionProposalsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImageRegionProposals", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetImageRegionProposalsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImageRegionProposals", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetImageRegionProposalsPreparer prepares the GetImageRegionProposals request.
+func (client BaseClient) GetImageRegionProposalsPreparer(ctx context.Context, projectID uuid.UUID, imageID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "imageId": autorest.Encode("path", imageID),
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/images/{imageId}/regionproposals", pathParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetImageRegionProposalsSender sends the GetImageRegionProposals request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetImageRegionProposalsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetImageRegionProposalsResponder handles the response to the GetImageRegionProposals request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetImageRegionProposalsResponder(resp *http.Response) (result ImageRegionProposal, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetImagesByIds this API will return a set of Images for the specified tags and optionally iteration. If no iteration
+// is specified the
+// current workspace is used.
+// Parameters:
+// projectID - the project id.
+// imageIds - the list of image ids to retrieve. Limited to 256.
+// iterationID - the iteration id. Defaults to workspace.
+func (client BaseClient) GetImagesByIds(ctx context.Context, projectID uuid.UUID, imageIds []uuid.UUID, iterationID *uuid.UUID) (result ListImage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetImagesByIds")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: imageIds,
+ Constraints: []validation.Constraint{{Target: "imageIds", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "imageIds", Name: validation.MaxItems, Rule: 256, Chain: nil},
+ {Target: "imageIds", Name: validation.MinItems, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("training.BaseClient", "GetImagesByIds", err.Error())
+ }
+
+ req, err := client.GetImagesByIdsPreparer(ctx, projectID, imageIds, iterationID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagesByIds", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetImagesByIdsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagesByIds", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetImagesByIdsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetImagesByIds", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetImagesByIdsPreparer prepares the GetImagesByIds request.
+func (client BaseClient) GetImagesByIdsPreparer(ctx context.Context, projectID uuid.UUID, imageIds []uuid.UUID, iterationID *uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if imageIds != nil && len(imageIds) > 0 {
+ queryParameters["imageIds"] = autorest.Encode("query", imageIds, ",")
+ }
+ if iterationID != nil {
+ queryParameters["iterationId"] = autorest.Encode("query", *iterationID)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/images/id", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetImagesByIdsSender sends the GetImagesByIds request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetImagesByIdsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetImagesByIdsResponder handles the response to the GetImagesByIds request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetImagesByIdsResponder(resp *http.Response) (result ListImage, 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
+}
+
+// GetIteration sends the get iteration request.
+// Parameters:
+// projectID - the id of the project the iteration belongs to.
+// iterationID - the id of the iteration to get.
+func (client BaseClient) GetIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (result Iteration, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetIteration")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetIterationPreparer(ctx, projectID, iterationID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIteration", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetIterationSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIteration", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetIterationResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIteration", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetIterationPreparer prepares the GetIteration request.
+func (client BaseClient) GetIterationPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "iterationId": autorest.Encode("path", iterationID),
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/iterations/{iterationId}", pathParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetIterationSender sends the GetIteration request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetIterationSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetIterationResponder handles the response to the GetIteration request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetIterationResponder(resp *http.Response) (result Iteration, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetIterationPerformance sends the get iteration performance request.
+// Parameters:
+// projectID - the id of the project the iteration belongs to.
+// iterationID - the id of the iteration to get.
+// threshold - the threshold used to determine true predictions.
+// overlapThreshold - if applicable, the bounding box overlap threshold used to determine true predictions.
+func (client BaseClient) GetIterationPerformance(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, threshold *float64, overlapThreshold *float64) (result IterationPerformance, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetIterationPerformance")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetIterationPerformancePreparer(ctx, projectID, iterationID, threshold, overlapThreshold)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterationPerformance", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetIterationPerformanceSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterationPerformance", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetIterationPerformanceResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterationPerformance", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetIterationPerformancePreparer prepares the GetIterationPerformance request.
+func (client BaseClient) GetIterationPerformancePreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, threshold *float64, overlapThreshold *float64) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "iterationId": autorest.Encode("path", iterationID),
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if threshold != nil {
+ queryParameters["threshold"] = autorest.Encode("query", *threshold)
+ }
+ if overlapThreshold != nil {
+ queryParameters["overlapThreshold"] = autorest.Encode("query", *overlapThreshold)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/iterations/{iterationId}/performance", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetIterationPerformanceSender sends the GetIterationPerformance request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetIterationPerformanceSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetIterationPerformanceResponder handles the response to the GetIterationPerformance request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetIterationPerformanceResponder(resp *http.Response) (result IterationPerformance, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetIterations sends the get iterations request.
+// Parameters:
+// projectID - the project id.
+func (client BaseClient) GetIterations(ctx context.Context, projectID uuid.UUID) (result ListIteration, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetIterations")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetIterationsPreparer(ctx, projectID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterations", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetIterationsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterations", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetIterationsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetIterations", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetIterationsPreparer prepares the GetIterations request.
+func (client BaseClient) GetIterationsPreparer(ctx context.Context, projectID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/iterations", pathParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetIterationsSender sends the GetIterations request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetIterationsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetIterationsResponder handles the response to the GetIterations request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetIterationsResponder(resp *http.Response) (result ListIteration, 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
+}
+
+// GetProject sends the get project request.
+// Parameters:
+// projectID - the id of the project to get.
+func (client BaseClient) GetProject(ctx context.Context, projectID uuid.UUID) (result Project, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetProject")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetProjectPreparer(ctx, projectID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProject", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetProjectSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProject", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetProjectResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProject", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetProjectPreparer prepares the GetProject request.
+func (client BaseClient) GetProjectPreparer(ctx context.Context, projectID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}", pathParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetProjectSender sends the GetProject request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetProjectSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetProjectResponder handles the response to the GetProject request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetProjectResponder(resp *http.Response) (result Project, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetProjects sends the get projects request.
+func (client BaseClient) GetProjects(ctx context.Context) (result ListProject, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetProjects")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetProjectsPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProjects", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetProjectsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProjects", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetProjectsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetProjects", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetProjectsPreparer prepares the GetProjects request.
+func (client BaseClient) GetProjectsPreparer(ctx context.Context) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPath("/projects"),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetProjectsSender sends the GetProjects request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetProjectsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetProjectsResponder handles the response to the GetProjects request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetProjectsResponder(resp *http.Response) (result ListProject, 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
+}
+
+// GetTag sends the get tag request.
+// Parameters:
+// projectID - the project this tag belongs to.
+// tagID - the tag id.
+// iterationID - the iteration to retrieve this tag from. Optional, defaults to current training set.
+func (client BaseClient) GetTag(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID, iterationID *uuid.UUID) (result Tag, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetTag")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetTagPreparer(ctx, projectID, tagID, iterationID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTag", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetTagSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTag", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetTagResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTag", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetTagPreparer prepares the GetTag request.
+func (client BaseClient) GetTagPreparer(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID, iterationID *uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ "tagId": autorest.Encode("path", tagID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if iterationID != nil {
+ queryParameters["iterationId"] = autorest.Encode("query", *iterationID)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/tags/{tagId}", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetTagSender sends the GetTag request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetTagSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetTagResponder handles the response to the GetTag request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetTagResponder(resp *http.Response) (result Tag, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetTaggedImageCount the filtering is on an and/or relationship. For example, if the provided tag ids are for the
+// "Dog" and
+// "Cat" tags, then only images tagged with Dog and/or Cat will be returned
+// Parameters:
+// projectID - the project id.
+// iterationID - the iteration id. Defaults to workspace.
+// tagIds - a list of tags ids to filter the images to count. Defaults to all tags when null.
+func (client BaseClient) GetTaggedImageCount(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, tagIds []uuid.UUID) (result Int32, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetTaggedImageCount")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetTaggedImageCountPreparer(ctx, projectID, iterationID, tagIds)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImageCount", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetTaggedImageCountSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImageCount", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetTaggedImageCountResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImageCount", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetTaggedImageCountPreparer prepares the GetTaggedImageCount request.
+func (client BaseClient) GetTaggedImageCountPreparer(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, tagIds []uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if iterationID != nil {
+ queryParameters["iterationId"] = autorest.Encode("query", *iterationID)
+ }
+ if tagIds != nil && len(tagIds) > 0 {
+ queryParameters["tagIds"] = autorest.Encode("query", tagIds, ",")
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/images/tagged/count", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetTaggedImageCountSender sends the GetTaggedImageCount request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetTaggedImageCountSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetTaggedImageCountResponder handles the response to the GetTaggedImageCount request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetTaggedImageCountResponder(resp *http.Response) (result Int32, 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
+}
+
+// GetTaggedImages this API supports batching and range selection. By default it will only return first 50 images
+// matching images.
+// Use the {take} and {skip} parameters to control how many images to return in a given batch.
+// The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and
+// "Cat" tags, then only images tagged with Dog and/or Cat will be returned
+// Parameters:
+// projectID - the project id.
+// iterationID - the iteration id. Defaults to workspace.
+// tagIds - a list of tags ids to filter the images. Defaults to all tagged images when null. Limited to 20.
+// orderBy - the ordering. Defaults to newest.
+// take - maximum number of images to return. Defaults to 50, limited to 256.
+// skip - number of images to skip before beginning the image batch. Defaults to 0.
+func (client BaseClient) GetTaggedImages(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, tagIds []uuid.UUID, orderBy string, take *int32, skip *int32) (result ListImage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetTaggedImages")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: tagIds,
+ Constraints: []validation.Constraint{{Target: "tagIds", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "tagIds", Name: validation.MaxItems, Rule: 20, Chain: nil},
+ {Target: "tagIds", Name: validation.MinItems, Rule: 0, Chain: nil},
+ }}}},
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(256), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("training.BaseClient", "GetTaggedImages", err.Error())
+ }
+
+ req, err := client.GetTaggedImagesPreparer(ctx, projectID, iterationID, tagIds, orderBy, take, skip)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImages", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetTaggedImagesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImages", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetTaggedImagesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTaggedImages", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetTaggedImagesPreparer prepares the GetTaggedImages request.
+func (client BaseClient) GetTaggedImagesPreparer(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, tagIds []uuid.UUID, orderBy string, take *int32, skip *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if iterationID != nil {
+ queryParameters["iterationId"] = autorest.Encode("query", *iterationID)
+ }
+ if tagIds != nil && len(tagIds) > 0 {
+ queryParameters["tagIds"] = autorest.Encode("query", tagIds, ",")
+ }
+ if len(string(orderBy)) > 0 {
+ queryParameters["orderBy"] = autorest.Encode("query", orderBy)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 50)
+ }
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/images/tagged", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetTaggedImagesSender sends the GetTaggedImages request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetTaggedImagesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetTaggedImagesResponder handles the response to the GetTaggedImages request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetTaggedImagesResponder(resp *http.Response) (result ListImage, 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
+}
+
+// GetTags sends the get tags request.
+// Parameters:
+// projectID - the project id.
+// iterationID - the iteration id. Defaults to workspace.
+func (client BaseClient) GetTags(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID) (result ListTag, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetTags")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetTagsPreparer(ctx, projectID, iterationID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTags", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetTagsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTags", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetTagsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetTags", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetTagsPreparer prepares the GetTags request.
+func (client BaseClient) GetTagsPreparer(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if iterationID != nil {
+ queryParameters["iterationId"] = autorest.Encode("query", *iterationID)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/tags", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetTagsSender sends the GetTags request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetTagsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetTagsResponder handles the response to the GetTags request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetTagsResponder(resp *http.Response) (result ListTag, 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
+}
+
+// GetUntaggedImageCount this API returns the images which have no tags for a given project and optionally an
+// iteration. If no iteration is specified the
+// current workspace is used.
+// Parameters:
+// projectID - the project id.
+// iterationID - the iteration id. Defaults to workspace.
+func (client BaseClient) GetUntaggedImageCount(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID) (result Int32, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetUntaggedImageCount")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetUntaggedImageCountPreparer(ctx, projectID, iterationID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImageCount", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetUntaggedImageCountSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImageCount", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetUntaggedImageCountResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImageCount", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetUntaggedImageCountPreparer prepares the GetUntaggedImageCount request.
+func (client BaseClient) GetUntaggedImageCountPreparer(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if iterationID != nil {
+ queryParameters["iterationId"] = autorest.Encode("query", *iterationID)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/images/untagged/count", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetUntaggedImageCountSender sends the GetUntaggedImageCount request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetUntaggedImageCountSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetUntaggedImageCountResponder handles the response to the GetUntaggedImageCount request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetUntaggedImageCountResponder(resp *http.Response) (result Int32, 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
+}
+
+// GetUntaggedImages this API supports batching and range selection. By default it will only return first 50 images
+// matching images.
+// Use the {take} and {skip} parameters to control how many images to return in a given batch.
+// Parameters:
+// projectID - the project id.
+// iterationID - the iteration id. Defaults to workspace.
+// orderBy - the ordering. Defaults to newest.
+// take - maximum number of images to return. Defaults to 50, limited to 256.
+// skip - number of images to skip before beginning the image batch. Defaults to 0.
+func (client BaseClient) GetUntaggedImages(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, orderBy string, take *int32, skip *int32) (result ListImage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.GetUntaggedImages")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(256), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("training.BaseClient", "GetUntaggedImages", err.Error())
+ }
+
+ req, err := client.GetUntaggedImagesPreparer(ctx, projectID, iterationID, orderBy, take, skip)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImages", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetUntaggedImagesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImages", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetUntaggedImagesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "GetUntaggedImages", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetUntaggedImagesPreparer prepares the GetUntaggedImages request.
+func (client BaseClient) GetUntaggedImagesPreparer(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, orderBy string, take *int32, skip *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if iterationID != nil {
+ queryParameters["iterationId"] = autorest.Encode("query", *iterationID)
+ }
+ if len(string(orderBy)) > 0 {
+ queryParameters["orderBy"] = autorest.Encode("query", orderBy)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 50)
+ }
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/images/untagged", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetUntaggedImagesSender sends the GetUntaggedImages request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) GetUntaggedImagesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetUntaggedImagesResponder handles the response to the GetUntaggedImages request. The method always
+// closes the http.Response Body.
+func (client BaseClient) GetUntaggedImagesResponder(resp *http.Response) (result ListImage, 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
+}
+
+// PublishIteration sends the publish iteration request.
+// Parameters:
+// projectID - the project id.
+// iterationID - the iteration id.
+// publishName - the name to give the published iteration.
+// predictionID - the id of the prediction resource to publish to.
+func (client BaseClient) PublishIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, publishName string, predictionID string) (result Bool, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.PublishIteration")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.PublishIterationPreparer(ctx, projectID, iterationID, publishName, predictionID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "PublishIteration", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.PublishIterationSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "PublishIteration", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.PublishIterationResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "PublishIteration", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// PublishIterationPreparer prepares the PublishIteration request.
+func (client BaseClient) PublishIterationPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, publishName string, predictionID string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "iterationId": autorest.Encode("path", iterationID),
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{
+ "predictionId": autorest.Encode("query", predictionID),
+ "publishName": autorest.Encode("query", publishName),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/iterations/{iterationId}/publish", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// PublishIterationSender sends the PublishIteration request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) PublishIterationSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// PublishIterationResponder handles the response to the PublishIteration request. The method always
+// closes the http.Response Body.
+func (client BaseClient) PublishIterationResponder(resp *http.Response) (result Bool, 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
+}
+
+// QueryPredictions sends the query predictions request.
+// Parameters:
+// projectID - the project id.
+// query - parameters used to query the predictions. Limited to combining 2 tags.
+func (client BaseClient) QueryPredictions(ctx context.Context, projectID uuid.UUID, query PredictionQueryToken) (result PredictionQueryResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.QueryPredictions")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.QueryPredictionsPreparer(ctx, projectID, query)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "QueryPredictions", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.QueryPredictionsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "QueryPredictions", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.QueryPredictionsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "QueryPredictions", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// QueryPredictionsPreparer prepares the QueryPredictions request.
+func (client BaseClient) QueryPredictionsPreparer(ctx context.Context, projectID uuid.UUID, query PredictionQueryToken) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/predictions/query", pathParameters),
+ autorest.WithJSON(query),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// QueryPredictionsSender sends the QueryPredictions request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) QueryPredictionsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// QueryPredictionsResponder handles the response to the QueryPredictions request. The method always
+// closes the http.Response Body.
+func (client BaseClient) QueryPredictionsResponder(resp *http.Response) (result PredictionQueryResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// QuerySuggestedImageCount this API takes in tagIds to get count of untagged images per suggested tags for a given
+// threshold.
+// Parameters:
+// projectID - the project id.
+// iterationID - iterationId to use for the suggested tags and regions.
+// query - model that contains tagIds, threshold and projectType to query by.
+func (client BaseClient) QuerySuggestedImageCount(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, query TagFilter) (result SetInt32, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.QuerySuggestedImageCount")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.QuerySuggestedImageCountPreparer(ctx, projectID, iterationID, query)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "QuerySuggestedImageCount", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.QuerySuggestedImageCountSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "QuerySuggestedImageCount", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.QuerySuggestedImageCountResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "QuerySuggestedImageCount", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// QuerySuggestedImageCountPreparer prepares the QuerySuggestedImageCount request.
+func (client BaseClient) QuerySuggestedImageCountPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, query TagFilter) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{
+ "iterationId": autorest.Encode("query", iterationID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/images/suggested/count", pathParameters),
+ autorest.WithJSON(query),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// QuerySuggestedImageCountSender sends the QuerySuggestedImageCount request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) QuerySuggestedImageCountSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// QuerySuggestedImageCountResponder handles the response to the QuerySuggestedImageCount request. The method always
+// closes the http.Response Body.
+func (client BaseClient) QuerySuggestedImageCountResponder(resp *http.Response) (result SetInt32, 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
+}
+
+// QuerySuggestedImages this API will fetch untagged images filtered by suggested tags Ids. It returns an empty array
+// if no images are found.
+// Parameters:
+// projectID - the project id.
+// iterationID - iterationId to use for the suggested tags and regions.
+// query - contains properties we need to query suggested images.
+func (client BaseClient) QuerySuggestedImages(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, query SuggestedTagAndRegionQueryToken) (result SuggestedTagAndRegionQuery, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.QuerySuggestedImages")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.QuerySuggestedImagesPreparer(ctx, projectID, iterationID, query)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "QuerySuggestedImages", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.QuerySuggestedImagesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "QuerySuggestedImages", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.QuerySuggestedImagesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "QuerySuggestedImages", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// QuerySuggestedImagesPreparer prepares the QuerySuggestedImages request.
+func (client BaseClient) QuerySuggestedImagesPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, query SuggestedTagAndRegionQueryToken) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{
+ "iterationId": autorest.Encode("query", iterationID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/images/suggested", pathParameters),
+ autorest.WithJSON(query),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// QuerySuggestedImagesSender sends the QuerySuggestedImages request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) QuerySuggestedImagesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// QuerySuggestedImagesResponder handles the response to the QuerySuggestedImages request. The method always
+// closes the http.Response Body.
+func (client BaseClient) QuerySuggestedImagesResponder(resp *http.Response) (result SuggestedTagAndRegionQuery, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// QuickTestImage sends the quick test image request.
+// Parameters:
+// projectID - the project id.
+// imageData - binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 6MB.
+// iterationID - optional. Specifies the id of a particular iteration to evaluate against.
+// The default iteration for the project will be used when not specified.
+// store - optional. Specifies whether or not to store the result of this prediction. The default is true, to
+// store.
+func (client BaseClient) QuickTestImage(ctx context.Context, projectID uuid.UUID, imageData io.ReadCloser, iterationID *uuid.UUID, store *bool) (result ImagePrediction, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.QuickTestImage")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.QuickTestImagePreparer(ctx, projectID, imageData, iterationID, store)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImage", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.QuickTestImageSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImage", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.QuickTestImageResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImage", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// QuickTestImagePreparer prepares the QuickTestImage request.
+func (client BaseClient) QuickTestImagePreparer(ctx context.Context, projectID uuid.UUID, imageData io.ReadCloser, iterationID *uuid.UUID, store *bool) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if iterationID != nil {
+ queryParameters["iterationId"] = autorest.Encode("query", *iterationID)
+ }
+ if store != nil {
+ queryParameters["store"] = autorest.Encode("query", *store)
+ } else {
+ queryParameters["store"] = autorest.Encode("query", true)
+ }
+
+ formDataParameters := map[string]interface{}{
+ "imageData": imageData,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/quicktest/image", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithMultiPartFormData(formDataParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// QuickTestImageSender sends the QuickTestImage request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) QuickTestImageSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// QuickTestImageResponder handles the response to the QuickTestImage request. The method always
+// closes the http.Response Body.
+func (client BaseClient) QuickTestImageResponder(resp *http.Response) (result ImagePrediction, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// QuickTestImageURL sends the quick test image url request.
+// Parameters:
+// projectID - the project to evaluate against.
+// imageURL - an ImageUrl that contains the url of the image to be evaluated.
+// iterationID - optional. Specifies the id of a particular iteration to evaluate against.
+// The default iteration for the project will be used when not specified.
+// store - optional. Specifies whether or not to store the result of this prediction. The default is true, to
+// store.
+func (client BaseClient) QuickTestImageURL(ctx context.Context, projectID uuid.UUID, imageURL ImageURL, iterationID *uuid.UUID, store *bool) (result ImagePrediction, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.QuickTestImageURL")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: imageURL,
+ Constraints: []validation.Constraint{{Target: "imageURL.URL", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("training.BaseClient", "QuickTestImageURL", err.Error())
+ }
+
+ req, err := client.QuickTestImageURLPreparer(ctx, projectID, imageURL, iterationID, store)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImageURL", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.QuickTestImageURLSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImageURL", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.QuickTestImageURLResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "QuickTestImageURL", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// QuickTestImageURLPreparer prepares the QuickTestImageURL request.
+func (client BaseClient) QuickTestImageURLPreparer(ctx context.Context, projectID uuid.UUID, imageURL ImageURL, iterationID *uuid.UUID, store *bool) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if iterationID != nil {
+ queryParameters["iterationId"] = autorest.Encode("query", *iterationID)
+ }
+ if store != nil {
+ queryParameters["store"] = autorest.Encode("query", *store)
+ } else {
+ queryParameters["store"] = autorest.Encode("query", true)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/quicktest/url", pathParameters),
+ autorest.WithJSON(imageURL),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// QuickTestImageURLSender sends the QuickTestImageURL request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) QuickTestImageURLSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// QuickTestImageURLResponder handles the response to the QuickTestImageURL request. The method always
+// closes the http.Response Body.
+func (client BaseClient) QuickTestImageURLResponder(resp *http.Response) (result ImagePrediction, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// SuggestTagsAndRegions this API will get suggested tags and regions for an array/batch of untagged images along with
+// confidences for the tags. It returns an empty array if no tags are found.
+// There is a limit of 64 images in the batch.
+// Parameters:
+// projectID - the project id.
+// iterationID - iterationId to use for tag and region suggestion.
+// imageIds - array of image ids tag suggestion are needed for. Use GetUntaggedImages API to get imageIds.
+func (client BaseClient) SuggestTagsAndRegions(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, imageIds []uuid.UUID) (result ListSuggestedTagAndRegion, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.SuggestTagsAndRegions")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: imageIds,
+ Constraints: []validation.Constraint{{Target: "imageIds", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "imageIds", Name: validation.MaxItems, Rule: 64, Chain: nil},
+ {Target: "imageIds", Name: validation.MinItems, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("training.BaseClient", "SuggestTagsAndRegions", err.Error())
+ }
+
+ req, err := client.SuggestTagsAndRegionsPreparer(ctx, projectID, iterationID, imageIds)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "SuggestTagsAndRegions", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.SuggestTagsAndRegionsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "SuggestTagsAndRegions", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.SuggestTagsAndRegionsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "SuggestTagsAndRegions", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// SuggestTagsAndRegionsPreparer prepares the SuggestTagsAndRegions request.
+func (client BaseClient) SuggestTagsAndRegionsPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, imageIds []uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{
+ "imageIds": autorest.Encode("query", imageIds, ","),
+ "iterationId": autorest.Encode("query", iterationID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/tagsandregions/suggestions", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// SuggestTagsAndRegionsSender sends the SuggestTagsAndRegions request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) SuggestTagsAndRegionsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// SuggestTagsAndRegionsResponder handles the response to the SuggestTagsAndRegions request. The method always
+// closes the http.Response Body.
+func (client BaseClient) SuggestTagsAndRegionsResponder(resp *http.Response) (result ListSuggestedTagAndRegion, 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
+}
+
+// TrainProject sends the train project request.
+// Parameters:
+// projectID - the project id.
+// trainingType - the type of training to use to train the project (default: Regular).
+// reservedBudgetInHours - the number of hours reserved as budget for training (if applicable).
+// forceTrain - whether to force train even if dataset and configuration does not change (default: false).
+// notificationEmailAddress - the email address to send notification to when training finishes (default: null).
+func (client BaseClient) TrainProject(ctx context.Context, projectID uuid.UUID, trainingType string, reservedBudgetInHours *int32, forceTrain *bool, notificationEmailAddress string) (result Iteration, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.TrainProject")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.TrainProjectPreparer(ctx, projectID, trainingType, reservedBudgetInHours, forceTrain, notificationEmailAddress)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "TrainProject", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.TrainProjectSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "TrainProject", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.TrainProjectResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "TrainProject", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// TrainProjectPreparer prepares the TrainProject request.
+func (client BaseClient) TrainProjectPreparer(ctx context.Context, projectID uuid.UUID, trainingType string, reservedBudgetInHours *int32, forceTrain *bool, notificationEmailAddress string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if len(string(trainingType)) > 0 {
+ queryParameters["trainingType"] = autorest.Encode("query", trainingType)
+ }
+ if reservedBudgetInHours != nil {
+ queryParameters["reservedBudgetInHours"] = autorest.Encode("query", *reservedBudgetInHours)
+ } else {
+ queryParameters["reservedBudgetInHours"] = autorest.Encode("query", 0)
+ }
+ if forceTrain != nil {
+ queryParameters["forceTrain"] = autorest.Encode("query", *forceTrain)
+ } else {
+ queryParameters["forceTrain"] = autorest.Encode("query", false)
+ }
+ if len(notificationEmailAddress) > 0 {
+ queryParameters["notificationEmailAddress"] = autorest.Encode("query", notificationEmailAddress)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/train", pathParameters),
+ autorest.WithQueryParameters(queryParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// TrainProjectSender sends the TrainProject request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) TrainProjectSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// TrainProjectResponder handles the response to the TrainProject request. The method always
+// closes the http.Response Body.
+func (client BaseClient) TrainProjectResponder(resp *http.Response) (result Iteration, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UnpublishIteration sends the unpublish iteration request.
+// Parameters:
+// projectID - the project id.
+// iterationID - the iteration id.
+func (client BaseClient) UnpublishIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (result autorest.Response, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.UnpublishIteration")
+ defer func() {
+ sc := -1
+ if result.Response != nil {
+ sc = result.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UnpublishIterationPreparer(ctx, projectID, iterationID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "UnpublishIteration", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UnpublishIterationSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "UnpublishIteration", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UnpublishIterationResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "UnpublishIteration", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UnpublishIterationPreparer prepares the UnpublishIteration request.
+func (client BaseClient) UnpublishIterationPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "iterationId": autorest.Encode("path", iterationID),
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/iterations/{iterationId}/publish", pathParameters),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UnpublishIterationSender sends the UnpublishIteration request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) UnpublishIterationSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UnpublishIterationResponder handles the response to the UnpublishIteration request. The method always
+// closes the http.Response Body.
+func (client BaseClient) UnpublishIterationResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// UpdateIteration sends the update iteration request.
+// Parameters:
+// projectID - project id.
+// iterationID - iteration id.
+// updatedIteration - the updated iteration model.
+func (client BaseClient) UpdateIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, updatedIteration Iteration) (result Iteration, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.UpdateIteration")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateIterationPreparer(ctx, projectID, iterationID, updatedIteration)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateIteration", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateIterationSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateIteration", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateIterationResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateIteration", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateIterationPreparer prepares the UpdateIteration request.
+func (client BaseClient) UpdateIterationPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, updatedIteration Iteration) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "iterationId": autorest.Encode("path", iterationID),
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ updatedIteration.ID = nil
+ updatedIteration.Status = nil
+ updatedIteration.Created = nil
+ updatedIteration.LastModified = nil
+ updatedIteration.TrainedAt = nil
+ updatedIteration.ProjectID = nil
+ updatedIteration.Exportable = nil
+ updatedIteration.ExportableTo = nil
+ updatedIteration.DomainID = nil
+ updatedIteration.ClassificationType = ""
+ updatedIteration.TrainingType = ""
+ updatedIteration.ReservedBudgetInHours = nil
+ updatedIteration.TrainingTimeInMinutes = nil
+ updatedIteration.PublishName = nil
+ updatedIteration.OriginalPublishResourceID = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPatch(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/iterations/{iterationId}", pathParameters),
+ autorest.WithJSON(updatedIteration),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateIterationSender sends the UpdateIteration request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) UpdateIterationSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateIterationResponder handles the response to the UpdateIteration request. The method always
+// closes the http.Response Body.
+func (client BaseClient) UpdateIterationResponder(resp *http.Response) (result Iteration, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateProject sends the update project request.
+// Parameters:
+// projectID - the id of the project to update.
+// updatedProject - the updated project model.
+func (client BaseClient) UpdateProject(ctx context.Context, projectID uuid.UUID, updatedProject Project) (result Project, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.UpdateProject")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateProjectPreparer(ctx, projectID, updatedProject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateProject", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateProjectSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateProject", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateProjectResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateProject", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateProjectPreparer prepares the UpdateProject request.
+func (client BaseClient) UpdateProjectPreparer(ctx context.Context, projectID uuid.UUID, updatedProject Project) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ }
+
+ updatedProject.ID = nil
+ updatedProject.Created = nil
+ updatedProject.LastModified = nil
+ updatedProject.ThumbnailURI = nil
+ updatedProject.DrModeEnabled = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPatch(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}", pathParameters),
+ autorest.WithJSON(updatedProject),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateProjectSender sends the UpdateProject request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) UpdateProjectSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateProjectResponder handles the response to the UpdateProject request. The method always
+// closes the http.Response Body.
+func (client BaseClient) UpdateProjectResponder(resp *http.Response) (result Project, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateTag sends the update tag request.
+// Parameters:
+// projectID - the project id.
+// tagID - the id of the target tag.
+// updatedTag - the updated tag model.
+func (client BaseClient) UpdateTag(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID, updatedTag Tag) (result Tag, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.UpdateTag")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateTagPreparer(ctx, projectID, tagID, updatedTag)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateTag", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateTagSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateTag", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateTagResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "training.BaseClient", "UpdateTag", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateTagPreparer prepares the UpdateTag request.
+func (client BaseClient) UpdateTagPreparer(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID, updatedTag Tag) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "projectId": autorest.Encode("path", projectID),
+ "tagId": autorest.Encode("path", tagID),
+ }
+
+ updatedTag.ID = nil
+ updatedTag.ImageCount = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPatch(),
+ autorest.WithCustomBaseURL("{Endpoint}/customvision/v3.1/training", urlParameters),
+ autorest.WithPathParameters("/projects/{projectId}/tags/{tagId}", pathParameters),
+ autorest.WithJSON(updatedTag),
+ autorest.WithHeader("Training-Key", client.APIKey))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateTagSender sends the UpdateTag request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) UpdateTagSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateTagResponder handles the response to the UpdateTag request. The method always
+// closes the http.Response Body.
+func (client BaseClient) UpdateTagResponder(resp *http.Response) (result Tag, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/cognitiveservices/v3.1/customvision/training/models.go b/services/cognitiveservices/v3.1/customvision/training/models.go
new file mode 100644
index 000000000000..4bf92ebc7dd9
--- /dev/null
+++ b/services/cognitiveservices/v3.1/customvision/training/models.go
@@ -0,0 +1,1128 @@
+package training
+
+// 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 (
+ "encoding/json"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/date"
+ "github.com/satori/go.uuid"
+)
+
+// The package's fully qualified name.
+const fqdn = "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.1/customvision/training"
+
+// Classifier enumerates the values for classifier.
+type Classifier string
+
+const (
+ // Multiclass ...
+ Multiclass Classifier = "Multiclass"
+ // Multilabel ...
+ Multilabel Classifier = "Multilabel"
+)
+
+// PossibleClassifierValues returns an array of possible values for the Classifier const type.
+func PossibleClassifierValues() []Classifier {
+ return []Classifier{Multiclass, Multilabel}
+}
+
+// CustomVisionErrorCodes enumerates the values for custom vision error codes.
+type CustomVisionErrorCodes string
+
+const (
+ // BadRequest ...
+ BadRequest CustomVisionErrorCodes = "BadRequest"
+ // BadRequestCannotMigrateProjectWithName ...
+ BadRequestCannotMigrateProjectWithName CustomVisionErrorCodes = "BadRequestCannotMigrateProjectWithName"
+ // BadRequestClassificationTrainingValidationFailed ...
+ BadRequestClassificationTrainingValidationFailed CustomVisionErrorCodes = "BadRequestClassificationTrainingValidationFailed"
+ // BadRequestDetectionTrainingNotAllowNegativeTag ...
+ BadRequestDetectionTrainingNotAllowNegativeTag CustomVisionErrorCodes = "BadRequestDetectionTrainingNotAllowNegativeTag"
+ // BadRequestDetectionTrainingValidationFailed ...
+ BadRequestDetectionTrainingValidationFailed CustomVisionErrorCodes = "BadRequestDetectionTrainingValidationFailed"
+ // BadRequestDomainNotSupportedForAdvancedTraining ...
+ BadRequestDomainNotSupportedForAdvancedTraining CustomVisionErrorCodes = "BadRequestDomainNotSupportedForAdvancedTraining"
+ // BadRequestExceededBatchSize ...
+ BadRequestExceededBatchSize CustomVisionErrorCodes = "BadRequestExceededBatchSize"
+ // BadRequestExceededQuota ...
+ BadRequestExceededQuota CustomVisionErrorCodes = "BadRequestExceededQuota"
+ // BadRequestExceedIterationPerProjectLimit ...
+ BadRequestExceedIterationPerProjectLimit CustomVisionErrorCodes = "BadRequestExceedIterationPerProjectLimit"
+ // BadRequestExceedProjectLimit ...
+ BadRequestExceedProjectLimit CustomVisionErrorCodes = "BadRequestExceedProjectLimit"
+ // BadRequestExceedTagPerImageLimit ...
+ BadRequestExceedTagPerImageLimit CustomVisionErrorCodes = "BadRequestExceedTagPerImageLimit"
+ // BadRequestExceedTagPerProjectLimit ...
+ BadRequestExceedTagPerProjectLimit CustomVisionErrorCodes = "BadRequestExceedTagPerProjectLimit"
+ // BadRequestExportAlreadyInProgress ...
+ BadRequestExportAlreadyInProgress CustomVisionErrorCodes = "BadRequestExportAlreadyInProgress"
+ // BadRequestExportPlatformNotSupportedForAdvancedTraining ...
+ BadRequestExportPlatformNotSupportedForAdvancedTraining CustomVisionErrorCodes = "BadRequestExportPlatformNotSupportedForAdvancedTraining"
+ // BadRequestExportValidationFailed ...
+ BadRequestExportValidationFailed CustomVisionErrorCodes = "BadRequestExportValidationFailed"
+ // BadRequestImageBatch ...
+ BadRequestImageBatch CustomVisionErrorCodes = "BadRequestImageBatch"
+ // BadRequestImageExceededCount ...
+ BadRequestImageExceededCount CustomVisionErrorCodes = "BadRequestImageExceededCount"
+ // BadRequestImageFormat ...
+ BadRequestImageFormat CustomVisionErrorCodes = "BadRequestImageFormat"
+ // BadRequestImageRegions ...
+ BadRequestImageRegions CustomVisionErrorCodes = "BadRequestImageRegions"
+ // BadRequestImageSizeBytes ...
+ BadRequestImageSizeBytes CustomVisionErrorCodes = "BadRequestImageSizeBytes"
+ // BadRequestImageStream ...
+ BadRequestImageStream CustomVisionErrorCodes = "BadRequestImageStream"
+ // BadRequestImageTags ...
+ BadRequestImageTags CustomVisionErrorCodes = "BadRequestImageTags"
+ // BadRequestImageURL ...
+ BadRequestImageURL CustomVisionErrorCodes = "BadRequestImageUrl"
+ // BadRequestInvalid ...
+ BadRequestInvalid CustomVisionErrorCodes = "BadRequestInvalid"
+ // BadRequestInvalidEmailAddress ...
+ BadRequestInvalidEmailAddress CustomVisionErrorCodes = "BadRequestInvalidEmailAddress"
+ // BadRequestInvalidIds ...
+ BadRequestInvalidIds CustomVisionErrorCodes = "BadRequestInvalidIds"
+ // BadRequestInvalidPublishName ...
+ BadRequestInvalidPublishName CustomVisionErrorCodes = "BadRequestInvalidPublishName"
+ // BadRequestInvalidPublishTarget ...
+ BadRequestInvalidPublishTarget CustomVisionErrorCodes = "BadRequestInvalidPublishTarget"
+ // BadRequestIterationDescription ...
+ BadRequestIterationDescription CustomVisionErrorCodes = "BadRequestIterationDescription"
+ // BadRequestIterationIsNotTrained ...
+ BadRequestIterationIsNotTrained CustomVisionErrorCodes = "BadRequestIterationIsNotTrained"
+ // BadRequestIterationIsPublished ...
+ BadRequestIterationIsPublished CustomVisionErrorCodes = "BadRequestIterationIsPublished"
+ // BadRequestIterationName ...
+ BadRequestIterationName CustomVisionErrorCodes = "BadRequestIterationName"
+ // BadRequestIterationNameNotUnique ...
+ BadRequestIterationNameNotUnique CustomVisionErrorCodes = "BadRequestIterationNameNotUnique"
+ // BadRequestIterationNotPublished ...
+ BadRequestIterationNotPublished CustomVisionErrorCodes = "BadRequestIterationNotPublished"
+ // BadRequestMultiClassClassificationTrainingValidationFailed ...
+ BadRequestMultiClassClassificationTrainingValidationFailed CustomVisionErrorCodes = "BadRequestMultiClassClassificationTrainingValidationFailed"
+ // BadRequestMultiLabelClassificationTrainingValidationFailed ...
+ BadRequestMultiLabelClassificationTrainingValidationFailed CustomVisionErrorCodes = "BadRequestMultiLabelClassificationTrainingValidationFailed"
+ // BadRequestMultipleNegativeTag ...
+ BadRequestMultipleNegativeTag CustomVisionErrorCodes = "BadRequestMultipleNegativeTag"
+ // BadRequestNegativeAndRegularTagOnSameImage ...
+ BadRequestNegativeAndRegularTagOnSameImage CustomVisionErrorCodes = "BadRequestNegativeAndRegularTagOnSameImage"
+ // BadRequestNotLimitedTrial ...
+ BadRequestNotLimitedTrial CustomVisionErrorCodes = "BadRequestNotLimitedTrial"
+ // BadRequestNotSupported ...
+ BadRequestNotSupported CustomVisionErrorCodes = "BadRequestNotSupported"
+ // BadRequestPredictionIdsExceededCount ...
+ BadRequestPredictionIdsExceededCount CustomVisionErrorCodes = "BadRequestPredictionIdsExceededCount"
+ // BadRequestPredictionIdsMissing ...
+ BadRequestPredictionIdsMissing CustomVisionErrorCodes = "BadRequestPredictionIdsMissing"
+ // BadRequestPredictionInvalidApplicationName ...
+ BadRequestPredictionInvalidApplicationName CustomVisionErrorCodes = "BadRequestPredictionInvalidApplicationName"
+ // BadRequestPredictionInvalidQueryParameters ...
+ BadRequestPredictionInvalidQueryParameters CustomVisionErrorCodes = "BadRequestPredictionInvalidQueryParameters"
+ // BadRequestPredictionResultsExceededCount ...
+ BadRequestPredictionResultsExceededCount CustomVisionErrorCodes = "BadRequestPredictionResultsExceededCount"
+ // BadRequestPredictionTagsExceededCount ...
+ BadRequestPredictionTagsExceededCount CustomVisionErrorCodes = "BadRequestPredictionTagsExceededCount"
+ // BadRequestProjectDescription ...
+ BadRequestProjectDescription CustomVisionErrorCodes = "BadRequestProjectDescription"
+ // BadRequestProjectImagePreprocessingSettings ...
+ BadRequestProjectImagePreprocessingSettings CustomVisionErrorCodes = "BadRequestProjectImagePreprocessingSettings"
+ // BadRequestProjectName ...
+ BadRequestProjectName CustomVisionErrorCodes = "BadRequestProjectName"
+ // BadRequestProjectNameNotUnique ...
+ BadRequestProjectNameNotUnique CustomVisionErrorCodes = "BadRequestProjectNameNotUnique"
+ // BadRequestProjectUnknownClassification ...
+ BadRequestProjectUnknownClassification CustomVisionErrorCodes = "BadRequestProjectUnknownClassification"
+ // BadRequestProjectUnknownDomain ...
+ BadRequestProjectUnknownDomain CustomVisionErrorCodes = "BadRequestProjectUnknownDomain"
+ // BadRequestProjectUnsupportedDomainTypeChange ...
+ BadRequestProjectUnsupportedDomainTypeChange CustomVisionErrorCodes = "BadRequestProjectUnsupportedDomainTypeChange"
+ // BadRequestProjectUnsupportedExportPlatform ...
+ BadRequestProjectUnsupportedExportPlatform CustomVisionErrorCodes = "BadRequestProjectUnsupportedExportPlatform"
+ // BadRequestRequiredParamIsNull ...
+ BadRequestRequiredParamIsNull CustomVisionErrorCodes = "BadRequestRequiredParamIsNull"
+ // BadRequestReservedBudgetInHoursNotEnoughForAdvancedTraining ...
+ BadRequestReservedBudgetInHoursNotEnoughForAdvancedTraining CustomVisionErrorCodes = "BadRequestReservedBudgetInHoursNotEnoughForAdvancedTraining"
+ // BadRequestSubscriptionAPI ...
+ BadRequestSubscriptionAPI CustomVisionErrorCodes = "BadRequestSubscriptionApi"
+ // BadRequestTagDescription ...
+ BadRequestTagDescription CustomVisionErrorCodes = "BadRequestTagDescription"
+ // BadRequestTagName ...
+ BadRequestTagName CustomVisionErrorCodes = "BadRequestTagName"
+ // BadRequestTagNameNotUnique ...
+ BadRequestTagNameNotUnique CustomVisionErrorCodes = "BadRequestTagNameNotUnique"
+ // BadRequestTagType ...
+ BadRequestTagType CustomVisionErrorCodes = "BadRequestTagType"
+ // BadRequestTrainingAlreadyInProgress ...
+ BadRequestTrainingAlreadyInProgress CustomVisionErrorCodes = "BadRequestTrainingAlreadyInProgress"
+ // BadRequestTrainingNotNeeded ...
+ BadRequestTrainingNotNeeded CustomVisionErrorCodes = "BadRequestTrainingNotNeeded"
+ // BadRequestTrainingNotNeededButTrainingPipelineUpdated ...
+ BadRequestTrainingNotNeededButTrainingPipelineUpdated CustomVisionErrorCodes = "BadRequestTrainingNotNeededButTrainingPipelineUpdated"
+ // BadRequestTrainingValidationFailed ...
+ BadRequestTrainingValidationFailed CustomVisionErrorCodes = "BadRequestTrainingValidationFailed"
+ // BadRequestUnpublishFailed ...
+ BadRequestUnpublishFailed CustomVisionErrorCodes = "BadRequestUnpublishFailed"
+ // BadRequestWorkspaceCannotBeModified ...
+ BadRequestWorkspaceCannotBeModified CustomVisionErrorCodes = "BadRequestWorkspaceCannotBeModified"
+ // BadRequestWorkspaceNotDeletable ...
+ BadRequestWorkspaceNotDeletable CustomVisionErrorCodes = "BadRequestWorkspaceNotDeletable"
+ // Conflict ...
+ Conflict CustomVisionErrorCodes = "Conflict"
+ // ConflictInvalid ...
+ ConflictInvalid CustomVisionErrorCodes = "ConflictInvalid"
+ // ErrorExporterInvalidClassifier ...
+ ErrorExporterInvalidClassifier CustomVisionErrorCodes = "ErrorExporterInvalidClassifier"
+ // ErrorExporterInvalidFeaturizer ...
+ ErrorExporterInvalidFeaturizer CustomVisionErrorCodes = "ErrorExporterInvalidFeaturizer"
+ // ErrorExporterInvalidPlatform ...
+ ErrorExporterInvalidPlatform CustomVisionErrorCodes = "ErrorExporterInvalidPlatform"
+ // ErrorFeaturizationAugmentationError ...
+ ErrorFeaturizationAugmentationError CustomVisionErrorCodes = "ErrorFeaturizationAugmentationError"
+ // ErrorFeaturizationAugmentationUnavailable ...
+ ErrorFeaturizationAugmentationUnavailable CustomVisionErrorCodes = "ErrorFeaturizationAugmentationUnavailable"
+ // ErrorFeaturizationInvalidFeaturizer ...
+ ErrorFeaturizationInvalidFeaturizer CustomVisionErrorCodes = "ErrorFeaturizationInvalidFeaturizer"
+ // ErrorFeaturizationQueueTimeout ...
+ ErrorFeaturizationQueueTimeout CustomVisionErrorCodes = "ErrorFeaturizationQueueTimeout"
+ // ErrorFeaturizationServiceUnavailable ...
+ ErrorFeaturizationServiceUnavailable CustomVisionErrorCodes = "ErrorFeaturizationServiceUnavailable"
+ // ErrorFeaturizationUnrecognizedJob ...
+ ErrorFeaturizationUnrecognizedJob CustomVisionErrorCodes = "ErrorFeaturizationUnrecognizedJob"
+ // ErrorInvalid ...
+ ErrorInvalid CustomVisionErrorCodes = "ErrorInvalid"
+ // ErrorPrediction ...
+ ErrorPrediction CustomVisionErrorCodes = "ErrorPrediction"
+ // ErrorPredictionModelNotCached ...
+ ErrorPredictionModelNotCached CustomVisionErrorCodes = "ErrorPredictionModelNotCached"
+ // ErrorPredictionModelNotFound ...
+ ErrorPredictionModelNotFound CustomVisionErrorCodes = "ErrorPredictionModelNotFound"
+ // ErrorPredictionServiceUnavailable ...
+ ErrorPredictionServiceUnavailable CustomVisionErrorCodes = "ErrorPredictionServiceUnavailable"
+ // ErrorPredictionStorage ...
+ ErrorPredictionStorage CustomVisionErrorCodes = "ErrorPredictionStorage"
+ // ErrorProjectExportRequestFailed ...
+ ErrorProjectExportRequestFailed CustomVisionErrorCodes = "ErrorProjectExportRequestFailed"
+ // ErrorProjectInvalidDomain ...
+ ErrorProjectInvalidDomain CustomVisionErrorCodes = "ErrorProjectInvalidDomain"
+ // ErrorProjectInvalidPipelineConfiguration ...
+ ErrorProjectInvalidPipelineConfiguration CustomVisionErrorCodes = "ErrorProjectInvalidPipelineConfiguration"
+ // ErrorProjectInvalidWorkspace ...
+ ErrorProjectInvalidWorkspace CustomVisionErrorCodes = "ErrorProjectInvalidWorkspace"
+ // ErrorProjectTrainingRequestFailed ...
+ ErrorProjectTrainingRequestFailed CustomVisionErrorCodes = "ErrorProjectTrainingRequestFailed"
+ // ErrorRegionProposal ...
+ ErrorRegionProposal CustomVisionErrorCodes = "ErrorRegionProposal"
+ // ErrorUnknown ...
+ ErrorUnknown CustomVisionErrorCodes = "ErrorUnknown"
+ // Forbidden ...
+ Forbidden CustomVisionErrorCodes = "Forbidden"
+ // ForbiddenDRModeEnabled ...
+ ForbiddenDRModeEnabled CustomVisionErrorCodes = "ForbiddenDRModeEnabled"
+ // ForbiddenInvalid ...
+ ForbiddenInvalid CustomVisionErrorCodes = "ForbiddenInvalid"
+ // ForbiddenUser ...
+ ForbiddenUser CustomVisionErrorCodes = "ForbiddenUser"
+ // ForbiddenUserDisabled ...
+ ForbiddenUserDisabled CustomVisionErrorCodes = "ForbiddenUserDisabled"
+ // ForbiddenUserDoesNotExist ...
+ ForbiddenUserDoesNotExist CustomVisionErrorCodes = "ForbiddenUserDoesNotExist"
+ // ForbiddenUserInsufficientCapability ...
+ ForbiddenUserInsufficientCapability CustomVisionErrorCodes = "ForbiddenUserInsufficientCapability"
+ // ForbiddenUserResource ...
+ ForbiddenUserResource CustomVisionErrorCodes = "ForbiddenUserResource"
+ // ForbiddenUserSignupAllowanceExceeded ...
+ ForbiddenUserSignupAllowanceExceeded CustomVisionErrorCodes = "ForbiddenUserSignupAllowanceExceeded"
+ // ForbiddenUserSignupDisabled ...
+ ForbiddenUserSignupDisabled CustomVisionErrorCodes = "ForbiddenUserSignupDisabled"
+ // NoError ...
+ NoError CustomVisionErrorCodes = "NoError"
+ // NotFound ...
+ NotFound CustomVisionErrorCodes = "NotFound"
+ // NotFoundApimSubscription ...
+ NotFoundApimSubscription CustomVisionErrorCodes = "NotFoundApimSubscription"
+ // NotFoundDomain ...
+ NotFoundDomain CustomVisionErrorCodes = "NotFoundDomain"
+ // NotFoundImage ...
+ NotFoundImage CustomVisionErrorCodes = "NotFoundImage"
+ // NotFoundInvalid ...
+ NotFoundInvalid CustomVisionErrorCodes = "NotFoundInvalid"
+ // NotFoundIteration ...
+ NotFoundIteration CustomVisionErrorCodes = "NotFoundIteration"
+ // NotFoundIterationPerformance ...
+ NotFoundIterationPerformance CustomVisionErrorCodes = "NotFoundIterationPerformance"
+ // NotFoundProject ...
+ NotFoundProject CustomVisionErrorCodes = "NotFoundProject"
+ // NotFoundProjectDefaultIteration ...
+ NotFoundProjectDefaultIteration CustomVisionErrorCodes = "NotFoundProjectDefaultIteration"
+ // NotFoundTag ...
+ NotFoundTag CustomVisionErrorCodes = "NotFoundTag"
+ // UnsupportedMediaType ...
+ UnsupportedMediaType CustomVisionErrorCodes = "UnsupportedMediaType"
+)
+
+// PossibleCustomVisionErrorCodesValues returns an array of possible values for the CustomVisionErrorCodes const type.
+func PossibleCustomVisionErrorCodesValues() []CustomVisionErrorCodes {
+ return []CustomVisionErrorCodes{BadRequest, BadRequestCannotMigrateProjectWithName, BadRequestClassificationTrainingValidationFailed, BadRequestDetectionTrainingNotAllowNegativeTag, BadRequestDetectionTrainingValidationFailed, BadRequestDomainNotSupportedForAdvancedTraining, BadRequestExceededBatchSize, BadRequestExceededQuota, BadRequestExceedIterationPerProjectLimit, BadRequestExceedProjectLimit, BadRequestExceedTagPerImageLimit, BadRequestExceedTagPerProjectLimit, BadRequestExportAlreadyInProgress, BadRequestExportPlatformNotSupportedForAdvancedTraining, BadRequestExportValidationFailed, BadRequestImageBatch, BadRequestImageExceededCount, BadRequestImageFormat, BadRequestImageRegions, BadRequestImageSizeBytes, BadRequestImageStream, BadRequestImageTags, BadRequestImageURL, BadRequestInvalid, BadRequestInvalidEmailAddress, BadRequestInvalidIds, BadRequestInvalidPublishName, BadRequestInvalidPublishTarget, BadRequestIterationDescription, BadRequestIterationIsNotTrained, BadRequestIterationIsPublished, BadRequestIterationName, BadRequestIterationNameNotUnique, BadRequestIterationNotPublished, BadRequestMultiClassClassificationTrainingValidationFailed, BadRequestMultiLabelClassificationTrainingValidationFailed, BadRequestMultipleNegativeTag, BadRequestNegativeAndRegularTagOnSameImage, BadRequestNotLimitedTrial, BadRequestNotSupported, BadRequestPredictionIdsExceededCount, BadRequestPredictionIdsMissing, BadRequestPredictionInvalidApplicationName, BadRequestPredictionInvalidQueryParameters, BadRequestPredictionResultsExceededCount, BadRequestPredictionTagsExceededCount, BadRequestProjectDescription, BadRequestProjectImagePreprocessingSettings, BadRequestProjectName, BadRequestProjectNameNotUnique, BadRequestProjectUnknownClassification, BadRequestProjectUnknownDomain, BadRequestProjectUnsupportedDomainTypeChange, BadRequestProjectUnsupportedExportPlatform, BadRequestRequiredParamIsNull, BadRequestReservedBudgetInHoursNotEnoughForAdvancedTraining, BadRequestSubscriptionAPI, BadRequestTagDescription, BadRequestTagName, BadRequestTagNameNotUnique, BadRequestTagType, BadRequestTrainingAlreadyInProgress, BadRequestTrainingNotNeeded, BadRequestTrainingNotNeededButTrainingPipelineUpdated, BadRequestTrainingValidationFailed, BadRequestUnpublishFailed, BadRequestWorkspaceCannotBeModified, BadRequestWorkspaceNotDeletable, Conflict, ConflictInvalid, ErrorExporterInvalidClassifier, ErrorExporterInvalidFeaturizer, ErrorExporterInvalidPlatform, ErrorFeaturizationAugmentationError, ErrorFeaturizationAugmentationUnavailable, ErrorFeaturizationInvalidFeaturizer, ErrorFeaturizationQueueTimeout, ErrorFeaturizationServiceUnavailable, ErrorFeaturizationUnrecognizedJob, ErrorInvalid, ErrorPrediction, ErrorPredictionModelNotCached, ErrorPredictionModelNotFound, ErrorPredictionServiceUnavailable, ErrorPredictionStorage, ErrorProjectExportRequestFailed, ErrorProjectInvalidDomain, ErrorProjectInvalidPipelineConfiguration, ErrorProjectInvalidWorkspace, ErrorProjectTrainingRequestFailed, ErrorRegionProposal, ErrorUnknown, Forbidden, ForbiddenDRModeEnabled, ForbiddenInvalid, ForbiddenUser, ForbiddenUserDisabled, ForbiddenUserDoesNotExist, ForbiddenUserInsufficientCapability, ForbiddenUserResource, ForbiddenUserSignupAllowanceExceeded, ForbiddenUserSignupDisabled, NoError, NotFound, NotFoundApimSubscription, NotFoundDomain, NotFoundImage, NotFoundInvalid, NotFoundIteration, NotFoundIterationPerformance, NotFoundProject, NotFoundProjectDefaultIteration, NotFoundTag, UnsupportedMediaType}
+}
+
+// DomainType enumerates the values for domain type.
+type DomainType string
+
+const (
+ // Classification ...
+ Classification DomainType = "Classification"
+ // ObjectDetection ...
+ ObjectDetection DomainType = "ObjectDetection"
+)
+
+// PossibleDomainTypeValues returns an array of possible values for the DomainType const type.
+func PossibleDomainTypeValues() []DomainType {
+ return []DomainType{Classification, ObjectDetection}
+}
+
+// ExportFlavor enumerates the values for export flavor.
+type ExportFlavor string
+
+const (
+ // ARM ...
+ ARM ExportFlavor = "ARM"
+ // Linux ...
+ Linux ExportFlavor = "Linux"
+ // ONNX10 ...
+ ONNX10 ExportFlavor = "ONNX10"
+ // ONNX12 ...
+ ONNX12 ExportFlavor = "ONNX12"
+ // TensorFlowLite ...
+ TensorFlowLite ExportFlavor = "TensorFlowLite"
+ // TensorFlowNormal ...
+ TensorFlowNormal ExportFlavor = "TensorFlowNormal"
+ // Windows ...
+ Windows ExportFlavor = "Windows"
+)
+
+// PossibleExportFlavorValues returns an array of possible values for the ExportFlavor const type.
+func PossibleExportFlavorValues() []ExportFlavor {
+ return []ExportFlavor{ARM, Linux, ONNX10, ONNX12, TensorFlowLite, TensorFlowNormal, Windows}
+}
+
+// ExportPlatform enumerates the values for export platform.
+type ExportPlatform string
+
+const (
+ // CoreML ...
+ CoreML ExportPlatform = "CoreML"
+ // DockerFile ...
+ DockerFile ExportPlatform = "DockerFile"
+ // ONNX ...
+ ONNX ExportPlatform = "ONNX"
+ // TensorFlow ...
+ TensorFlow ExportPlatform = "TensorFlow"
+ // VAIDK ...
+ VAIDK ExportPlatform = "VAIDK"
+)
+
+// PossibleExportPlatformValues returns an array of possible values for the ExportPlatform const type.
+func PossibleExportPlatformValues() []ExportPlatform {
+ return []ExportPlatform{CoreML, DockerFile, ONNX, TensorFlow, VAIDK}
+}
+
+// ExportStatus enumerates the values for export status.
+type ExportStatus string
+
+const (
+ // Done ...
+ Done ExportStatus = "Done"
+ // Exporting ...
+ Exporting ExportStatus = "Exporting"
+ // Failed ...
+ Failed ExportStatus = "Failed"
+)
+
+// PossibleExportStatusValues returns an array of possible values for the ExportStatus const type.
+func PossibleExportStatusValues() []ExportStatus {
+ return []ExportStatus{Done, Exporting, Failed}
+}
+
+// ImageCreateStatus enumerates the values for image create status.
+type ImageCreateStatus string
+
+const (
+ // ImageCreateStatusErrorImageFormat ...
+ ImageCreateStatusErrorImageFormat ImageCreateStatus = "ErrorImageFormat"
+ // ImageCreateStatusErrorImageSize ...
+ ImageCreateStatusErrorImageSize ImageCreateStatus = "ErrorImageSize"
+ // ImageCreateStatusErrorLimitExceed ...
+ ImageCreateStatusErrorLimitExceed ImageCreateStatus = "ErrorLimitExceed"
+ // ImageCreateStatusErrorNegativeAndRegularTagOnSameImage ...
+ ImageCreateStatusErrorNegativeAndRegularTagOnSameImage ImageCreateStatus = "ErrorNegativeAndRegularTagOnSameImage"
+ // ImageCreateStatusErrorRegionLimitExceed ...
+ ImageCreateStatusErrorRegionLimitExceed ImageCreateStatus = "ErrorRegionLimitExceed"
+ // ImageCreateStatusErrorSource ...
+ ImageCreateStatusErrorSource ImageCreateStatus = "ErrorSource"
+ // ImageCreateStatusErrorStorage ...
+ ImageCreateStatusErrorStorage ImageCreateStatus = "ErrorStorage"
+ // ImageCreateStatusErrorTagLimitExceed ...
+ ImageCreateStatusErrorTagLimitExceed ImageCreateStatus = "ErrorTagLimitExceed"
+ // ImageCreateStatusErrorUnknown ...
+ ImageCreateStatusErrorUnknown ImageCreateStatus = "ErrorUnknown"
+ // ImageCreateStatusOK ...
+ ImageCreateStatusOK ImageCreateStatus = "OK"
+ // ImageCreateStatusOKDuplicate ...
+ ImageCreateStatusOKDuplicate ImageCreateStatus = "OKDuplicate"
+)
+
+// PossibleImageCreateStatusValues returns an array of possible values for the ImageCreateStatus const type.
+func PossibleImageCreateStatusValues() []ImageCreateStatus {
+ return []ImageCreateStatus{ImageCreateStatusErrorImageFormat, ImageCreateStatusErrorImageSize, ImageCreateStatusErrorLimitExceed, ImageCreateStatusErrorNegativeAndRegularTagOnSameImage, ImageCreateStatusErrorRegionLimitExceed, ImageCreateStatusErrorSource, ImageCreateStatusErrorStorage, ImageCreateStatusErrorTagLimitExceed, ImageCreateStatusErrorUnknown, ImageCreateStatusOK, ImageCreateStatusOKDuplicate}
+}
+
+// OrderBy enumerates the values for order by.
+type OrderBy string
+
+const (
+ // Newest ...
+ Newest OrderBy = "Newest"
+ // Oldest ...
+ Oldest OrderBy = "Oldest"
+ // Suggested ...
+ Suggested OrderBy = "Suggested"
+)
+
+// PossibleOrderByValues returns an array of possible values for the OrderBy const type.
+func PossibleOrderByValues() []OrderBy {
+ return []OrderBy{Newest, Oldest, Suggested}
+}
+
+// SortBy enumerates the values for sort by.
+type SortBy string
+
+const (
+ // UncertaintyAscending ...
+ UncertaintyAscending SortBy = "UncertaintyAscending"
+ // UncertaintyDescending ...
+ UncertaintyDescending SortBy = "UncertaintyDescending"
+)
+
+// PossibleSortByValues returns an array of possible values for the SortBy const type.
+func PossibleSortByValues() []SortBy {
+ return []SortBy{UncertaintyAscending, UncertaintyDescending}
+}
+
+// TagType enumerates the values for tag type.
+type TagType string
+
+const (
+ // Negative ...
+ Negative TagType = "Negative"
+ // Regular ...
+ Regular TagType = "Regular"
+)
+
+// PossibleTagTypeValues returns an array of possible values for the TagType const type.
+func PossibleTagTypeValues() []TagType {
+ return []TagType{Negative, Regular}
+}
+
+// Type enumerates the values for type.
+type Type string
+
+const (
+ // TypeAdvanced ...
+ TypeAdvanced Type = "Advanced"
+ // TypeRegular ...
+ TypeRegular Type = "Regular"
+)
+
+// PossibleTypeValues returns an array of possible values for the Type const type.
+func PossibleTypeValues() []Type {
+ return []Type{TypeAdvanced, TypeRegular}
+}
+
+// Bool ...
+type Bool struct {
+ autorest.Response `json:"-"`
+ Value *bool `json:"value,omitempty"`
+}
+
+// BoundingBox bounding box that defines a region of an image.
+type BoundingBox struct {
+ // Left - Coordinate of the left boundary.
+ Left *float64 `json:"left,omitempty"`
+ // Top - Coordinate of the top boundary.
+ Top *float64 `json:"top,omitempty"`
+ // Width - Width.
+ Width *float64 `json:"width,omitempty"`
+ // Height - Height.
+ Height *float64 `json:"height,omitempty"`
+}
+
+// CustomVisionError ...
+type CustomVisionError struct {
+ // Code - The error code. Possible values include: 'NoError', 'BadRequest', 'BadRequestExceededBatchSize', 'BadRequestNotSupported', 'BadRequestInvalidIds', 'BadRequestProjectName', 'BadRequestProjectNameNotUnique', 'BadRequestProjectDescription', 'BadRequestProjectUnknownDomain', 'BadRequestProjectUnknownClassification', 'BadRequestProjectUnsupportedDomainTypeChange', 'BadRequestProjectUnsupportedExportPlatform', 'BadRequestProjectImagePreprocessingSettings', 'BadRequestIterationName', 'BadRequestIterationNameNotUnique', 'BadRequestIterationDescription', 'BadRequestIterationIsNotTrained', 'BadRequestWorkspaceCannotBeModified', 'BadRequestWorkspaceNotDeletable', 'BadRequestTagName', 'BadRequestTagNameNotUnique', 'BadRequestTagDescription', 'BadRequestTagType', 'BadRequestMultipleNegativeTag', 'BadRequestImageTags', 'BadRequestImageRegions', 'BadRequestNegativeAndRegularTagOnSameImage', 'BadRequestRequiredParamIsNull', 'BadRequestIterationIsPublished', 'BadRequestInvalidPublishName', 'BadRequestInvalidPublishTarget', 'BadRequestUnpublishFailed', 'BadRequestIterationNotPublished', 'BadRequestSubscriptionAPI', 'BadRequestExceedProjectLimit', 'BadRequestExceedIterationPerProjectLimit', 'BadRequestExceedTagPerProjectLimit', 'BadRequestExceedTagPerImageLimit', 'BadRequestExceededQuota', 'BadRequestCannotMigrateProjectWithName', 'BadRequestNotLimitedTrial', 'BadRequestImageBatch', 'BadRequestImageStream', 'BadRequestImageURL', 'BadRequestImageFormat', 'BadRequestImageSizeBytes', 'BadRequestImageExceededCount', 'BadRequestTrainingNotNeeded', 'BadRequestTrainingNotNeededButTrainingPipelineUpdated', 'BadRequestTrainingValidationFailed', 'BadRequestClassificationTrainingValidationFailed', 'BadRequestMultiClassClassificationTrainingValidationFailed', 'BadRequestMultiLabelClassificationTrainingValidationFailed', 'BadRequestDetectionTrainingValidationFailed', 'BadRequestTrainingAlreadyInProgress', 'BadRequestDetectionTrainingNotAllowNegativeTag', 'BadRequestInvalidEmailAddress', 'BadRequestDomainNotSupportedForAdvancedTraining', 'BadRequestExportPlatformNotSupportedForAdvancedTraining', 'BadRequestReservedBudgetInHoursNotEnoughForAdvancedTraining', 'BadRequestExportValidationFailed', 'BadRequestExportAlreadyInProgress', 'BadRequestPredictionIdsMissing', 'BadRequestPredictionIdsExceededCount', 'BadRequestPredictionTagsExceededCount', 'BadRequestPredictionResultsExceededCount', 'BadRequestPredictionInvalidApplicationName', 'BadRequestPredictionInvalidQueryParameters', 'BadRequestInvalid', 'UnsupportedMediaType', 'Forbidden', 'ForbiddenUser', 'ForbiddenUserResource', 'ForbiddenUserSignupDisabled', 'ForbiddenUserSignupAllowanceExceeded', 'ForbiddenUserDoesNotExist', 'ForbiddenUserDisabled', 'ForbiddenUserInsufficientCapability', 'ForbiddenDRModeEnabled', 'ForbiddenInvalid', 'NotFound', 'NotFoundProject', 'NotFoundProjectDefaultIteration', 'NotFoundIteration', 'NotFoundIterationPerformance', 'NotFoundTag', 'NotFoundImage', 'NotFoundDomain', 'NotFoundApimSubscription', 'NotFoundInvalid', 'Conflict', 'ConflictInvalid', 'ErrorUnknown', 'ErrorProjectInvalidWorkspace', 'ErrorProjectInvalidPipelineConfiguration', 'ErrorProjectInvalidDomain', 'ErrorProjectTrainingRequestFailed', 'ErrorProjectExportRequestFailed', 'ErrorFeaturizationServiceUnavailable', 'ErrorFeaturizationQueueTimeout', 'ErrorFeaturizationInvalidFeaturizer', 'ErrorFeaturizationAugmentationUnavailable', 'ErrorFeaturizationUnrecognizedJob', 'ErrorFeaturizationAugmentationError', 'ErrorExporterInvalidPlatform', 'ErrorExporterInvalidFeaturizer', 'ErrorExporterInvalidClassifier', 'ErrorPredictionServiceUnavailable', 'ErrorPredictionModelNotFound', 'ErrorPredictionModelNotCached', 'ErrorPrediction', 'ErrorPredictionStorage', 'ErrorRegionProposal', 'ErrorInvalid'
+ Code CustomVisionErrorCodes `json:"code,omitempty"`
+ // Message - A message explaining the error reported by the service.
+ Message *string `json:"message,omitempty"`
+}
+
+// Domain ...
+type Domain struct {
+ autorest.Response `json:"-"`
+ // ID - READ-ONLY
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - READ-ONLY
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Possible values include: 'Classification', 'ObjectDetection'
+ Type DomainType `json:"type,omitempty"`
+ // Exportable - READ-ONLY
+ Exportable *bool `json:"exportable,omitempty"`
+ // Enabled - READ-ONLY
+ Enabled *bool `json:"enabled,omitempty"`
+}
+
+// Export ...
+type Export struct {
+ autorest.Response `json:"-"`
+ // Platform - READ-ONLY; Platform of the export. Possible values include: 'CoreML', 'TensorFlow', 'DockerFile', 'ONNX', 'VAIDK'
+ Platform ExportPlatform `json:"platform,omitempty"`
+ // Status - READ-ONLY; Status of the export. Possible values include: 'Exporting', 'Failed', 'Done'
+ Status ExportStatus `json:"status,omitempty"`
+ // DownloadURI - READ-ONLY; URI used to download the model.
+ DownloadURI *string `json:"downloadUri,omitempty"`
+ // Flavor - READ-ONLY; Flavor of the export. Possible values include: 'Linux', 'Windows', 'ONNX10', 'ONNX12', 'ARM', 'TensorFlowNormal', 'TensorFlowLite'
+ Flavor ExportFlavor `json:"flavor,omitempty"`
+ // NewerVersionAvailable - READ-ONLY; Indicates an updated version of the export package is available and should be re-exported for the latest changes.
+ NewerVersionAvailable *bool `json:"newerVersionAvailable,omitempty"`
+}
+
+// Image image model to be sent as JSON.
+type Image struct {
+ // ID - READ-ONLY; Id of the image.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Created - READ-ONLY; Date the image was created.
+ Created *date.Time `json:"created,omitempty"`
+ // Width - READ-ONLY; Width of the image.
+ Width *int32 `json:"width,omitempty"`
+ // Height - READ-ONLY; Height of the image.
+ Height *int32 `json:"height,omitempty"`
+ // ResizedImageURI - READ-ONLY; The URI to the (resized) image used for training.
+ ResizedImageURI *string `json:"resizedImageUri,omitempty"`
+ // ThumbnailURI - READ-ONLY; The URI to the thumbnail of the original image.
+ ThumbnailURI *string `json:"thumbnailUri,omitempty"`
+ // OriginalImageURI - READ-ONLY; The URI to the original uploaded image.
+ OriginalImageURI *string `json:"originalImageUri,omitempty"`
+ // Tags - READ-ONLY; Tags associated with this image.
+ Tags *[]ImageTag `json:"tags,omitempty"`
+ // Regions - READ-ONLY; Regions associated with this image.
+ Regions *[]ImageRegion `json:"regions,omitempty"`
+}
+
+// ImageCreateResult ...
+type ImageCreateResult struct {
+ // SourceURL - READ-ONLY; Source URL of the image.
+ SourceURL *string `json:"sourceUrl,omitempty"`
+ // Status - READ-ONLY; Status of the image creation. Possible values include: 'ImageCreateStatusOK', 'ImageCreateStatusOKDuplicate', 'ImageCreateStatusErrorSource', 'ImageCreateStatusErrorImageFormat', 'ImageCreateStatusErrorImageSize', 'ImageCreateStatusErrorStorage', 'ImageCreateStatusErrorLimitExceed', 'ImageCreateStatusErrorTagLimitExceed', 'ImageCreateStatusErrorRegionLimitExceed', 'ImageCreateStatusErrorUnknown', 'ImageCreateStatusErrorNegativeAndRegularTagOnSameImage'
+ Status ImageCreateStatus `json:"status,omitempty"`
+ // Image - READ-ONLY; The image.
+ Image *Image `json:"image,omitempty"`
+}
+
+// ImageCreateSummary ...
+type ImageCreateSummary struct {
+ autorest.Response `json:"-"`
+ // IsBatchSuccessful - READ-ONLY; True if all of the images in the batch were created successfully, otherwise false.
+ IsBatchSuccessful *bool `json:"isBatchSuccessful,omitempty"`
+ // Images - READ-ONLY; List of the image creation results.
+ Images *[]ImageCreateResult `json:"images,omitempty"`
+}
+
+// ImageFileCreateBatch ...
+type ImageFileCreateBatch struct {
+ Images *[]ImageFileCreateEntry `json:"images,omitempty"`
+ TagIds *[]uuid.UUID `json:"tagIds,omitempty"`
+}
+
+// ImageFileCreateEntry ...
+type ImageFileCreateEntry struct {
+ Name *string `json:"name,omitempty"`
+ Contents *[]byte `json:"contents,omitempty"`
+ TagIds *[]uuid.UUID `json:"tagIds,omitempty"`
+ Regions *[]Region `json:"regions,omitempty"`
+}
+
+// ImageIDCreateBatch ...
+type ImageIDCreateBatch struct {
+ Images *[]ImageIDCreateEntry `json:"images,omitempty"`
+ TagIds *[]uuid.UUID `json:"tagIds,omitempty"`
+}
+
+// ImageIDCreateEntry ...
+type ImageIDCreateEntry struct {
+ // ID - Id of the image.
+ ID *uuid.UUID `json:"id,omitempty"`
+ TagIds *[]uuid.UUID `json:"tagIds,omitempty"`
+ Regions *[]Region `json:"regions,omitempty"`
+}
+
+// ImagePerformance image performance model.
+type ImagePerformance struct {
+ // Predictions - READ-ONLY
+ Predictions *[]Prediction `json:"predictions,omitempty"`
+ // ID - READ-ONLY
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Created - READ-ONLY
+ Created *date.Time `json:"created,omitempty"`
+ // Width - READ-ONLY
+ Width *int32 `json:"width,omitempty"`
+ // Height - READ-ONLY
+ Height *int32 `json:"height,omitempty"`
+ // ImageURI - READ-ONLY
+ ImageURI *string `json:"imageUri,omitempty"`
+ // ThumbnailURI - READ-ONLY
+ ThumbnailURI *string `json:"thumbnailUri,omitempty"`
+ // Tags - READ-ONLY
+ Tags *[]ImageTag `json:"tags,omitempty"`
+ // Regions - READ-ONLY
+ Regions *[]ImageRegion `json:"regions,omitempty"`
+}
+
+// ImagePrediction result of an image prediction request.
+type ImagePrediction struct {
+ autorest.Response `json:"-"`
+ // ID - READ-ONLY; Prediction Id.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Project - READ-ONLY; Project Id.
+ Project *uuid.UUID `json:"project,omitempty"`
+ // Iteration - READ-ONLY; Iteration Id.
+ Iteration *uuid.UUID `json:"iteration,omitempty"`
+ // Created - READ-ONLY; Date this prediction was created.
+ Created *date.Time `json:"created,omitempty"`
+ // Predictions - READ-ONLY; List of predictions.
+ Predictions *[]Prediction `json:"predictions,omitempty"`
+}
+
+// ImageProcessingSettings represents image preprocessing settings used by image augmentation.
+type ImageProcessingSettings struct {
+ // AugmentationMethods - Gets or sets enabled image transforms. The key corresponds to the transform name. If value is set to true, then correspondent transform is enabled. Otherwise this transform will not be used.
+ // Augmentation will be uniformly distributed among enabled transforms.
+ AugmentationMethods map[string]*bool `json:"augmentationMethods"`
+}
+
+// MarshalJSON is the custom marshaler for ImageProcessingSettings.
+func (ips ImageProcessingSettings) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if ips.AugmentationMethods != nil {
+ objectMap["augmentationMethods"] = ips.AugmentationMethods
+ }
+ return json.Marshal(objectMap)
+}
+
+// ImageRegion ...
+type ImageRegion struct {
+ // RegionID - READ-ONLY
+ RegionID *uuid.UUID `json:"regionId,omitempty"`
+ // TagName - READ-ONLY
+ TagName *string `json:"tagName,omitempty"`
+ // Created - READ-ONLY
+ Created *date.Time `json:"created,omitempty"`
+ // TagID - Id of the tag associated with this region.
+ TagID *uuid.UUID `json:"tagId,omitempty"`
+ // Left - Coordinate of the left boundary.
+ Left *float64 `json:"left,omitempty"`
+ // Top - Coordinate of the top boundary.
+ Top *float64 `json:"top,omitempty"`
+ // Width - Width.
+ Width *float64 `json:"width,omitempty"`
+ // Height - Height.
+ Height *float64 `json:"height,omitempty"`
+}
+
+// ImageRegionCreateBatch batch of image region information to create.
+type ImageRegionCreateBatch struct {
+ Regions *[]ImageRegionCreateEntry `json:"regions,omitempty"`
+}
+
+// ImageRegionCreateEntry entry associating a region to an image.
+type ImageRegionCreateEntry struct {
+ // ImageID - Id of the image.
+ ImageID *uuid.UUID `json:"imageId,omitempty"`
+ // TagID - Id of the tag associated with this region.
+ TagID *uuid.UUID `json:"tagId,omitempty"`
+ // Left - Coordinate of the left boundary.
+ Left *float64 `json:"left,omitempty"`
+ // Top - Coordinate of the top boundary.
+ Top *float64 `json:"top,omitempty"`
+ // Width - Width.
+ Width *float64 `json:"width,omitempty"`
+ // Height - Height.
+ Height *float64 `json:"height,omitempty"`
+}
+
+// ImageRegionCreateResult ...
+type ImageRegionCreateResult struct {
+ // ImageID - READ-ONLY
+ ImageID *uuid.UUID `json:"imageId,omitempty"`
+ // RegionID - READ-ONLY
+ RegionID *uuid.UUID `json:"regionId,omitempty"`
+ // TagName - READ-ONLY
+ TagName *string `json:"tagName,omitempty"`
+ // Created - READ-ONLY
+ Created *date.Time `json:"created,omitempty"`
+ // TagID - Id of the tag associated with this region.
+ TagID *uuid.UUID `json:"tagId,omitempty"`
+ // Left - Coordinate of the left boundary.
+ Left *float64 `json:"left,omitempty"`
+ // Top - Coordinate of the top boundary.
+ Top *float64 `json:"top,omitempty"`
+ // Width - Width.
+ Width *float64 `json:"width,omitempty"`
+ // Height - Height.
+ Height *float64 `json:"height,omitempty"`
+}
+
+// ImageRegionCreateSummary ...
+type ImageRegionCreateSummary struct {
+ autorest.Response `json:"-"`
+ Created *[]ImageRegionCreateResult `json:"created,omitempty"`
+ Duplicated *[]ImageRegionCreateEntry `json:"duplicated,omitempty"`
+ Exceeded *[]ImageRegionCreateEntry `json:"exceeded,omitempty"`
+}
+
+// ImageRegionProposal ...
+type ImageRegionProposal struct {
+ autorest.Response `json:"-"`
+ // ProjectID - READ-ONLY
+ ProjectID *uuid.UUID `json:"projectId,omitempty"`
+ // ImageID - READ-ONLY
+ ImageID *uuid.UUID `json:"imageId,omitempty"`
+ // Proposals - READ-ONLY
+ Proposals *[]RegionProposal `json:"proposals,omitempty"`
+}
+
+// ImageTag ...
+type ImageTag struct {
+ // TagID - READ-ONLY
+ TagID *uuid.UUID `json:"tagId,omitempty"`
+ // TagName - READ-ONLY
+ TagName *string `json:"tagName,omitempty"`
+ // Created - READ-ONLY
+ Created *date.Time `json:"created,omitempty"`
+}
+
+// ImageTagCreateBatch batch of image tags.
+type ImageTagCreateBatch struct {
+ // Tags - Image Tag entries to include in this batch.
+ Tags *[]ImageTagCreateEntry `json:"tags,omitempty"`
+}
+
+// ImageTagCreateEntry entry associating a tag to an image.
+type ImageTagCreateEntry struct {
+ // ImageID - Id of the image.
+ ImageID *uuid.UUID `json:"imageId,omitempty"`
+ // TagID - Id of the tag.
+ TagID *uuid.UUID `json:"tagId,omitempty"`
+}
+
+// ImageTagCreateSummary ...
+type ImageTagCreateSummary struct {
+ autorest.Response `json:"-"`
+ Created *[]ImageTagCreateEntry `json:"created,omitempty"`
+ Duplicated *[]ImageTagCreateEntry `json:"duplicated,omitempty"`
+ Exceeded *[]ImageTagCreateEntry `json:"exceeded,omitempty"`
+}
+
+// ImageURL image url.
+type ImageURL struct {
+ // URL - Url of the image.
+ URL *string `json:"url,omitempty"`
+}
+
+// ImageURLCreateBatch ...
+type ImageURLCreateBatch struct {
+ Images *[]ImageURLCreateEntry `json:"images,omitempty"`
+ TagIds *[]uuid.UUID `json:"tagIds,omitempty"`
+}
+
+// ImageURLCreateEntry ...
+type ImageURLCreateEntry struct {
+ // URL - Url of the image.
+ URL *string `json:"url,omitempty"`
+ TagIds *[]uuid.UUID `json:"tagIds,omitempty"`
+ Regions *[]Region `json:"regions,omitempty"`
+}
+
+// Int32 ...
+type Int32 struct {
+ autorest.Response `json:"-"`
+ Value *int32 `json:"value,omitempty"`
+}
+
+// Iteration iteration model to be sent over JSON.
+type Iteration struct {
+ autorest.Response `json:"-"`
+ // ID - READ-ONLY; Gets the id of the iteration.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - Gets or sets the name of the iteration.
+ Name *string `json:"name,omitempty"`
+ // Status - READ-ONLY; Gets the current iteration status.
+ Status *string `json:"status,omitempty"`
+ // Created - READ-ONLY; Gets the time this iteration was completed.
+ Created *date.Time `json:"created,omitempty"`
+ // LastModified - READ-ONLY; Gets the time this iteration was last modified.
+ LastModified *date.Time `json:"lastModified,omitempty"`
+ // TrainedAt - READ-ONLY; Gets the time this iteration was last modified.
+ TrainedAt *date.Time `json:"trainedAt,omitempty"`
+ // ProjectID - READ-ONLY; Gets the project id of the iteration.
+ ProjectID *uuid.UUID `json:"projectId,omitempty"`
+ // Exportable - READ-ONLY; Whether the iteration can be exported to another format for download.
+ Exportable *bool `json:"exportable,omitempty"`
+ // ExportableTo - READ-ONLY; A set of platforms this iteration can export to.
+ ExportableTo *[]string `json:"exportableTo,omitempty"`
+ // DomainID - READ-ONLY; Get or sets a guid of the domain the iteration has been trained on.
+ DomainID *uuid.UUID `json:"domainId,omitempty"`
+ // ClassificationType - READ-ONLY; Gets the classification type of the project. Possible values include: 'Multiclass', 'Multilabel'
+ ClassificationType Classifier `json:"classificationType,omitempty"`
+ // TrainingType - READ-ONLY; Gets the training type of the iteration. Possible values include: 'TypeRegular', 'TypeAdvanced'
+ TrainingType Type `json:"trainingType,omitempty"`
+ // ReservedBudgetInHours - READ-ONLY; Gets the reserved advanced training budget for the iteration.
+ ReservedBudgetInHours *int32 `json:"reservedBudgetInHours,omitempty"`
+ // TrainingTimeInMinutes - READ-ONLY; Gets the training time for the iteration.
+ TrainingTimeInMinutes *int32 `json:"trainingTimeInMinutes,omitempty"`
+ // PublishName - READ-ONLY; Name of the published model.
+ PublishName *string `json:"publishName,omitempty"`
+ // OriginalPublishResourceID - READ-ONLY; Resource Provider Id this iteration was originally published to.
+ OriginalPublishResourceID *string `json:"originalPublishResourceId,omitempty"`
+}
+
+// IterationPerformance represents the detailed performance data for a trained iteration.
+type IterationPerformance struct {
+ autorest.Response `json:"-"`
+ // PerTagPerformance - READ-ONLY; Gets the per-tag performance details for this iteration.
+ PerTagPerformance *[]TagPerformance `json:"perTagPerformance,omitempty"`
+ // Precision - READ-ONLY; Gets the precision.
+ Precision *float64 `json:"precision,omitempty"`
+ // PrecisionStdDeviation - READ-ONLY; Gets the standard deviation for the precision.
+ PrecisionStdDeviation *float64 `json:"precisionStdDeviation,omitempty"`
+ // Recall - READ-ONLY; Gets the recall.
+ Recall *float64 `json:"recall,omitempty"`
+ // RecallStdDeviation - READ-ONLY; Gets the standard deviation for the recall.
+ RecallStdDeviation *float64 `json:"recallStdDeviation,omitempty"`
+ // AveragePrecision - READ-ONLY; Gets the average precision when applicable.
+ AveragePrecision *float64 `json:"averagePrecision,omitempty"`
+}
+
+// ListDomain ...
+type ListDomain struct {
+ autorest.Response `json:"-"`
+ Value *[]Domain `json:"value,omitempty"`
+}
+
+// ListExport ...
+type ListExport struct {
+ autorest.Response `json:"-"`
+ Value *[]Export `json:"value,omitempty"`
+}
+
+// ListImage ...
+type ListImage struct {
+ autorest.Response `json:"-"`
+ Value *[]Image `json:"value,omitempty"`
+}
+
+// ListImagePerformance ...
+type ListImagePerformance struct {
+ autorest.Response `json:"-"`
+ Value *[]ImagePerformance `json:"value,omitempty"`
+}
+
+// ListIteration ...
+type ListIteration struct {
+ autorest.Response `json:"-"`
+ Value *[]Iteration `json:"value,omitempty"`
+}
+
+// ListProject ...
+type ListProject struct {
+ autorest.Response `json:"-"`
+ Value *[]Project `json:"value,omitempty"`
+}
+
+// ListSuggestedTagAndRegion ...
+type ListSuggestedTagAndRegion struct {
+ autorest.Response `json:"-"`
+ Value *[]SuggestedTagAndRegion `json:"value,omitempty"`
+}
+
+// ListTag ...
+type ListTag struct {
+ autorest.Response `json:"-"`
+ Value *[]Tag `json:"value,omitempty"`
+}
+
+// Prediction prediction result.
+type Prediction struct {
+ // Probability - READ-ONLY; Probability of the tag.
+ Probability *float64 `json:"probability,omitempty"`
+ // TagID - READ-ONLY; Id of the predicted tag.
+ TagID *uuid.UUID `json:"tagId,omitempty"`
+ // TagName - READ-ONLY; Name of the predicted tag.
+ TagName *string `json:"tagName,omitempty"`
+ // BoundingBox - READ-ONLY; Bounding box of the prediction.
+ BoundingBox *BoundingBox `json:"boundingBox,omitempty"`
+}
+
+// PredictionQueryResult query result of the prediction images that were sent to your prediction endpoint.
+type PredictionQueryResult struct {
+ autorest.Response `json:"-"`
+ // Token - Prediction Query Token.
+ Token *PredictionQueryToken `json:"token,omitempty"`
+ // Results - READ-ONLY; Result of an prediction request.
+ Results *[]StoredImagePrediction `json:"results,omitempty"`
+}
+
+// PredictionQueryTag ...
+type PredictionQueryTag struct {
+ ID *uuid.UUID `json:"id,omitempty"`
+ MinThreshold *float64 `json:"minThreshold,omitempty"`
+ MaxThreshold *float64 `json:"maxThreshold,omitempty"`
+}
+
+// PredictionQueryToken ...
+type PredictionQueryToken struct {
+ Session *string `json:"session,omitempty"`
+ Continuation *string `json:"continuation,omitempty"`
+ MaxCount *int32 `json:"maxCount,omitempty"`
+ // OrderBy - Possible values include: 'Newest', 'Oldest', 'Suggested'
+ OrderBy OrderBy `json:"orderBy,omitempty"`
+ Tags *[]PredictionQueryTag `json:"tags,omitempty"`
+ IterationID *uuid.UUID `json:"iterationId,omitempty"`
+ StartTime *date.Time `json:"startTime,omitempty"`
+ EndTime *date.Time `json:"endTime,omitempty"`
+ Application *string `json:"application,omitempty"`
+}
+
+// Project represents a project.
+type Project struct {
+ autorest.Response `json:"-"`
+ // ID - READ-ONLY; Gets the project id.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - Gets or sets the name of the project.
+ Name *string `json:"name,omitempty"`
+ // Description - Gets or sets the description of the project.
+ Description *string `json:"description,omitempty"`
+ // Settings - Gets or sets the project settings.
+ Settings *ProjectSettings `json:"settings,omitempty"`
+ // Created - READ-ONLY; Gets the date this project was created.
+ Created *date.Time `json:"created,omitempty"`
+ // LastModified - READ-ONLY; Gets the date this project was last modified.
+ LastModified *date.Time `json:"lastModified,omitempty"`
+ // ThumbnailURI - READ-ONLY; Gets the thumbnail url representing the image.
+ ThumbnailURI *string `json:"thumbnailUri,omitempty"`
+ // DrModeEnabled - READ-ONLY; Gets if the Disaster Recovery (DR) mode is on, indicating the project is temporarily read-only.
+ DrModeEnabled *bool `json:"drModeEnabled,omitempty"`
+}
+
+// ProjectSettings represents settings associated with a project.
+type ProjectSettings struct {
+ // DomainID - Gets or sets the id of the Domain to use with this project.
+ DomainID *uuid.UUID `json:"domainId,omitempty"`
+ // ClassificationType - Gets or sets the classification type of the project. Possible values include: 'Multiclass', 'Multilabel'
+ ClassificationType Classifier `json:"classificationType,omitempty"`
+ // TargetExportPlatforms - A list of ExportPlatform that the trained model should be able to support.
+ TargetExportPlatforms *[]string `json:"targetExportPlatforms,omitempty"`
+ // UseNegativeSet - READ-ONLY; Indicates if negative set is being used.
+ UseNegativeSet *bool `json:"useNegativeSet,omitempty"`
+ // DetectionParameters - READ-ONLY; Detection parameters in use, if any.
+ DetectionParameters *string `json:"detectionParameters,omitempty"`
+ // ImageProcessingSettings - Gets or sets image preprocessing settings.
+ ImageProcessingSettings *ImageProcessingSettings `json:"imageProcessingSettings,omitempty"`
+}
+
+// Region ...
+type Region struct {
+ // TagID - Id of the tag associated with this region.
+ TagID *uuid.UUID `json:"tagId,omitempty"`
+ // Left - Coordinate of the left boundary.
+ Left *float64 `json:"left,omitempty"`
+ // Top - Coordinate of the top boundary.
+ Top *float64 `json:"top,omitempty"`
+ // Width - Width.
+ Width *float64 `json:"width,omitempty"`
+ // Height - Height.
+ Height *float64 `json:"height,omitempty"`
+}
+
+// RegionProposal ...
+type RegionProposal struct {
+ // Confidence - READ-ONLY
+ Confidence *float64 `json:"confidence,omitempty"`
+ // BoundingBox - READ-ONLY
+ BoundingBox *BoundingBox `json:"boundingBox,omitempty"`
+}
+
+// SetInt32 ...
+type SetInt32 struct {
+ autorest.Response `json:"-"`
+ Value map[string]*int32 `json:"value"`
+}
+
+// MarshalJSON is the custom marshaler for SetInt32.
+func (si3 SetInt32) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if si3.Value != nil {
+ objectMap["value"] = si3.Value
+ }
+ return json.Marshal(objectMap)
+}
+
+// StoredImagePrediction result of an image prediction request.
+type StoredImagePrediction struct {
+ // ResizedImageURI - READ-ONLY; The URI to the (resized) prediction image.
+ ResizedImageURI *string `json:"resizedImageUri,omitempty"`
+ // ThumbnailURI - READ-ONLY; The URI to the thumbnail of the original prediction image.
+ ThumbnailURI *string `json:"thumbnailUri,omitempty"`
+ // OriginalImageURI - READ-ONLY; The URI to the original prediction image.
+ OriginalImageURI *string `json:"originalImageUri,omitempty"`
+ // Domain - READ-ONLY; Domain used for the prediction.
+ Domain *uuid.UUID `json:"domain,omitempty"`
+ // ID - READ-ONLY; Prediction Id.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Project - READ-ONLY; Project Id.
+ Project *uuid.UUID `json:"project,omitempty"`
+ // Iteration - READ-ONLY; Iteration Id.
+ Iteration *uuid.UUID `json:"iteration,omitempty"`
+ // Created - READ-ONLY; Date this prediction was created.
+ Created *date.Time `json:"created,omitempty"`
+ // Predictions - READ-ONLY; List of predictions.
+ Predictions *[]Prediction `json:"predictions,omitempty"`
+}
+
+// StoredSuggestedTagAndRegion result of a suggested tags and regions request of the untagged image.
+type StoredSuggestedTagAndRegion struct {
+ // Width - READ-ONLY; Width of the resized image.
+ Width *int32 `json:"width,omitempty"`
+ // Height - READ-ONLY; Height of the resized image.
+ Height *int32 `json:"height,omitempty"`
+ // ResizedImageURI - READ-ONLY; The URI to the (resized) prediction image.
+ ResizedImageURI *string `json:"resizedImageUri,omitempty"`
+ // ThumbnailURI - READ-ONLY; The URI to the thumbnail of the original prediction image.
+ ThumbnailURI *string `json:"thumbnailUri,omitempty"`
+ // OriginalImageURI - READ-ONLY; The URI to the original prediction image.
+ OriginalImageURI *string `json:"originalImageUri,omitempty"`
+ // Domain - READ-ONLY; Domain used for the prediction.
+ Domain *uuid.UUID `json:"domain,omitempty"`
+ // ID - READ-ONLY; Prediction Id.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Project - READ-ONLY; Project Id.
+ Project *uuid.UUID `json:"project,omitempty"`
+ // Iteration - READ-ONLY; Iteration Id.
+ Iteration *uuid.UUID `json:"iteration,omitempty"`
+ // Created - READ-ONLY; Date this prediction was created.
+ Created *date.Time `json:"created,omitempty"`
+ // Predictions - READ-ONLY; List of predictions.
+ Predictions *[]Prediction `json:"predictions,omitempty"`
+ // PredictionUncertainty - READ-ONLY; Uncertainty (entropy) of suggested tags or regions per image.
+ PredictionUncertainty *float64 `json:"predictionUncertainty,omitempty"`
+}
+
+// SuggestedTagAndRegion result of a suggested tags and regions request.
+type SuggestedTagAndRegion struct {
+ // ID - READ-ONLY; Prediction Id.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Project - READ-ONLY; Project Id.
+ Project *uuid.UUID `json:"project,omitempty"`
+ // Iteration - READ-ONLY; Iteration Id.
+ Iteration *uuid.UUID `json:"iteration,omitempty"`
+ // Created - READ-ONLY; Date this prediction was created.
+ Created *date.Time `json:"created,omitempty"`
+ // Predictions - READ-ONLY; List of predictions.
+ Predictions *[]Prediction `json:"predictions,omitempty"`
+ // PredictionUncertainty - READ-ONLY; Uncertainty (entropy) of suggested tags or regions per image.
+ PredictionUncertainty *float64 `json:"predictionUncertainty,omitempty"`
+}
+
+// SuggestedTagAndRegionQuery the array of result images and token containing session and continuation Ids
+// for the next query.
+type SuggestedTagAndRegionQuery struct {
+ autorest.Response `json:"-"`
+ // Token - Contains properties we need to fetch suggested tags for.
+ Token *SuggestedTagAndRegionQueryToken `json:"token,omitempty"`
+ // Results - READ-ONLY; Result of a suggested tags and regions request of the untagged image.
+ Results *[]StoredSuggestedTagAndRegion `json:"results,omitempty"`
+}
+
+// SuggestedTagAndRegionQueryToken contains properties we need to fetch suggested tags for. For the first
+// call, Session and continuation set to null.
+// Then on subsequent calls, uses the session/continuation from the previous SuggestedTagAndRegionQuery
+// result to fetch additional results.
+type SuggestedTagAndRegionQueryToken struct {
+ // TagIds - Existing TagIds in project to filter suggested tags on.
+ TagIds *[]uuid.UUID `json:"tagIds,omitempty"`
+ // Threshold - Confidence threshold to filter suggested tags on.
+ Threshold *float64 `json:"threshold,omitempty"`
+ // Session - SessionId for database query. Initially set to null but later used to paginate.
+ Session *string `json:"session,omitempty"`
+ // Continuation - Continuation Id for database pagination. Initially null but later used to paginate.
+ Continuation *string `json:"continuation,omitempty"`
+ // MaxCount - Maximum number of results you want to be returned in the response.
+ MaxCount *int32 `json:"maxCount,omitempty"`
+ // SortBy - OrderBy. Ordering mechanism for your results. Possible values include: 'UncertaintyAscending', 'UncertaintyDescending'
+ SortBy SortBy `json:"sortBy,omitempty"`
+}
+
+// Tag represents a Tag.
+type Tag struct {
+ autorest.Response `json:"-"`
+ // ID - READ-ONLY; Gets the Tag ID.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - Gets or sets the name of the tag.
+ Name *string `json:"name,omitempty"`
+ // Description - Gets or sets the description of the tag.
+ Description *string `json:"description,omitempty"`
+ // Type - Gets or sets the type of the tag. Possible values include: 'Regular', 'Negative'
+ Type TagType `json:"type,omitempty"`
+ // ImageCount - READ-ONLY; Gets the number of images with this tag.
+ ImageCount *int32 `json:"imageCount,omitempty"`
+}
+
+// TagFilter model that query for counting of images whose suggested tags match given tags and their
+// probability are greater than or equal to the given threshold.
+type TagFilter struct {
+ // TagIds - Existing TagIds in project to get suggested tags count for.
+ TagIds *[]uuid.UUID `json:"tagIds,omitempty"`
+ // Threshold - Confidence threshold to filter suggested tags on.
+ Threshold *float64 `json:"threshold,omitempty"`
+}
+
+// TagPerformance represents performance data for a particular tag in a trained iteration.
+type TagPerformance struct {
+ // ID - READ-ONLY
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - READ-ONLY
+ Name *string `json:"name,omitempty"`
+ // Precision - READ-ONLY; Gets the precision.
+ Precision *float64 `json:"precision,omitempty"`
+ // PrecisionStdDeviation - READ-ONLY; Gets the standard deviation for the precision.
+ PrecisionStdDeviation *float64 `json:"precisionStdDeviation,omitempty"`
+ // Recall - READ-ONLY; Gets the recall.
+ Recall *float64 `json:"recall,omitempty"`
+ // RecallStdDeviation - READ-ONLY; Gets the standard deviation for the recall.
+ RecallStdDeviation *float64 `json:"recallStdDeviation,omitempty"`
+ // AveragePrecision - READ-ONLY; Gets the average precision when applicable.
+ AveragePrecision *float64 `json:"averagePrecision,omitempty"`
+}
diff --git a/services/cognitiveservices/v3.1/customvision/training/trainingapi/interfaces.go b/services/cognitiveservices/v3.1/customvision/training/trainingapi/interfaces.go
new file mode 100644
index 000000000000..a8daec99beba
--- /dev/null
+++ b/services/cognitiveservices/v3.1/customvision/training/trainingapi/interfaces.go
@@ -0,0 +1,78 @@
+package trainingapi
+
+// 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/azure-sdk-for-go/services/cognitiveservices/v3.1/customvision/training"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/satori/go.uuid"
+ "io"
+)
+
+// BaseClientAPI contains the set of methods on the BaseClient type.
+type BaseClientAPI interface {
+ CreateImageRegions(ctx context.Context, projectID uuid.UUID, batch training.ImageRegionCreateBatch) (result training.ImageRegionCreateSummary, err error)
+ CreateImagesFromData(ctx context.Context, projectID uuid.UUID, imageData io.ReadCloser, tagIds []uuid.UUID) (result training.ImageCreateSummary, err error)
+ CreateImagesFromFiles(ctx context.Context, projectID uuid.UUID, batch training.ImageFileCreateBatch) (result training.ImageCreateSummary, err error)
+ CreateImagesFromPredictions(ctx context.Context, projectID uuid.UUID, batch training.ImageIDCreateBatch) (result training.ImageCreateSummary, err error)
+ CreateImagesFromUrls(ctx context.Context, projectID uuid.UUID, batch training.ImageURLCreateBatch) (result training.ImageCreateSummary, err error)
+ CreateImageTags(ctx context.Context, projectID uuid.UUID, batch training.ImageTagCreateBatch) (result training.ImageTagCreateSummary, err error)
+ CreateProject(ctx context.Context, name string, description string, domainID *uuid.UUID, classificationType string, targetExportPlatforms []string) (result training.Project, err error)
+ CreateTag(ctx context.Context, projectID uuid.UUID, name string, description string, typeParameter string) (result training.Tag, err error)
+ DeleteImageRegions(ctx context.Context, projectID uuid.UUID, regionIds []uuid.UUID) (result autorest.Response, err error)
+ DeleteImages(ctx context.Context, projectID uuid.UUID, imageIds []uuid.UUID, allImages *bool, allIterations *bool) (result autorest.Response, err error)
+ DeleteImageTags(ctx context.Context, projectID uuid.UUID, imageIds []uuid.UUID, tagIds []uuid.UUID) (result autorest.Response, err error)
+ DeleteIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (result autorest.Response, err error)
+ DeletePrediction(ctx context.Context, projectID uuid.UUID, ids []uuid.UUID) (result autorest.Response, err error)
+ DeleteProject(ctx context.Context, projectID uuid.UUID) (result autorest.Response, err error)
+ DeleteTag(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID) (result autorest.Response, err error)
+ ExportIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, platform string, flavor string) (result training.Export, err error)
+ GetDomain(ctx context.Context, domainID uuid.UUID) (result training.Domain, err error)
+ GetDomains(ctx context.Context) (result training.ListDomain, err error)
+ GetExports(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (result training.ListExport, err error)
+ GetImagePerformanceCount(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, tagIds []uuid.UUID) (result training.Int32, err error)
+ GetImagePerformances(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, tagIds []uuid.UUID, orderBy string, take *int32, skip *int32) (result training.ListImagePerformance, err error)
+ GetImageRegionProposals(ctx context.Context, projectID uuid.UUID, imageID uuid.UUID) (result training.ImageRegionProposal, err error)
+ GetImagesByIds(ctx context.Context, projectID uuid.UUID, imageIds []uuid.UUID, iterationID *uuid.UUID) (result training.ListImage, err error)
+ GetIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (result training.Iteration, err error)
+ GetIterationPerformance(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, threshold *float64, overlapThreshold *float64) (result training.IterationPerformance, err error)
+ GetIterations(ctx context.Context, projectID uuid.UUID) (result training.ListIteration, err error)
+ GetProject(ctx context.Context, projectID uuid.UUID) (result training.Project, err error)
+ GetProjects(ctx context.Context) (result training.ListProject, err error)
+ GetTag(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID, iterationID *uuid.UUID) (result training.Tag, err error)
+ GetTaggedImageCount(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, tagIds []uuid.UUID) (result training.Int32, err error)
+ GetTaggedImages(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, tagIds []uuid.UUID, orderBy string, take *int32, skip *int32) (result training.ListImage, err error)
+ GetTags(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID) (result training.ListTag, err error)
+ GetUntaggedImageCount(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID) (result training.Int32, err error)
+ GetUntaggedImages(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, orderBy string, take *int32, skip *int32) (result training.ListImage, err error)
+ PublishIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, publishName string, predictionID string) (result training.Bool, err error)
+ QueryPredictions(ctx context.Context, projectID uuid.UUID, query training.PredictionQueryToken) (result training.PredictionQueryResult, err error)
+ QuerySuggestedImageCount(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, query training.TagFilter) (result training.SetInt32, err error)
+ QuerySuggestedImages(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, query training.SuggestedTagAndRegionQueryToken) (result training.SuggestedTagAndRegionQuery, err error)
+ QuickTestImage(ctx context.Context, projectID uuid.UUID, imageData io.ReadCloser, iterationID *uuid.UUID, store *bool) (result training.ImagePrediction, err error)
+ QuickTestImageURL(ctx context.Context, projectID uuid.UUID, imageURL training.ImageURL, iterationID *uuid.UUID, store *bool) (result training.ImagePrediction, err error)
+ SuggestTagsAndRegions(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, imageIds []uuid.UUID) (result training.ListSuggestedTagAndRegion, err error)
+ TrainProject(ctx context.Context, projectID uuid.UUID, trainingType string, reservedBudgetInHours *int32, forceTrain *bool, notificationEmailAddress string) (result training.Iteration, err error)
+ UnpublishIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (result autorest.Response, err error)
+ UpdateIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, updatedIteration training.Iteration) (result training.Iteration, err error)
+ UpdateProject(ctx context.Context, projectID uuid.UUID, updatedProject training.Project) (result training.Project, err error)
+ UpdateTag(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID, updatedTag training.Tag) (result training.Tag, err error)
+}
+
+var _ BaseClientAPI = (*training.BaseClient)(nil)
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/version.go b/services/cognitiveservices/v3.1/customvision/training/version.go
similarity index 92%
rename from services/preview/sql/mgmt/2018-06-15-preview/sql/version.go
rename to services/cognitiveservices/v3.1/customvision/training/version.go
index 113425810a20..9d1a5a43ec13 100644
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/version.go
+++ b/services/cognitiveservices/v3.1/customvision/training/version.go
@@ -1,4 +1,4 @@
-package sql
+package training
import "github.com/Azure/azure-sdk-for-go/version"
@@ -21,7 +21,7 @@ import "github.com/Azure/azure-sdk-for-go/version"
// UserAgent returns the UserAgent string to use when sending http.Requests.
func UserAgent() string {
- return "Azure-SDK-For-Go/" + version.Number + " sql/2018-06-15-preview"
+ return "Azure-SDK-For-Go/" + version.Number + " training/3.1"
}
// Version returns the semantic version (see http://semver.org) of the client.
diff --git a/services/cognitiveservices/v4.0/qnamakerruntime/models.go b/services/cognitiveservices/v4.0/qnamakerruntime/models.go
index eeb9d3630178..a207048f787c 100644
--- a/services/cognitiveservices/v4.0/qnamakerruntime/models.go
+++ b/services/cognitiveservices/v4.0/qnamakerruntime/models.go
@@ -256,6 +256,8 @@ type QueryDTO struct {
ScoreThreshold *float64 `json:"scoreThreshold,omitempty"`
// Context - Context object with previous QnA's information.
Context *QueryDTOContext `json:"context,omitempty"`
+ // RankerType - Optional field. Set to 'QuestionOnly' for using a question only Ranker.
+ RankerType *string `json:"rankerType,omitempty"`
// StrictFilters - Find only answers that contain these metadata.
StrictFilters *[]MetadataDTO `json:"strictFilters,omitempty"`
}
diff --git a/services/compute/mgmt/2018-10-01/compute/models.go b/services/compute/mgmt/2018-10-01/compute/models.go
index 5f691d90cfa7..8e8a1ec5ffe2 100644
--- a/services/compute/mgmt/2018-10-01/compute/models.go
+++ b/services/compute/mgmt/2018-10-01/compute/models.go
@@ -1244,6 +1244,17 @@ type AutomaticOSUpgradeProperties struct {
AutomaticOSUpgradeSupported *bool `json:"automaticOSUpgradeSupported,omitempty"`
}
+// AutomaticRepairsPolicy specifies the configuration parameters for automatic repairs on the virtual
+// machine scale set.
+type AutomaticRepairsPolicy struct {
+ // Enabled - Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false.
+ Enabled *bool `json:"enabled,omitempty"`
+ // GracePeriod - The amount of time for which automatic repairs are suspended due to a state change on VM. The grace time starts after the state change has completed. This helps avoid premature or accidental repairs. The time duration should be specified in ISO 8601 format. The default value is 5 minutes (PT5M).
+ GracePeriod *string `json:"gracePeriod,omitempty"`
+ // MaxInstanceRepairsPercent - The percentage (capacity of scaleset) of virtual machines that will be simultaneously repaired. The default value is 20%.
+ MaxInstanceRepairsPercent *int32 `json:"maxInstanceRepairsPercent,omitempty"`
+}
+
// AvailabilitySet specifies information about the availability set that the virtual machine should be
// assigned to. Virtual machines specified in the same availability set are allocated to different nodes to
// maximize availability. For more information about availability sets, see [Manage the availability of
@@ -8709,6 +8720,8 @@ type VirtualMachineScaleSetOSProfile struct {
type VirtualMachineScaleSetProperties struct {
// UpgradePolicy - The upgrade policy.
UpgradePolicy *UpgradePolicy `json:"upgradePolicy,omitempty"`
+ // AutomaticRepairsPolicy - Policy for automatic repairs.
+ AutomaticRepairsPolicy *AutomaticRepairsPolicy `json:"automaticRepairsPolicy,omitempty"`
// VirtualMachineProfile - The virtual machine profile.
VirtualMachineProfile *VirtualMachineScaleSetVMProfile `json:"virtualMachineProfile,omitempty"`
// ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response.
@@ -9528,10 +9541,14 @@ type VirtualMachineScaleSetUpdateOSProfile struct {
type VirtualMachineScaleSetUpdateProperties struct {
// UpgradePolicy - The upgrade policy.
UpgradePolicy *UpgradePolicy `json:"upgradePolicy,omitempty"`
+ // AutomaticRepairsPolicy - Policy for automatic repairs.
+ AutomaticRepairsPolicy *AutomaticRepairsPolicy `json:"automaticRepairsPolicy,omitempty"`
// VirtualMachineProfile - The virtual machine profile.
VirtualMachineProfile *VirtualMachineScaleSetUpdateVMProfile `json:"virtualMachineProfile,omitempty"`
// Overprovision - Specifies whether the Virtual Machine Scale Set should be overprovisioned.
Overprovision *bool `json:"overprovision,omitempty"`
+ // DoNotRunExtensionsOnOverprovisionedVMs - When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned VMs.
+ DoNotRunExtensionsOnOverprovisionedVMs *bool `json:"doNotRunExtensionsOnOverprovisionedVMs,omitempty"`
// SinglePlacementGroup - When true this limits the scale set to a single placement group, of max size 100 virtual machines.
SinglePlacementGroup *bool `json:"singlePlacementGroup,omitempty"`
}
diff --git a/services/compute/mgmt/2019-03-01/compute/computeapi/interfaces.go b/services/compute/mgmt/2019-03-01/compute/computeapi/interfaces.go
index b9cb016a868d..260b56f5cbef 100644
--- a/services/compute/mgmt/2019-03-01/compute/computeapi/interfaces.go
+++ b/services/compute/mgmt/2019-03-01/compute/computeapi/interfaces.go
@@ -246,7 +246,7 @@ var _ VirtualMachineRunCommandsClientAPI = (*compute.VirtualMachineRunCommandsCl
// ResourceSkusClientAPI contains the set of methods on the ResourceSkusClient type.
type ResourceSkusClientAPI interface {
- List(ctx context.Context) (result compute.ResourceSkusResultPage, err error)
+ List(ctx context.Context, filter string) (result compute.ResourceSkusResultPage, err error)
}
var _ ResourceSkusClientAPI = (*compute.ResourceSkusClient)(nil)
diff --git a/services/compute/mgmt/2019-03-01/compute/models.go b/services/compute/mgmt/2019-03-01/compute/models.go
index 932e68cdb30a..f7461a488238 100644
--- a/services/compute/mgmt/2019-03-01/compute/models.go
+++ b/services/compute/mgmt/2019-03-01/compute/models.go
@@ -1395,6 +1395,17 @@ type AutomaticOSUpgradeProperties struct {
AutomaticOSUpgradeSupported *bool `json:"automaticOSUpgradeSupported,omitempty"`
}
+// AutomaticRepairsPolicy specifies the configuration parameters for automatic repairs on the virtual
+// machine scale set.
+type AutomaticRepairsPolicy struct {
+ // Enabled - Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false.
+ Enabled *bool `json:"enabled,omitempty"`
+ // GracePeriod - The amount of time for which automatic repairs are suspended due to a state change on VM. The grace time starts after the state change has completed. This helps avoid premature or accidental repairs. The time duration should be specified in ISO 8601 format. The default value is 5 minutes (PT5M).
+ GracePeriod *string `json:"gracePeriod,omitempty"`
+ // MaxInstanceRepairsPercent - The percentage (capacity of scaleset) of virtual machines that will be simultaneously repaired. The default value is 20%.
+ MaxInstanceRepairsPercent *int32 `json:"maxInstanceRepairsPercent,omitempty"`
+}
+
// AvailabilitySet specifies information about the availability set that the virtual machine should be
// assigned to. Virtual machines specified in the same availability set are allocated to different nodes to
// maximize availability. For more information about availability sets, see [Manage the availability of
@@ -6298,6 +6309,8 @@ type OSProfile struct {
Secrets *[]VaultSecretGroup `json:"secrets,omitempty"`
// AllowExtensionOperations - Specifies whether extension operations should be allowed on the virtual machine.
This may only be set to False when no extensions are present on the virtual machine.
AllowExtensionOperations *bool `json:"allowExtensionOperations,omitempty"`
+ // RequireGuestProvisionSignal - Specifies whether the guest provision signal is required from the virtual machine.
+ RequireGuestProvisionSignal *bool `json:"requireGuestProvisionSignal,omitempty"`
}
// Plan specifies information about the marketplace image used to create the virtual machine. This element
@@ -10385,6 +10398,8 @@ type VirtualMachineScaleSetOSProfile struct {
type VirtualMachineScaleSetProperties struct {
// UpgradePolicy - The upgrade policy.
UpgradePolicy *UpgradePolicy `json:"upgradePolicy,omitempty"`
+ // AutomaticRepairsPolicy - Policy for automatic repairs.
+ AutomaticRepairsPolicy *AutomaticRepairsPolicy `json:"automaticRepairsPolicy,omitempty"`
// VirtualMachineProfile - The virtual machine profile.
VirtualMachineProfile *VirtualMachineScaleSetVMProfile `json:"virtualMachineProfile,omitempty"`
// ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response.
@@ -11210,10 +11225,14 @@ type VirtualMachineScaleSetUpdateOSProfile struct {
type VirtualMachineScaleSetUpdateProperties struct {
// UpgradePolicy - The upgrade policy.
UpgradePolicy *UpgradePolicy `json:"upgradePolicy,omitempty"`
+ // AutomaticRepairsPolicy - Policy for automatic repairs.
+ AutomaticRepairsPolicy *AutomaticRepairsPolicy `json:"automaticRepairsPolicy,omitempty"`
// VirtualMachineProfile - The virtual machine profile.
VirtualMachineProfile *VirtualMachineScaleSetUpdateVMProfile `json:"virtualMachineProfile,omitempty"`
// Overprovision - Specifies whether the Virtual Machine Scale Set should be overprovisioned.
Overprovision *bool `json:"overprovision,omitempty"`
+ // DoNotRunExtensionsOnOverprovisionedVMs - When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned VMs.
+ DoNotRunExtensionsOnOverprovisionedVMs *bool `json:"doNotRunExtensionsOnOverprovisionedVMs,omitempty"`
// SinglePlacementGroup - When true this limits the scale set to a single placement group, of max size 100 virtual machines.
SinglePlacementGroup *bool `json:"singlePlacementGroup,omitempty"`
// AdditionalCapabilities - Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type.
diff --git a/services/compute/mgmt/2019-03-01/compute/resourceskus.go b/services/compute/mgmt/2019-03-01/compute/resourceskus.go
index dade057a45fe..adb402788c87 100644
--- a/services/compute/mgmt/2019-03-01/compute/resourceskus.go
+++ b/services/compute/mgmt/2019-03-01/compute/resourceskus.go
@@ -41,7 +41,9 @@ func NewResourceSkusClientWithBaseURI(baseURI string, subscriptionID string) Res
}
// List gets the list of Microsoft.Compute SKUs available for your Subscription.
-func (client ResourceSkusClient) List(ctx context.Context) (result ResourceSkusResultPage, err error) {
+// Parameters:
+// filter - the filter to apply on the operation.
+func (client ResourceSkusClient) List(ctx context.Context, filter string) (result ResourceSkusResultPage, err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/ResourceSkusClient.List")
defer func() {
@@ -53,7 +55,7 @@ func (client ResourceSkusClient) List(ctx context.Context) (result ResourceSkusR
}()
}
result.fn = client.listNextResults
- req, err := client.ListPreparer(ctx)
+ req, err := client.ListPreparer(ctx, filter)
if err != nil {
err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "List", nil, "Failure preparing request")
return
@@ -75,7 +77,7 @@ func (client ResourceSkusClient) List(ctx context.Context) (result ResourceSkusR
}
// ListPreparer prepares the List request.
-func (client ResourceSkusClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+func (client ResourceSkusClient) ListPreparer(ctx context.Context, filter string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
@@ -84,6 +86,9 @@ func (client ResourceSkusClient) ListPreparer(ctx context.Context) (*http.Reques
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
preparer := autorest.CreatePreparer(
autorest.AsGet(),
@@ -135,7 +140,7 @@ func (client ResourceSkusClient) listNextResults(ctx context.Context, lastResult
}
// ListComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ResourceSkusClient) ListComplete(ctx context.Context) (result ResourceSkusResultIterator, err error) {
+func (client ResourceSkusClient) ListComplete(ctx context.Context, filter string) (result ResourceSkusResultIterator, err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/ResourceSkusClient.List")
defer func() {
@@ -146,6 +151,6 @@ func (client ResourceSkusClient) ListComplete(ctx context.Context) (result Resou
tracing.EndSpan(ctx, sc, err)
}()
}
- result.page, err = client.List(ctx)
+ result.page, err = client.List(ctx, filter)
return
}
diff --git a/services/compute/mgmt/2019-07-01/compute/availabilitysets.go b/services/compute/mgmt/2019-07-01/compute/availabilitysets.go
index 853abfc1c95c..92945517338f 100644
--- a/services/compute/mgmt/2019-07-01/compute/availabilitysets.go
+++ b/services/compute/mgmt/2019-07-01/compute/availabilitysets.go
@@ -85,7 +85,7 @@ func (client AvailabilitySetsClient) CreateOrUpdatePreparer(ctx context.Context,
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -164,7 +164,7 @@ func (client AvailabilitySetsClient) DeletePreparer(ctx context.Context, resourc
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -240,7 +240,7 @@ func (client AvailabilitySetsClient) GetPreparer(ctx context.Context, resourceGr
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -316,7 +316,7 @@ func (client AvailabilitySetsClient) ListPreparer(ctx context.Context, resourceG
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -431,7 +431,7 @@ func (client AvailabilitySetsClient) ListAvailableSizesPreparer(ctx context.Cont
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -506,7 +506,7 @@ func (client AvailabilitySetsClient) ListBySubscriptionPreparer(ctx context.Cont
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -624,7 +624,7 @@ func (client AvailabilitySetsClient) UpdatePreparer(ctx context.Context, resourc
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/compute/mgmt/2019-07-01/compute/computeapi/interfaces.go b/services/compute/mgmt/2019-07-01/compute/computeapi/interfaces.go
index 1a3fc7f1d25a..836e80dbc99c 100644
--- a/services/compute/mgmt/2019-07-01/compute/computeapi/interfaces.go
+++ b/services/compute/mgmt/2019-07-01/compute/computeapi/interfaces.go
@@ -127,11 +127,12 @@ type VirtualMachinesClientAPI interface {
Get(ctx context.Context, resourceGroupName string, VMName string, expand compute.InstanceViewTypes) (result compute.VirtualMachine, err error)
InstanceView(ctx context.Context, resourceGroupName string, VMName string) (result compute.VirtualMachineInstanceView, err error)
List(ctx context.Context, resourceGroupName string) (result compute.VirtualMachineListResultPage, err error)
- ListAll(ctx context.Context) (result compute.VirtualMachineListResultPage, err error)
+ ListAll(ctx context.Context, statusOnly string) (result compute.VirtualMachineListResultPage, err error)
ListAvailableSizes(ctx context.Context, resourceGroupName string, VMName string) (result compute.VirtualMachineSizeListResult, err error)
ListByLocation(ctx context.Context, location string) (result compute.VirtualMachineListResultPage, err error)
PerformMaintenance(ctx context.Context, resourceGroupName string, VMName string) (result compute.VirtualMachinesPerformMaintenanceFuture, err error)
PowerOff(ctx context.Context, resourceGroupName string, VMName string, skipShutdown *bool) (result compute.VirtualMachinesPowerOffFuture, err error)
+ Reapply(ctx context.Context, resourceGroupName string, VMName string) (result compute.VirtualMachinesReapplyFuture, err error)
Redeploy(ctx context.Context, resourceGroupName string, VMName string) (result compute.VirtualMachinesRedeployFuture, err error)
Reimage(ctx context.Context, resourceGroupName string, VMName string, parameters *compute.VirtualMachineReimageParameters) (result compute.VirtualMachinesReimageFuture, err error)
Restart(ctx context.Context, resourceGroupName string, VMName string) (result compute.VirtualMachinesRestartFuture, err error)
@@ -208,6 +209,17 @@ type VirtualMachineScaleSetRollingUpgradesClientAPI interface {
var _ VirtualMachineScaleSetRollingUpgradesClientAPI = (*compute.VirtualMachineScaleSetRollingUpgradesClient)(nil)
+// VirtualMachineScaleSetVMExtensionsClientAPI contains the set of methods on the VirtualMachineScaleSetVMExtensionsClient type.
+type VirtualMachineScaleSetVMExtensionsClientAPI interface {
+ CreateOrUpdate(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, VMExtensionName string, extensionParameters compute.VirtualMachineExtension) (result compute.VirtualMachineScaleSetVMExtensionsCreateOrUpdateFuture, err error)
+ Delete(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, VMExtensionName string) (result compute.VirtualMachineScaleSetVMExtensionsDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, VMExtensionName string, expand string) (result compute.VirtualMachineExtension, err error)
+ List(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, expand string) (result compute.VirtualMachineExtensionsListResult, err error)
+ Update(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, VMExtensionName string, extensionParameters compute.VirtualMachineExtensionUpdate) (result compute.VirtualMachineScaleSetVMExtensionsUpdateFuture, err error)
+}
+
+var _ VirtualMachineScaleSetVMExtensionsClientAPI = (*compute.VirtualMachineScaleSetVMExtensionsClient)(nil)
+
// VirtualMachineScaleSetVMsClientAPI contains the set of methods on the VirtualMachineScaleSetVMsClient type.
type VirtualMachineScaleSetVMsClientAPI interface {
Deallocate(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string) (result compute.VirtualMachineScaleSetVMsDeallocateFuture, err error)
@@ -246,7 +258,7 @@ var _ VirtualMachineRunCommandsClientAPI = (*compute.VirtualMachineRunCommandsCl
// ResourceSkusClientAPI contains the set of methods on the ResourceSkusClient type.
type ResourceSkusClientAPI interface {
- List(ctx context.Context) (result compute.ResourceSkusResultPage, err error)
+ List(ctx context.Context, filter string) (result compute.ResourceSkusResultPage, err error)
}
var _ ResourceSkusClientAPI = (*compute.ResourceSkusClient)(nil)
@@ -279,6 +291,18 @@ type SnapshotsClientAPI interface {
var _ SnapshotsClientAPI = (*compute.SnapshotsClient)(nil)
+// DiskEncryptionSetsClientAPI contains the set of methods on the DiskEncryptionSetsClient type.
+type DiskEncryptionSetsClientAPI interface {
+ CreateOrUpdate(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, diskEncryptionSet compute.DiskEncryptionSet) (result compute.DiskEncryptionSetsCreateOrUpdateFuture, err error)
+ Delete(ctx context.Context, resourceGroupName string, diskEncryptionSetName string) (result compute.DiskEncryptionSetsDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, diskEncryptionSetName string) (result compute.DiskEncryptionSet, err error)
+ List(ctx context.Context) (result compute.DiskEncryptionSetListPage, err error)
+ ListByResourceGroup(ctx context.Context, resourceGroupName string) (result compute.DiskEncryptionSetListPage, err error)
+ Update(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, diskEncryptionSet compute.DiskEncryptionSetUpdate) (result compute.DiskEncryptionSetsUpdateFuture, err error)
+}
+
+var _ DiskEncryptionSetsClientAPI = (*compute.DiskEncryptionSetsClient)(nil)
+
// GalleriesClientAPI contains the set of methods on the GalleriesClient type.
type GalleriesClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, gallery compute.Gallery) (result compute.GalleriesCreateOrUpdateFuture, err error)
diff --git a/services/compute/mgmt/2019-07-01/compute/dedicatedhostgroups.go b/services/compute/mgmt/2019-07-01/compute/dedicatedhostgroups.go
index 77ec9da3137b..c786ffefc3f3 100644
--- a/services/compute/mgmt/2019-07-01/compute/dedicatedhostgroups.go
+++ b/services/compute/mgmt/2019-07-01/compute/dedicatedhostgroups.go
@@ -98,7 +98,7 @@ func (client DedicatedHostGroupsClient) CreateOrUpdatePreparer(ctx context.Conte
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -177,7 +177,7 @@ func (client DedicatedHostGroupsClient) DeletePreparer(ctx context.Context, reso
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -253,7 +253,7 @@ func (client DedicatedHostGroupsClient) GetPreparer(ctx context.Context, resourc
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -330,7 +330,7 @@ func (client DedicatedHostGroupsClient) ListByResourceGroupPreparer(ctx context.
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -441,7 +441,7 @@ func (client DedicatedHostGroupsClient) ListBySubscriptionPreparer(ctx context.C
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -556,7 +556,7 @@ func (client DedicatedHostGroupsClient) UpdatePreparer(ctx context.Context, reso
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/compute/mgmt/2019-07-01/compute/dedicatedhosts.go b/services/compute/mgmt/2019-07-01/compute/dedicatedhosts.go
index 31f8795d6fdd..fb6ff59522b3 100644
--- a/services/compute/mgmt/2019-07-01/compute/dedicatedhosts.go
+++ b/services/compute/mgmt/2019-07-01/compute/dedicatedhosts.go
@@ -94,7 +94,7 @@ func (client DedicatedHostsClient) CreateOrUpdatePreparer(ctx context.Context, r
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -175,7 +175,7 @@ func (client DedicatedHostsClient) DeletePreparer(ctx context.Context, resourceG
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -260,7 +260,7 @@ func (client DedicatedHostsClient) GetPreparer(ctx context.Context, resourceGrou
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -342,7 +342,7 @@ func (client DedicatedHostsClient) ListByHostGroupPreparer(ctx context.Context,
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -453,7 +453,7 @@ func (client DedicatedHostsClient) UpdatePreparer(ctx context.Context, resourceG
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/compute/mgmt/2019-07-01/compute/diskencryptionsets.go b/services/compute/mgmt/2019-07-01/compute/diskencryptionsets.go
new file mode 100644
index 000000000000..cb93acdde874
--- /dev/null
+++ b/services/compute/mgmt/2019-07-01/compute/diskencryptionsets.go
@@ -0,0 +1,599 @@
+package compute
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// DiskEncryptionSetsClient is the compute Client
+type DiskEncryptionSetsClient struct {
+ BaseClient
+}
+
+// NewDiskEncryptionSetsClient creates an instance of the DiskEncryptionSetsClient client.
+func NewDiskEncryptionSetsClient(subscriptionID string) DiskEncryptionSetsClient {
+ return NewDiskEncryptionSetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewDiskEncryptionSetsClientWithBaseURI creates an instance of the DiskEncryptionSetsClient client.
+func NewDiskEncryptionSetsClientWithBaseURI(baseURI string, subscriptionID string) DiskEncryptionSetsClient {
+ return DiskEncryptionSetsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates a disk encryption set
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// diskEncryptionSetName - the name of the disk encryption set that is being created. The name can't be changed
+// after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The
+// maximum name length is 80 characters.
+// diskEncryptionSet - disk encryption set object supplied in the body of the Put disk encryption set
+// operation.
+func (client DiskEncryptionSetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, diskEncryptionSet DiskEncryptionSet) (result DiskEncryptionSetsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DiskEncryptionSetsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: diskEncryptionSet,
+ Constraints: []validation.Constraint{{Target: "diskEncryptionSet.EncryptionSetProperties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "diskEncryptionSet.EncryptionSetProperties.ActiveKey", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "diskEncryptionSet.EncryptionSetProperties.ActiveKey.SourceVault", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "diskEncryptionSet.EncryptionSetProperties.ActiveKey.KeyURL", Name: validation.Null, Rule: true, Chain: nil},
+ }},
+ }}}}}); err != nil {
+ return result, validation.NewError("compute.DiskEncryptionSetsClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, diskEncryptionSetName, diskEncryptionSet)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client DiskEncryptionSetsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, diskEncryptionSet DiskEncryptionSet) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "diskEncryptionSetName": autorest.Encode("path", diskEncryptionSetName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-07-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.Compute/diskEncryptionSets/{diskEncryptionSetName}", pathParameters),
+ autorest.WithJSON(diskEncryptionSet),
+ 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 DiskEncryptionSetsClient) CreateOrUpdateSender(req *http.Request) (future DiskEncryptionSetsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client DiskEncryptionSetsClient) CreateOrUpdateResponder(resp *http.Response) (result DiskEncryptionSet, 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 deletes a disk encryption set.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// diskEncryptionSetName - the name of the disk encryption set that is being created. The name can't be changed
+// after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The
+// maximum name length is 80 characters.
+func (client DiskEncryptionSetsClient) Delete(ctx context.Context, resourceGroupName string, diskEncryptionSetName string) (result DiskEncryptionSetsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DiskEncryptionSetsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, diskEncryptionSetName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client DiskEncryptionSetsClient) DeletePreparer(ctx context.Context, resourceGroupName string, diskEncryptionSetName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "diskEncryptionSetName": autorest.Encode("path", diskEncryptionSetName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-07-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.Compute/diskEncryptionSets/{diskEncryptionSetName}", 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 DiskEncryptionSetsClient) DeleteSender(req *http.Request) (future DiskEncryptionSetsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client DiskEncryptionSetsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets information about a disk encryption set.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// diskEncryptionSetName - the name of the disk encryption set that is being created. The name can't be changed
+// after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The
+// maximum name length is 80 characters.
+func (client DiskEncryptionSetsClient) Get(ctx context.Context, resourceGroupName string, diskEncryptionSetName string) (result DiskEncryptionSet, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DiskEncryptionSetsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, diskEncryptionSetName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client DiskEncryptionSetsClient) GetPreparer(ctx context.Context, resourceGroupName string, diskEncryptionSetName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "diskEncryptionSetName": autorest.Encode("path", diskEncryptionSetName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-07-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.Compute/diskEncryptionSets/{diskEncryptionSetName}", 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 DiskEncryptionSetsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client DiskEncryptionSetsClient) GetResponder(resp *http.Response) (result DiskEncryptionSet, 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 lists all the disk encryption sets under a subscription.
+func (client DiskEncryptionSetsClient) List(ctx context.Context) (result DiskEncryptionSetListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DiskEncryptionSetsClient.List")
+ defer func() {
+ sc := -1
+ if result.desl.Response.Response != nil {
+ sc = result.desl.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.desl.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.desl, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client DiskEncryptionSetsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-07-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets", 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 DiskEncryptionSetsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client DiskEncryptionSetsClient) ListResponder(resp *http.Response) (result DiskEncryptionSetList, 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 DiskEncryptionSetsClient) listNextResults(ctx context.Context, lastResults DiskEncryptionSetList) (result DiskEncryptionSetList, err error) {
+ req, err := lastResults.diskEncryptionSetListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "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, "compute.DiskEncryptionSetsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client DiskEncryptionSetsClient) ListComplete(ctx context.Context) (result DiskEncryptionSetListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DiskEncryptionSetsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx)
+ return
+}
+
+// ListByResourceGroup lists all the disk encryption sets under a resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client DiskEncryptionSetsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result DiskEncryptionSetListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DiskEncryptionSetsClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.desl.Response.Response != nil {
+ sc = result.desl.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByResourceGroupNextResults
+ req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.desl.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.desl, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client DiskEncryptionSetsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-07-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.Compute/diskEncryptionSets", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client DiskEncryptionSetsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client DiskEncryptionSetsClient) ListByResourceGroupResponder(resp *http.Response) (result DiskEncryptionSetList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByResourceGroupNextResults retrieves the next set of results, if any.
+func (client DiskEncryptionSetsClient) listByResourceGroupNextResults(ctx context.Context, lastResults DiskEncryptionSetList) (result DiskEncryptionSetList, err error) {
+ req, err := lastResults.diskEncryptionSetListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client DiskEncryptionSetsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result DiskEncryptionSetListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DiskEncryptionSetsClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByResourceGroup(ctx, resourceGroupName)
+ return
+}
+
+// Update updates (patches) a disk encryption set.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// diskEncryptionSetName - the name of the disk encryption set that is being created. The name can't be changed
+// after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The
+// maximum name length is 80 characters.
+// diskEncryptionSet - disk encryption set object supplied in the body of the Patch disk encryption set
+// operation.
+func (client DiskEncryptionSetsClient) Update(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, diskEncryptionSet DiskEncryptionSetUpdate) (result DiskEncryptionSetsUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DiskEncryptionSetsClient.Update")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdatePreparer(ctx, resourceGroupName, diskEncryptionSetName, diskEncryptionSet)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Update", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.UpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsClient", "Update", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// UpdatePreparer prepares the Update request.
+func (client DiskEncryptionSetsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, diskEncryptionSetName string, diskEncryptionSet DiskEncryptionSetUpdate) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "diskEncryptionSetName": autorest.Encode("path", diskEncryptionSetName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-07-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.Compute/diskEncryptionSets/{diskEncryptionSetName}", pathParameters),
+ autorest.WithJSON(diskEncryptionSet),
+ 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 DiskEncryptionSetsClient) UpdateSender(req *http.Request) (future DiskEncryptionSetsUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// UpdateResponder handles the response to the Update request. The method always
+// closes the http.Response Body.
+func (client DiskEncryptionSetsClient) UpdateResponder(resp *http.Response) (result DiskEncryptionSet, 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}
+ return
+}
diff --git a/services/compute/mgmt/2019-07-01/compute/disks.go b/services/compute/mgmt/2019-07-01/compute/disks.go
index 31ee32f12f42..4bf336689169 100644
--- a/services/compute/mgmt/2019-07-01/compute/disks.go
+++ b/services/compute/mgmt/2019-07-01/compute/disks.go
@@ -95,7 +95,7 @@ func (client DisksClient) CreateOrUpdatePreparer(ctx context.Context, resourceGr
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -177,7 +177,7 @@ func (client DisksClient) DeletePreparer(ctx context.Context, resourceGroupName
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -261,7 +261,7 @@ func (client DisksClient) GetPreparer(ctx context.Context, resourceGroupName str
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -341,7 +341,7 @@ func (client DisksClient) GrantAccessPreparer(ctx context.Context, resourceGroup
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -422,7 +422,7 @@ func (client DisksClient) ListPreparer(ctx context.Context) (*http.Request, erro
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -535,7 +535,7 @@ func (client DisksClient) ListByResourceGroupPreparer(ctx context.Context, resou
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -645,7 +645,7 @@ func (client DisksClient) RevokeAccessPreparer(ctx context.Context, resourceGrou
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -724,7 +724,7 @@ func (client DisksClient) UpdatePreparer(ctx context.Context, resourceGroupName
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/compute/mgmt/2019-07-01/compute/images.go b/services/compute/mgmt/2019-07-01/compute/images.go
index e15083ca448d..dfb92b46b0f7 100644
--- a/services/compute/mgmt/2019-07-01/compute/images.go
+++ b/services/compute/mgmt/2019-07-01/compute/images.go
@@ -79,7 +79,7 @@ func (client ImagesClient) CreateOrUpdatePreparer(ctx context.Context, resourceG
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -158,7 +158,7 @@ func (client ImagesClient) DeletePreparer(ctx context.Context, resourceGroupName
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -241,7 +241,7 @@ func (client ImagesClient) GetPreparer(ctx context.Context, resourceGroupName st
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -318,7 +318,7 @@ func (client ImagesClient) ListPreparer(ctx context.Context) (*http.Request, err
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -431,7 +431,7 @@ func (client ImagesClient) ListByResourceGroupPreparer(ctx context.Context, reso
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -540,7 +540,7 @@ func (client ImagesClient) UpdatePreparer(ctx context.Context, resourceGroupName
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/compute/mgmt/2019-07-01/compute/loganalytics.go b/services/compute/mgmt/2019-07-01/compute/loganalytics.go
index 8fa8c1b05416..145d834d59b8 100644
--- a/services/compute/mgmt/2019-07-01/compute/loganalytics.go
+++ b/services/compute/mgmt/2019-07-01/compute/loganalytics.go
@@ -85,7 +85,7 @@ func (client LogAnalyticsClient) ExportRequestRateByIntervalPreparer(ctx context
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -170,7 +170,7 @@ func (client LogAnalyticsClient) ExportThrottledRequestsPreparer(ctx context.Con
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/compute/mgmt/2019-07-01/compute/models.go b/services/compute/mgmt/2019-07-01/compute/models.go
index 8cf3b0571819..11e0c0a1bd2c 100644
--- a/services/compute/mgmt/2019-07-01/compute/models.go
+++ b/services/compute/mgmt/2019-07-01/compute/models.go
@@ -311,6 +311,19 @@ func PossibleDiskCreateOptionTypesValues() []DiskCreateOptionTypes {
return []DiskCreateOptionTypes{DiskCreateOptionTypesAttach, DiskCreateOptionTypesEmpty, DiskCreateOptionTypesFromImage}
}
+// DiskEncryptionSetIdentityType enumerates the values for disk encryption set identity type.
+type DiskEncryptionSetIdentityType string
+
+const (
+ // SystemAssigned ...
+ SystemAssigned DiskEncryptionSetIdentityType = "SystemAssigned"
+)
+
+// PossibleDiskEncryptionSetIdentityTypeValues returns an array of possible values for the DiskEncryptionSetIdentityType const type.
+func PossibleDiskEncryptionSetIdentityTypeValues() []DiskEncryptionSetIdentityType {
+ return []DiskEncryptionSetIdentityType{SystemAssigned}
+}
+
// DiskState enumerates the values for disk state.
type DiskState string
@@ -357,6 +370,22 @@ func PossibleDiskStorageAccountTypesValues() []DiskStorageAccountTypes {
return []DiskStorageAccountTypes{PremiumLRS, StandardLRS, StandardSSDLRS, UltraSSDLRS}
}
+// EncryptionType enumerates the values for encryption type.
+type EncryptionType string
+
+const (
+ // EncryptionAtRestWithCustomerKey Disk is encrypted with Customer managed key at rest.
+ EncryptionAtRestWithCustomerKey EncryptionType = "EncryptionAtRestWithCustomerKey"
+ // EncryptionAtRestWithPlatformKey Disk is encrypted with XStore managed key at rest. It is the default
+ // encryption type.
+ EncryptionAtRestWithPlatformKey EncryptionType = "EncryptionAtRestWithPlatformKey"
+)
+
+// PossibleEncryptionTypeValues returns an array of possible values for the EncryptionType const type.
+func PossibleEncryptionTypeValues() []EncryptionType {
+ return []EncryptionType{EncryptionAtRestWithCustomerKey, EncryptionAtRestWithPlatformKey}
+}
+
// HostCaching enumerates the values for host caching.
type HostCaching string
@@ -1395,6 +1424,17 @@ type AutomaticOSUpgradeProperties struct {
AutomaticOSUpgradeSupported *bool `json:"automaticOSUpgradeSupported,omitempty"`
}
+// AutomaticRepairsPolicy specifies the configuration parameters for automatic repairs on the virtual
+// machine scale set.
+type AutomaticRepairsPolicy struct {
+ // Enabled - Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false.
+ Enabled *bool `json:"enabled,omitempty"`
+ // GracePeriod - The amount of time for which automatic repairs are suspended due to a state change on VM. The grace time starts after the state change has completed. This helps avoid premature or accidental repairs. The time duration should be specified in ISO 8601 format. The default value is 5 minutes (PT5M).
+ GracePeriod *string `json:"gracePeriod,omitempty"`
+ // MaxInstanceRepairsPercent - The percentage (capacity of scaleset) of virtual machines that will be simultaneously repaired. The default value is 20%.
+ MaxInstanceRepairsPercent *int32 `json:"maxInstanceRepairsPercent,omitempty"`
+}
+
// AvailabilitySet specifies information about the availability set that the virtual machine should be
// assigned to. Virtual machines specified in the same availability set are allocated to different nodes to
// maximize availability. For more information about availability sets, see [Manage the availability of
@@ -1772,7 +1812,7 @@ type BootDiagnosticsInstanceView struct {
Status *InstanceViewStatus `json:"status,omitempty"`
}
-// CloudError an error response from the Gallery service.
+// CloudError an error response from the Compute service.
type CloudError struct {
Error *APIError `json:"error,omitempty"`
}
@@ -2224,6 +2264,10 @@ type DataDisk struct {
ManagedDisk *ManagedDiskParameters `json:"managedDisk,omitempty"`
// ToBeDetached - Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset
ToBeDetached *bool `json:"toBeDetached,omitempty"`
+ // DiskIOPSReadWrite - READ-ONLY; Specifies the Read-Write IOPS for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set.
+ DiskIOPSReadWrite *int64 `json:"diskIOPSReadWrite,omitempty"`
+ // DiskMBpsReadWrite - READ-ONLY; Specifies the bandwidth in MB per second for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set.
+ DiskMBpsReadWrite *int64 `json:"diskMBpsReadWrite,omitempty"`
}
// DataDiskImage contains the data disk images information.
@@ -3166,6 +3210,354 @@ func (d *Disk) UnmarshalJSON(body []byte) error {
return nil
}
+// DiskEncryptionSet disk encryption set resource.
+type DiskEncryptionSet struct {
+ autorest.Response `json:"-"`
+ Identity *EncryptionSetIdentity `json:"identity,omitempty"`
+ *EncryptionSetProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; 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 DiskEncryptionSet.
+func (desVar DiskEncryptionSet) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if desVar.Identity != nil {
+ objectMap["identity"] = desVar.Identity
+ }
+ if desVar.EncryptionSetProperties != nil {
+ objectMap["properties"] = desVar.EncryptionSetProperties
+ }
+ if desVar.Location != nil {
+ objectMap["location"] = desVar.Location
+ }
+ if desVar.Tags != nil {
+ objectMap["tags"] = desVar.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for DiskEncryptionSet struct.
+func (desVar *DiskEncryptionSet) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "identity":
+ if v != nil {
+ var identity EncryptionSetIdentity
+ err = json.Unmarshal(*v, &identity)
+ if err != nil {
+ return err
+ }
+ desVar.Identity = &identity
+ }
+ case "properties":
+ if v != nil {
+ var encryptionSetProperties EncryptionSetProperties
+ err = json.Unmarshal(*v, &encryptionSetProperties)
+ if err != nil {
+ return err
+ }
+ desVar.EncryptionSetProperties = &encryptionSetProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ desVar.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ desVar.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ desVar.Type = &typeVar
+ }
+ case "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ desVar.Location = &location
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ desVar.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// DiskEncryptionSetList the List disk encryption set operation response.
+type DiskEncryptionSetList struct {
+ autorest.Response `json:"-"`
+ // Value - A list of disk encryption sets.
+ Value *[]DiskEncryptionSet `json:"value,omitempty"`
+ // NextLink - The uri to fetch the next page of disk encryption sets. Call ListNext() with this to fetch the next page of disk encryption sets.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// DiskEncryptionSetListIterator provides access to a complete listing of DiskEncryptionSet values.
+type DiskEncryptionSetListIterator struct {
+ i int
+ page DiskEncryptionSetListPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *DiskEncryptionSetListIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DiskEncryptionSetListIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *DiskEncryptionSetListIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter DiskEncryptionSetListIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter DiskEncryptionSetListIterator) Response() DiskEncryptionSetList {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter DiskEncryptionSetListIterator) Value() DiskEncryptionSet {
+ if !iter.page.NotDone() {
+ return DiskEncryptionSet{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the DiskEncryptionSetListIterator type.
+func NewDiskEncryptionSetListIterator(page DiskEncryptionSetListPage) DiskEncryptionSetListIterator {
+ return DiskEncryptionSetListIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (desl DiskEncryptionSetList) IsEmpty() bool {
+ return desl.Value == nil || len(*desl.Value) == 0
+}
+
+// diskEncryptionSetListPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (desl DiskEncryptionSetList) diskEncryptionSetListPreparer(ctx context.Context) (*http.Request, error) {
+ if desl.NextLink == nil || len(to.String(desl.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(desl.NextLink)))
+}
+
+// DiskEncryptionSetListPage contains a page of DiskEncryptionSet values.
+type DiskEncryptionSetListPage struct {
+ fn func(context.Context, DiskEncryptionSetList) (DiskEncryptionSetList, error)
+ desl DiskEncryptionSetList
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *DiskEncryptionSetListPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DiskEncryptionSetListPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.desl)
+ if err != nil {
+ return err
+ }
+ page.desl = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *DiskEncryptionSetListPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page DiskEncryptionSetListPage) NotDone() bool {
+ return !page.desl.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page DiskEncryptionSetListPage) Response() DiskEncryptionSetList {
+ return page.desl
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page DiskEncryptionSetListPage) Values() []DiskEncryptionSet {
+ if page.desl.IsEmpty() {
+ return nil
+ }
+ return *page.desl.Value
+}
+
+// Creates a new instance of the DiskEncryptionSetListPage type.
+func NewDiskEncryptionSetListPage(getNextPage func(context.Context, DiskEncryptionSetList) (DiskEncryptionSetList, error)) DiskEncryptionSetListPage {
+ return DiskEncryptionSetListPage{fn: getNextPage}
+}
+
+// DiskEncryptionSetParameters describes the parameter of customer managed disk encryption set resource id
+// that can be specified for disk.
NOTE: The disk encryption set resource id can only be specified
+// for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.
+type DiskEncryptionSetParameters struct {
+ // ID - Resource Id
+ ID *string `json:"id,omitempty"`
+}
+
+// DiskEncryptionSetsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type DiskEncryptionSetsCreateOrUpdateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *DiskEncryptionSetsCreateOrUpdateFuture) Result(client DiskEncryptionSetsClient) (desVar DiskEncryptionSet, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("compute.DiskEncryptionSetsCreateOrUpdateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if desVar.Response.Response, err = future.GetResult(sender); err == nil && desVar.Response.Response.StatusCode != http.StatusNoContent {
+ desVar, err = client.CreateOrUpdateResponder(desVar.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsCreateOrUpdateFuture", "Result", desVar.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// DiskEncryptionSetsDeleteFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type DiskEncryptionSetsDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *DiskEncryptionSetsDeleteFuture) Result(client DiskEncryptionSetsClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("compute.DiskEncryptionSetsDeleteFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// DiskEncryptionSetsUpdateFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type DiskEncryptionSetsUpdateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *DiskEncryptionSetsUpdateFuture) Result(client DiskEncryptionSetsClient) (desVar DiskEncryptionSet, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsUpdateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("compute.DiskEncryptionSetsUpdateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if desVar.Response.Response, err = future.GetResult(sender); err == nil && desVar.Response.Response.StatusCode != http.StatusNoContent {
+ desVar, err = client.UpdateResponder(desVar.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.DiskEncryptionSetsUpdateFuture", "Result", desVar.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
// DiskEncryptionSettings describes a Encryption Settings for a Disk
type DiskEncryptionSettings struct {
// DiskEncryptionKey - Specifies the location of the disk encryption key, which is a Key Vault Secret.
@@ -3176,6 +3568,63 @@ type DiskEncryptionSettings struct {
Enabled *bool `json:"enabled,omitempty"`
}
+// DiskEncryptionSetUpdate disk encryption set update resource.
+type DiskEncryptionSetUpdate struct {
+ *DiskEncryptionSetUpdateProperties `json:"properties,omitempty"`
+ // Tags - Resource tags
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for DiskEncryptionSetUpdate.
+func (desu DiskEncryptionSetUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if desu.DiskEncryptionSetUpdateProperties != nil {
+ objectMap["properties"] = desu.DiskEncryptionSetUpdateProperties
+ }
+ if desu.Tags != nil {
+ objectMap["tags"] = desu.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for DiskEncryptionSetUpdate struct.
+func (desu *DiskEncryptionSetUpdate) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var diskEncryptionSetUpdateProperties DiskEncryptionSetUpdateProperties
+ err = json.Unmarshal(*v, &diskEncryptionSetUpdateProperties)
+ if err != nil {
+ return err
+ }
+ desu.DiskEncryptionSetUpdateProperties = &diskEncryptionSetUpdateProperties
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ desu.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// DiskEncryptionSetUpdateProperties disk encryption set resource update properties.
+type DiskEncryptionSetUpdateProperties struct {
+ ActiveKey *KeyVaultAndKeyReference `json:"activeKey,omitempty"`
+}
+
// DiskInstanceView the instance view of the disk.
type DiskInstanceView struct {
// Name - The disk name.
@@ -3358,6 +3807,8 @@ type DiskProperties struct {
DiskMBpsReadWrite *int32 `json:"diskMBpsReadWrite,omitempty"`
// DiskState - READ-ONLY; The state of the disk. Possible values include: 'Unattached', 'Attached', 'Reserved', 'ActiveSAS', 'ReadyToUpload', 'ActiveUpload'
DiskState DiskState `json:"diskState,omitempty"`
+ // Encryption - Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
+ Encryption *Encryption `json:"encryption,omitempty"`
}
// DisksCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running
@@ -3578,6 +4029,35 @@ type DiskUpdateProperties struct {
DiskMBpsReadWrite *int32 `json:"diskMBpsReadWrite,omitempty"`
}
+// Encryption encryption at rest settings for disk or snapshot
+type Encryption struct {
+ // DiskEncryptionSetID - ResourceId of the disk encryption set to use for enabling encryption at rest.
+ DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"`
+ // Type - The type of key used to encrypt the data of the disk. Possible values include: 'EncryptionAtRestWithPlatformKey', 'EncryptionAtRestWithCustomerKey'
+ Type EncryptionType `json:"type,omitempty"`
+}
+
+// EncryptionSetIdentity the managed identity for the disk encryption set. It should be given permission on
+// the key vault before it can be used to encrypt disks.
+type EncryptionSetIdentity struct {
+ // Type - The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported. Possible values include: 'SystemAssigned'
+ Type DiskEncryptionSetIdentityType `json:"type,omitempty"`
+ // PrincipalID - READ-ONLY; The object id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-identity-principal-id header in the PUT request if the resource has a systemAssigned(implicit) identity
+ PrincipalID *string `json:"principalId,omitempty"`
+ // TenantID - READ-ONLY; The tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-client-tenant-id header in the PUT request if the resource has a systemAssigned(implicit) identity
+ TenantID *string `json:"tenantId,omitempty"`
+}
+
+// EncryptionSetProperties ...
+type EncryptionSetProperties struct {
+ // ActiveKey - The key vault key which is currently used by this disk encryption set.
+ ActiveKey *KeyVaultAndKeyReference `json:"activeKey,omitempty"`
+ // PreviousKeys - READ-ONLY; A readonly collection of key vault keys previously used by this disk encryption set while a key rotation is in progress. It will be empty if there is no ongoing key rotation.
+ PreviousKeys *[]KeyVaultAndKeyReference `json:"previousKeys,omitempty"`
+ // ProvisioningState - READ-ONLY; The disk encryption set provisioning state.
+ ProvisioningState *string `json:"provisioningState,omitempty"`
+}
+
// EncryptionSettingsCollection encryption settings for disk or snapshot
type EncryptionSettingsCollection struct {
// Enabled - Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
@@ -5409,6 +5889,26 @@ type ImageDataDisk struct {
DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
// StorageAccountType - Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS'
StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"`
+ // DiskEncryptionSet - Specifies the customer managed disk encryption set resource id for the managed image disk.
+ DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"`
+}
+
+// ImageDisk describes a image disk.
+type ImageDisk struct {
+ // Snapshot - The snapshot.
+ Snapshot *SubResource `json:"snapshot,omitempty"`
+ // ManagedDisk - The managedDisk.
+ ManagedDisk *SubResource `json:"managedDisk,omitempty"`
+ // BlobURI - The Virtual Hard Disk.
+ BlobURI *string `json:"blobUri,omitempty"`
+ // Caching - Specifies the caching requirements.
Possible values are:
**None**
**ReadOnly**
**ReadWrite**
Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'CachingTypesNone', 'CachingTypesReadOnly', 'CachingTypesReadWrite'
+ Caching CachingTypes `json:"caching,omitempty"`
+ // DiskSizeGB - Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image.
This value cannot be larger than 1023 GB
+ DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
+ // StorageAccountType - Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS'
+ StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"`
+ // DiskEncryptionSet - Specifies the customer managed disk encryption set resource id for the managed image disk.
+ DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"`
}
// ImageDiskReference the source image used for creating the disk.
@@ -5581,8 +6081,10 @@ type ImageOSDisk struct {
Caching CachingTypes `json:"caching,omitempty"`
// DiskSizeGB - Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image.
This value cannot be larger than 1023 GB
DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
- // StorageAccountType - Specifies the storage account type for the managed disk. UltraSSD_LRS cannot be used with OS Disk. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS'
+ // StorageAccountType - Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS'
StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"`
+ // DiskEncryptionSet - Specifies the customer managed disk encryption set resource id for the managed image disk.
+ DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"`
}
// ImageProperties describes the properties of an Image.
@@ -6108,6 +6610,8 @@ type ManagedArtifact struct {
type ManagedDiskParameters struct {
// StorageAccountType - Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS'
StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"`
+ // DiskEncryptionSet - Specifies the customer managed disk encryption set resource id for the managed disk.
+ DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"`
// ID - Resource Id
ID *string `json:"id,omitempty"`
}
@@ -6307,6 +6811,8 @@ type OSProfile struct {
Secrets *[]VaultSecretGroup `json:"secrets,omitempty"`
// AllowExtensionOperations - Specifies whether extension operations should be allowed on the virtual machine.
This may only be set to False when no extensions are present on the virtual machine.
AllowExtensionOperations *bool `json:"allowExtensionOperations,omitempty"`
+ // RequireGuestProvisionSignal - Specifies whether the guest provision signal is required from the virtual machine.
+ RequireGuestProvisionSignal *bool `json:"requireGuestProvisionSignal,omitempty"`
}
// Plan specifies information about the marketplace image used to create the virtual machine. This element
@@ -7631,6 +8137,8 @@ type SnapshotProperties struct {
ProvisioningState *string `json:"provisioningState,omitempty"`
// Incremental - Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed.
Incremental *bool `json:"incremental,omitempty"`
+ // Encryption - Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
+ Encryption *Encryption `json:"encryption,omitempty"`
}
// SnapshotsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running
@@ -9213,6 +9721,10 @@ type VirtualMachineScaleSetDataDisk struct {
DiskSizeGB *int32 `json:"diskSizeGB,omitempty"`
// ManagedDisk - The managed disk parameters.
ManagedDisk *VirtualMachineScaleSetManagedDiskParameters `json:"managedDisk,omitempty"`
+ // DiskIOPSReadWrite - Specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.
+ DiskIOPSReadWrite *int64 `json:"diskIOPSReadWrite,omitempty"`
+ // DiskMBpsReadWrite - Specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.
+ DiskMBpsReadWrite *int64 `json:"diskMBpsReadWrite,omitempty"`
}
// VirtualMachineScaleSetExtension describes a Virtual Machine Scale Set Extension.
@@ -10247,6 +10759,8 @@ func NewVirtualMachineScaleSetListWithLinkResultPage(getNextPage func(context.Co
type VirtualMachineScaleSetManagedDiskParameters struct {
// StorageAccountType - Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values include: 'StorageAccountTypesStandardLRS', 'StorageAccountTypesPremiumLRS', 'StorageAccountTypesStandardSSDLRS', 'StorageAccountTypesUltraSSDLRS'
StorageAccountType StorageAccountTypes `json:"storageAccountType,omitempty"`
+ // DiskEncryptionSet - Specifies the customer managed disk encryption set resource id for the managed disk.
+ DiskEncryptionSet *DiskEncryptionSetParameters `json:"diskEncryptionSet,omitempty"`
}
// VirtualMachineScaleSetNetworkConfiguration describes a virtual machine scale set network profile's
@@ -10394,6 +10908,8 @@ type VirtualMachineScaleSetOSProfile struct {
type VirtualMachineScaleSetProperties struct {
// UpgradePolicy - The upgrade policy.
UpgradePolicy *UpgradePolicy `json:"upgradePolicy,omitempty"`
+ // AutomaticRepairsPolicy - Policy for automatic repairs.
+ AutomaticRepairsPolicy *AutomaticRepairsPolicy `json:"automaticRepairsPolicy,omitempty"`
// VirtualMachineProfile - The virtual machine profile.
VirtualMachineProfile *VirtualMachineScaleSetVMProfile `json:"virtualMachineProfile,omitempty"`
// ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response.
@@ -10489,6 +11005,8 @@ type VirtualMachineScaleSetPublicIPAddressConfigurationProperties struct {
IPTags *[]VirtualMachineScaleSetIPTag `json:"ipTags,omitempty"`
// PublicIPPrefix - The PublicIPPrefix from which to allocate publicIP addresses.
PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"`
+ // PublicIPAddressVersion - Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6'
+ PublicIPAddressVersion IPVersion `json:"publicIPAddressVersion,omitempty"`
}
// VirtualMachineScaleSetReimageParameters describes a Virtual Machine Scale Set VM Reimage Parameters.
@@ -11219,10 +11737,14 @@ type VirtualMachineScaleSetUpdateOSProfile struct {
type VirtualMachineScaleSetUpdateProperties struct {
// UpgradePolicy - The upgrade policy.
UpgradePolicy *UpgradePolicy `json:"upgradePolicy,omitempty"`
+ // AutomaticRepairsPolicy - Policy for automatic repairs.
+ AutomaticRepairsPolicy *AutomaticRepairsPolicy `json:"automaticRepairsPolicy,omitempty"`
// VirtualMachineProfile - The virtual machine profile.
VirtualMachineProfile *VirtualMachineScaleSetUpdateVMProfile `json:"virtualMachineProfile,omitempty"`
// Overprovision - Specifies whether the Virtual Machine Scale Set should be overprovisioned.
Overprovision *bool `json:"overprovision,omitempty"`
+ // DoNotRunExtensionsOnOverprovisionedVMs - When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned VMs.
+ DoNotRunExtensionsOnOverprovisionedVMs *bool `json:"doNotRunExtensionsOnOverprovisionedVMs,omitempty"`
// SinglePlacementGroup - When true this limits the scale set to a single placement group, of max size 100 virtual machines.
SinglePlacementGroup *bool `json:"singlePlacementGroup,omitempty"`
// AdditionalCapabilities - Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type.
@@ -11481,6 +12003,58 @@ func (vmssv *VirtualMachineScaleSetVM) UnmarshalJSON(body []byte) error {
return nil
}
+// VirtualMachineScaleSetVMExtensionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the
+// results of a long-running operation.
+type VirtualMachineScaleSetVMExtensionsCreateOrUpdateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *VirtualMachineScaleSetVMExtensionsCreateOrUpdateFuture) Result(client VirtualMachineScaleSetVMExtensionsClient) (vme VirtualMachineExtension, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetVMExtensionsCreateOrUpdateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if vme.Response.Response, err = future.GetResult(sender); err == nil && vme.Response.Response.StatusCode != http.StatusNoContent {
+ vme, err = client.CreateOrUpdateResponder(vme.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsCreateOrUpdateFuture", "Result", vme.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// VirtualMachineScaleSetVMExtensionsDeleteFuture an abstraction for monitoring and retrieving the results
+// of a long-running operation.
+type VirtualMachineScaleSetVMExtensionsDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *VirtualMachineScaleSetVMExtensionsDeleteFuture) Result(client VirtualMachineScaleSetVMExtensionsClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetVMExtensionsDeleteFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
// VirtualMachineScaleSetVMExtensionsSummary extensions summary for virtual machines of a virtual machine
// scale set.
type VirtualMachineScaleSetVMExtensionsSummary struct {
@@ -11490,6 +12064,35 @@ type VirtualMachineScaleSetVMExtensionsSummary struct {
StatusesSummary *[]VirtualMachineStatusCodeCount `json:"statusesSummary,omitempty"`
}
+// VirtualMachineScaleSetVMExtensionsUpdateFuture an abstraction for monitoring and retrieving the results
+// of a long-running operation.
+type VirtualMachineScaleSetVMExtensionsUpdateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *VirtualMachineScaleSetVMExtensionsUpdateFuture) Result(client VirtualMachineScaleSetVMExtensionsClient) (vme VirtualMachineExtension, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsUpdateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("compute.VirtualMachineScaleSetVMExtensionsUpdateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if vme.Response.Response, err = future.GetResult(sender); err == nil && vme.Response.Response.StatusCode != http.StatusNoContent {
+ vme, err = client.UpdateResponder(vme.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsUpdateFuture", "Result", vme.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
// VirtualMachineScaleSetVMInstanceIDs specifies a list of virtual machine instance IDs from the VM scale
// set.
type VirtualMachineScaleSetVMInstanceIDs struct {
@@ -12219,6 +12822,29 @@ func (future *VirtualMachinesPowerOffFuture) Result(client VirtualMachinesClient
return
}
+// VirtualMachinesReapplyFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type VirtualMachinesReapplyFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *VirtualMachinesReapplyFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachinesReapplyFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("compute.VirtualMachinesReapplyFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
// VirtualMachinesRedeployFuture an abstraction for monitoring and retrieving the results of a long-running
// operation.
type VirtualMachinesRedeployFuture struct {
diff --git a/services/compute/mgmt/2019-07-01/compute/operations.go b/services/compute/mgmt/2019-07-01/compute/operations.go
index c19b7567d7dd..021b16328e7d 100644
--- a/services/compute/mgmt/2019-07-01/compute/operations.go
+++ b/services/compute/mgmt/2019-07-01/compute/operations.go
@@ -75,7 +75,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe
// ListPreparer prepares the List request.
func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/compute/mgmt/2019-07-01/compute/proximityplacementgroups.go b/services/compute/mgmt/2019-07-01/compute/proximityplacementgroups.go
index a85c1640cd43..a42d52685560 100644
--- a/services/compute/mgmt/2019-07-01/compute/proximityplacementgroups.go
+++ b/services/compute/mgmt/2019-07-01/compute/proximityplacementgroups.go
@@ -85,7 +85,7 @@ func (client ProximityPlacementGroupsClient) CreateOrUpdatePreparer(ctx context.
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -164,7 +164,7 @@ func (client ProximityPlacementGroupsClient) DeletePreparer(ctx context.Context,
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -240,7 +240,7 @@ func (client ProximityPlacementGroupsClient) GetPreparer(ctx context.Context, re
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -316,7 +316,7 @@ func (client ProximityPlacementGroupsClient) ListByResourceGroupPreparer(ctx con
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -426,7 +426,7 @@ func (client ProximityPlacementGroupsClient) ListBySubscriptionPreparer(ctx cont
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -541,7 +541,7 @@ func (client ProximityPlacementGroupsClient) UpdatePreparer(ctx context.Context,
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/compute/mgmt/2019-07-01/compute/resourceskus.go b/services/compute/mgmt/2019-07-01/compute/resourceskus.go
index dade057a45fe..adb402788c87 100644
--- a/services/compute/mgmt/2019-07-01/compute/resourceskus.go
+++ b/services/compute/mgmt/2019-07-01/compute/resourceskus.go
@@ -41,7 +41,9 @@ func NewResourceSkusClientWithBaseURI(baseURI string, subscriptionID string) Res
}
// List gets the list of Microsoft.Compute SKUs available for your Subscription.
-func (client ResourceSkusClient) List(ctx context.Context) (result ResourceSkusResultPage, err error) {
+// Parameters:
+// filter - the filter to apply on the operation.
+func (client ResourceSkusClient) List(ctx context.Context, filter string) (result ResourceSkusResultPage, err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/ResourceSkusClient.List")
defer func() {
@@ -53,7 +55,7 @@ func (client ResourceSkusClient) List(ctx context.Context) (result ResourceSkusR
}()
}
result.fn = client.listNextResults
- req, err := client.ListPreparer(ctx)
+ req, err := client.ListPreparer(ctx, filter)
if err != nil {
err = autorest.NewErrorWithError(err, "compute.ResourceSkusClient", "List", nil, "Failure preparing request")
return
@@ -75,7 +77,7 @@ func (client ResourceSkusClient) List(ctx context.Context) (result ResourceSkusR
}
// ListPreparer prepares the List request.
-func (client ResourceSkusClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+func (client ResourceSkusClient) ListPreparer(ctx context.Context, filter string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
@@ -84,6 +86,9 @@ func (client ResourceSkusClient) ListPreparer(ctx context.Context) (*http.Reques
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
preparer := autorest.CreatePreparer(
autorest.AsGet(),
@@ -135,7 +140,7 @@ func (client ResourceSkusClient) listNextResults(ctx context.Context, lastResult
}
// ListComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ResourceSkusClient) ListComplete(ctx context.Context) (result ResourceSkusResultIterator, err error) {
+func (client ResourceSkusClient) ListComplete(ctx context.Context, filter string) (result ResourceSkusResultIterator, err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/ResourceSkusClient.List")
defer func() {
@@ -146,6 +151,6 @@ func (client ResourceSkusClient) ListComplete(ctx context.Context) (result Resou
tracing.EndSpan(ctx, sc, err)
}()
}
- result.page, err = client.List(ctx)
+ result.page, err = client.List(ctx, filter)
return
}
diff --git a/services/compute/mgmt/2019-07-01/compute/snapshots.go b/services/compute/mgmt/2019-07-01/compute/snapshots.go
index 5fca4e7acd7f..3a52fe87388b 100644
--- a/services/compute/mgmt/2019-07-01/compute/snapshots.go
+++ b/services/compute/mgmt/2019-07-01/compute/snapshots.go
@@ -94,7 +94,7 @@ func (client SnapshotsClient) CreateOrUpdatePreparer(ctx context.Context, resour
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -175,7 +175,7 @@ func (client SnapshotsClient) DeletePreparer(ctx context.Context, resourceGroupN
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -258,7 +258,7 @@ func (client SnapshotsClient) GetPreparer(ctx context.Context, resourceGroupName
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -337,7 +337,7 @@ func (client SnapshotsClient) GrantAccessPreparer(ctx context.Context, resourceG
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -418,7 +418,7 @@ func (client SnapshotsClient) ListPreparer(ctx context.Context) (*http.Request,
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -531,7 +531,7 @@ func (client SnapshotsClient) ListByResourceGroupPreparer(ctx context.Context, r
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -640,7 +640,7 @@ func (client SnapshotsClient) RevokeAccessPreparer(ctx context.Context, resource
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -718,7 +718,7 @@ func (client SnapshotsClient) UpdatePreparer(ctx context.Context, resourceGroupN
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/compute/mgmt/2019-07-01/compute/usage.go b/services/compute/mgmt/2019-07-01/compute/usage.go
index 36565c1a55c7..690136c06d54 100644
--- a/services/compute/mgmt/2019-07-01/compute/usage.go
+++ b/services/compute/mgmt/2019-07-01/compute/usage.go
@@ -91,7 +91,7 @@ func (client UsageClient) ListPreparer(ctx context.Context, location string) (*h
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachineextensionimages.go b/services/compute/mgmt/2019-07-01/compute/virtualmachineextensionimages.go
index 94adf706bf31..7a670a607c82 100644
--- a/services/compute/mgmt/2019-07-01/compute/virtualmachineextensionimages.go
+++ b/services/compute/mgmt/2019-07-01/compute/virtualmachineextensionimages.go
@@ -86,7 +86,7 @@ func (client VirtualMachineExtensionImagesClient) GetPreparer(ctx context.Contex
"version": autorest.Encode("path", version),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -162,7 +162,7 @@ func (client VirtualMachineExtensionImagesClient) ListTypesPreparer(ctx context.
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -240,7 +240,7 @@ func (client VirtualMachineExtensionImagesClient) ListVersionsPreparer(ctx conte
"type": autorest.Encode("path", typeParameter),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachineextensions.go b/services/compute/mgmt/2019-07-01/compute/virtualmachineextensions.go
index bb80694c6340..a77180ddc688 100644
--- a/services/compute/mgmt/2019-07-01/compute/virtualmachineextensions.go
+++ b/services/compute/mgmt/2019-07-01/compute/virtualmachineextensions.go
@@ -81,7 +81,7 @@ func (client VirtualMachineExtensionsClient) CreateOrUpdatePreparer(ctx context.
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -162,7 +162,7 @@ func (client VirtualMachineExtensionsClient) DeletePreparer(ctx context.Context,
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -247,7 +247,7 @@ func (client VirtualMachineExtensionsClient) GetPreparer(ctx context.Context, re
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -328,7 +328,7 @@ func (client VirtualMachineExtensionsClient) ListPreparer(ctx context.Context, r
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -405,7 +405,7 @@ func (client VirtualMachineExtensionsClient) UpdatePreparer(ctx context.Context,
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachineimages.go b/services/compute/mgmt/2019-07-01/compute/virtualmachineimages.go
index 2843539d6a81..e1e830c2f432 100644
--- a/services/compute/mgmt/2019-07-01/compute/virtualmachineimages.go
+++ b/services/compute/mgmt/2019-07-01/compute/virtualmachineimages.go
@@ -90,7 +90,7 @@ func (client VirtualMachineImagesClient) GetPreparer(ctx context.Context, locati
"version": autorest.Encode("path", version),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -172,7 +172,7 @@ func (client VirtualMachineImagesClient) ListPreparer(ctx context.Context, locat
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -258,7 +258,7 @@ func (client VirtualMachineImagesClient) ListOffersPreparer(ctx context.Context,
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -333,7 +333,7 @@ func (client VirtualMachineImagesClient) ListPublishersPreparer(ctx context.Cont
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -412,7 +412,7 @@ func (client VirtualMachineImagesClient) ListSkusPreparer(ctx context.Context, l
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachineruncommands.go b/services/compute/mgmt/2019-07-01/compute/virtualmachineruncommands.go
index e2b53b704796..82be43acfd4c 100644
--- a/services/compute/mgmt/2019-07-01/compute/virtualmachineruncommands.go
+++ b/services/compute/mgmt/2019-07-01/compute/virtualmachineruncommands.go
@@ -91,7 +91,7 @@ func (client VirtualMachineRunCommandsClient) GetPreparer(ctx context.Context, l
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -173,7 +173,7 @@ func (client VirtualMachineRunCommandsClient) ListPreparer(ctx context.Context,
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachines.go b/services/compute/mgmt/2019-07-01/compute/virtualmachines.go
index 206e7f4d7257..b329db181d98 100644
--- a/services/compute/mgmt/2019-07-01/compute/virtualmachines.go
+++ b/services/compute/mgmt/2019-07-01/compute/virtualmachines.go
@@ -89,7 +89,7 @@ func (client VirtualMachinesClient) CapturePreparer(ctx context.Context, resourc
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -169,7 +169,7 @@ func (client VirtualMachinesClient) ConvertToManagedDisksPreparer(ctx context.Co
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -267,7 +267,7 @@ func (client VirtualMachinesClient) CreateOrUpdatePreparer(ctx context.Context,
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -348,7 +348,7 @@ func (client VirtualMachinesClient) DeallocatePreparer(ctx context.Context, reso
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -424,7 +424,7 @@ func (client VirtualMachinesClient) DeletePreparer(ctx context.Context, resource
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -506,7 +506,7 @@ func (client VirtualMachinesClient) GeneralizePreparer(ctx context.Context, reso
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -583,7 +583,7 @@ func (client VirtualMachinesClient) GetPreparer(ctx context.Context, resourceGro
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -663,7 +663,7 @@ func (client VirtualMachinesClient) InstanceViewPreparer(ctx context.Context, re
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -740,7 +740,7 @@ func (client VirtualMachinesClient) ListPreparer(ctx context.Context, resourceGr
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -812,7 +812,9 @@ func (client VirtualMachinesClient) ListComplete(ctx context.Context, resourceGr
// ListAll lists all of the virtual machines in the specified subscription. Use the nextLink property in the response
// to get the next page of virtual machines.
-func (client VirtualMachinesClient) ListAll(ctx context.Context) (result VirtualMachineListResultPage, err error) {
+// Parameters:
+// statusOnly - statusOnly=true enables fetching run time status of all Virtual Machines in the subscription.
+func (client VirtualMachinesClient) ListAll(ctx context.Context, statusOnly string) (result VirtualMachineListResultPage, err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.ListAll")
defer func() {
@@ -824,7 +826,7 @@ func (client VirtualMachinesClient) ListAll(ctx context.Context) (result Virtual
}()
}
result.fn = client.listAllNextResults
- req, err := client.ListAllPreparer(ctx)
+ req, err := client.ListAllPreparer(ctx, statusOnly)
if err != nil {
err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "ListAll", nil, "Failure preparing request")
return
@@ -846,15 +848,18 @@ func (client VirtualMachinesClient) ListAll(ctx context.Context) (result Virtual
}
// ListAllPreparer prepares the ListAll request.
-func (client VirtualMachinesClient) ListAllPreparer(ctx context.Context) (*http.Request, error) {
+func (client VirtualMachinesClient) ListAllPreparer(ctx context.Context, statusOnly string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
+ if len(statusOnly) > 0 {
+ queryParameters["statusOnly"] = autorest.Encode("query", statusOnly)
+ }
preparer := autorest.CreatePreparer(
autorest.AsGet(),
@@ -906,7 +911,7 @@ func (client VirtualMachinesClient) listAllNextResults(ctx context.Context, last
}
// ListAllComplete enumerates all values, automatically crossing page boundaries as required.
-func (client VirtualMachinesClient) ListAllComplete(ctx context.Context) (result VirtualMachineListResultIterator, err error) {
+func (client VirtualMachinesClient) ListAllComplete(ctx context.Context, statusOnly string) (result VirtualMachineListResultIterator, err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.ListAll")
defer func() {
@@ -917,7 +922,7 @@ func (client VirtualMachinesClient) ListAllComplete(ctx context.Context) (result
tracing.EndSpan(ctx, sc, err)
}()
}
- result.page, err = client.ListAll(ctx)
+ result.page, err = client.ListAll(ctx, statusOnly)
return
}
@@ -965,7 +970,7 @@ func (client VirtualMachinesClient) ListAvailableSizesPreparer(ctx context.Conte
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1047,7 +1052,7 @@ func (client VirtualMachinesClient) ListByLocationPreparer(ctx context.Context,
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1155,7 +1160,7 @@ func (client VirtualMachinesClient) PerformMaintenancePreparer(ctx context.Conte
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1235,7 +1240,7 @@ func (client VirtualMachinesClient) PowerOffPreparer(ctx context.Context, resour
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1278,6 +1283,82 @@ func (client VirtualMachinesClient) PowerOffResponder(resp *http.Response) (resu
return
}
+// Reapply the operation to reapply a virtual machine's state.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// VMName - the name of the virtual machine.
+func (client VirtualMachinesClient) Reapply(ctx context.Context, resourceGroupName string, VMName string) (result VirtualMachinesReapplyFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachinesClient.Reapply")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ReapplyPreparer(ctx, resourceGroupName, VMName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Reapply", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.ReapplySender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachinesClient", "Reapply", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// ReapplyPreparer prepares the Reapply request.
+func (client VirtualMachinesClient) ReapplyPreparer(ctx context.Context, resourceGroupName string, VMName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "vmName": autorest.Encode("path", VMName),
+ }
+
+ const APIVersion = "2019-07-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ReapplySender sends the Reapply request. The method will close the
+// http.Response Body if it receives an error.
+func (client VirtualMachinesClient) ReapplySender(req *http.Request) (future VirtualMachinesReapplyFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// ReapplyResponder handles the response to the Reapply request. The method always
+// closes the http.Response Body.
+func (client VirtualMachinesClient) ReapplyResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
// Redeploy shuts down the virtual machine, moves it to a new node, and powers it back on.
// Parameters:
// resourceGroupName - the name of the resource group.
@@ -1316,7 +1397,7 @@ func (client VirtualMachinesClient) RedeployPreparer(ctx context.Context, resour
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1393,7 +1474,7 @@ func (client VirtualMachinesClient) ReimagePreparer(ctx context.Context, resourc
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1474,7 +1555,7 @@ func (client VirtualMachinesClient) RestartPreparer(ctx context.Context, resourc
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1557,7 +1638,7 @@ func (client VirtualMachinesClient) RunCommandPreparer(ctx context.Context, reso
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1636,7 +1717,7 @@ func (client VirtualMachinesClient) StartPreparer(ctx context.Context, resourceG
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1713,7 +1794,7 @@ func (client VirtualMachinesClient) UpdatePreparer(ctx context.Context, resource
"vmName": autorest.Encode("path", VMName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetextensions.go b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetextensions.go
index 041df6980553..7e4d6d0a6b70 100644
--- a/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetextensions.go
+++ b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetextensions.go
@@ -82,7 +82,7 @@ func (client VirtualMachineScaleSetExtensionsClient) CreateOrUpdatePreparer(ctx
"vmssExtensionName": autorest.Encode("path", vmssExtensionName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -163,7 +163,7 @@ func (client VirtualMachineScaleSetExtensionsClient) DeletePreparer(ctx context.
"vmssExtensionName": autorest.Encode("path", vmssExtensionName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -248,7 +248,7 @@ func (client VirtualMachineScaleSetExtensionsClient) GetPreparer(ctx context.Con
"vmssExtensionName": autorest.Encode("path", vmssExtensionName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -329,7 +329,7 @@ func (client VirtualMachineScaleSetExtensionsClient) ListPreparer(ctx context.Co
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetrollingupgrades.go b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetrollingupgrades.go
index 6bdc9f2b3224..c20c01d515cf 100644
--- a/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetrollingupgrades.go
+++ b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetrollingupgrades.go
@@ -80,7 +80,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) CancelPreparer(ctx con
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -162,7 +162,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) GetLatestPreparer(ctx
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -235,7 +235,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) StartExtensionUpgradeP
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -312,7 +312,7 @@ func (client VirtualMachineScaleSetRollingUpgradesClient) StartOSUpgradePreparer
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesets.go b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesets.go
index 660464e05780..54b1393fe57d 100644
--- a/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesets.go
+++ b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesets.go
@@ -177,7 +177,7 @@ func (client VirtualMachineScaleSetsClient) CreateOrUpdatePreparer(ctx context.C
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -258,7 +258,7 @@ func (client VirtualMachineScaleSetsClient) DeallocatePreparer(ctx context.Conte
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -339,7 +339,7 @@ func (client VirtualMachineScaleSetsClient) DeletePreparer(ctx context.Context,
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -422,7 +422,7 @@ func (client VirtualMachineScaleSetsClient) DeleteInstancesPreparer(ctx context.
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -508,7 +508,7 @@ func (client VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUp
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
"platformUpdateDomain": autorest.Encode("query", platformUpdateDomain),
@@ -586,7 +586,7 @@ func (client VirtualMachineScaleSetsClient) GetPreparer(ctx context.Context, res
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -663,7 +663,7 @@ func (client VirtualMachineScaleSetsClient) GetInstanceViewPreparer(ctx context.
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -741,7 +741,7 @@ func (client VirtualMachineScaleSetsClient) GetOSUpgradeHistoryPreparer(ctx cont
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -854,7 +854,7 @@ func (client VirtualMachineScaleSetsClient) ListPreparer(ctx context.Context, re
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -966,7 +966,7 @@ func (client VirtualMachineScaleSetsClient) ListAllPreparer(ctx context.Context)
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1082,7 +1082,7 @@ func (client VirtualMachineScaleSetsClient) ListSkusPreparer(ctx context.Context
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1193,7 +1193,7 @@ func (client VirtualMachineScaleSetsClient) PerformMaintenancePreparer(ctx conte
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1279,7 +1279,7 @@ func (client VirtualMachineScaleSetsClient) PowerOffPreparer(ctx context.Context
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1367,7 +1367,7 @@ func (client VirtualMachineScaleSetsClient) RedeployPreparer(ctx context.Context
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1450,7 +1450,7 @@ func (client VirtualMachineScaleSetsClient) ReimagePreparer(ctx context.Context,
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1533,7 +1533,7 @@ func (client VirtualMachineScaleSetsClient) ReimageAllPreparer(ctx context.Conte
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1615,7 +1615,7 @@ func (client VirtualMachineScaleSetsClient) RestartPreparer(ctx context.Context,
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1697,7 +1697,7 @@ func (client VirtualMachineScaleSetsClient) StartPreparer(ctx context.Context, r
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1779,7 +1779,7 @@ func (client VirtualMachineScaleSetsClient) UpdatePreparer(ctx context.Context,
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1865,7 +1865,7 @@ func (client VirtualMachineScaleSetsClient) UpdateInstancesPreparer(ctx context.
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetvmextensions.go b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetvmextensions.go
new file mode 100644
index 000000000000..3fe6bf51dd22
--- /dev/null
+++ b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetvmextensions.go
@@ -0,0 +1,459 @@
+package compute
+
+// 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/tracing"
+ "net/http"
+)
+
+// VirtualMachineScaleSetVMExtensionsClient is the compute Client
+type VirtualMachineScaleSetVMExtensionsClient struct {
+ BaseClient
+}
+
+// NewVirtualMachineScaleSetVMExtensionsClient creates an instance of the VirtualMachineScaleSetVMExtensionsClient
+// client.
+func NewVirtualMachineScaleSetVMExtensionsClient(subscriptionID string) VirtualMachineScaleSetVMExtensionsClient {
+ return NewVirtualMachineScaleSetVMExtensionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewVirtualMachineScaleSetVMExtensionsClientWithBaseURI creates an instance of the
+// VirtualMachineScaleSetVMExtensionsClient client.
+func NewVirtualMachineScaleSetVMExtensionsClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineScaleSetVMExtensionsClient {
+ return VirtualMachineScaleSetVMExtensionsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate the operation to create or update the VMSS VM extension.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// VMScaleSetName - the name of the VM scale set.
+// instanceID - the instance ID of the virtual machine.
+// VMExtensionName - the name of the virtual machine extension.
+// extensionParameters - parameters supplied to the Create Virtual Machine Extension operation.
+func (client VirtualMachineScaleSetVMExtensionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, VMExtensionName string, extensionParameters VirtualMachineExtension) (result VirtualMachineScaleSetVMExtensionsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMExtensionsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, VMScaleSetName, instanceID, VMExtensionName, extensionParameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client VirtualMachineScaleSetVMExtensionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, VMExtensionName string, extensionParameters VirtualMachineExtension) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "instanceId": autorest.Encode("path", instanceID),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "vmExtensionName": autorest.Encode("path", VMExtensionName),
+ "vmScaleSetName": autorest.Encode("path", VMScaleSetName),
+ }
+
+ const APIVersion = "2019-07-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.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", pathParameters),
+ autorest.WithJSON(extensionParameters),
+ 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 VirtualMachineScaleSetVMExtensionsClient) CreateOrUpdateSender(req *http.Request) (future VirtualMachineScaleSetVMExtensionsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client VirtualMachineScaleSetVMExtensionsClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualMachineExtension, 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 the operation to delete the VMSS VM extension.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// VMScaleSetName - the name of the VM scale set.
+// instanceID - the instance ID of the virtual machine.
+// VMExtensionName - the name of the virtual machine extension.
+func (client VirtualMachineScaleSetVMExtensionsClient) Delete(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, VMExtensionName string) (result VirtualMachineScaleSetVMExtensionsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMExtensionsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, VMScaleSetName, instanceID, VMExtensionName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client VirtualMachineScaleSetVMExtensionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, VMExtensionName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "instanceId": autorest.Encode("path", instanceID),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "vmExtensionName": autorest.Encode("path", VMExtensionName),
+ "vmScaleSetName": autorest.Encode("path", VMScaleSetName),
+ }
+
+ const APIVersion = "2019-07-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.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", 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 VirtualMachineScaleSetVMExtensionsClient) DeleteSender(req *http.Request) (future VirtualMachineScaleSetVMExtensionsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client VirtualMachineScaleSetVMExtensionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get the operation to get the VMSS VM extension.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// VMScaleSetName - the name of the VM scale set.
+// instanceID - the instance ID of the virtual machine.
+// VMExtensionName - the name of the virtual machine extension.
+// expand - the expand expression to apply on the operation.
+func (client VirtualMachineScaleSetVMExtensionsClient) Get(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, VMExtensionName string, expand string) (result VirtualMachineExtension, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMExtensionsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, VMScaleSetName, instanceID, VMExtensionName, expand)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client VirtualMachineScaleSetVMExtensionsClient) GetPreparer(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, VMExtensionName string, expand string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "instanceId": autorest.Encode("path", instanceID),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "vmExtensionName": autorest.Encode("path", VMExtensionName),
+ "vmScaleSetName": autorest.Encode("path", VMScaleSetName),
+ }
+
+ const APIVersion = "2019-07-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(expand) > 0 {
+ queryParameters["$expand"] = autorest.Encode("query", expand)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", 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 VirtualMachineScaleSetVMExtensionsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client VirtualMachineScaleSetVMExtensionsClient) GetResponder(resp *http.Response) (result VirtualMachineExtension, 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 the operation to get all extensions of an instance in Virtual Machine Scaleset.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// VMScaleSetName - the name of the VM scale set.
+// instanceID - the instance ID of the virtual machine.
+// expand - the expand expression to apply on the operation.
+func (client VirtualMachineScaleSetVMExtensionsClient) List(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, expand string) (result VirtualMachineExtensionsListResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMExtensionsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListPreparer(ctx, resourceGroupName, VMScaleSetName, instanceID, expand)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client VirtualMachineScaleSetVMExtensionsClient) ListPreparer(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, expand string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "instanceId": autorest.Encode("path", instanceID),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "vmScaleSetName": autorest.Encode("path", VMScaleSetName),
+ }
+
+ const APIVersion = "2019-07-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(expand) > 0 {
+ queryParameters["$expand"] = autorest.Encode("query", expand)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions", 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 VirtualMachineScaleSetVMExtensionsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client VirtualMachineScaleSetVMExtensionsClient) ListResponder(resp *http.Response) (result VirtualMachineExtensionsListResult, 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 the operation to update the VMSS VM extension.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// VMScaleSetName - the name of the VM scale set.
+// instanceID - the instance ID of the virtual machine.
+// VMExtensionName - the name of the virtual machine extension.
+// extensionParameters - parameters supplied to the Update Virtual Machine Extension operation.
+func (client VirtualMachineScaleSetVMExtensionsClient) Update(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, VMExtensionName string, extensionParameters VirtualMachineExtensionUpdate) (result VirtualMachineScaleSetVMExtensionsUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VirtualMachineScaleSetVMExtensionsClient.Update")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdatePreparer(ctx, resourceGroupName, VMScaleSetName, instanceID, VMExtensionName, extensionParameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Update", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.UpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "compute.VirtualMachineScaleSetVMExtensionsClient", "Update", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// UpdatePreparer prepares the Update request.
+func (client VirtualMachineScaleSetVMExtensionsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, VMExtensionName string, extensionParameters VirtualMachineExtensionUpdate) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "instanceId": autorest.Encode("path", instanceID),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "vmExtensionName": autorest.Encode("path", VMExtensionName),
+ "vmScaleSetName": autorest.Encode("path", VMScaleSetName),
+ }
+
+ const APIVersion = "2019-07-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.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", pathParameters),
+ autorest.WithJSON(extensionParameters),
+ 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 VirtualMachineScaleSetVMExtensionsClient) UpdateSender(req *http.Request) (future VirtualMachineScaleSetVMExtensionsUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// UpdateResponder handles the response to the Update request. The method always
+// closes the http.Response Body.
+func (client VirtualMachineScaleSetVMExtensionsClient) UpdateResponder(resp *http.Response) (result VirtualMachineExtension, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetvms.go b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetvms.go
index 6015078f439d..155e6eee83df 100644
--- a/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetvms.go
+++ b/services/compute/mgmt/2019-07-01/compute/virtualmachinescalesetvms.go
@@ -83,7 +83,7 @@ func (client VirtualMachineScaleSetVMsClient) DeallocatePreparer(ctx context.Con
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -161,7 +161,7 @@ func (client VirtualMachineScaleSetVMsClient) DeletePreparer(ctx context.Context
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -246,7 +246,7 @@ func (client VirtualMachineScaleSetVMsClient) GetPreparer(ctx context.Context, r
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -328,7 +328,7 @@ func (client VirtualMachineScaleSetVMsClient) GetInstanceViewPreparer(ctx contex
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -409,7 +409,7 @@ func (client VirtualMachineScaleSetVMsClient) ListPreparer(ctx context.Context,
"virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -528,7 +528,7 @@ func (client VirtualMachineScaleSetVMsClient) PerformMaintenancePreparer(ctx con
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -610,7 +610,7 @@ func (client VirtualMachineScaleSetVMsClient) PowerOffPreparer(ctx context.Conte
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -694,7 +694,7 @@ func (client VirtualMachineScaleSetVMsClient) RedeployPreparer(ctx context.Conte
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -773,7 +773,7 @@ func (client VirtualMachineScaleSetVMsClient) ReimagePreparer(ctx context.Contex
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -857,7 +857,7 @@ func (client VirtualMachineScaleSetVMsClient) ReimageAllPreparer(ctx context.Con
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -935,7 +935,7 @@ func (client VirtualMachineScaleSetVMsClient) RestartPreparer(ctx context.Contex
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1020,7 +1020,7 @@ func (client VirtualMachineScaleSetVMsClient) RunCommandPreparer(ctx context.Con
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1101,7 +1101,7 @@ func (client VirtualMachineScaleSetVMsClient) StartPreparer(ctx context.Context,
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -1201,7 +1201,7 @@ func (client VirtualMachineScaleSetVMsClient) UpdatePreparer(ctx context.Context
"vmScaleSetName": autorest.Encode("path", VMScaleSetName),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/compute/mgmt/2019-07-01/compute/virtualmachinesizes.go b/services/compute/mgmt/2019-07-01/compute/virtualmachinesizes.go
index 04bcbb0490d4..55335fe9a518 100644
--- a/services/compute/mgmt/2019-07-01/compute/virtualmachinesizes.go
+++ b/services/compute/mgmt/2019-07-01/compute/virtualmachinesizes.go
@@ -90,7 +90,7 @@ func (client VirtualMachineSizesClient) ListPreparer(ctx context.Context, locati
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-03-01"
+ const APIVersion = "2019-07-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
diff --git a/services/consumption/mgmt/2018-05-31/consumption/models.go b/services/consumption/mgmt/2018-05-31/consumption/models.go
index ba5a6fdb7f95..ea7f67e61d30 100644
--- a/services/consumption/mgmt/2018-05-31/consumption/models.go
+++ b/services/consumption/mgmt/2018-05-31/consumption/models.go
@@ -20,14 +20,13 @@ package consumption
import (
"context"
"encoding/json"
- "net/http"
-
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/date"
"github.com/Azure/go-autorest/autorest/to"
"github.com/Azure/go-autorest/tracing"
"github.com/satori/go.uuid"
"github.com/shopspring/decimal"
+ "net/http"
)
// The package's fully qualified name.
diff --git a/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go b/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go
index 3e8a7933a0a1..68da4edccd97 100644
--- a/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go
+++ b/services/containerregistry/mgmt/2017-10-01/containerregistry/models.go
@@ -978,8 +978,6 @@ type Registry struct {
autorest.Response `json:"-"`
// Sku - The SKU of the container registry.
Sku *Sku `json:"sku,omitempty"`
- // Identity - The identity of the container registry.
- Identity *RegistryIdentity `json:"identity,omitempty"`
// RegistryProperties - The properties of the container registry.
*RegistryProperties `json:"properties,omitempty"`
// ID - READ-ONLY; The resource ID.
@@ -1000,9 +998,6 @@ func (r Registry) MarshalJSON() ([]byte, error) {
if r.Sku != nil {
objectMap["sku"] = r.Sku
}
- if r.Identity != nil {
- objectMap["identity"] = r.Identity
- }
if r.RegistryProperties != nil {
objectMap["properties"] = r.RegistryProperties
}
@@ -1033,15 +1028,6 @@ func (r *Registry) UnmarshalJSON(body []byte) error {
}
r.Sku = &sku
}
- case "identity":
- if v != nil {
- var identity RegistryIdentity
- err = json.Unmarshal(*v, &identity)
- if err != nil {
- return err
- }
- r.Identity = &identity
- }
case "properties":
if v != nil {
var registryProperties RegistryProperties
@@ -1102,16 +1088,6 @@ func (r *Registry) UnmarshalJSON(body []byte) error {
return nil
}
-// RegistryIdentity the identity of the container registry.
-type RegistryIdentity struct {
- // Type - The type of identity used for the registry.
- Type *string `json:"type,omitempty"`
- // PrincipalID - The principal ID of registry identity.
- PrincipalID *string `json:"principalId,omitempty"`
- // TenantID - The tenant ID associated with the registry.
- TenantID *string `json:"tenantId,omitempty"`
-}
-
// RegistryListCredentialsResult the response from the ListCredentials operation.
type RegistryListCredentialsResult struct {
autorest.Response `json:"-"`
@@ -1337,8 +1313,6 @@ type RegistryUpdateParameters struct {
Tags map[string]*string `json:"tags"`
// Sku - The SKU of the container registry.
Sku *Sku `json:"sku,omitempty"`
- // Identity - The identity of the container registry.
- Identity *RegistryIdentity `json:"identity,omitempty"`
// RegistryPropertiesUpdateParameters - The properties that the container registry will be updated with.
*RegistryPropertiesUpdateParameters `json:"properties,omitempty"`
}
@@ -1352,9 +1326,6 @@ func (rup RegistryUpdateParameters) MarshalJSON() ([]byte, error) {
if rup.Sku != nil {
objectMap["sku"] = rup.Sku
}
- if rup.Identity != nil {
- objectMap["identity"] = rup.Identity
- }
if rup.RegistryPropertiesUpdateParameters != nil {
objectMap["properties"] = rup.RegistryPropertiesUpdateParameters
}
@@ -1388,15 +1359,6 @@ func (rup *RegistryUpdateParameters) UnmarshalJSON(body []byte) error {
}
rup.Sku = &sku
}
- case "identity":
- if v != nil {
- var identity RegistryIdentity
- err = json.Unmarshal(*v, &identity)
- if err != nil {
- return err
- }
- rup.Identity = &identity
- }
case "properties":
if v != nil {
var registryPropertiesUpdateParameters RegistryPropertiesUpdateParameters
diff --git a/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go b/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go
index a957075be5d0..94796bea2233 100644
--- a/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go
+++ b/services/containerregistry/mgmt/2018-09-01/containerregistry/models.go
@@ -2180,8 +2180,6 @@ type Registry struct {
autorest.Response `json:"-"`
// Sku - The SKU of the container registry.
Sku *Sku `json:"sku,omitempty"`
- // Identity - The identity of the container registry.
- Identity *RegistryIdentity `json:"identity,omitempty"`
// RegistryProperties - The properties of the container registry.
*RegistryProperties `json:"properties,omitempty"`
// ID - READ-ONLY; The resource ID.
@@ -2202,9 +2200,6 @@ func (r Registry) MarshalJSON() ([]byte, error) {
if r.Sku != nil {
objectMap["sku"] = r.Sku
}
- if r.Identity != nil {
- objectMap["identity"] = r.Identity
- }
if r.RegistryProperties != nil {
objectMap["properties"] = r.RegistryProperties
}
@@ -2235,15 +2230,6 @@ func (r *Registry) UnmarshalJSON(body []byte) error {
}
r.Sku = &sku
}
- case "identity":
- if v != nil {
- var identity RegistryIdentity
- err = json.Unmarshal(*v, &identity)
- if err != nil {
- return err
- }
- r.Identity = &identity
- }
case "properties":
if v != nil {
var registryProperties RegistryProperties
@@ -2304,16 +2290,6 @@ func (r *Registry) UnmarshalJSON(body []byte) error {
return nil
}
-// RegistryIdentity the identity of the container registry.
-type RegistryIdentity struct {
- // Type - The type of identity used for the registry.
- Type *string `json:"type,omitempty"`
- // PrincipalID - The principal ID of registry identity.
- PrincipalID *string `json:"principalId,omitempty"`
- // TenantID - The tenant ID associated with the registry.
- TenantID *string `json:"tenantId,omitempty"`
-}
-
// RegistryListCredentialsResult the response from the ListCredentials operation.
type RegistryListCredentialsResult struct {
autorest.Response `json:"-"`
@@ -2539,8 +2515,6 @@ type RegistryUpdateParameters struct {
Tags map[string]*string `json:"tags"`
// Sku - The SKU of the container registry.
Sku *Sku `json:"sku,omitempty"`
- // Identity - The identity of the container registry.
- Identity *RegistryIdentity `json:"identity,omitempty"`
// RegistryPropertiesUpdateParameters - The properties that the container registry will be updated with.
*RegistryPropertiesUpdateParameters `json:"properties,omitempty"`
}
@@ -2554,9 +2528,6 @@ func (rup RegistryUpdateParameters) MarshalJSON() ([]byte, error) {
if rup.Sku != nil {
objectMap["sku"] = rup.Sku
}
- if rup.Identity != nil {
- objectMap["identity"] = rup.Identity
- }
if rup.RegistryPropertiesUpdateParameters != nil {
objectMap["properties"] = rup.RegistryPropertiesUpdateParameters
}
@@ -2590,15 +2561,6 @@ func (rup *RegistryUpdateParameters) UnmarshalJSON(body []byte) error {
}
rup.Sku = &sku
}
- case "identity":
- if v != nil {
- var identity RegistryIdentity
- err = json.Unmarshal(*v, &identity)
- if err != nil {
- return err
- }
- rup.Identity = &identity
- }
case "properties":
if v != nil {
var registryPropertiesUpdateParameters RegistryPropertiesUpdateParameters
diff --git a/services/containerregistry/mgmt/2019-05-01-preview/containerregistry/models.go b/services/containerregistry/mgmt/2019-05-01-preview/containerregistry/models.go
index a56ebfb7f3c6..f1e48788ddb2 100644
--- a/services/containerregistry/mgmt/2019-05-01-preview/containerregistry/models.go
+++ b/services/containerregistry/mgmt/2019-05-01-preview/containerregistry/models.go
@@ -560,7 +560,7 @@ type GenerateCredentialsParameters struct {
TokenID *string `json:"tokenId,omitempty"`
// Expiry - The expiry date of the generated credentials after which the credentials become invalid.
Expiry *date.Time `json:"expiry,omitempty"`
- // Name - Specifies name of the password which should be regenerated if any -- password or password2. Possible values include: 'TokenPasswordNamePassword1', 'TokenPasswordNamePassword2'
+ // Name - Specifies name of the password which should be regenerated if any -- password1 or password2. Possible values include: 'TokenPasswordNamePassword1', 'TokenPasswordNamePassword2'
Name TokenPasswordName `json:"name,omitempty"`
}
@@ -2119,8 +2119,8 @@ type ScopeMapProperties struct {
// ProvisioningState - READ-ONLY; Provisioning state of the resource. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
// Actions - The list of scoped permissions for registry artifacts.
- // E.g. repositories/repository-name/pull,
- // repositories/repository-name/delete
+ // E.g. repositories/repository-name/content/read,
+ // repositories/repository-name/metadata/write
Actions *[]string `json:"actions,omitempty"`
}
@@ -2554,7 +2554,7 @@ type TokenPassword struct {
CreationTime *date.Time `json:"creationTime,omitempty"`
// Expiry - The expiry datetime of the password.
Expiry *date.Time `json:"expiry,omitempty"`
- // Name - The password name "password" or "password2". Possible values include: 'TokenPasswordNamePassword1', 'TokenPasswordNamePassword2'
+ // Name - The password name "password1" or "password2". Possible values include: 'TokenPasswordNamePassword1', 'TokenPasswordNamePassword2'
Name TokenPasswordName `json:"name,omitempty"`
// Value - READ-ONLY; The password value.
Value *string `json:"value,omitempty"`
diff --git a/services/containerregistry/mgmt/2019-05-01-preview/containerregistry/scopemaps.go b/services/containerregistry/mgmt/2019-05-01-preview/containerregistry/scopemaps.go
index 90bd1a9ff108..0872a95f4632 100644
--- a/services/containerregistry/mgmt/2019-05-01-preview/containerregistry/scopemaps.go
+++ b/services/containerregistry/mgmt/2019-05-01-preview/containerregistry/scopemaps.go
@@ -68,7 +68,7 @@ func (client ScopeMapsClient) Create(ctx context.Context, resourceGroupName stri
{TargetValue: scopeMapName,
Constraints: []validation.Constraint{{Target: "scopeMapName", Name: validation.MaxLength, Rule: 50, Chain: nil},
{Target: "scopeMapName", Name: validation.MinLength, Rule: 5, Chain: nil},
- {Target: "scopeMapName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9-]*$`, Chain: nil}}},
+ {Target: "scopeMapName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9-_]*$`, Chain: nil}}},
{TargetValue: scopeMapCreateParameters,
Constraints: []validation.Constraint{{Target: "scopeMapCreateParameters.ScopeMapProperties", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "scopeMapCreateParameters.ScopeMapProperties.Actions", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil {
@@ -166,7 +166,7 @@ func (client ScopeMapsClient) Delete(ctx context.Context, resourceGroupName stri
{TargetValue: scopeMapName,
Constraints: []validation.Constraint{{Target: "scopeMapName", Name: validation.MaxLength, Rule: 50, Chain: nil},
{Target: "scopeMapName", Name: validation.MinLength, Rule: 5, Chain: nil},
- {Target: "scopeMapName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9-]*$`, Chain: nil}}}}); err != nil {
+ {Target: "scopeMapName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9-_]*$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("containerregistry.ScopeMapsClient", "Delete", err.Error())
}
@@ -258,7 +258,7 @@ func (client ScopeMapsClient) Get(ctx context.Context, resourceGroupName string,
{TargetValue: scopeMapName,
Constraints: []validation.Constraint{{Target: "scopeMapName", Name: validation.MaxLength, Rule: 50, Chain: nil},
{Target: "scopeMapName", Name: validation.MinLength, Rule: 5, Chain: nil},
- {Target: "scopeMapName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9-]*$`, Chain: nil}}}}); err != nil {
+ {Target: "scopeMapName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9-_]*$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("containerregistry.ScopeMapsClient", "Get", err.Error())
}
@@ -477,7 +477,7 @@ func (client ScopeMapsClient) Update(ctx context.Context, resourceGroupName stri
{TargetValue: scopeMapName,
Constraints: []validation.Constraint{{Target: "scopeMapName", Name: validation.MaxLength, Rule: 50, Chain: nil},
{Target: "scopeMapName", Name: validation.MinLength, Rule: 5, Chain: nil},
- {Target: "scopeMapName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9-]*$`, Chain: nil}}}}); err != nil {
+ {Target: "scopeMapName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9-_]*$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("containerregistry.ScopeMapsClient", "Update", err.Error())
}
diff --git a/services/containerregistry/mgmt/2019-06-01-preview/containerregistry/models.go b/services/containerregistry/mgmt/2019-06-01-preview/containerregistry/models.go
index 4a08cf77c1a5..2985cd7f36d1 100644
--- a/services/containerregistry/mgmt/2019-06-01-preview/containerregistry/models.go
+++ b/services/containerregistry/mgmt/2019-06-01-preview/containerregistry/models.go
@@ -1734,7 +1734,7 @@ type GenerateCredentialsParameters struct {
TokenID *string `json:"tokenId,omitempty"`
// Expiry - The expiry date of the generated credentials after which the credentials become invalid.
Expiry *date.Time `json:"expiry,omitempty"`
- // Name - Specifies name of the password which should be regenerated if any -- password or password2. Possible values include: 'TokenPasswordNamePassword1', 'TokenPasswordNamePassword2'
+ // Name - Specifies name of the password which should be regenerated if any -- password1 or password2. Possible values include: 'TokenPasswordNamePassword1', 'TokenPasswordNamePassword2'
Name TokenPasswordName `json:"name,omitempty"`
}
@@ -3854,8 +3854,8 @@ type ScopeMapProperties struct {
// ProvisioningState - READ-ONLY; Provisioning state of the resource. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
// Actions - The list of scoped permissions for registry artifacts.
- // E.g. repositories/repository-name/pull,
- // repositories/repository-name/delete
+ // E.g. repositories/repository-name/content/read,
+ // repositories/repository-name/metadata/write
Actions *[]string `json:"actions,omitempty"`
}
@@ -5313,7 +5313,7 @@ type TokenPassword struct {
CreationTime *date.Time `json:"creationTime,omitempty"`
// Expiry - The expiry datetime of the password.
Expiry *date.Time `json:"expiry,omitempty"`
- // Name - The password name "password" or "password2". Possible values include: 'TokenPasswordNamePassword1', 'TokenPasswordNamePassword2'
+ // Name - The password name "password1" or "password2". Possible values include: 'TokenPasswordNamePassword1', 'TokenPasswordNamePassword2'
Name TokenPasswordName `json:"name,omitempty"`
// Value - READ-ONLY; The password value.
Value *string `json:"value,omitempty"`
diff --git a/services/containerregistry/mgmt/2019-06-01-preview/containerregistry/scopemaps.go b/services/containerregistry/mgmt/2019-06-01-preview/containerregistry/scopemaps.go
index 90bd1a9ff108..0872a95f4632 100644
--- a/services/containerregistry/mgmt/2019-06-01-preview/containerregistry/scopemaps.go
+++ b/services/containerregistry/mgmt/2019-06-01-preview/containerregistry/scopemaps.go
@@ -68,7 +68,7 @@ func (client ScopeMapsClient) Create(ctx context.Context, resourceGroupName stri
{TargetValue: scopeMapName,
Constraints: []validation.Constraint{{Target: "scopeMapName", Name: validation.MaxLength, Rule: 50, Chain: nil},
{Target: "scopeMapName", Name: validation.MinLength, Rule: 5, Chain: nil},
- {Target: "scopeMapName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9-]*$`, Chain: nil}}},
+ {Target: "scopeMapName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9-_]*$`, Chain: nil}}},
{TargetValue: scopeMapCreateParameters,
Constraints: []validation.Constraint{{Target: "scopeMapCreateParameters.ScopeMapProperties", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "scopeMapCreateParameters.ScopeMapProperties.Actions", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil {
@@ -166,7 +166,7 @@ func (client ScopeMapsClient) Delete(ctx context.Context, resourceGroupName stri
{TargetValue: scopeMapName,
Constraints: []validation.Constraint{{Target: "scopeMapName", Name: validation.MaxLength, Rule: 50, Chain: nil},
{Target: "scopeMapName", Name: validation.MinLength, Rule: 5, Chain: nil},
- {Target: "scopeMapName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9-]*$`, Chain: nil}}}}); err != nil {
+ {Target: "scopeMapName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9-_]*$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("containerregistry.ScopeMapsClient", "Delete", err.Error())
}
@@ -258,7 +258,7 @@ func (client ScopeMapsClient) Get(ctx context.Context, resourceGroupName string,
{TargetValue: scopeMapName,
Constraints: []validation.Constraint{{Target: "scopeMapName", Name: validation.MaxLength, Rule: 50, Chain: nil},
{Target: "scopeMapName", Name: validation.MinLength, Rule: 5, Chain: nil},
- {Target: "scopeMapName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9-]*$`, Chain: nil}}}}); err != nil {
+ {Target: "scopeMapName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9-_]*$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("containerregistry.ScopeMapsClient", "Get", err.Error())
}
@@ -477,7 +477,7 @@ func (client ScopeMapsClient) Update(ctx context.Context, resourceGroupName stri
{TargetValue: scopeMapName,
Constraints: []validation.Constraint{{Target: "scopeMapName", Name: validation.MaxLength, Rule: 50, Chain: nil},
{Target: "scopeMapName", Name: validation.MinLength, Rule: 5, Chain: nil},
- {Target: "scopeMapName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9-]*$`, Chain: nil}}}}); err != nil {
+ {Target: "scopeMapName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9-_]*$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("containerregistry.ScopeMapsClient", "Update", err.Error())
}
diff --git a/services/containerservice/mgmt/2019-08-01/containerservice/containerserviceapi/interfaces.go b/services/containerservice/mgmt/2019-08-01/containerservice/containerserviceapi/interfaces.go
index 73b71104a658..a8ab1592812e 100644
--- a/services/containerservice/mgmt/2019-08-01/containerservice/containerserviceapi/interfaces.go
+++ b/services/containerservice/mgmt/2019-08-01/containerservice/containerserviceapi/interfaces.go
@@ -66,6 +66,7 @@ type ManagedClustersClientAPI interface {
ListClusterUserCredentials(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.CredentialResults, err error)
ResetAADProfile(ctx context.Context, resourceGroupName string, resourceName string, parameters containerservice.ManagedClusterAADProfile) (result containerservice.ManagedClustersResetAADProfileFuture, err error)
ResetServicePrincipalProfile(ctx context.Context, resourceGroupName string, resourceName string, parameters containerservice.ManagedClusterServicePrincipalProfile) (result containerservice.ManagedClustersResetServicePrincipalProfileFuture, err error)
+ RotateClusterCertificates(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.ManagedClustersRotateClusterCertificatesFuture, err error)
UpdateTags(ctx context.Context, resourceGroupName string, resourceName string, parameters containerservice.TagsObject) (result containerservice.ManagedClustersUpdateTagsFuture, err error)
}
diff --git a/services/containerservice/mgmt/2019-08-01/containerservice/managedclusters.go b/services/containerservice/mgmt/2019-08-01/containerservice/managedclusters.go
index fc526da89452..a58266d7e18a 100644
--- a/services/containerservice/mgmt/2019-08-01/containerservice/managedclusters.go
+++ b/services/containerservice/mgmt/2019-08-01/containerservice/managedclusters.go
@@ -1110,6 +1110,92 @@ func (client ManagedClustersClient) ResetServicePrincipalProfileResponder(resp *
return
}
+// RotateClusterCertificates rotate certificates of a managed cluster.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+func (client ManagedClustersClient) RotateClusterCertificates(ctx context.Context, resourceGroupName string, resourceName string) (result ManagedClustersRotateClusterCertificatesFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.RotateClusterCertificates")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "RotateClusterCertificates", err.Error())
+ }
+
+ req, err := client.RotateClusterCertificatesPreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "RotateClusterCertificates", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.RotateClusterCertificatesSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "RotateClusterCertificates", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// RotateClusterCertificatesPreparer prepares the RotateClusterCertificates request.
+func (client ManagedClustersClient) RotateClusterCertificatesPreparer(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 = "2019-08-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// RotateClusterCertificatesSender sends the RotateClusterCertificates request. The method will close the
+// http.Response Body if it receives an error.
+func (client ManagedClustersClient) RotateClusterCertificatesSender(req *http.Request) (future ManagedClustersRotateClusterCertificatesFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// RotateClusterCertificatesResponder handles the response to the RotateClusterCertificates request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) RotateClusterCertificatesResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
// UpdateTags updates a managed cluster with the specified tags.
// Parameters:
// resourceGroupName - the name of the resource group.
diff --git a/services/containerservice/mgmt/2019-08-01/containerservice/models.go b/services/containerservice/mgmt/2019-08-01/containerservice/models.go
index 8e06f1fad5c4..15181f4b7344 100644
--- a/services/containerservice/mgmt/2019-08-01/containerservice/models.go
+++ b/services/containerservice/mgmt/2019-08-01/containerservice/models.go
@@ -2226,6 +2226,29 @@ func (future *ManagedClustersResetServicePrincipalProfileFuture) Result(client M
return
}
+// ManagedClustersRotateClusterCertificatesFuture an abstraction for monitoring and retrieving the results
+// of a long-running operation.
+type ManagedClustersRotateClusterCertificatesFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ManagedClustersRotateClusterCertificatesFuture) Result(client ManagedClustersClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersRotateClusterCertificatesFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.ManagedClustersRotateClusterCertificatesFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
// ManagedClustersUpdateTagsFuture an abstraction for monitoring and retrieving the results of a
// long-running operation.
type ManagedClustersUpdateTagsFuture struct {
diff --git a/services/containerservice/mgmt/2019-10-01/containerservice/agentpools.go b/services/containerservice/mgmt/2019-10-01/containerservice/agentpools.go
new file mode 100644
index 000000000000..71b35f7d9603
--- /dev/null
+++ b/services/containerservice/mgmt/2019-10-01/containerservice/agentpools.go
@@ -0,0 +1,621 @@
+package containerservice
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// AgentPoolsClient is the the Container Service Client.
+type AgentPoolsClient struct {
+ BaseClient
+}
+
+// NewAgentPoolsClient creates an instance of the AgentPoolsClient client.
+func NewAgentPoolsClient(subscriptionID string) AgentPoolsClient {
+ return NewAgentPoolsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewAgentPoolsClientWithBaseURI creates an instance of the AgentPoolsClient client.
+func NewAgentPoolsClientWithBaseURI(baseURI string, subscriptionID string) AgentPoolsClient {
+ return AgentPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates an agent pool in the specified managed cluster.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+// agentPoolName - the name of the agent pool.
+// parameters - parameters supplied to the Create or Update an agent pool operation.
+func (client AgentPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string, parameters AgentPool) (result AgentPoolsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}},
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.ManagedClusterAgentPoolProfileProperties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterAgentPoolProfileProperties.Count", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterAgentPoolProfileProperties.Count", Name: validation.InclusiveMaximum, Rule: int64(100), Chain: nil},
+ {Target: "parameters.ManagedClusterAgentPoolProfileProperties.Count", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil},
+ }},
+ }}}}}); err != nil {
+ return result, validation.NewError("containerservice.AgentPoolsClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, resourceName, agentPoolName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client AgentPoolsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string, parameters AgentPool) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "agentPoolName": autorest.Encode("path", agentPoolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "resourceName": autorest.Encode("path", resourceName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-10-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.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}", pathParameters),
+ autorest.WithJSON(parameters),
+ 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 AgentPoolsClient) CreateOrUpdateSender(req *http.Request) (future AgentPoolsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client AgentPoolsClient) CreateOrUpdateResponder(resp *http.Response) (result AgentPool, 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 deletes the agent pool in the specified managed cluster.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+// agentPoolName - the name of the agent pool.
+func (client AgentPoolsClient) Delete(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string) (result AgentPoolsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.AgentPoolsClient", "Delete", err.Error())
+ }
+
+ req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName, agentPoolName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client AgentPoolsClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "agentPoolName": autorest.Encode("path", agentPoolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "resourceName": autorest.Encode("path", resourceName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-10-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.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}", 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 AgentPoolsClient) DeleteSender(req *http.Request) (future AgentPoolsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client AgentPoolsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the details of the agent pool by managed cluster and resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+// agentPoolName - the name of the agent pool.
+func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string) (result AgentPool, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.AgentPoolsClient", "Get", err.Error())
+ }
+
+ req, err := client.GetPreparer(ctx, resourceGroupName, resourceName, agentPoolName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client AgentPoolsClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "agentPoolName": autorest.Encode("path", agentPoolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "resourceName": autorest.Encode("path", resourceName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-10-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.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}", 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 AgentPoolsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client AgentPoolsClient) GetResponder(resp *http.Response) (result AgentPool, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetAvailableAgentPoolVersions gets a list of supported versions for the specified agent pool.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+func (client AgentPoolsClient) GetAvailableAgentPoolVersions(ctx context.Context, resourceGroupName string, resourceName string) (result AgentPoolAvailableVersions, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolsClient.GetAvailableAgentPoolVersions")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", err.Error())
+ }
+
+ req, err := client.GetAvailableAgentPoolVersionsPreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetAvailableAgentPoolVersionsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetAvailableAgentPoolVersionsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetAvailableAgentPoolVersionsPreparer prepares the GetAvailableAgentPoolVersions request.
+func (client AgentPoolsClient) GetAvailableAgentPoolVersionsPreparer(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 = "2019-10-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.ContainerService/managedClusters/{resourceName}/availableAgentPoolVersions", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetAvailableAgentPoolVersionsSender sends the GetAvailableAgentPoolVersions request. The method will close the
+// http.Response Body if it receives an error.
+func (client AgentPoolsClient) GetAvailableAgentPoolVersionsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetAvailableAgentPoolVersionsResponder handles the response to the GetAvailableAgentPoolVersions request. The method always
+// closes the http.Response Body.
+func (client AgentPoolsClient) GetAvailableAgentPoolVersionsResponder(resp *http.Response) (result AgentPoolAvailableVersions, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetUpgradeProfile gets the details of the upgrade profile for an agent pool with a specified resource group and
+// managed cluster name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+// agentPoolName - the name of the agent pool.
+func (client AgentPoolsClient) GetUpgradeProfile(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string) (result AgentPoolUpgradeProfile, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolsClient.GetUpgradeProfile")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.AgentPoolsClient", "GetUpgradeProfile", err.Error())
+ }
+
+ req, err := client.GetUpgradeProfilePreparer(ctx, resourceGroupName, resourceName, agentPoolName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetUpgradeProfileSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetUpgradeProfileResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetUpgradeProfilePreparer prepares the GetUpgradeProfile request.
+func (client AgentPoolsClient) GetUpgradeProfilePreparer(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "agentPoolName": autorest.Encode("path", agentPoolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "resourceName": autorest.Encode("path", resourceName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-10-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.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeProfiles/default", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetUpgradeProfileSender sends the GetUpgradeProfile request. The method will close the
+// http.Response Body if it receives an error.
+func (client AgentPoolsClient) GetUpgradeProfileSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetUpgradeProfileResponder handles the response to the GetUpgradeProfile request. The method always
+// closes the http.Response Body.
+func (client AgentPoolsClient) GetUpgradeProfileResponder(resp *http.Response) (result AgentPoolUpgradeProfile, 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 agent pools in the specified managed cluster. The operation returns properties of each agent
+// pool.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName string, resourceName string) (result AgentPoolListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolsClient.List")
+ defer func() {
+ sc := -1
+ if result.aplr.Response.Response != nil {
+ sc = result.aplr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.AgentPoolsClient", "List", err.Error())
+ }
+
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.aplr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.aplr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client AgentPoolsClient) ListPreparer(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 = "2019-10-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.ContainerService/managedClusters/{resourceName}/agentPools", 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 AgentPoolsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client AgentPoolsClient) ListResponder(resp *http.Response) (result AgentPoolListResult, 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 AgentPoolsClient) listNextResults(ctx context.Context, lastResults AgentPoolListResult) (result AgentPoolListResult, err error) {
+ req, err := lastResults.agentPoolListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "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, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client AgentPoolsClient) ListComplete(ctx context.Context, resourceGroupName string, resourceName string) (result AgentPoolListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, resourceName)
+ return
+}
diff --git a/services/containerservice/mgmt/2019-10-01/containerservice/client.go b/services/containerservice/mgmt/2019-10-01/containerservice/client.go
new file mode 100644
index 000000000000..09a36def717c
--- /dev/null
+++ b/services/containerservice/mgmt/2019-10-01/containerservice/client.go
@@ -0,0 +1,51 @@
+// Package containerservice implements the Azure ARM Containerservice service API version .
+//
+// The Container Service Client.
+package containerservice
+
+// 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 (
+ "github.com/Azure/go-autorest/autorest"
+)
+
+const (
+ // DefaultBaseURI is the default URI used for the service Containerservice
+ DefaultBaseURI = "https://management.azure.com"
+)
+
+// BaseClient is the base client for Containerservice.
+type BaseClient struct {
+ autorest.Client
+ BaseURI string
+ SubscriptionID string
+}
+
+// New creates an instance of the BaseClient client.
+func New(subscriptionID string) BaseClient {
+ return NewWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewWithBaseURI creates an instance of the BaseClient client.
+func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
+ return BaseClient{
+ Client: autorest.NewClientWithUserAgent(UserAgent()),
+ BaseURI: baseURI,
+ SubscriptionID: subscriptionID,
+ }
+}
diff --git a/services/containerservice/mgmt/2019-10-01/containerservice/containerserviceapi/interfaces.go b/services/containerservice/mgmt/2019-10-01/containerservice/containerserviceapi/interfaces.go
new file mode 100644
index 000000000000..833bc9ff4ff4
--- /dev/null
+++ b/services/containerservice/mgmt/2019-10-01/containerservice/containerserviceapi/interfaces.go
@@ -0,0 +1,85 @@
+package containerserviceapi
+
+// 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/azure-sdk-for-go/services/containerservice/mgmt/2019-10-01/containerservice"
+)
+
+// OpenShiftManagedClustersClientAPI contains the set of methods on the OpenShiftManagedClustersClient type.
+type OpenShiftManagedClustersClientAPI interface {
+ CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, parameters containerservice.OpenShiftManagedCluster) (result containerservice.OpenShiftManagedClustersCreateOrUpdateFuture, err error)
+ Delete(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.OpenShiftManagedClustersDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.OpenShiftManagedCluster, err error)
+ List(ctx context.Context) (result containerservice.OpenShiftManagedClusterListResultPage, err error)
+ ListByResourceGroup(ctx context.Context, resourceGroupName string) (result containerservice.OpenShiftManagedClusterListResultPage, err error)
+ UpdateTags(ctx context.Context, resourceGroupName string, resourceName string, parameters containerservice.TagsObject) (result containerservice.OpenShiftManagedClustersUpdateTagsFuture, err error)
+}
+
+var _ OpenShiftManagedClustersClientAPI = (*containerservice.OpenShiftManagedClustersClient)(nil)
+
+// ContainerServicesClientAPI contains the set of methods on the ContainerServicesClient type.
+type ContainerServicesClientAPI interface {
+ CreateOrUpdate(ctx context.Context, resourceGroupName string, containerServiceName string, parameters containerservice.ContainerService) (result containerservice.ContainerServicesCreateOrUpdateFutureType, err error)
+ Delete(ctx context.Context, resourceGroupName string, containerServiceName string) (result containerservice.ContainerServicesDeleteFutureType, err error)
+ Get(ctx context.Context, resourceGroupName string, containerServiceName string) (result containerservice.ContainerService, err error)
+ List(ctx context.Context) (result containerservice.ListResultPage, err error)
+ ListByResourceGroup(ctx context.Context, resourceGroupName string) (result containerservice.ListResultPage, err error)
+ ListOrchestrators(ctx context.Context, location string, resourceType string) (result containerservice.OrchestratorVersionProfileListResult, err error)
+}
+
+var _ ContainerServicesClientAPI = (*containerservice.ContainerServicesClient)(nil)
+
+// OperationsClientAPI contains the set of methods on the OperationsClient type.
+type OperationsClientAPI interface {
+ List(ctx context.Context) (result containerservice.OperationListResult, err error)
+}
+
+var _ OperationsClientAPI = (*containerservice.OperationsClient)(nil)
+
+// ManagedClustersClientAPI contains the set of methods on the ManagedClustersClient type.
+type ManagedClustersClientAPI interface {
+ CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, parameters containerservice.ManagedCluster) (result containerservice.ManagedClustersCreateOrUpdateFuture, err error)
+ Delete(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.ManagedClustersDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.ManagedCluster, err error)
+ GetAccessProfile(ctx context.Context, resourceGroupName string, resourceName string, roleName string) (result containerservice.ManagedClusterAccessProfile, err error)
+ GetUpgradeProfile(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.ManagedClusterUpgradeProfile, err error)
+ List(ctx context.Context) (result containerservice.ManagedClusterListResultPage, err error)
+ ListByResourceGroup(ctx context.Context, resourceGroupName string) (result containerservice.ManagedClusterListResultPage, err error)
+ ListClusterAdminCredentials(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.CredentialResults, err error)
+ ListClusterUserCredentials(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.CredentialResults, err error)
+ ResetAADProfile(ctx context.Context, resourceGroupName string, resourceName string, parameters containerservice.ManagedClusterAADProfile) (result containerservice.ManagedClustersResetAADProfileFuture, err error)
+ ResetServicePrincipalProfile(ctx context.Context, resourceGroupName string, resourceName string, parameters containerservice.ManagedClusterServicePrincipalProfile) (result containerservice.ManagedClustersResetServicePrincipalProfileFuture, err error)
+ RotateClusterCertificates(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.ManagedClustersRotateClusterCertificatesFuture, err error)
+ UpdateTags(ctx context.Context, resourceGroupName string, resourceName string, parameters containerservice.TagsObject) (result containerservice.ManagedClustersUpdateTagsFuture, err error)
+}
+
+var _ ManagedClustersClientAPI = (*containerservice.ManagedClustersClient)(nil)
+
+// AgentPoolsClientAPI contains the set of methods on the AgentPoolsClient type.
+type AgentPoolsClientAPI interface {
+ CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string, parameters containerservice.AgentPool) (result containerservice.AgentPoolsCreateOrUpdateFuture, err error)
+ Delete(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string) (result containerservice.AgentPoolsDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string) (result containerservice.AgentPool, err error)
+ GetAvailableAgentPoolVersions(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.AgentPoolAvailableVersions, err error)
+ GetUpgradeProfile(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string) (result containerservice.AgentPoolUpgradeProfile, err error)
+ List(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.AgentPoolListResultPage, err error)
+}
+
+var _ AgentPoolsClientAPI = (*containerservice.AgentPoolsClient)(nil)
diff --git a/services/containerservice/mgmt/2019-10-01/containerservice/containerservices.go b/services/containerservice/mgmt/2019-10-01/containerservice/containerservices.go
new file mode 100644
index 000000000000..1bd2a37eec45
--- /dev/null
+++ b/services/containerservice/mgmt/2019-10-01/containerservice/containerservices.go
@@ -0,0 +1,622 @@
+package containerservice
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ContainerServicesClient is the the Container Service Client.
+type ContainerServicesClient struct {
+ BaseClient
+}
+
+// NewContainerServicesClient creates an instance of the ContainerServicesClient client.
+func NewContainerServicesClient(subscriptionID string) ContainerServicesClient {
+ return NewContainerServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewContainerServicesClientWithBaseURI creates an instance of the ContainerServicesClient client.
+func NewContainerServicesClientWithBaseURI(baseURI string, subscriptionID string) ContainerServicesClient {
+ return ContainerServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates a container service with the specified configuration of orchestrator, masters, and
+// agents.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// containerServiceName - the name of the container service in the specified subscription and resource group.
+// parameters - parameters supplied to the Create or Update a Container Service operation.
+func (client ContainerServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, containerServiceName string, parameters ContainerService) (result ContainerServicesCreateOrUpdateFutureType, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.Properties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.OrchestratorProfile", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.Properties.CustomProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.CustomProfile.Orchestrator", Name: validation.Null, Rule: true, Chain: nil}}},
+ {Target: "parameters.Properties.ServicePrincipalProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.ServicePrincipalProfile.ClientID", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.Properties.ServicePrincipalProfile.KeyVaultSecretRef", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.ServicePrincipalProfile.KeyVaultSecretRef.VaultID", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.Properties.ServicePrincipalProfile.KeyVaultSecretRef.SecretName", Name: validation.Null, Rule: true, Chain: nil},
+ }},
+ }},
+ {Target: "parameters.Properties.MasterProfile", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.MasterProfile.DNSPrefix", Name: validation.Null, Rule: true, Chain: nil}}},
+ {Target: "parameters.Properties.WindowsProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.WindowsProfile.AdminUsername", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.WindowsProfile.AdminUsername", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([._]?[a-zA-Z0-9]+)*$`, Chain: nil}}},
+ {Target: "parameters.Properties.WindowsProfile.AdminPassword", Name: validation.Null, Rule: true, Chain: nil},
+ }},
+ {Target: "parameters.Properties.LinuxProfile", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.LinuxProfile.AdminUsername", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.LinuxProfile.AdminUsername", Name: validation.Pattern, Rule: `^[A-Za-z][-A-Za-z0-9_]*$`, Chain: nil}}},
+ {Target: "parameters.Properties.LinuxProfile.SSH", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.LinuxProfile.SSH.PublicKeys", Name: validation.Null, Rule: true, Chain: nil}}},
+ }},
+ {Target: "parameters.Properties.DiagnosticsProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.DiagnosticsProfile.VMDiagnostics", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.DiagnosticsProfile.VMDiagnostics.Enabled", Name: validation.Null, Rule: true, Chain: nil}}},
+ }},
+ }}}}}); err != nil {
+ return result, validation.NewError("containerservice.ContainerServicesClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, containerServiceName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ContainerServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, containerServiceName string, parameters ContainerService) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "containerServiceName": autorest.Encode("path", containerServiceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2017-07-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.ContainerService/containerServices/{containerServiceName}", pathParameters),
+ autorest.WithJSON(parameters),
+ 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 ContainerServicesClient) CreateOrUpdateSender(req *http.Request) (future ContainerServicesCreateOrUpdateFutureType, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ContainerServicesClient) CreateOrUpdateResponder(resp *http.Response) (result ContainerService, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified container service in the specified subscription and resource group. The operation does
+// not delete other resources created as part of creating a container service, including storage accounts, VMs, and
+// availability sets. All the other resources created with the container service are part of the same resource group
+// and can be deleted individually.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// containerServiceName - the name of the container service in the specified subscription and resource group.
+func (client ContainerServicesClient) Delete(ctx context.Context, resourceGroupName string, containerServiceName string) (result ContainerServicesDeleteFutureType, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, containerServiceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ContainerServicesClient) DeletePreparer(ctx context.Context, resourceGroupName string, containerServiceName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "containerServiceName": autorest.Encode("path", containerServiceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2017-07-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.ContainerService/containerServices/{containerServiceName}", 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 ContainerServicesClient) DeleteSender(req *http.Request) (future ContainerServicesDeleteFutureType, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ContainerServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the properties of the specified container service in the specified subscription and resource group. The
+// operation returns the properties including state, orchestrator, number of masters and agents, and FQDNs of masters
+// and agents.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// containerServiceName - the name of the container service in the specified subscription and resource group.
+func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName string, containerServiceName string) (result ContainerService, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, containerServiceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ContainerServicesClient) GetPreparer(ctx context.Context, resourceGroupName string, containerServiceName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "containerServiceName": autorest.Encode("path", containerServiceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2017-07-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.ContainerService/containerServices/{containerServiceName}", 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 ContainerServicesClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ContainerServicesClient) GetResponder(resp *http.Response) (result ContainerService, 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 container services in the specified subscription. The operation returns properties of each
+// container service including state, orchestrator, number of masters and agents, and FQDNs of masters and agents.
+func (client ContainerServicesClient) List(ctx context.Context) (result ListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.List")
+ defer func() {
+ sc := -1
+ if result.lr.Response.Response != nil {
+ sc = result.lr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.lr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.lr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ContainerServicesClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2017-07-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/containerServices", 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 ContainerServicesClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ContainerServicesClient) ListResponder(resp *http.Response) (result ListResult, 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 ContainerServicesClient) listNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) {
+ req, err := lastResults.listResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "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, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ContainerServicesClient) ListComplete(ctx context.Context) (result ListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx)
+ return
+}
+
+// ListByResourceGroup gets a list of container services in the specified subscription and resource group. The
+// operation returns properties of each container service including state, orchestrator, number of masters and agents,
+// and FQDNs of masters and agents.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.lr.Response.Response != nil {
+ sc = result.lr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByResourceGroupNextResults
+ req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.lr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.lr, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client ContainerServicesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2017-07-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.ContainerService/containerServices", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client ContainerServicesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client ContainerServicesClient) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByResourceGroupNextResults retrieves the next set of results, if any.
+func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) {
+ req, err := lastResults.listResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ContainerServicesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByResourceGroup(ctx, resourceGroupName)
+ return
+}
+
+// ListOrchestrators gets a list of supported orchestrators in the specified subscription. The operation returns
+// properties of each orchestrator including version, available upgrades and whether that version or upgrades are in
+// preview.
+// Parameters:
+// location - the name of a supported Azure region.
+// resourceType - resource type for which the list of orchestrators needs to be returned
+func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, location string, resourceType string) (result OrchestratorVersionProfileListResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.ListOrchestrators")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListOrchestratorsPreparer(ctx, location, resourceType)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListOrchestratorsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListOrchestratorsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListOrchestratorsPreparer prepares the ListOrchestrators request.
+func (client ContainerServicesClient) ListOrchestratorsPreparer(ctx context.Context, location string, resourceType string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "location": autorest.Encode("path", location),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-08-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(resourceType) > 0 {
+ queryParameters["resource-type"] = autorest.Encode("query", resourceType)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/orchestrators", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListOrchestratorsSender sends the ListOrchestrators request. The method will close the
+// http.Response Body if it receives an error.
+func (client ContainerServicesClient) ListOrchestratorsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListOrchestratorsResponder handles the response to the ListOrchestrators request. The method always
+// closes the http.Response Body.
+func (client ContainerServicesClient) ListOrchestratorsResponder(resp *http.Response) (result OrchestratorVersionProfileListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/containerservice/mgmt/2019-10-01/containerservice/managedclusters.go b/services/containerservice/mgmt/2019-10-01/containerservice/managedclusters.go
new file mode 100644
index 000000000000..46ea1d25531b
--- /dev/null
+++ b/services/containerservice/mgmt/2019-10-01/containerservice/managedclusters.go
@@ -0,0 +1,1287 @@
+package containerservice
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ManagedClustersClient is the the Container Service Client.
+type ManagedClustersClient struct {
+ BaseClient
+}
+
+// NewManagedClustersClient creates an instance of the ManagedClustersClient client.
+func NewManagedClustersClient(subscriptionID string) ManagedClustersClient {
+ return NewManagedClustersClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewManagedClustersClientWithBaseURI creates an instance of the ManagedClustersClient client.
+func NewManagedClustersClientWithBaseURI(baseURI string, subscriptionID string) ManagedClustersClient {
+ return ManagedClustersClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates a managed cluster with the specified configuration for agents and Kubernetes
+// version.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+// parameters - parameters supplied to the Create or Update a Managed Cluster operation.
+func (client ManagedClustersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, parameters ManagedCluster) (result ManagedClustersCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}},
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.ManagedClusterProperties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.LinuxProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.LinuxProfile.AdminUsername", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.LinuxProfile.AdminUsername", Name: validation.Pattern, Rule: `^[A-Za-z][-A-Za-z0-9_]*$`, Chain: nil}}},
+ {Target: "parameters.ManagedClusterProperties.LinuxProfile.SSH", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.LinuxProfile.SSH.PublicKeys", Name: validation.Null, Rule: true, Chain: nil}}},
+ }},
+ {Target: "parameters.ManagedClusterProperties.WindowsProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.WindowsProfile.AdminUsername", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.WindowsProfile.AdminUsername", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([._]?[a-zA-Z0-9]+)*$`, Chain: nil}}},
+ }},
+ {Target: "parameters.ManagedClusterProperties.ServicePrincipalProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.ServicePrincipalProfile.ClientID", Name: validation.Null, Rule: true, Chain: nil}}},
+ {Target: "parameters.ManagedClusterProperties.NetworkProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.PodCidr", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.PodCidr", Name: validation.Pattern, Rule: `^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$`, Chain: nil}}},
+ {Target: "parameters.ManagedClusterProperties.NetworkProfile.ServiceCidr", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.ServiceCidr", Name: validation.Pattern, Rule: `^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$`, Chain: nil}}},
+ {Target: "parameters.ManagedClusterProperties.NetworkProfile.DNSServiceIP", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.DNSServiceIP", Name: validation.Pattern, Rule: `^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$`, Chain: nil}}},
+ {Target: "parameters.ManagedClusterProperties.NetworkProfile.DockerBridgeCidr", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.DockerBridgeCidr", Name: validation.Pattern, Rule: `^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$`, Chain: nil}}},
+ {Target: "parameters.ManagedClusterProperties.NetworkProfile.LoadBalancerProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.LoadBalancerProfile.ManagedOutboundIPs", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.LoadBalancerProfile.ManagedOutboundIPs.Count", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.LoadBalancerProfile.ManagedOutboundIPs.Count", Name: validation.InclusiveMaximum, Rule: int64(100), Chain: nil},
+ {Target: "parameters.ManagedClusterProperties.NetworkProfile.LoadBalancerProfile.ManagedOutboundIPs.Count", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil},
+ }},
+ }},
+ }},
+ }},
+ {Target: "parameters.ManagedClusterProperties.AadProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.AadProfile.ClientAppID", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.ManagedClusterProperties.AadProfile.ServerAppID", Name: validation.Null, Rule: true, Chain: nil},
+ }},
+ }}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, resourceName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ManagedClustersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters ManagedCluster) (*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 = "2019-10-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.ContainerService/managedClusters/{resourceName}", pathParameters),
+ autorest.WithJSON(parameters),
+ 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 ManagedClustersClient) CreateOrUpdateSender(req *http.Request) (future ManagedClustersCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedCluster, 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 deletes the managed cluster with a specified resource group and name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+func (client ManagedClustersClient) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result ManagedClustersDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "Delete", err.Error())
+ }
+
+ req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ManagedClustersClient) 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 = "2019-10-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.ContainerService/managedClusters/{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 ManagedClustersClient) DeleteSender(req *http.Request) (future ManagedClustersDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the details of the managed cluster with a specified resource group and name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result ManagedCluster, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "Get", err.Error())
+ }
+
+ req, err := client.GetPreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ManagedClustersClient) 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 = "2019-10-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.ContainerService/managedClusters/{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 ManagedClustersClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) GetResponder(resp *http.Response) (result ManagedCluster, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetAccessProfile gets the accessProfile for the specified role name of the managed cluster with a specified resource
+// group and name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+// roleName - the name of the role for managed cluster accessProfile resource.
+func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resourceGroupName string, resourceName string, roleName string) (result ManagedClusterAccessProfile, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.GetAccessProfile")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "GetAccessProfile", err.Error())
+ }
+
+ req, err := client.GetAccessProfilePreparer(ctx, resourceGroupName, resourceName, roleName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetAccessProfileSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetAccessProfileResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetAccessProfilePreparer prepares the GetAccessProfile request.
+func (client ManagedClustersClient) GetAccessProfilePreparer(ctx context.Context, resourceGroupName string, resourceName string, roleName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "resourceName": autorest.Encode("path", resourceName),
+ "roleName": autorest.Encode("path", roleName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/accessProfiles/{roleName}/listCredential", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetAccessProfileSender sends the GetAccessProfile request. The method will close the
+// http.Response Body if it receives an error.
+func (client ManagedClustersClient) GetAccessProfileSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetAccessProfileResponder handles the response to the GetAccessProfile request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) GetAccessProfileResponder(resp *http.Response) (result ManagedClusterAccessProfile, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetUpgradeProfile gets the details of the upgrade profile for a managed cluster with a specified resource group and
+// name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resourceGroupName string, resourceName string) (result ManagedClusterUpgradeProfile, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.GetUpgradeProfile")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "GetUpgradeProfile", err.Error())
+ }
+
+ req, err := client.GetUpgradeProfilePreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetUpgradeProfileSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetUpgradeProfileResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetUpgradeProfilePreparer prepares the GetUpgradeProfile request.
+func (client ManagedClustersClient) GetUpgradeProfilePreparer(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 = "2019-10-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.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetUpgradeProfileSender sends the GetUpgradeProfile request. The method will close the
+// http.Response Body if it receives an error.
+func (client ManagedClustersClient) GetUpgradeProfileSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetUpgradeProfileResponder handles the response to the GetUpgradeProfile request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) GetUpgradeProfileResponder(resp *http.Response) (result ManagedClusterUpgradeProfile, 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 managed clusters in the specified subscription. The operation returns properties of each managed
+// cluster.
+func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClusterListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.List")
+ defer func() {
+ sc := -1
+ if result.mclr.Response.Response != nil {
+ sc = result.mclr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.mclr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.mclr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ManagedClustersClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters", 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 ManagedClustersClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) ListResponder(resp *http.Response) (result ManagedClusterListResult, 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 ManagedClustersClient) listNextResults(ctx context.Context, lastResults ManagedClusterListResult) (result ManagedClusterListResult, err error) {
+ req, err := lastResults.managedClusterListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "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, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ManagedClustersClient) ListComplete(ctx context.Context) (result ManagedClusterListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx)
+ return
+}
+
+// ListByResourceGroup lists managed clusters in the specified subscription and resource group. The operation returns
+// properties of each managed cluster.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ManagedClusterListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.mclr.Response.Response != nil {
+ sc = result.mclr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "ListByResourceGroup", err.Error())
+ }
+
+ result.fn = client.listByResourceGroupNextResults
+ req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.mclr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.mclr, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client ManagedClustersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-10-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.ContainerService/managedClusters", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client ManagedClustersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) ListByResourceGroupResponder(resp *http.Response) (result ManagedClusterListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByResourceGroupNextResults retrieves the next set of results, if any.
+func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.Context, lastResults ManagedClusterListResult) (result ManagedClusterListResult, err error) {
+ req, err := lastResults.managedClusterListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ManagedClustersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ManagedClusterListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByResourceGroup(ctx, resourceGroupName)
+ return
+}
+
+// ListClusterAdminCredentials gets cluster admin credential of the managed cluster with a specified resource group and
+// name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Context, resourceGroupName string, resourceName string) (result CredentialResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ListClusterAdminCredentials")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "ListClusterAdminCredentials", err.Error())
+ }
+
+ req, err := client.ListClusterAdminCredentialsPreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListClusterAdminCredentialsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListClusterAdminCredentialsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListClusterAdminCredentialsPreparer prepares the ListClusterAdminCredentials request.
+func (client ManagedClustersClient) ListClusterAdminCredentialsPreparer(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 = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterAdminCredential", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListClusterAdminCredentialsSender sends the ListClusterAdminCredentials request. The method will close the
+// http.Response Body if it receives an error.
+func (client ManagedClustersClient) ListClusterAdminCredentialsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListClusterAdminCredentialsResponder handles the response to the ListClusterAdminCredentials request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) ListClusterAdminCredentialsResponder(resp *http.Response) (result CredentialResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListClusterUserCredentials gets cluster user credential of the managed cluster with a specified resource group and
+// name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Context, resourceGroupName string, resourceName string) (result CredentialResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ListClusterUserCredentials")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "ListClusterUserCredentials", err.Error())
+ }
+
+ req, err := client.ListClusterUserCredentialsPreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListClusterUserCredentialsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListClusterUserCredentialsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListClusterUserCredentialsPreparer prepares the ListClusterUserCredentials request.
+func (client ManagedClustersClient) ListClusterUserCredentialsPreparer(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 = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterUserCredential", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListClusterUserCredentialsSender sends the ListClusterUserCredentials request. The method will close the
+// http.Response Body if it receives an error.
+func (client ManagedClustersClient) ListClusterUserCredentialsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListClusterUserCredentialsResponder handles the response to the ListClusterUserCredentials request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) ListClusterUserCredentialsResponder(resp *http.Response) (result CredentialResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ResetAADProfile update the AAD Profile for a managed cluster.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+// parameters - parameters supplied to the Reset AAD Profile operation for a Managed Cluster.
+func (client ManagedClustersClient) ResetAADProfile(ctx context.Context, resourceGroupName string, resourceName string, parameters ManagedClusterAADProfile) (result ManagedClustersResetAADProfileFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ResetAADProfile")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}},
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.ClientAppID", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.ServerAppID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "ResetAADProfile", err.Error())
+ }
+
+ req, err := client.ResetAADProfilePreparer(ctx, resourceGroupName, resourceName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ResetAADProfile", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.ResetAADProfileSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ResetAADProfile", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// ResetAADProfilePreparer prepares the ResetAADProfile request.
+func (client ManagedClustersClient) ResetAADProfilePreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters ManagedClusterAADProfile) (*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 = "2019-10-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("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ResetAADProfileSender sends the ResetAADProfile request. The method will close the
+// http.Response Body if it receives an error.
+func (client ManagedClustersClient) ResetAADProfileSender(req *http.Request) (future ManagedClustersResetAADProfileFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// ResetAADProfileResponder handles the response to the ResetAADProfile request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) ResetAADProfileResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// ResetServicePrincipalProfile update the service principal Profile for a managed cluster.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+// parameters - parameters supplied to the Reset Service Principal Profile operation for a Managed Cluster.
+func (client ManagedClustersClient) ResetServicePrincipalProfile(ctx context.Context, resourceGroupName string, resourceName string, parameters ManagedClusterServicePrincipalProfile) (result ManagedClustersResetServicePrincipalProfileFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ResetServicePrincipalProfile")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}},
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.ClientID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "ResetServicePrincipalProfile", err.Error())
+ }
+
+ req, err := client.ResetServicePrincipalProfilePreparer(ctx, resourceGroupName, resourceName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ResetServicePrincipalProfile", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.ResetServicePrincipalProfileSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ResetServicePrincipalProfile", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// ResetServicePrincipalProfilePreparer prepares the ResetServicePrincipalProfile request.
+func (client ManagedClustersClient) ResetServicePrincipalProfilePreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters ManagedClusterServicePrincipalProfile) (*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 = "2019-10-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("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ResetServicePrincipalProfileSender sends the ResetServicePrincipalProfile request. The method will close the
+// http.Response Body if it receives an error.
+func (client ManagedClustersClient) ResetServicePrincipalProfileSender(req *http.Request) (future ManagedClustersResetServicePrincipalProfileFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// ResetServicePrincipalProfileResponder handles the response to the ResetServicePrincipalProfile request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) ResetServicePrincipalProfileResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// RotateClusterCertificates rotate certificates of a managed cluster.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+func (client ManagedClustersClient) RotateClusterCertificates(ctx context.Context, resourceGroupName string, resourceName string) (result ManagedClustersRotateClusterCertificatesFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.RotateClusterCertificates")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "RotateClusterCertificates", err.Error())
+ }
+
+ req, err := client.RotateClusterCertificatesPreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "RotateClusterCertificates", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.RotateClusterCertificatesSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "RotateClusterCertificates", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// RotateClusterCertificatesPreparer prepares the RotateClusterCertificates request.
+func (client ManagedClustersClient) RotateClusterCertificatesPreparer(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 = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// RotateClusterCertificatesSender sends the RotateClusterCertificates request. The method will close the
+// http.Response Body if it receives an error.
+func (client ManagedClustersClient) RotateClusterCertificatesSender(req *http.Request) (future ManagedClustersRotateClusterCertificatesFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// RotateClusterCertificatesResponder handles the response to the RotateClusterCertificates request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) RotateClusterCertificatesResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// UpdateTags updates a managed cluster with the specified tags.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+// parameters - parameters supplied to the Update Managed Cluster Tags operation.
+func (client ManagedClustersClient) UpdateTags(ctx context.Context, resourceGroupName string, resourceName string, parameters TagsObject) (result ManagedClustersUpdateTagsFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.UpdateTags")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "UpdateTags", err.Error())
+ }
+
+ req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, resourceName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "UpdateTags", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.UpdateTagsSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "UpdateTags", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// UpdateTagsPreparer prepares the UpdateTags request.
+func (client ManagedClustersClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters TagsObject) (*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 = "2019-10-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.ContainerService/managedClusters/{resourceName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateTagsSender sends the UpdateTags request. The method will close the
+// http.Response Body if it receives an error.
+func (client ManagedClustersClient) UpdateTagsSender(req *http.Request) (future ManagedClustersUpdateTagsFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// UpdateTagsResponder handles the response to the UpdateTags request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) UpdateTagsResponder(resp *http.Response) (result ManagedCluster, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/containerservice/mgmt/2019-10-01/containerservice/models.go b/services/containerservice/mgmt/2019-10-01/containerservice/models.go
new file mode 100644
index 000000000000..5396d66d0e72
--- /dev/null
+++ b/services/containerservice/mgmt/2019-10-01/containerservice/models.go
@@ -0,0 +1,3322 @@
+package containerservice
+
+// 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"
+ "encoding/json"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/autorest/to"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// The package's fully qualified name.
+const fqdn = "github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-10-01/containerservice"
+
+// AgentPoolType enumerates the values for agent pool type.
+type AgentPoolType string
+
+const (
+ // AvailabilitySet ...
+ AvailabilitySet AgentPoolType = "AvailabilitySet"
+ // VirtualMachineScaleSets ...
+ VirtualMachineScaleSets AgentPoolType = "VirtualMachineScaleSets"
+)
+
+// PossibleAgentPoolTypeValues returns an array of possible values for the AgentPoolType const type.
+func PossibleAgentPoolTypeValues() []AgentPoolType {
+ return []AgentPoolType{AvailabilitySet, VirtualMachineScaleSets}
+}
+
+// Kind enumerates the values for kind.
+type Kind string
+
+const (
+ // KindAADIdentityProvider ...
+ KindAADIdentityProvider Kind = "AADIdentityProvider"
+ // KindOpenShiftManagedClusterBaseIdentityProvider ...
+ KindOpenShiftManagedClusterBaseIdentityProvider Kind = "OpenShiftManagedClusterBaseIdentityProvider"
+)
+
+// PossibleKindValues returns an array of possible values for the Kind const type.
+func PossibleKindValues() []Kind {
+ return []Kind{KindAADIdentityProvider, KindOpenShiftManagedClusterBaseIdentityProvider}
+}
+
+// LoadBalancerSku enumerates the values for load balancer sku.
+type LoadBalancerSku string
+
+const (
+ // Basic ...
+ Basic LoadBalancerSku = "basic"
+ // Standard ...
+ Standard LoadBalancerSku = "standard"
+)
+
+// PossibleLoadBalancerSkuValues returns an array of possible values for the LoadBalancerSku const type.
+func PossibleLoadBalancerSkuValues() []LoadBalancerSku {
+ return []LoadBalancerSku{Basic, Standard}
+}
+
+// NetworkPlugin enumerates the values for network plugin.
+type NetworkPlugin string
+
+const (
+ // Azure ...
+ Azure NetworkPlugin = "azure"
+ // Kubenet ...
+ Kubenet NetworkPlugin = "kubenet"
+)
+
+// PossibleNetworkPluginValues returns an array of possible values for the NetworkPlugin const type.
+func PossibleNetworkPluginValues() []NetworkPlugin {
+ return []NetworkPlugin{Azure, Kubenet}
+}
+
+// NetworkPolicy enumerates the values for network policy.
+type NetworkPolicy string
+
+const (
+ // NetworkPolicyAzure ...
+ NetworkPolicyAzure NetworkPolicy = "azure"
+ // NetworkPolicyCalico ...
+ NetworkPolicyCalico NetworkPolicy = "calico"
+)
+
+// PossibleNetworkPolicyValues returns an array of possible values for the NetworkPolicy const type.
+func PossibleNetworkPolicyValues() []NetworkPolicy {
+ return []NetworkPolicy{NetworkPolicyAzure, NetworkPolicyCalico}
+}
+
+// OpenShiftAgentPoolProfileRole enumerates the values for open shift agent pool profile role.
+type OpenShiftAgentPoolProfileRole string
+
+const (
+ // Compute ...
+ Compute OpenShiftAgentPoolProfileRole = "compute"
+ // Infra ...
+ Infra OpenShiftAgentPoolProfileRole = "infra"
+)
+
+// PossibleOpenShiftAgentPoolProfileRoleValues returns an array of possible values for the OpenShiftAgentPoolProfileRole const type.
+func PossibleOpenShiftAgentPoolProfileRoleValues() []OpenShiftAgentPoolProfileRole {
+ return []OpenShiftAgentPoolProfileRole{Compute, Infra}
+}
+
+// OpenShiftContainerServiceVMSize enumerates the values for open shift container service vm size.
+type OpenShiftContainerServiceVMSize string
+
+const (
+ // StandardD16sV3 ...
+ StandardD16sV3 OpenShiftContainerServiceVMSize = "Standard_D16s_v3"
+ // StandardD2sV3 ...
+ StandardD2sV3 OpenShiftContainerServiceVMSize = "Standard_D2s_v3"
+ // StandardD32sV3 ...
+ StandardD32sV3 OpenShiftContainerServiceVMSize = "Standard_D32s_v3"
+ // StandardD4sV3 ...
+ StandardD4sV3 OpenShiftContainerServiceVMSize = "Standard_D4s_v3"
+ // StandardD64sV3 ...
+ StandardD64sV3 OpenShiftContainerServiceVMSize = "Standard_D64s_v3"
+ // StandardD8sV3 ...
+ StandardD8sV3 OpenShiftContainerServiceVMSize = "Standard_D8s_v3"
+ // StandardDS12V2 ...
+ StandardDS12V2 OpenShiftContainerServiceVMSize = "Standard_DS12_v2"
+ // StandardDS13V2 ...
+ StandardDS13V2 OpenShiftContainerServiceVMSize = "Standard_DS13_v2"
+ // StandardDS14V2 ...
+ StandardDS14V2 OpenShiftContainerServiceVMSize = "Standard_DS14_v2"
+ // StandardDS15V2 ...
+ StandardDS15V2 OpenShiftContainerServiceVMSize = "Standard_DS15_v2"
+ // StandardDS4V2 ...
+ StandardDS4V2 OpenShiftContainerServiceVMSize = "Standard_DS4_v2"
+ // StandardDS5V2 ...
+ StandardDS5V2 OpenShiftContainerServiceVMSize = "Standard_DS5_v2"
+ // StandardE16sV3 ...
+ StandardE16sV3 OpenShiftContainerServiceVMSize = "Standard_E16s_v3"
+ // StandardE20sV3 ...
+ StandardE20sV3 OpenShiftContainerServiceVMSize = "Standard_E20s_v3"
+ // StandardE32sV3 ...
+ StandardE32sV3 OpenShiftContainerServiceVMSize = "Standard_E32s_v3"
+ // StandardE4sV3 ...
+ StandardE4sV3 OpenShiftContainerServiceVMSize = "Standard_E4s_v3"
+ // StandardE64sV3 ...
+ StandardE64sV3 OpenShiftContainerServiceVMSize = "Standard_E64s_v3"
+ // StandardE8sV3 ...
+ StandardE8sV3 OpenShiftContainerServiceVMSize = "Standard_E8s_v3"
+ // StandardF16s ...
+ StandardF16s OpenShiftContainerServiceVMSize = "Standard_F16s"
+ // StandardF16sV2 ...
+ StandardF16sV2 OpenShiftContainerServiceVMSize = "Standard_F16s_v2"
+ // StandardF32sV2 ...
+ StandardF32sV2 OpenShiftContainerServiceVMSize = "Standard_F32s_v2"
+ // StandardF64sV2 ...
+ StandardF64sV2 OpenShiftContainerServiceVMSize = "Standard_F64s_v2"
+ // StandardF72sV2 ...
+ StandardF72sV2 OpenShiftContainerServiceVMSize = "Standard_F72s_v2"
+ // StandardF8s ...
+ StandardF8s OpenShiftContainerServiceVMSize = "Standard_F8s"
+ // StandardF8sV2 ...
+ StandardF8sV2 OpenShiftContainerServiceVMSize = "Standard_F8s_v2"
+ // StandardGS2 ...
+ StandardGS2 OpenShiftContainerServiceVMSize = "Standard_GS2"
+ // StandardGS3 ...
+ StandardGS3 OpenShiftContainerServiceVMSize = "Standard_GS3"
+ // StandardGS4 ...
+ StandardGS4 OpenShiftContainerServiceVMSize = "Standard_GS4"
+ // StandardGS5 ...
+ StandardGS5 OpenShiftContainerServiceVMSize = "Standard_GS5"
+ // StandardL16s ...
+ StandardL16s OpenShiftContainerServiceVMSize = "Standard_L16s"
+ // StandardL32s ...
+ StandardL32s OpenShiftContainerServiceVMSize = "Standard_L32s"
+ // StandardL4s ...
+ StandardL4s OpenShiftContainerServiceVMSize = "Standard_L4s"
+ // StandardL8s ...
+ StandardL8s OpenShiftContainerServiceVMSize = "Standard_L8s"
+)
+
+// PossibleOpenShiftContainerServiceVMSizeValues returns an array of possible values for the OpenShiftContainerServiceVMSize const type.
+func PossibleOpenShiftContainerServiceVMSizeValues() []OpenShiftContainerServiceVMSize {
+ return []OpenShiftContainerServiceVMSize{StandardD16sV3, StandardD2sV3, StandardD32sV3, StandardD4sV3, StandardD64sV3, StandardD8sV3, StandardDS12V2, StandardDS13V2, StandardDS14V2, StandardDS15V2, StandardDS4V2, StandardDS5V2, StandardE16sV3, StandardE20sV3, StandardE32sV3, StandardE4sV3, StandardE64sV3, StandardE8sV3, StandardF16s, StandardF16sV2, StandardF32sV2, StandardF64sV2, StandardF72sV2, StandardF8s, StandardF8sV2, StandardGS2, StandardGS3, StandardGS4, StandardGS5, StandardL16s, StandardL32s, StandardL4s, StandardL8s}
+}
+
+// OrchestratorTypes enumerates the values for orchestrator types.
+type OrchestratorTypes string
+
+const (
+ // Custom ...
+ Custom OrchestratorTypes = "Custom"
+ // DCOS ...
+ DCOS OrchestratorTypes = "DCOS"
+ // DockerCE ...
+ DockerCE OrchestratorTypes = "DockerCE"
+ // Kubernetes ...
+ Kubernetes OrchestratorTypes = "Kubernetes"
+ // Swarm ...
+ Swarm OrchestratorTypes = "Swarm"
+)
+
+// PossibleOrchestratorTypesValues returns an array of possible values for the OrchestratorTypes const type.
+func PossibleOrchestratorTypesValues() []OrchestratorTypes {
+ return []OrchestratorTypes{Custom, DCOS, DockerCE, Kubernetes, Swarm}
+}
+
+// OSType enumerates the values for os type.
+type OSType string
+
+const (
+ // Linux ...
+ Linux OSType = "Linux"
+ // Windows ...
+ Windows OSType = "Windows"
+)
+
+// PossibleOSTypeValues returns an array of possible values for the OSType const type.
+func PossibleOSTypeValues() []OSType {
+ return []OSType{Linux, Windows}
+}
+
+// ResourceIdentityType enumerates the values for resource identity type.
+type ResourceIdentityType string
+
+const (
+ // None ...
+ None ResourceIdentityType = "None"
+ // SystemAssigned ...
+ SystemAssigned ResourceIdentityType = "SystemAssigned"
+)
+
+// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
+func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
+ return []ResourceIdentityType{None, SystemAssigned}
+}
+
+// ScaleSetEvictionPolicy enumerates the values for scale set eviction policy.
+type ScaleSetEvictionPolicy string
+
+const (
+ // Deallocate ...
+ Deallocate ScaleSetEvictionPolicy = "Deallocate"
+ // Delete ...
+ Delete ScaleSetEvictionPolicy = "Delete"
+)
+
+// PossibleScaleSetEvictionPolicyValues returns an array of possible values for the ScaleSetEvictionPolicy const type.
+func PossibleScaleSetEvictionPolicyValues() []ScaleSetEvictionPolicy {
+ return []ScaleSetEvictionPolicy{Deallocate, Delete}
+}
+
+// ScaleSetPriority enumerates the values for scale set priority.
+type ScaleSetPriority string
+
+const (
+ // Low ...
+ Low ScaleSetPriority = "Low"
+ // Regular ...
+ Regular ScaleSetPriority = "Regular"
+)
+
+// PossibleScaleSetPriorityValues returns an array of possible values for the ScaleSetPriority const type.
+func PossibleScaleSetPriorityValues() []ScaleSetPriority {
+ return []ScaleSetPriority{Low, Regular}
+}
+
+// StorageProfileTypes enumerates the values for storage profile types.
+type StorageProfileTypes string
+
+const (
+ // ManagedDisks ...
+ ManagedDisks StorageProfileTypes = "ManagedDisks"
+ // StorageAccount ...
+ StorageAccount StorageProfileTypes = "StorageAccount"
+)
+
+// PossibleStorageProfileTypesValues returns an array of possible values for the StorageProfileTypes const type.
+func PossibleStorageProfileTypesValues() []StorageProfileTypes {
+ return []StorageProfileTypes{ManagedDisks, StorageAccount}
+}
+
+// VMSizeTypes enumerates the values for vm size types.
+type VMSizeTypes string
+
+const (
+ // VMSizeTypesStandardA1 ...
+ VMSizeTypesStandardA1 VMSizeTypes = "Standard_A1"
+ // VMSizeTypesStandardA10 ...
+ VMSizeTypesStandardA10 VMSizeTypes = "Standard_A10"
+ // VMSizeTypesStandardA11 ...
+ VMSizeTypesStandardA11 VMSizeTypes = "Standard_A11"
+ // VMSizeTypesStandardA1V2 ...
+ VMSizeTypesStandardA1V2 VMSizeTypes = "Standard_A1_v2"
+ // VMSizeTypesStandardA2 ...
+ VMSizeTypesStandardA2 VMSizeTypes = "Standard_A2"
+ // VMSizeTypesStandardA2mV2 ...
+ VMSizeTypesStandardA2mV2 VMSizeTypes = "Standard_A2m_v2"
+ // VMSizeTypesStandardA2V2 ...
+ VMSizeTypesStandardA2V2 VMSizeTypes = "Standard_A2_v2"
+ // VMSizeTypesStandardA3 ...
+ VMSizeTypesStandardA3 VMSizeTypes = "Standard_A3"
+ // VMSizeTypesStandardA4 ...
+ VMSizeTypesStandardA4 VMSizeTypes = "Standard_A4"
+ // VMSizeTypesStandardA4mV2 ...
+ VMSizeTypesStandardA4mV2 VMSizeTypes = "Standard_A4m_v2"
+ // VMSizeTypesStandardA4V2 ...
+ VMSizeTypesStandardA4V2 VMSizeTypes = "Standard_A4_v2"
+ // VMSizeTypesStandardA5 ...
+ VMSizeTypesStandardA5 VMSizeTypes = "Standard_A5"
+ // VMSizeTypesStandardA6 ...
+ VMSizeTypesStandardA6 VMSizeTypes = "Standard_A6"
+ // VMSizeTypesStandardA7 ...
+ VMSizeTypesStandardA7 VMSizeTypes = "Standard_A7"
+ // VMSizeTypesStandardA8 ...
+ VMSizeTypesStandardA8 VMSizeTypes = "Standard_A8"
+ // VMSizeTypesStandardA8mV2 ...
+ VMSizeTypesStandardA8mV2 VMSizeTypes = "Standard_A8m_v2"
+ // VMSizeTypesStandardA8V2 ...
+ VMSizeTypesStandardA8V2 VMSizeTypes = "Standard_A8_v2"
+ // VMSizeTypesStandardA9 ...
+ VMSizeTypesStandardA9 VMSizeTypes = "Standard_A9"
+ // VMSizeTypesStandardB2ms ...
+ VMSizeTypesStandardB2ms VMSizeTypes = "Standard_B2ms"
+ // VMSizeTypesStandardB2s ...
+ VMSizeTypesStandardB2s VMSizeTypes = "Standard_B2s"
+ // VMSizeTypesStandardB4ms ...
+ VMSizeTypesStandardB4ms VMSizeTypes = "Standard_B4ms"
+ // VMSizeTypesStandardB8ms ...
+ VMSizeTypesStandardB8ms VMSizeTypes = "Standard_B8ms"
+ // VMSizeTypesStandardD1 ...
+ VMSizeTypesStandardD1 VMSizeTypes = "Standard_D1"
+ // VMSizeTypesStandardD11 ...
+ VMSizeTypesStandardD11 VMSizeTypes = "Standard_D11"
+ // VMSizeTypesStandardD11V2 ...
+ VMSizeTypesStandardD11V2 VMSizeTypes = "Standard_D11_v2"
+ // VMSizeTypesStandardD11V2Promo ...
+ VMSizeTypesStandardD11V2Promo VMSizeTypes = "Standard_D11_v2_Promo"
+ // VMSizeTypesStandardD12 ...
+ VMSizeTypesStandardD12 VMSizeTypes = "Standard_D12"
+ // VMSizeTypesStandardD12V2 ...
+ VMSizeTypesStandardD12V2 VMSizeTypes = "Standard_D12_v2"
+ // VMSizeTypesStandardD12V2Promo ...
+ VMSizeTypesStandardD12V2Promo VMSizeTypes = "Standard_D12_v2_Promo"
+ // VMSizeTypesStandardD13 ...
+ VMSizeTypesStandardD13 VMSizeTypes = "Standard_D13"
+ // VMSizeTypesStandardD13V2 ...
+ VMSizeTypesStandardD13V2 VMSizeTypes = "Standard_D13_v2"
+ // VMSizeTypesStandardD13V2Promo ...
+ VMSizeTypesStandardD13V2Promo VMSizeTypes = "Standard_D13_v2_Promo"
+ // VMSizeTypesStandardD14 ...
+ VMSizeTypesStandardD14 VMSizeTypes = "Standard_D14"
+ // VMSizeTypesStandardD14V2 ...
+ VMSizeTypesStandardD14V2 VMSizeTypes = "Standard_D14_v2"
+ // VMSizeTypesStandardD14V2Promo ...
+ VMSizeTypesStandardD14V2Promo VMSizeTypes = "Standard_D14_v2_Promo"
+ // VMSizeTypesStandardD15V2 ...
+ VMSizeTypesStandardD15V2 VMSizeTypes = "Standard_D15_v2"
+ // VMSizeTypesStandardD16sV3 ...
+ VMSizeTypesStandardD16sV3 VMSizeTypes = "Standard_D16s_v3"
+ // VMSizeTypesStandardD16V3 ...
+ VMSizeTypesStandardD16V3 VMSizeTypes = "Standard_D16_v3"
+ // VMSizeTypesStandardD1V2 ...
+ VMSizeTypesStandardD1V2 VMSizeTypes = "Standard_D1_v2"
+ // VMSizeTypesStandardD2 ...
+ VMSizeTypesStandardD2 VMSizeTypes = "Standard_D2"
+ // VMSizeTypesStandardD2sV3 ...
+ VMSizeTypesStandardD2sV3 VMSizeTypes = "Standard_D2s_v3"
+ // VMSizeTypesStandardD2V2 ...
+ VMSizeTypesStandardD2V2 VMSizeTypes = "Standard_D2_v2"
+ // VMSizeTypesStandardD2V2Promo ...
+ VMSizeTypesStandardD2V2Promo VMSizeTypes = "Standard_D2_v2_Promo"
+ // VMSizeTypesStandardD2V3 ...
+ VMSizeTypesStandardD2V3 VMSizeTypes = "Standard_D2_v3"
+ // VMSizeTypesStandardD3 ...
+ VMSizeTypesStandardD3 VMSizeTypes = "Standard_D3"
+ // VMSizeTypesStandardD32sV3 ...
+ VMSizeTypesStandardD32sV3 VMSizeTypes = "Standard_D32s_v3"
+ // VMSizeTypesStandardD32V3 ...
+ VMSizeTypesStandardD32V3 VMSizeTypes = "Standard_D32_v3"
+ // VMSizeTypesStandardD3V2 ...
+ VMSizeTypesStandardD3V2 VMSizeTypes = "Standard_D3_v2"
+ // VMSizeTypesStandardD3V2Promo ...
+ VMSizeTypesStandardD3V2Promo VMSizeTypes = "Standard_D3_v2_Promo"
+ // VMSizeTypesStandardD4 ...
+ VMSizeTypesStandardD4 VMSizeTypes = "Standard_D4"
+ // VMSizeTypesStandardD4sV3 ...
+ VMSizeTypesStandardD4sV3 VMSizeTypes = "Standard_D4s_v3"
+ // VMSizeTypesStandardD4V2 ...
+ VMSizeTypesStandardD4V2 VMSizeTypes = "Standard_D4_v2"
+ // VMSizeTypesStandardD4V2Promo ...
+ VMSizeTypesStandardD4V2Promo VMSizeTypes = "Standard_D4_v2_Promo"
+ // VMSizeTypesStandardD4V3 ...
+ VMSizeTypesStandardD4V3 VMSizeTypes = "Standard_D4_v3"
+ // VMSizeTypesStandardD5V2 ...
+ VMSizeTypesStandardD5V2 VMSizeTypes = "Standard_D5_v2"
+ // VMSizeTypesStandardD5V2Promo ...
+ VMSizeTypesStandardD5V2Promo VMSizeTypes = "Standard_D5_v2_Promo"
+ // VMSizeTypesStandardD64sV3 ...
+ VMSizeTypesStandardD64sV3 VMSizeTypes = "Standard_D64s_v3"
+ // VMSizeTypesStandardD64V3 ...
+ VMSizeTypesStandardD64V3 VMSizeTypes = "Standard_D64_v3"
+ // VMSizeTypesStandardD8sV3 ...
+ VMSizeTypesStandardD8sV3 VMSizeTypes = "Standard_D8s_v3"
+ // VMSizeTypesStandardD8V3 ...
+ VMSizeTypesStandardD8V3 VMSizeTypes = "Standard_D8_v3"
+ // VMSizeTypesStandardDS1 ...
+ VMSizeTypesStandardDS1 VMSizeTypes = "Standard_DS1"
+ // VMSizeTypesStandardDS11 ...
+ VMSizeTypesStandardDS11 VMSizeTypes = "Standard_DS11"
+ // VMSizeTypesStandardDS11V2 ...
+ VMSizeTypesStandardDS11V2 VMSizeTypes = "Standard_DS11_v2"
+ // VMSizeTypesStandardDS11V2Promo ...
+ VMSizeTypesStandardDS11V2Promo VMSizeTypes = "Standard_DS11_v2_Promo"
+ // VMSizeTypesStandardDS12 ...
+ VMSizeTypesStandardDS12 VMSizeTypes = "Standard_DS12"
+ // VMSizeTypesStandardDS12V2 ...
+ VMSizeTypesStandardDS12V2 VMSizeTypes = "Standard_DS12_v2"
+ // VMSizeTypesStandardDS12V2Promo ...
+ VMSizeTypesStandardDS12V2Promo VMSizeTypes = "Standard_DS12_v2_Promo"
+ // VMSizeTypesStandardDS13 ...
+ VMSizeTypesStandardDS13 VMSizeTypes = "Standard_DS13"
+ // VMSizeTypesStandardDS132V2 ...
+ VMSizeTypesStandardDS132V2 VMSizeTypes = "Standard_DS13-2_v2"
+ // VMSizeTypesStandardDS134V2 ...
+ VMSizeTypesStandardDS134V2 VMSizeTypes = "Standard_DS13-4_v2"
+ // VMSizeTypesStandardDS13V2 ...
+ VMSizeTypesStandardDS13V2 VMSizeTypes = "Standard_DS13_v2"
+ // VMSizeTypesStandardDS13V2Promo ...
+ VMSizeTypesStandardDS13V2Promo VMSizeTypes = "Standard_DS13_v2_Promo"
+ // VMSizeTypesStandardDS14 ...
+ VMSizeTypesStandardDS14 VMSizeTypes = "Standard_DS14"
+ // VMSizeTypesStandardDS144V2 ...
+ VMSizeTypesStandardDS144V2 VMSizeTypes = "Standard_DS14-4_v2"
+ // VMSizeTypesStandardDS148V2 ...
+ VMSizeTypesStandardDS148V2 VMSizeTypes = "Standard_DS14-8_v2"
+ // VMSizeTypesStandardDS14V2 ...
+ VMSizeTypesStandardDS14V2 VMSizeTypes = "Standard_DS14_v2"
+ // VMSizeTypesStandardDS14V2Promo ...
+ VMSizeTypesStandardDS14V2Promo VMSizeTypes = "Standard_DS14_v2_Promo"
+ // VMSizeTypesStandardDS15V2 ...
+ VMSizeTypesStandardDS15V2 VMSizeTypes = "Standard_DS15_v2"
+ // VMSizeTypesStandardDS1V2 ...
+ VMSizeTypesStandardDS1V2 VMSizeTypes = "Standard_DS1_v2"
+ // VMSizeTypesStandardDS2 ...
+ VMSizeTypesStandardDS2 VMSizeTypes = "Standard_DS2"
+ // VMSizeTypesStandardDS2V2 ...
+ VMSizeTypesStandardDS2V2 VMSizeTypes = "Standard_DS2_v2"
+ // VMSizeTypesStandardDS2V2Promo ...
+ VMSizeTypesStandardDS2V2Promo VMSizeTypes = "Standard_DS2_v2_Promo"
+ // VMSizeTypesStandardDS3 ...
+ VMSizeTypesStandardDS3 VMSizeTypes = "Standard_DS3"
+ // VMSizeTypesStandardDS3V2 ...
+ VMSizeTypesStandardDS3V2 VMSizeTypes = "Standard_DS3_v2"
+ // VMSizeTypesStandardDS3V2Promo ...
+ VMSizeTypesStandardDS3V2Promo VMSizeTypes = "Standard_DS3_v2_Promo"
+ // VMSizeTypesStandardDS4 ...
+ VMSizeTypesStandardDS4 VMSizeTypes = "Standard_DS4"
+ // VMSizeTypesStandardDS4V2 ...
+ VMSizeTypesStandardDS4V2 VMSizeTypes = "Standard_DS4_v2"
+ // VMSizeTypesStandardDS4V2Promo ...
+ VMSizeTypesStandardDS4V2Promo VMSizeTypes = "Standard_DS4_v2_Promo"
+ // VMSizeTypesStandardDS5V2 ...
+ VMSizeTypesStandardDS5V2 VMSizeTypes = "Standard_DS5_v2"
+ // VMSizeTypesStandardDS5V2Promo ...
+ VMSizeTypesStandardDS5V2Promo VMSizeTypes = "Standard_DS5_v2_Promo"
+ // VMSizeTypesStandardE16sV3 ...
+ VMSizeTypesStandardE16sV3 VMSizeTypes = "Standard_E16s_v3"
+ // VMSizeTypesStandardE16V3 ...
+ VMSizeTypesStandardE16V3 VMSizeTypes = "Standard_E16_v3"
+ // VMSizeTypesStandardE2sV3 ...
+ VMSizeTypesStandardE2sV3 VMSizeTypes = "Standard_E2s_v3"
+ // VMSizeTypesStandardE2V3 ...
+ VMSizeTypesStandardE2V3 VMSizeTypes = "Standard_E2_v3"
+ // VMSizeTypesStandardE3216sV3 ...
+ VMSizeTypesStandardE3216sV3 VMSizeTypes = "Standard_E32-16s_v3"
+ // VMSizeTypesStandardE328sV3 ...
+ VMSizeTypesStandardE328sV3 VMSizeTypes = "Standard_E32-8s_v3"
+ // VMSizeTypesStandardE32sV3 ...
+ VMSizeTypesStandardE32sV3 VMSizeTypes = "Standard_E32s_v3"
+ // VMSizeTypesStandardE32V3 ...
+ VMSizeTypesStandardE32V3 VMSizeTypes = "Standard_E32_v3"
+ // VMSizeTypesStandardE4sV3 ...
+ VMSizeTypesStandardE4sV3 VMSizeTypes = "Standard_E4s_v3"
+ // VMSizeTypesStandardE4V3 ...
+ VMSizeTypesStandardE4V3 VMSizeTypes = "Standard_E4_v3"
+ // VMSizeTypesStandardE6416sV3 ...
+ VMSizeTypesStandardE6416sV3 VMSizeTypes = "Standard_E64-16s_v3"
+ // VMSizeTypesStandardE6432sV3 ...
+ VMSizeTypesStandardE6432sV3 VMSizeTypes = "Standard_E64-32s_v3"
+ // VMSizeTypesStandardE64sV3 ...
+ VMSizeTypesStandardE64sV3 VMSizeTypes = "Standard_E64s_v3"
+ // VMSizeTypesStandardE64V3 ...
+ VMSizeTypesStandardE64V3 VMSizeTypes = "Standard_E64_v3"
+ // VMSizeTypesStandardE8sV3 ...
+ VMSizeTypesStandardE8sV3 VMSizeTypes = "Standard_E8s_v3"
+ // VMSizeTypesStandardE8V3 ...
+ VMSizeTypesStandardE8V3 VMSizeTypes = "Standard_E8_v3"
+ // VMSizeTypesStandardF1 ...
+ VMSizeTypesStandardF1 VMSizeTypes = "Standard_F1"
+ // VMSizeTypesStandardF16 ...
+ VMSizeTypesStandardF16 VMSizeTypes = "Standard_F16"
+ // VMSizeTypesStandardF16s ...
+ VMSizeTypesStandardF16s VMSizeTypes = "Standard_F16s"
+ // VMSizeTypesStandardF16sV2 ...
+ VMSizeTypesStandardF16sV2 VMSizeTypes = "Standard_F16s_v2"
+ // VMSizeTypesStandardF1s ...
+ VMSizeTypesStandardF1s VMSizeTypes = "Standard_F1s"
+ // VMSizeTypesStandardF2 ...
+ VMSizeTypesStandardF2 VMSizeTypes = "Standard_F2"
+ // VMSizeTypesStandardF2s ...
+ VMSizeTypesStandardF2s VMSizeTypes = "Standard_F2s"
+ // VMSizeTypesStandardF2sV2 ...
+ VMSizeTypesStandardF2sV2 VMSizeTypes = "Standard_F2s_v2"
+ // VMSizeTypesStandardF32sV2 ...
+ VMSizeTypesStandardF32sV2 VMSizeTypes = "Standard_F32s_v2"
+ // VMSizeTypesStandardF4 ...
+ VMSizeTypesStandardF4 VMSizeTypes = "Standard_F4"
+ // VMSizeTypesStandardF4s ...
+ VMSizeTypesStandardF4s VMSizeTypes = "Standard_F4s"
+ // VMSizeTypesStandardF4sV2 ...
+ VMSizeTypesStandardF4sV2 VMSizeTypes = "Standard_F4s_v2"
+ // VMSizeTypesStandardF64sV2 ...
+ VMSizeTypesStandardF64sV2 VMSizeTypes = "Standard_F64s_v2"
+ // VMSizeTypesStandardF72sV2 ...
+ VMSizeTypesStandardF72sV2 VMSizeTypes = "Standard_F72s_v2"
+ // VMSizeTypesStandardF8 ...
+ VMSizeTypesStandardF8 VMSizeTypes = "Standard_F8"
+ // VMSizeTypesStandardF8s ...
+ VMSizeTypesStandardF8s VMSizeTypes = "Standard_F8s"
+ // VMSizeTypesStandardF8sV2 ...
+ VMSizeTypesStandardF8sV2 VMSizeTypes = "Standard_F8s_v2"
+ // VMSizeTypesStandardG1 ...
+ VMSizeTypesStandardG1 VMSizeTypes = "Standard_G1"
+ // VMSizeTypesStandardG2 ...
+ VMSizeTypesStandardG2 VMSizeTypes = "Standard_G2"
+ // VMSizeTypesStandardG3 ...
+ VMSizeTypesStandardG3 VMSizeTypes = "Standard_G3"
+ // VMSizeTypesStandardG4 ...
+ VMSizeTypesStandardG4 VMSizeTypes = "Standard_G4"
+ // VMSizeTypesStandardG5 ...
+ VMSizeTypesStandardG5 VMSizeTypes = "Standard_G5"
+ // VMSizeTypesStandardGS1 ...
+ VMSizeTypesStandardGS1 VMSizeTypes = "Standard_GS1"
+ // VMSizeTypesStandardGS2 ...
+ VMSizeTypesStandardGS2 VMSizeTypes = "Standard_GS2"
+ // VMSizeTypesStandardGS3 ...
+ VMSizeTypesStandardGS3 VMSizeTypes = "Standard_GS3"
+ // VMSizeTypesStandardGS4 ...
+ VMSizeTypesStandardGS4 VMSizeTypes = "Standard_GS4"
+ // VMSizeTypesStandardGS44 ...
+ VMSizeTypesStandardGS44 VMSizeTypes = "Standard_GS4-4"
+ // VMSizeTypesStandardGS48 ...
+ VMSizeTypesStandardGS48 VMSizeTypes = "Standard_GS4-8"
+ // VMSizeTypesStandardGS5 ...
+ VMSizeTypesStandardGS5 VMSizeTypes = "Standard_GS5"
+ // VMSizeTypesStandardGS516 ...
+ VMSizeTypesStandardGS516 VMSizeTypes = "Standard_GS5-16"
+ // VMSizeTypesStandardGS58 ...
+ VMSizeTypesStandardGS58 VMSizeTypes = "Standard_GS5-8"
+ // VMSizeTypesStandardH16 ...
+ VMSizeTypesStandardH16 VMSizeTypes = "Standard_H16"
+ // VMSizeTypesStandardH16m ...
+ VMSizeTypesStandardH16m VMSizeTypes = "Standard_H16m"
+ // VMSizeTypesStandardH16mr ...
+ VMSizeTypesStandardH16mr VMSizeTypes = "Standard_H16mr"
+ // VMSizeTypesStandardH16r ...
+ VMSizeTypesStandardH16r VMSizeTypes = "Standard_H16r"
+ // VMSizeTypesStandardH8 ...
+ VMSizeTypesStandardH8 VMSizeTypes = "Standard_H8"
+ // VMSizeTypesStandardH8m ...
+ VMSizeTypesStandardH8m VMSizeTypes = "Standard_H8m"
+ // VMSizeTypesStandardL16s ...
+ VMSizeTypesStandardL16s VMSizeTypes = "Standard_L16s"
+ // VMSizeTypesStandardL32s ...
+ VMSizeTypesStandardL32s VMSizeTypes = "Standard_L32s"
+ // VMSizeTypesStandardL4s ...
+ VMSizeTypesStandardL4s VMSizeTypes = "Standard_L4s"
+ // VMSizeTypesStandardL8s ...
+ VMSizeTypesStandardL8s VMSizeTypes = "Standard_L8s"
+ // VMSizeTypesStandardM12832ms ...
+ VMSizeTypesStandardM12832ms VMSizeTypes = "Standard_M128-32ms"
+ // VMSizeTypesStandardM12864ms ...
+ VMSizeTypesStandardM12864ms VMSizeTypes = "Standard_M128-64ms"
+ // VMSizeTypesStandardM128ms ...
+ VMSizeTypesStandardM128ms VMSizeTypes = "Standard_M128ms"
+ // VMSizeTypesStandardM128s ...
+ VMSizeTypesStandardM128s VMSizeTypes = "Standard_M128s"
+ // VMSizeTypesStandardM6416ms ...
+ VMSizeTypesStandardM6416ms VMSizeTypes = "Standard_M64-16ms"
+ // VMSizeTypesStandardM6432ms ...
+ VMSizeTypesStandardM6432ms VMSizeTypes = "Standard_M64-32ms"
+ // VMSizeTypesStandardM64ms ...
+ VMSizeTypesStandardM64ms VMSizeTypes = "Standard_M64ms"
+ // VMSizeTypesStandardM64s ...
+ VMSizeTypesStandardM64s VMSizeTypes = "Standard_M64s"
+ // VMSizeTypesStandardNC12 ...
+ VMSizeTypesStandardNC12 VMSizeTypes = "Standard_NC12"
+ // VMSizeTypesStandardNC12sV2 ...
+ VMSizeTypesStandardNC12sV2 VMSizeTypes = "Standard_NC12s_v2"
+ // VMSizeTypesStandardNC12sV3 ...
+ VMSizeTypesStandardNC12sV3 VMSizeTypes = "Standard_NC12s_v3"
+ // VMSizeTypesStandardNC24 ...
+ VMSizeTypesStandardNC24 VMSizeTypes = "Standard_NC24"
+ // VMSizeTypesStandardNC24r ...
+ VMSizeTypesStandardNC24r VMSizeTypes = "Standard_NC24r"
+ // VMSizeTypesStandardNC24rsV2 ...
+ VMSizeTypesStandardNC24rsV2 VMSizeTypes = "Standard_NC24rs_v2"
+ // VMSizeTypesStandardNC24rsV3 ...
+ VMSizeTypesStandardNC24rsV3 VMSizeTypes = "Standard_NC24rs_v3"
+ // VMSizeTypesStandardNC24sV2 ...
+ VMSizeTypesStandardNC24sV2 VMSizeTypes = "Standard_NC24s_v2"
+ // VMSizeTypesStandardNC24sV3 ...
+ VMSizeTypesStandardNC24sV3 VMSizeTypes = "Standard_NC24s_v3"
+ // VMSizeTypesStandardNC6 ...
+ VMSizeTypesStandardNC6 VMSizeTypes = "Standard_NC6"
+ // VMSizeTypesStandardNC6sV2 ...
+ VMSizeTypesStandardNC6sV2 VMSizeTypes = "Standard_NC6s_v2"
+ // VMSizeTypesStandardNC6sV3 ...
+ VMSizeTypesStandardNC6sV3 VMSizeTypes = "Standard_NC6s_v3"
+ // VMSizeTypesStandardND12s ...
+ VMSizeTypesStandardND12s VMSizeTypes = "Standard_ND12s"
+ // VMSizeTypesStandardND24rs ...
+ VMSizeTypesStandardND24rs VMSizeTypes = "Standard_ND24rs"
+ // VMSizeTypesStandardND24s ...
+ VMSizeTypesStandardND24s VMSizeTypes = "Standard_ND24s"
+ // VMSizeTypesStandardND6s ...
+ VMSizeTypesStandardND6s VMSizeTypes = "Standard_ND6s"
+ // VMSizeTypesStandardNV12 ...
+ VMSizeTypesStandardNV12 VMSizeTypes = "Standard_NV12"
+ // VMSizeTypesStandardNV24 ...
+ VMSizeTypesStandardNV24 VMSizeTypes = "Standard_NV24"
+ // VMSizeTypesStandardNV6 ...
+ VMSizeTypesStandardNV6 VMSizeTypes = "Standard_NV6"
+)
+
+// PossibleVMSizeTypesValues returns an array of possible values for the VMSizeTypes const type.
+func PossibleVMSizeTypesValues() []VMSizeTypes {
+ return []VMSizeTypes{VMSizeTypesStandardA1, VMSizeTypesStandardA10, VMSizeTypesStandardA11, VMSizeTypesStandardA1V2, VMSizeTypesStandardA2, VMSizeTypesStandardA2mV2, VMSizeTypesStandardA2V2, VMSizeTypesStandardA3, VMSizeTypesStandardA4, VMSizeTypesStandardA4mV2, VMSizeTypesStandardA4V2, VMSizeTypesStandardA5, VMSizeTypesStandardA6, VMSizeTypesStandardA7, VMSizeTypesStandardA8, VMSizeTypesStandardA8mV2, VMSizeTypesStandardA8V2, VMSizeTypesStandardA9, VMSizeTypesStandardB2ms, VMSizeTypesStandardB2s, VMSizeTypesStandardB4ms, VMSizeTypesStandardB8ms, VMSizeTypesStandardD1, VMSizeTypesStandardD11, VMSizeTypesStandardD11V2, VMSizeTypesStandardD11V2Promo, VMSizeTypesStandardD12, VMSizeTypesStandardD12V2, VMSizeTypesStandardD12V2Promo, VMSizeTypesStandardD13, VMSizeTypesStandardD13V2, VMSizeTypesStandardD13V2Promo, VMSizeTypesStandardD14, VMSizeTypesStandardD14V2, VMSizeTypesStandardD14V2Promo, VMSizeTypesStandardD15V2, VMSizeTypesStandardD16sV3, VMSizeTypesStandardD16V3, VMSizeTypesStandardD1V2, VMSizeTypesStandardD2, VMSizeTypesStandardD2sV3, VMSizeTypesStandardD2V2, VMSizeTypesStandardD2V2Promo, VMSizeTypesStandardD2V3, VMSizeTypesStandardD3, VMSizeTypesStandardD32sV3, VMSizeTypesStandardD32V3, VMSizeTypesStandardD3V2, VMSizeTypesStandardD3V2Promo, VMSizeTypesStandardD4, VMSizeTypesStandardD4sV3, VMSizeTypesStandardD4V2, VMSizeTypesStandardD4V2Promo, VMSizeTypesStandardD4V3, VMSizeTypesStandardD5V2, VMSizeTypesStandardD5V2Promo, VMSizeTypesStandardD64sV3, VMSizeTypesStandardD64V3, VMSizeTypesStandardD8sV3, VMSizeTypesStandardD8V3, VMSizeTypesStandardDS1, VMSizeTypesStandardDS11, VMSizeTypesStandardDS11V2, VMSizeTypesStandardDS11V2Promo, VMSizeTypesStandardDS12, VMSizeTypesStandardDS12V2, VMSizeTypesStandardDS12V2Promo, VMSizeTypesStandardDS13, VMSizeTypesStandardDS132V2, VMSizeTypesStandardDS134V2, VMSizeTypesStandardDS13V2, VMSizeTypesStandardDS13V2Promo, VMSizeTypesStandardDS14, VMSizeTypesStandardDS144V2, VMSizeTypesStandardDS148V2, VMSizeTypesStandardDS14V2, VMSizeTypesStandardDS14V2Promo, VMSizeTypesStandardDS15V2, VMSizeTypesStandardDS1V2, VMSizeTypesStandardDS2, VMSizeTypesStandardDS2V2, VMSizeTypesStandardDS2V2Promo, VMSizeTypesStandardDS3, VMSizeTypesStandardDS3V2, VMSizeTypesStandardDS3V2Promo, VMSizeTypesStandardDS4, VMSizeTypesStandardDS4V2, VMSizeTypesStandardDS4V2Promo, VMSizeTypesStandardDS5V2, VMSizeTypesStandardDS5V2Promo, VMSizeTypesStandardE16sV3, VMSizeTypesStandardE16V3, VMSizeTypesStandardE2sV3, VMSizeTypesStandardE2V3, VMSizeTypesStandardE3216sV3, VMSizeTypesStandardE328sV3, VMSizeTypesStandardE32sV3, VMSizeTypesStandardE32V3, VMSizeTypesStandardE4sV3, VMSizeTypesStandardE4V3, VMSizeTypesStandardE6416sV3, VMSizeTypesStandardE6432sV3, VMSizeTypesStandardE64sV3, VMSizeTypesStandardE64V3, VMSizeTypesStandardE8sV3, VMSizeTypesStandardE8V3, VMSizeTypesStandardF1, VMSizeTypesStandardF16, VMSizeTypesStandardF16s, VMSizeTypesStandardF16sV2, VMSizeTypesStandardF1s, VMSizeTypesStandardF2, VMSizeTypesStandardF2s, VMSizeTypesStandardF2sV2, VMSizeTypesStandardF32sV2, VMSizeTypesStandardF4, VMSizeTypesStandardF4s, VMSizeTypesStandardF4sV2, VMSizeTypesStandardF64sV2, VMSizeTypesStandardF72sV2, VMSizeTypesStandardF8, VMSizeTypesStandardF8s, VMSizeTypesStandardF8sV2, VMSizeTypesStandardG1, VMSizeTypesStandardG2, VMSizeTypesStandardG3, VMSizeTypesStandardG4, VMSizeTypesStandardG5, VMSizeTypesStandardGS1, VMSizeTypesStandardGS2, VMSizeTypesStandardGS3, VMSizeTypesStandardGS4, VMSizeTypesStandardGS44, VMSizeTypesStandardGS48, VMSizeTypesStandardGS5, VMSizeTypesStandardGS516, VMSizeTypesStandardGS58, VMSizeTypesStandardH16, VMSizeTypesStandardH16m, VMSizeTypesStandardH16mr, VMSizeTypesStandardH16r, VMSizeTypesStandardH8, VMSizeTypesStandardH8m, VMSizeTypesStandardL16s, VMSizeTypesStandardL32s, VMSizeTypesStandardL4s, VMSizeTypesStandardL8s, VMSizeTypesStandardM12832ms, VMSizeTypesStandardM12864ms, VMSizeTypesStandardM128ms, VMSizeTypesStandardM128s, VMSizeTypesStandardM6416ms, VMSizeTypesStandardM6432ms, VMSizeTypesStandardM64ms, VMSizeTypesStandardM64s, VMSizeTypesStandardNC12, VMSizeTypesStandardNC12sV2, VMSizeTypesStandardNC12sV3, VMSizeTypesStandardNC24, VMSizeTypesStandardNC24r, VMSizeTypesStandardNC24rsV2, VMSizeTypesStandardNC24rsV3, VMSizeTypesStandardNC24sV2, VMSizeTypesStandardNC24sV3, VMSizeTypesStandardNC6, VMSizeTypesStandardNC6sV2, VMSizeTypesStandardNC6sV3, VMSizeTypesStandardND12s, VMSizeTypesStandardND24rs, VMSizeTypesStandardND24s, VMSizeTypesStandardND6s, VMSizeTypesStandardNV12, VMSizeTypesStandardNV24, VMSizeTypesStandardNV6}
+}
+
+// AccessProfile profile for enabling a user to access a managed cluster.
+type AccessProfile struct {
+ // KubeConfig - Base64-encoded Kubernetes configuration file.
+ KubeConfig *[]byte `json:"kubeConfig,omitempty"`
+}
+
+// AgentPool agent Pool.
+type AgentPool struct {
+ autorest.Response `json:"-"`
+ // ManagedClusterAgentPoolProfileProperties - Properties of an agent pool.
+ *ManagedClusterAgentPoolProfileProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource ID.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; The name of the resource that is unique within a resource group. This name can be used to access the resource.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for AgentPool.
+func (ap AgentPool) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if ap.ManagedClusterAgentPoolProfileProperties != nil {
+ objectMap["properties"] = ap.ManagedClusterAgentPoolProfileProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for AgentPool struct.
+func (ap *AgentPool) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var managedClusterAgentPoolProfileProperties ManagedClusterAgentPoolProfileProperties
+ err = json.Unmarshal(*v, &managedClusterAgentPoolProfileProperties)
+ if err != nil {
+ return err
+ }
+ ap.ManagedClusterAgentPoolProfileProperties = &managedClusterAgentPoolProfileProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ ap.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ap.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ ap.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// AgentPoolAvailableVersions the list of available versions for an agent pool.
+type AgentPoolAvailableVersions struct {
+ autorest.Response `json:"-"`
+ // ID - READ-ONLY; Id of the agent pool available versions.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the agent pool available versions.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the agent pool available versions.
+ Type *string `json:"type,omitempty"`
+ // AgentPoolAvailableVersionsProperties - Properties of agent pool available versions.
+ *AgentPoolAvailableVersionsProperties `json:"properties,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for AgentPoolAvailableVersions.
+func (apav AgentPoolAvailableVersions) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if apav.AgentPoolAvailableVersionsProperties != nil {
+ objectMap["properties"] = apav.AgentPoolAvailableVersionsProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for AgentPoolAvailableVersions struct.
+func (apav *AgentPoolAvailableVersions) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ apav.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ apav.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ apav.Type = &typeVar
+ }
+ case "properties":
+ if v != nil {
+ var agentPoolAvailableVersionsProperties AgentPoolAvailableVersionsProperties
+ err = json.Unmarshal(*v, &agentPoolAvailableVersionsProperties)
+ if err != nil {
+ return err
+ }
+ apav.AgentPoolAvailableVersionsProperties = &agentPoolAvailableVersionsProperties
+ }
+ }
+ }
+
+ return nil
+}
+
+// AgentPoolAvailableVersionsProperties the list of available agent pool versions.
+type AgentPoolAvailableVersionsProperties struct {
+ // AgentPoolVersions - List of versions available for agent pool.
+ AgentPoolVersions *[]AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem `json:"agentPoolVersions,omitempty"`
+}
+
+// AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem ...
+type AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem struct {
+ // Default - Whether this version is the default agent pool version.
+ Default *bool `json:"default,omitempty"`
+ // KubernetesVersion - Kubernetes version (major, minor, patch).
+ KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
+ // IsPreview - Whether Kubernetes version is currently in preview.
+ IsPreview *bool `json:"isPreview,omitempty"`
+}
+
+// AgentPoolListResult the response from the List Agent Pools operation.
+type AgentPoolListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of agent pools.
+ Value *[]AgentPool `json:"value,omitempty"`
+ // NextLink - READ-ONLY; The URL to get the next set of agent pool results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// AgentPoolListResultIterator provides access to a complete listing of AgentPool values.
+type AgentPoolListResultIterator struct {
+ i int
+ page AgentPoolListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *AgentPoolListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *AgentPoolListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter AgentPoolListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter AgentPoolListResultIterator) Response() AgentPoolListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter AgentPoolListResultIterator) Value() AgentPool {
+ if !iter.page.NotDone() {
+ return AgentPool{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the AgentPoolListResultIterator type.
+func NewAgentPoolListResultIterator(page AgentPoolListResultPage) AgentPoolListResultIterator {
+ return AgentPoolListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (aplr AgentPoolListResult) IsEmpty() bool {
+ return aplr.Value == nil || len(*aplr.Value) == 0
+}
+
+// agentPoolListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (aplr AgentPoolListResult) agentPoolListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if aplr.NextLink == nil || len(to.String(aplr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(aplr.NextLink)))
+}
+
+// AgentPoolListResultPage contains a page of AgentPool values.
+type AgentPoolListResultPage struct {
+ fn func(context.Context, AgentPoolListResult) (AgentPoolListResult, error)
+ aplr AgentPoolListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *AgentPoolListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.aplr)
+ if err != nil {
+ return err
+ }
+ page.aplr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *AgentPoolListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page AgentPoolListResultPage) NotDone() bool {
+ return !page.aplr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page AgentPoolListResultPage) Response() AgentPoolListResult {
+ return page.aplr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page AgentPoolListResultPage) Values() []AgentPool {
+ if page.aplr.IsEmpty() {
+ return nil
+ }
+ return *page.aplr.Value
+}
+
+// Creates a new instance of the AgentPoolListResultPage type.
+func NewAgentPoolListResultPage(getNextPage func(context.Context, AgentPoolListResult) (AgentPoolListResult, error)) AgentPoolListResultPage {
+ return AgentPoolListResultPage{fn: getNextPage}
+}
+
+// AgentPoolProfile profile for the container service agent pool.
+type AgentPoolProfile struct {
+ // Name - Unique name of the agent pool profile in the context of the subscription and resource group.
+ Name *string `json:"name,omitempty"`
+ // Count - Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.
+ Count *int32 `json:"count,omitempty"`
+ // VMSize - Size of agent VMs. Possible values include: 'VMSizeTypesStandardA1', 'VMSizeTypesStandardA10', 'VMSizeTypesStandardA11', 'VMSizeTypesStandardA1V2', 'VMSizeTypesStandardA2', 'VMSizeTypesStandardA2V2', 'VMSizeTypesStandardA2mV2', 'VMSizeTypesStandardA3', 'VMSizeTypesStandardA4', 'VMSizeTypesStandardA4V2', 'VMSizeTypesStandardA4mV2', 'VMSizeTypesStandardA5', 'VMSizeTypesStandardA6', 'VMSizeTypesStandardA7', 'VMSizeTypesStandardA8', 'VMSizeTypesStandardA8V2', 'VMSizeTypesStandardA8mV2', 'VMSizeTypesStandardA9', 'VMSizeTypesStandardB2ms', 'VMSizeTypesStandardB2s', 'VMSizeTypesStandardB4ms', 'VMSizeTypesStandardB8ms', 'VMSizeTypesStandardD1', 'VMSizeTypesStandardD11', 'VMSizeTypesStandardD11V2', 'VMSizeTypesStandardD11V2Promo', 'VMSizeTypesStandardD12', 'VMSizeTypesStandardD12V2', 'VMSizeTypesStandardD12V2Promo', 'VMSizeTypesStandardD13', 'VMSizeTypesStandardD13V2', 'VMSizeTypesStandardD13V2Promo', 'VMSizeTypesStandardD14', 'VMSizeTypesStandardD14V2', 'VMSizeTypesStandardD14V2Promo', 'VMSizeTypesStandardD15V2', 'VMSizeTypesStandardD16V3', 'VMSizeTypesStandardD16sV3', 'VMSizeTypesStandardD1V2', 'VMSizeTypesStandardD2', 'VMSizeTypesStandardD2V2', 'VMSizeTypesStandardD2V2Promo', 'VMSizeTypesStandardD2V3', 'VMSizeTypesStandardD2sV3', 'VMSizeTypesStandardD3', 'VMSizeTypesStandardD32V3', 'VMSizeTypesStandardD32sV3', 'VMSizeTypesStandardD3V2', 'VMSizeTypesStandardD3V2Promo', 'VMSizeTypesStandardD4', 'VMSizeTypesStandardD4V2', 'VMSizeTypesStandardD4V2Promo', 'VMSizeTypesStandardD4V3', 'VMSizeTypesStandardD4sV3', 'VMSizeTypesStandardD5V2', 'VMSizeTypesStandardD5V2Promo', 'VMSizeTypesStandardD64V3', 'VMSizeTypesStandardD64sV3', 'VMSizeTypesStandardD8V3', 'VMSizeTypesStandardD8sV3', 'VMSizeTypesStandardDS1', 'VMSizeTypesStandardDS11', 'VMSizeTypesStandardDS11V2', 'VMSizeTypesStandardDS11V2Promo', 'VMSizeTypesStandardDS12', 'VMSizeTypesStandardDS12V2', 'VMSizeTypesStandardDS12V2Promo', 'VMSizeTypesStandardDS13', 'VMSizeTypesStandardDS132V2', 'VMSizeTypesStandardDS134V2', 'VMSizeTypesStandardDS13V2', 'VMSizeTypesStandardDS13V2Promo', 'VMSizeTypesStandardDS14', 'VMSizeTypesStandardDS144V2', 'VMSizeTypesStandardDS148V2', 'VMSizeTypesStandardDS14V2', 'VMSizeTypesStandardDS14V2Promo', 'VMSizeTypesStandardDS15V2', 'VMSizeTypesStandardDS1V2', 'VMSizeTypesStandardDS2', 'VMSizeTypesStandardDS2V2', 'VMSizeTypesStandardDS2V2Promo', 'VMSizeTypesStandardDS3', 'VMSizeTypesStandardDS3V2', 'VMSizeTypesStandardDS3V2Promo', 'VMSizeTypesStandardDS4', 'VMSizeTypesStandardDS4V2', 'VMSizeTypesStandardDS4V2Promo', 'VMSizeTypesStandardDS5V2', 'VMSizeTypesStandardDS5V2Promo', 'VMSizeTypesStandardE16V3', 'VMSizeTypesStandardE16sV3', 'VMSizeTypesStandardE2V3', 'VMSizeTypesStandardE2sV3', 'VMSizeTypesStandardE3216sV3', 'VMSizeTypesStandardE328sV3', 'VMSizeTypesStandardE32V3', 'VMSizeTypesStandardE32sV3', 'VMSizeTypesStandardE4V3', 'VMSizeTypesStandardE4sV3', 'VMSizeTypesStandardE6416sV3', 'VMSizeTypesStandardE6432sV3', 'VMSizeTypesStandardE64V3', 'VMSizeTypesStandardE64sV3', 'VMSizeTypesStandardE8V3', 'VMSizeTypesStandardE8sV3', 'VMSizeTypesStandardF1', 'VMSizeTypesStandardF16', 'VMSizeTypesStandardF16s', 'VMSizeTypesStandardF16sV2', 'VMSizeTypesStandardF1s', 'VMSizeTypesStandardF2', 'VMSizeTypesStandardF2s', 'VMSizeTypesStandardF2sV2', 'VMSizeTypesStandardF32sV2', 'VMSizeTypesStandardF4', 'VMSizeTypesStandardF4s', 'VMSizeTypesStandardF4sV2', 'VMSizeTypesStandardF64sV2', 'VMSizeTypesStandardF72sV2', 'VMSizeTypesStandardF8', 'VMSizeTypesStandardF8s', 'VMSizeTypesStandardF8sV2', 'VMSizeTypesStandardG1', 'VMSizeTypesStandardG2', 'VMSizeTypesStandardG3', 'VMSizeTypesStandardG4', 'VMSizeTypesStandardG5', 'VMSizeTypesStandardGS1', 'VMSizeTypesStandardGS2', 'VMSizeTypesStandardGS3', 'VMSizeTypesStandardGS4', 'VMSizeTypesStandardGS44', 'VMSizeTypesStandardGS48', 'VMSizeTypesStandardGS5', 'VMSizeTypesStandardGS516', 'VMSizeTypesStandardGS58', 'VMSizeTypesStandardH16', 'VMSizeTypesStandardH16m', 'VMSizeTypesStandardH16mr', 'VMSizeTypesStandardH16r', 'VMSizeTypesStandardH8', 'VMSizeTypesStandardH8m', 'VMSizeTypesStandardL16s', 'VMSizeTypesStandardL32s', 'VMSizeTypesStandardL4s', 'VMSizeTypesStandardL8s', 'VMSizeTypesStandardM12832ms', 'VMSizeTypesStandardM12864ms', 'VMSizeTypesStandardM128ms', 'VMSizeTypesStandardM128s', 'VMSizeTypesStandardM6416ms', 'VMSizeTypesStandardM6432ms', 'VMSizeTypesStandardM64ms', 'VMSizeTypesStandardM64s', 'VMSizeTypesStandardNC12', 'VMSizeTypesStandardNC12sV2', 'VMSizeTypesStandardNC12sV3', 'VMSizeTypesStandardNC24', 'VMSizeTypesStandardNC24r', 'VMSizeTypesStandardNC24rsV2', 'VMSizeTypesStandardNC24rsV3', 'VMSizeTypesStandardNC24sV2', 'VMSizeTypesStandardNC24sV3', 'VMSizeTypesStandardNC6', 'VMSizeTypesStandardNC6sV2', 'VMSizeTypesStandardNC6sV3', 'VMSizeTypesStandardND12s', 'VMSizeTypesStandardND24rs', 'VMSizeTypesStandardND24s', 'VMSizeTypesStandardND6s', 'VMSizeTypesStandardNV12', 'VMSizeTypesStandardNV24', 'VMSizeTypesStandardNV6'
+ VMSize VMSizeTypes `json:"vmSize,omitempty"`
+ // OsDiskSizeGB - OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified.
+ OsDiskSizeGB *int32 `json:"osDiskSizeGB,omitempty"`
+ // DNSPrefix - DNS prefix to be used to create the FQDN for the agent pool.
+ DNSPrefix *string `json:"dnsPrefix,omitempty"`
+ // Fqdn - READ-ONLY; FQDN for the agent pool.
+ Fqdn *string `json:"fqdn,omitempty"`
+ // Ports - Ports number array used to expose on this agent pool. The default opened ports are different based on your choice of orchestrator.
+ Ports *[]int32 `json:"ports,omitempty"`
+ // StorageProfile - Storage profile specifies what kind of storage used. Choose from StorageAccount and ManagedDisks. Leave it empty, we will choose for you based on the orchestrator choice. Possible values include: 'StorageAccount', 'ManagedDisks'
+ StorageProfile StorageProfileTypes `json:"storageProfile,omitempty"`
+ // VnetSubnetID - VNet SubnetID specifies the VNet's subnet identifier.
+ VnetSubnetID *string `json:"vnetSubnetID,omitempty"`
+ // OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
+ OsType OSType `json:"osType,omitempty"`
+}
+
+// AgentPoolsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type AgentPoolsCreateOrUpdateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *AgentPoolsCreateOrUpdateFuture) Result(client AgentPoolsClient) (ap AgentPool, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.AgentPoolsCreateOrUpdateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if ap.Response.Response, err = future.GetResult(sender); err == nil && ap.Response.Response.StatusCode != http.StatusNoContent {
+ ap, err = client.CreateOrUpdateResponder(ap.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsCreateOrUpdateFuture", "Result", ap.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// AgentPoolsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type AgentPoolsDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *AgentPoolsDeleteFuture) Result(client AgentPoolsClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.AgentPoolsDeleteFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// AgentPoolUpgradeProfile the list of available upgrades for an agent pool.
+type AgentPoolUpgradeProfile struct {
+ autorest.Response `json:"-"`
+ // ID - READ-ONLY; Id of the agent pool upgrade profile.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the agent pool upgrade profile.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the agent pool upgrade profile.
+ Type *string `json:"type,omitempty"`
+ // AgentPoolUpgradeProfileProperties - Properties of agent pool upgrade profile.
+ *AgentPoolUpgradeProfileProperties `json:"properties,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for AgentPoolUpgradeProfile.
+func (apup AgentPoolUpgradeProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if apup.AgentPoolUpgradeProfileProperties != nil {
+ objectMap["properties"] = apup.AgentPoolUpgradeProfileProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for AgentPoolUpgradeProfile struct.
+func (apup *AgentPoolUpgradeProfile) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ apup.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ apup.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ apup.Type = &typeVar
+ }
+ case "properties":
+ if v != nil {
+ var agentPoolUpgradeProfileProperties AgentPoolUpgradeProfileProperties
+ err = json.Unmarshal(*v, &agentPoolUpgradeProfileProperties)
+ if err != nil {
+ return err
+ }
+ apup.AgentPoolUpgradeProfileProperties = &agentPoolUpgradeProfileProperties
+ }
+ }
+ }
+
+ return nil
+}
+
+// AgentPoolUpgradeProfileProperties the list of available upgrade versions.
+type AgentPoolUpgradeProfileProperties struct {
+ // KubernetesVersion - Kubernetes version (major, minor, patch).
+ KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
+ // OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
+ OsType OSType `json:"osType,omitempty"`
+ // Upgrades - List of orchestrator types and versions available for upgrade.
+ Upgrades *[]AgentPoolUpgradeProfilePropertiesUpgradesItem `json:"upgrades,omitempty"`
+}
+
+// AgentPoolUpgradeProfilePropertiesUpgradesItem ...
+type AgentPoolUpgradeProfilePropertiesUpgradesItem struct {
+ // KubernetesVersion - Kubernetes version (major, minor, patch).
+ KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
+ // IsPreview - Whether Kubernetes version is currently in preview.
+ IsPreview *bool `json:"isPreview,omitempty"`
+}
+
+// CloudError an error response from the Container service.
+type CloudError struct {
+ // Error - Details about the error.
+ Error *CloudErrorBody `json:"error,omitempty"`
+}
+
+// CloudErrorBody an error response from the Container service.
+type CloudErrorBody struct {
+ // Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
+ Code *string `json:"code,omitempty"`
+ // Message - A message describing the error, intended to be suitable for display in a user interface.
+ Message *string `json:"message,omitempty"`
+ // Target - The target of the particular error. For example, the name of the property in error.
+ Target *string `json:"target,omitempty"`
+ // Details - A list of additional details about the error.
+ Details *[]CloudErrorBody `json:"details,omitempty"`
+}
+
+// ContainerService container service.
+type ContainerService struct {
+ autorest.Response `json:"-"`
+ // Properties - Properties of the container service.
+ *Properties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; 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 ContainerService.
+func (cs ContainerService) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if cs.Properties != nil {
+ objectMap["properties"] = cs.Properties
+ }
+ if cs.Location != nil {
+ objectMap["location"] = cs.Location
+ }
+ if cs.Tags != nil {
+ objectMap["tags"] = cs.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ContainerService struct.
+func (cs *ContainerService) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var properties Properties
+ err = json.Unmarshal(*v, &properties)
+ if err != nil {
+ return err
+ }
+ cs.Properties = &properties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ cs.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ cs.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ cs.Type = &typeVar
+ }
+ case "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ cs.Location = &location
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ cs.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// ContainerServicesCreateOrUpdateFutureType an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ContainerServicesCreateOrUpdateFutureType struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ContainerServicesCreateOrUpdateFutureType) Result(client ContainerServicesClient) (cs ContainerService, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesCreateOrUpdateFutureType", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.ContainerServicesCreateOrUpdateFutureType")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if cs.Response.Response, err = future.GetResult(sender); err == nil && cs.Response.Response.StatusCode != http.StatusNoContent {
+ cs, err = client.CreateOrUpdateResponder(cs.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesCreateOrUpdateFutureType", "Result", cs.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// ContainerServicesDeleteFutureType an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ContainerServicesDeleteFutureType struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ContainerServicesDeleteFutureType) Result(client ContainerServicesClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesDeleteFutureType", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.ContainerServicesDeleteFutureType")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// CredentialResult the credential result response.
+type CredentialResult struct {
+ // Name - READ-ONLY; The name of the credential.
+ Name *string `json:"name,omitempty"`
+ // Value - READ-ONLY; Base64-encoded Kubernetes configuration file.
+ Value *[]byte `json:"value,omitempty"`
+}
+
+// CredentialResults the list of credential result response.
+type CredentialResults struct {
+ autorest.Response `json:"-"`
+ // Kubeconfigs - READ-ONLY; Base64-encoded Kubernetes configuration file.
+ Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"`
+}
+
+// CustomProfile properties to configure a custom container service cluster.
+type CustomProfile struct {
+ // Orchestrator - The name of the custom orchestrator to use.
+ Orchestrator *string `json:"orchestrator,omitempty"`
+}
+
+// DiagnosticsProfile profile for diagnostics on the container service cluster.
+type DiagnosticsProfile struct {
+ // VMDiagnostics - Profile for diagnostics on the container service VMs.
+ VMDiagnostics *VMDiagnostics `json:"vmDiagnostics,omitempty"`
+}
+
+// KeyVaultSecretRef reference to a secret stored in Azure Key Vault.
+type KeyVaultSecretRef struct {
+ // VaultID - Key vault identifier.
+ VaultID *string `json:"vaultID,omitempty"`
+ // SecretName - The secret name.
+ SecretName *string `json:"secretName,omitempty"`
+ // Version - The secret version.
+ Version *string `json:"version,omitempty"`
+}
+
+// LinuxProfile profile for Linux VMs in the container service cluster.
+type LinuxProfile struct {
+ // AdminUsername - The administrator username to use for Linux VMs.
+ AdminUsername *string `json:"adminUsername,omitempty"`
+ // SSH - SSH configuration for Linux-based VMs running on Azure.
+ SSH *SSHConfiguration `json:"ssh,omitempty"`
+}
+
+// ListResult the response from the List Container Services operation.
+type ListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of container services.
+ Value *[]ContainerService `json:"value,omitempty"`
+ // NextLink - READ-ONLY; The URL to get the next set of container service results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// ListResultIterator provides access to a complete listing of ContainerService values.
+type ListResultIterator struct {
+ i int
+ page ListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *ListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *ListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter ListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter ListResultIterator) Response() ListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter ListResultIterator) Value() ContainerService {
+ if !iter.page.NotDone() {
+ return ContainerService{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the ListResultIterator type.
+func NewListResultIterator(page ListResultPage) ListResultIterator {
+ return ListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (lr ListResult) IsEmpty() bool {
+ return lr.Value == nil || len(*lr.Value) == 0
+}
+
+// listResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (lr ListResult) listResultPreparer(ctx context.Context) (*http.Request, error) {
+ if lr.NextLink == nil || len(to.String(lr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(lr.NextLink)))
+}
+
+// ListResultPage contains a page of ContainerService values.
+type ListResultPage struct {
+ fn func(context.Context, ListResult) (ListResult, error)
+ lr ListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *ListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.lr)
+ if err != nil {
+ return err
+ }
+ page.lr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *ListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page ListResultPage) NotDone() bool {
+ return !page.lr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page ListResultPage) Response() ListResult {
+ return page.lr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page ListResultPage) Values() []ContainerService {
+ if page.lr.IsEmpty() {
+ return nil
+ }
+ return *page.lr.Value
+}
+
+// Creates a new instance of the ListResultPage type.
+func NewListResultPage(getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage {
+ return ListResultPage{fn: getNextPage}
+}
+
+// ManagedCluster managed cluster.
+type ManagedCluster struct {
+ autorest.Response `json:"-"`
+ // ManagedClusterProperties - Properties of a managed cluster.
+ *ManagedClusterProperties `json:"properties,omitempty"`
+ // Identity - The identity of the managed cluster, if configured.
+ Identity *ManagedClusterIdentity `json:"identity,omitempty"`
+ // ID - READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; 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 ManagedCluster.
+func (mc ManagedCluster) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if mc.ManagedClusterProperties != nil {
+ objectMap["properties"] = mc.ManagedClusterProperties
+ }
+ if mc.Identity != nil {
+ objectMap["identity"] = mc.Identity
+ }
+ if mc.Location != nil {
+ objectMap["location"] = mc.Location
+ }
+ if mc.Tags != nil {
+ objectMap["tags"] = mc.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ManagedCluster struct.
+func (mc *ManagedCluster) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var managedClusterProperties ManagedClusterProperties
+ err = json.Unmarshal(*v, &managedClusterProperties)
+ if err != nil {
+ return err
+ }
+ mc.ManagedClusterProperties = &managedClusterProperties
+ }
+ case "identity":
+ if v != nil {
+ var identity ManagedClusterIdentity
+ err = json.Unmarshal(*v, &identity)
+ if err != nil {
+ return err
+ }
+ mc.Identity = &identity
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ mc.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ mc.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ mc.Type = &typeVar
+ }
+ case "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ mc.Location = &location
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ mc.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// ManagedClusterAADProfile aADProfile specifies attributes for Azure Active Directory integration.
+type ManagedClusterAADProfile struct {
+ // ClientAppID - The client AAD application ID.
+ ClientAppID *string `json:"clientAppID,omitempty"`
+ // ServerAppID - The server AAD application ID.
+ ServerAppID *string `json:"serverAppID,omitempty"`
+ // ServerAppSecret - The server AAD application secret.
+ ServerAppSecret *string `json:"serverAppSecret,omitempty"`
+ // TenantID - The AAD tenant ID to use for authentication. If not specified, will use the tenant of the deployment subscription.
+ TenantID *string `json:"tenantID,omitempty"`
+}
+
+// ManagedClusterAccessProfile managed cluster Access Profile.
+type ManagedClusterAccessProfile struct {
+ autorest.Response `json:"-"`
+ // AccessProfile - AccessProfile of a managed cluster.
+ *AccessProfile `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; 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 ManagedClusterAccessProfile.
+func (mcap ManagedClusterAccessProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if mcap.AccessProfile != nil {
+ objectMap["properties"] = mcap.AccessProfile
+ }
+ if mcap.Location != nil {
+ objectMap["location"] = mcap.Location
+ }
+ if mcap.Tags != nil {
+ objectMap["tags"] = mcap.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ManagedClusterAccessProfile struct.
+func (mcap *ManagedClusterAccessProfile) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var accessProfile AccessProfile
+ err = json.Unmarshal(*v, &accessProfile)
+ if err != nil {
+ return err
+ }
+ mcap.AccessProfile = &accessProfile
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ mcap.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ mcap.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ mcap.Type = &typeVar
+ }
+ case "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ mcap.Location = &location
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ mcap.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// ManagedClusterAddonProfile a Kubernetes add-on profile for a managed cluster.
+type ManagedClusterAddonProfile struct {
+ // Enabled - Whether the add-on is enabled or not.
+ Enabled *bool `json:"enabled,omitempty"`
+ // Config - Key-value pairs for configuring an add-on.
+ Config map[string]*string `json:"config"`
+}
+
+// MarshalJSON is the custom marshaler for ManagedClusterAddonProfile.
+func (mcap ManagedClusterAddonProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if mcap.Enabled != nil {
+ objectMap["enabled"] = mcap.Enabled
+ }
+ if mcap.Config != nil {
+ objectMap["config"] = mcap.Config
+ }
+ return json.Marshal(objectMap)
+}
+
+// ManagedClusterAgentPoolProfile profile for the container service agent pool.
+type ManagedClusterAgentPoolProfile struct {
+ // Name - Unique name of the agent pool profile in the context of the subscription and resource group.
+ Name *string `json:"name,omitempty"`
+ // Count - Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.
+ Count *int32 `json:"count,omitempty"`
+ // VMSize - Size of agent VMs. Possible values include: 'VMSizeTypesStandardA1', 'VMSizeTypesStandardA10', 'VMSizeTypesStandardA11', 'VMSizeTypesStandardA1V2', 'VMSizeTypesStandardA2', 'VMSizeTypesStandardA2V2', 'VMSizeTypesStandardA2mV2', 'VMSizeTypesStandardA3', 'VMSizeTypesStandardA4', 'VMSizeTypesStandardA4V2', 'VMSizeTypesStandardA4mV2', 'VMSizeTypesStandardA5', 'VMSizeTypesStandardA6', 'VMSizeTypesStandardA7', 'VMSizeTypesStandardA8', 'VMSizeTypesStandardA8V2', 'VMSizeTypesStandardA8mV2', 'VMSizeTypesStandardA9', 'VMSizeTypesStandardB2ms', 'VMSizeTypesStandardB2s', 'VMSizeTypesStandardB4ms', 'VMSizeTypesStandardB8ms', 'VMSizeTypesStandardD1', 'VMSizeTypesStandardD11', 'VMSizeTypesStandardD11V2', 'VMSizeTypesStandardD11V2Promo', 'VMSizeTypesStandardD12', 'VMSizeTypesStandardD12V2', 'VMSizeTypesStandardD12V2Promo', 'VMSizeTypesStandardD13', 'VMSizeTypesStandardD13V2', 'VMSizeTypesStandardD13V2Promo', 'VMSizeTypesStandardD14', 'VMSizeTypesStandardD14V2', 'VMSizeTypesStandardD14V2Promo', 'VMSizeTypesStandardD15V2', 'VMSizeTypesStandardD16V3', 'VMSizeTypesStandardD16sV3', 'VMSizeTypesStandardD1V2', 'VMSizeTypesStandardD2', 'VMSizeTypesStandardD2V2', 'VMSizeTypesStandardD2V2Promo', 'VMSizeTypesStandardD2V3', 'VMSizeTypesStandardD2sV3', 'VMSizeTypesStandardD3', 'VMSizeTypesStandardD32V3', 'VMSizeTypesStandardD32sV3', 'VMSizeTypesStandardD3V2', 'VMSizeTypesStandardD3V2Promo', 'VMSizeTypesStandardD4', 'VMSizeTypesStandardD4V2', 'VMSizeTypesStandardD4V2Promo', 'VMSizeTypesStandardD4V3', 'VMSizeTypesStandardD4sV3', 'VMSizeTypesStandardD5V2', 'VMSizeTypesStandardD5V2Promo', 'VMSizeTypesStandardD64V3', 'VMSizeTypesStandardD64sV3', 'VMSizeTypesStandardD8V3', 'VMSizeTypesStandardD8sV3', 'VMSizeTypesStandardDS1', 'VMSizeTypesStandardDS11', 'VMSizeTypesStandardDS11V2', 'VMSizeTypesStandardDS11V2Promo', 'VMSizeTypesStandardDS12', 'VMSizeTypesStandardDS12V2', 'VMSizeTypesStandardDS12V2Promo', 'VMSizeTypesStandardDS13', 'VMSizeTypesStandardDS132V2', 'VMSizeTypesStandardDS134V2', 'VMSizeTypesStandardDS13V2', 'VMSizeTypesStandardDS13V2Promo', 'VMSizeTypesStandardDS14', 'VMSizeTypesStandardDS144V2', 'VMSizeTypesStandardDS148V2', 'VMSizeTypesStandardDS14V2', 'VMSizeTypesStandardDS14V2Promo', 'VMSizeTypesStandardDS15V2', 'VMSizeTypesStandardDS1V2', 'VMSizeTypesStandardDS2', 'VMSizeTypesStandardDS2V2', 'VMSizeTypesStandardDS2V2Promo', 'VMSizeTypesStandardDS3', 'VMSizeTypesStandardDS3V2', 'VMSizeTypesStandardDS3V2Promo', 'VMSizeTypesStandardDS4', 'VMSizeTypesStandardDS4V2', 'VMSizeTypesStandardDS4V2Promo', 'VMSizeTypesStandardDS5V2', 'VMSizeTypesStandardDS5V2Promo', 'VMSizeTypesStandardE16V3', 'VMSizeTypesStandardE16sV3', 'VMSizeTypesStandardE2V3', 'VMSizeTypesStandardE2sV3', 'VMSizeTypesStandardE3216sV3', 'VMSizeTypesStandardE328sV3', 'VMSizeTypesStandardE32V3', 'VMSizeTypesStandardE32sV3', 'VMSizeTypesStandardE4V3', 'VMSizeTypesStandardE4sV3', 'VMSizeTypesStandardE6416sV3', 'VMSizeTypesStandardE6432sV3', 'VMSizeTypesStandardE64V3', 'VMSizeTypesStandardE64sV3', 'VMSizeTypesStandardE8V3', 'VMSizeTypesStandardE8sV3', 'VMSizeTypesStandardF1', 'VMSizeTypesStandardF16', 'VMSizeTypesStandardF16s', 'VMSizeTypesStandardF16sV2', 'VMSizeTypesStandardF1s', 'VMSizeTypesStandardF2', 'VMSizeTypesStandardF2s', 'VMSizeTypesStandardF2sV2', 'VMSizeTypesStandardF32sV2', 'VMSizeTypesStandardF4', 'VMSizeTypesStandardF4s', 'VMSizeTypesStandardF4sV2', 'VMSizeTypesStandardF64sV2', 'VMSizeTypesStandardF72sV2', 'VMSizeTypesStandardF8', 'VMSizeTypesStandardF8s', 'VMSizeTypesStandardF8sV2', 'VMSizeTypesStandardG1', 'VMSizeTypesStandardG2', 'VMSizeTypesStandardG3', 'VMSizeTypesStandardG4', 'VMSizeTypesStandardG5', 'VMSizeTypesStandardGS1', 'VMSizeTypesStandardGS2', 'VMSizeTypesStandardGS3', 'VMSizeTypesStandardGS4', 'VMSizeTypesStandardGS44', 'VMSizeTypesStandardGS48', 'VMSizeTypesStandardGS5', 'VMSizeTypesStandardGS516', 'VMSizeTypesStandardGS58', 'VMSizeTypesStandardH16', 'VMSizeTypesStandardH16m', 'VMSizeTypesStandardH16mr', 'VMSizeTypesStandardH16r', 'VMSizeTypesStandardH8', 'VMSizeTypesStandardH8m', 'VMSizeTypesStandardL16s', 'VMSizeTypesStandardL32s', 'VMSizeTypesStandardL4s', 'VMSizeTypesStandardL8s', 'VMSizeTypesStandardM12832ms', 'VMSizeTypesStandardM12864ms', 'VMSizeTypesStandardM128ms', 'VMSizeTypesStandardM128s', 'VMSizeTypesStandardM6416ms', 'VMSizeTypesStandardM6432ms', 'VMSizeTypesStandardM64ms', 'VMSizeTypesStandardM64s', 'VMSizeTypesStandardNC12', 'VMSizeTypesStandardNC12sV2', 'VMSizeTypesStandardNC12sV3', 'VMSizeTypesStandardNC24', 'VMSizeTypesStandardNC24r', 'VMSizeTypesStandardNC24rsV2', 'VMSizeTypesStandardNC24rsV3', 'VMSizeTypesStandardNC24sV2', 'VMSizeTypesStandardNC24sV3', 'VMSizeTypesStandardNC6', 'VMSizeTypesStandardNC6sV2', 'VMSizeTypesStandardNC6sV3', 'VMSizeTypesStandardND12s', 'VMSizeTypesStandardND24rs', 'VMSizeTypesStandardND24s', 'VMSizeTypesStandardND6s', 'VMSizeTypesStandardNV12', 'VMSizeTypesStandardNV24', 'VMSizeTypesStandardNV6'
+ VMSize VMSizeTypes `json:"vmSize,omitempty"`
+ // OsDiskSizeGB - OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified.
+ OsDiskSizeGB *int32 `json:"osDiskSizeGB,omitempty"`
+ // VnetSubnetID - VNet SubnetID specifies the VNet's subnet identifier.
+ VnetSubnetID *string `json:"vnetSubnetID,omitempty"`
+ // MaxPods - Maximum number of pods that can run on a node.
+ MaxPods *int32 `json:"maxPods,omitempty"`
+ // OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
+ OsType OSType `json:"osType,omitempty"`
+ // MaxCount - Maximum number of nodes for auto-scaling
+ MaxCount *int32 `json:"maxCount,omitempty"`
+ // MinCount - Minimum number of nodes for auto-scaling
+ MinCount *int32 `json:"minCount,omitempty"`
+ // EnableAutoScaling - Whether to enable auto-scaler
+ EnableAutoScaling *bool `json:"enableAutoScaling,omitempty"`
+ // Type - AgentPoolType represents types of an agent pool. Possible values include: 'VirtualMachineScaleSets', 'AvailabilitySet'
+ Type AgentPoolType `json:"type,omitempty"`
+ // OrchestratorVersion - Version of orchestrator specified when creating the managed cluster.
+ OrchestratorVersion *string `json:"orchestratorVersion,omitempty"`
+ // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty"`
+ // AvailabilityZones - (PREVIEW) Availability zones for nodes. Must use VirtualMachineScaleSets AgentPoolType.
+ AvailabilityZones *[]string `json:"availabilityZones,omitempty"`
+ // EnableNodePublicIP - Enable public IP for nodes
+ EnableNodePublicIP *bool `json:"enableNodePublicIP,omitempty"`
+ // ScaleSetPriority - ScaleSetPriority to be used to specify virtual machine scale set priority. Default to regular. Possible values include: 'Low', 'Regular'
+ ScaleSetPriority ScaleSetPriority `json:"scaleSetPriority,omitempty"`
+ // ScaleSetEvictionPolicy - ScaleSetEvictionPolicy to be used to specify eviction policy for low priority virtual machine scale set. Default to Delete. Possible values include: 'Delete', 'Deallocate'
+ ScaleSetEvictionPolicy ScaleSetEvictionPolicy `json:"scaleSetEvictionPolicy,omitempty"`
+ // NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
+ NodeTaints *[]string `json:"nodeTaints,omitempty"`
+}
+
+// ManagedClusterAgentPoolProfileProperties properties for the container service agent pool profile.
+type ManagedClusterAgentPoolProfileProperties struct {
+ // Count - Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.
+ Count *int32 `json:"count,omitempty"`
+ // VMSize - Size of agent VMs. Possible values include: 'VMSizeTypesStandardA1', 'VMSizeTypesStandardA10', 'VMSizeTypesStandardA11', 'VMSizeTypesStandardA1V2', 'VMSizeTypesStandardA2', 'VMSizeTypesStandardA2V2', 'VMSizeTypesStandardA2mV2', 'VMSizeTypesStandardA3', 'VMSizeTypesStandardA4', 'VMSizeTypesStandardA4V2', 'VMSizeTypesStandardA4mV2', 'VMSizeTypesStandardA5', 'VMSizeTypesStandardA6', 'VMSizeTypesStandardA7', 'VMSizeTypesStandardA8', 'VMSizeTypesStandardA8V2', 'VMSizeTypesStandardA8mV2', 'VMSizeTypesStandardA9', 'VMSizeTypesStandardB2ms', 'VMSizeTypesStandardB2s', 'VMSizeTypesStandardB4ms', 'VMSizeTypesStandardB8ms', 'VMSizeTypesStandardD1', 'VMSizeTypesStandardD11', 'VMSizeTypesStandardD11V2', 'VMSizeTypesStandardD11V2Promo', 'VMSizeTypesStandardD12', 'VMSizeTypesStandardD12V2', 'VMSizeTypesStandardD12V2Promo', 'VMSizeTypesStandardD13', 'VMSizeTypesStandardD13V2', 'VMSizeTypesStandardD13V2Promo', 'VMSizeTypesStandardD14', 'VMSizeTypesStandardD14V2', 'VMSizeTypesStandardD14V2Promo', 'VMSizeTypesStandardD15V2', 'VMSizeTypesStandardD16V3', 'VMSizeTypesStandardD16sV3', 'VMSizeTypesStandardD1V2', 'VMSizeTypesStandardD2', 'VMSizeTypesStandardD2V2', 'VMSizeTypesStandardD2V2Promo', 'VMSizeTypesStandardD2V3', 'VMSizeTypesStandardD2sV3', 'VMSizeTypesStandardD3', 'VMSizeTypesStandardD32V3', 'VMSizeTypesStandardD32sV3', 'VMSizeTypesStandardD3V2', 'VMSizeTypesStandardD3V2Promo', 'VMSizeTypesStandardD4', 'VMSizeTypesStandardD4V2', 'VMSizeTypesStandardD4V2Promo', 'VMSizeTypesStandardD4V3', 'VMSizeTypesStandardD4sV3', 'VMSizeTypesStandardD5V2', 'VMSizeTypesStandardD5V2Promo', 'VMSizeTypesStandardD64V3', 'VMSizeTypesStandardD64sV3', 'VMSizeTypesStandardD8V3', 'VMSizeTypesStandardD8sV3', 'VMSizeTypesStandardDS1', 'VMSizeTypesStandardDS11', 'VMSizeTypesStandardDS11V2', 'VMSizeTypesStandardDS11V2Promo', 'VMSizeTypesStandardDS12', 'VMSizeTypesStandardDS12V2', 'VMSizeTypesStandardDS12V2Promo', 'VMSizeTypesStandardDS13', 'VMSizeTypesStandardDS132V2', 'VMSizeTypesStandardDS134V2', 'VMSizeTypesStandardDS13V2', 'VMSizeTypesStandardDS13V2Promo', 'VMSizeTypesStandardDS14', 'VMSizeTypesStandardDS144V2', 'VMSizeTypesStandardDS148V2', 'VMSizeTypesStandardDS14V2', 'VMSizeTypesStandardDS14V2Promo', 'VMSizeTypesStandardDS15V2', 'VMSizeTypesStandardDS1V2', 'VMSizeTypesStandardDS2', 'VMSizeTypesStandardDS2V2', 'VMSizeTypesStandardDS2V2Promo', 'VMSizeTypesStandardDS3', 'VMSizeTypesStandardDS3V2', 'VMSizeTypesStandardDS3V2Promo', 'VMSizeTypesStandardDS4', 'VMSizeTypesStandardDS4V2', 'VMSizeTypesStandardDS4V2Promo', 'VMSizeTypesStandardDS5V2', 'VMSizeTypesStandardDS5V2Promo', 'VMSizeTypesStandardE16V3', 'VMSizeTypesStandardE16sV3', 'VMSizeTypesStandardE2V3', 'VMSizeTypesStandardE2sV3', 'VMSizeTypesStandardE3216sV3', 'VMSizeTypesStandardE328sV3', 'VMSizeTypesStandardE32V3', 'VMSizeTypesStandardE32sV3', 'VMSizeTypesStandardE4V3', 'VMSizeTypesStandardE4sV3', 'VMSizeTypesStandardE6416sV3', 'VMSizeTypesStandardE6432sV3', 'VMSizeTypesStandardE64V3', 'VMSizeTypesStandardE64sV3', 'VMSizeTypesStandardE8V3', 'VMSizeTypesStandardE8sV3', 'VMSizeTypesStandardF1', 'VMSizeTypesStandardF16', 'VMSizeTypesStandardF16s', 'VMSizeTypesStandardF16sV2', 'VMSizeTypesStandardF1s', 'VMSizeTypesStandardF2', 'VMSizeTypesStandardF2s', 'VMSizeTypesStandardF2sV2', 'VMSizeTypesStandardF32sV2', 'VMSizeTypesStandardF4', 'VMSizeTypesStandardF4s', 'VMSizeTypesStandardF4sV2', 'VMSizeTypesStandardF64sV2', 'VMSizeTypesStandardF72sV2', 'VMSizeTypesStandardF8', 'VMSizeTypesStandardF8s', 'VMSizeTypesStandardF8sV2', 'VMSizeTypesStandardG1', 'VMSizeTypesStandardG2', 'VMSizeTypesStandardG3', 'VMSizeTypesStandardG4', 'VMSizeTypesStandardG5', 'VMSizeTypesStandardGS1', 'VMSizeTypesStandardGS2', 'VMSizeTypesStandardGS3', 'VMSizeTypesStandardGS4', 'VMSizeTypesStandardGS44', 'VMSizeTypesStandardGS48', 'VMSizeTypesStandardGS5', 'VMSizeTypesStandardGS516', 'VMSizeTypesStandardGS58', 'VMSizeTypesStandardH16', 'VMSizeTypesStandardH16m', 'VMSizeTypesStandardH16mr', 'VMSizeTypesStandardH16r', 'VMSizeTypesStandardH8', 'VMSizeTypesStandardH8m', 'VMSizeTypesStandardL16s', 'VMSizeTypesStandardL32s', 'VMSizeTypesStandardL4s', 'VMSizeTypesStandardL8s', 'VMSizeTypesStandardM12832ms', 'VMSizeTypesStandardM12864ms', 'VMSizeTypesStandardM128ms', 'VMSizeTypesStandardM128s', 'VMSizeTypesStandardM6416ms', 'VMSizeTypesStandardM6432ms', 'VMSizeTypesStandardM64ms', 'VMSizeTypesStandardM64s', 'VMSizeTypesStandardNC12', 'VMSizeTypesStandardNC12sV2', 'VMSizeTypesStandardNC12sV3', 'VMSizeTypesStandardNC24', 'VMSizeTypesStandardNC24r', 'VMSizeTypesStandardNC24rsV2', 'VMSizeTypesStandardNC24rsV3', 'VMSizeTypesStandardNC24sV2', 'VMSizeTypesStandardNC24sV3', 'VMSizeTypesStandardNC6', 'VMSizeTypesStandardNC6sV2', 'VMSizeTypesStandardNC6sV3', 'VMSizeTypesStandardND12s', 'VMSizeTypesStandardND24rs', 'VMSizeTypesStandardND24s', 'VMSizeTypesStandardND6s', 'VMSizeTypesStandardNV12', 'VMSizeTypesStandardNV24', 'VMSizeTypesStandardNV6'
+ VMSize VMSizeTypes `json:"vmSize,omitempty"`
+ // OsDiskSizeGB - OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified.
+ OsDiskSizeGB *int32 `json:"osDiskSizeGB,omitempty"`
+ // VnetSubnetID - VNet SubnetID specifies the VNet's subnet identifier.
+ VnetSubnetID *string `json:"vnetSubnetID,omitempty"`
+ // MaxPods - Maximum number of pods that can run on a node.
+ MaxPods *int32 `json:"maxPods,omitempty"`
+ // OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
+ OsType OSType `json:"osType,omitempty"`
+ // MaxCount - Maximum number of nodes for auto-scaling
+ MaxCount *int32 `json:"maxCount,omitempty"`
+ // MinCount - Minimum number of nodes for auto-scaling
+ MinCount *int32 `json:"minCount,omitempty"`
+ // EnableAutoScaling - Whether to enable auto-scaler
+ EnableAutoScaling *bool `json:"enableAutoScaling,omitempty"`
+ // Type - AgentPoolType represents types of an agent pool. Possible values include: 'VirtualMachineScaleSets', 'AvailabilitySet'
+ Type AgentPoolType `json:"type,omitempty"`
+ // OrchestratorVersion - Version of orchestrator specified when creating the managed cluster.
+ OrchestratorVersion *string `json:"orchestratorVersion,omitempty"`
+ // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty"`
+ // AvailabilityZones - (PREVIEW) Availability zones for nodes. Must use VirtualMachineScaleSets AgentPoolType.
+ AvailabilityZones *[]string `json:"availabilityZones,omitempty"`
+ // EnableNodePublicIP - Enable public IP for nodes
+ EnableNodePublicIP *bool `json:"enableNodePublicIP,omitempty"`
+ // ScaleSetPriority - ScaleSetPriority to be used to specify virtual machine scale set priority. Default to regular. Possible values include: 'Low', 'Regular'
+ ScaleSetPriority ScaleSetPriority `json:"scaleSetPriority,omitempty"`
+ // ScaleSetEvictionPolicy - ScaleSetEvictionPolicy to be used to specify eviction policy for low priority virtual machine scale set. Default to Delete. Possible values include: 'Delete', 'Deallocate'
+ ScaleSetEvictionPolicy ScaleSetEvictionPolicy `json:"scaleSetEvictionPolicy,omitempty"`
+ // NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
+ NodeTaints *[]string `json:"nodeTaints,omitempty"`
+}
+
+// ManagedClusterAPIServerAccessProfile access profile for managed cluster API server.
+type ManagedClusterAPIServerAccessProfile struct {
+ // AuthorizedIPRanges - Authorized IP Ranges to kubernetes API server.
+ AuthorizedIPRanges *[]string `json:"authorizedIPRanges,omitempty"`
+ // EnablePrivateCluster - Whether to create the cluster as a private cluster or not.
+ EnablePrivateCluster *bool `json:"enablePrivateCluster,omitempty"`
+}
+
+// ManagedClusterIdentity identity for the managed cluster.
+type ManagedClusterIdentity struct {
+ // PrincipalID - READ-ONLY; The principal id of the system assigned identity which is used by master components.
+ PrincipalID *string `json:"principalId,omitempty"`
+ // TenantID - READ-ONLY; The tenant id of the system assigned identity which is used by master components.
+ TenantID *string `json:"tenantId,omitempty"`
+ // Type - The type of identity used for the managed cluster. Type 'SystemAssigned' will use an implicitly created identity in master components and an auto-created user assigned identity in MC_ resource group in agent nodes. Type 'None' will not use MSI for the managed cluster, service principal will be used instead. Possible values include: 'SystemAssigned', 'None'
+ Type ResourceIdentityType `json:"type,omitempty"`
+}
+
+// ManagedClusterListResult the response from the List Managed Clusters operation.
+type ManagedClusterListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of managed clusters.
+ Value *[]ManagedCluster `json:"value,omitempty"`
+ // NextLink - READ-ONLY; The URL to get the next set of managed cluster results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// ManagedClusterListResultIterator provides access to a complete listing of ManagedCluster values.
+type ManagedClusterListResultIterator struct {
+ i int
+ page ManagedClusterListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *ManagedClusterListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClusterListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *ManagedClusterListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter ManagedClusterListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter ManagedClusterListResultIterator) Response() ManagedClusterListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter ManagedClusterListResultIterator) Value() ManagedCluster {
+ if !iter.page.NotDone() {
+ return ManagedCluster{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the ManagedClusterListResultIterator type.
+func NewManagedClusterListResultIterator(page ManagedClusterListResultPage) ManagedClusterListResultIterator {
+ return ManagedClusterListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (mclr ManagedClusterListResult) IsEmpty() bool {
+ return mclr.Value == nil || len(*mclr.Value) == 0
+}
+
+// managedClusterListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (mclr ManagedClusterListResult) managedClusterListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if mclr.NextLink == nil || len(to.String(mclr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(mclr.NextLink)))
+}
+
+// ManagedClusterListResultPage contains a page of ManagedCluster values.
+type ManagedClusterListResultPage struct {
+ fn func(context.Context, ManagedClusterListResult) (ManagedClusterListResult, error)
+ mclr ManagedClusterListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *ManagedClusterListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClusterListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.mclr)
+ if err != nil {
+ return err
+ }
+ page.mclr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *ManagedClusterListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page ManagedClusterListResultPage) NotDone() bool {
+ return !page.mclr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page ManagedClusterListResultPage) Response() ManagedClusterListResult {
+ return page.mclr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page ManagedClusterListResultPage) Values() []ManagedCluster {
+ if page.mclr.IsEmpty() {
+ return nil
+ }
+ return *page.mclr.Value
+}
+
+// Creates a new instance of the ManagedClusterListResultPage type.
+func NewManagedClusterListResultPage(getNextPage func(context.Context, ManagedClusterListResult) (ManagedClusterListResult, error)) ManagedClusterListResultPage {
+ return ManagedClusterListResultPage{fn: getNextPage}
+}
+
+// ManagedClusterLoadBalancerProfile profile of the managed cluster load balancer
+type ManagedClusterLoadBalancerProfile struct {
+ // ManagedOutboundIPs - Desired managed outbound IPs for the cluster load balancer.
+ ManagedOutboundIPs *ManagedClusterLoadBalancerProfileManagedOutboundIPs `json:"managedOutboundIPs,omitempty"`
+ // OutboundIPPrefixes - Desired outbound IP Prefix resources for the cluster load balancer.
+ OutboundIPPrefixes *ManagedClusterLoadBalancerProfileOutboundIPPrefixes `json:"outboundIPPrefixes,omitempty"`
+ // OutboundIPs - Desired outbound IP resources for the cluster load balancer.
+ OutboundIPs *ManagedClusterLoadBalancerProfileOutboundIPs `json:"outboundIPs,omitempty"`
+ // EffectiveOutboundIPs - The effective outbound IP resources of the cluster load balancer.
+ EffectiveOutboundIPs *[]ResourceReference `json:"effectiveOutboundIPs,omitempty"`
+}
+
+// ManagedClusterLoadBalancerProfileManagedOutboundIPs desired managed outbound IPs for the cluster load
+// balancer.
+type ManagedClusterLoadBalancerProfileManagedOutboundIPs struct {
+ // Count - Desired number of outbound IP created/managed by Azure for the cluster load balancer. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.
+ Count *int32 `json:"count,omitempty"`
+}
+
+// ManagedClusterLoadBalancerProfileOutboundIPPrefixes desired outbound IP Prefix resources for the cluster
+// load balancer.
+type ManagedClusterLoadBalancerProfileOutboundIPPrefixes struct {
+ // PublicIPPrefixes - A list of public IP prefix resources.
+ PublicIPPrefixes *[]ResourceReference `json:"publicIPPrefixes,omitempty"`
+}
+
+// ManagedClusterLoadBalancerProfileOutboundIPs desired outbound IP resources for the cluster load
+// balancer.
+type ManagedClusterLoadBalancerProfileOutboundIPs struct {
+ // PublicIPs - A list of public IP resources.
+ PublicIPs *[]ResourceReference `json:"publicIPs,omitempty"`
+}
+
+// ManagedClusterPoolUpgradeProfile the list of available upgrade versions.
+type ManagedClusterPoolUpgradeProfile struct {
+ // KubernetesVersion - Kubernetes version (major, minor, patch).
+ KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
+ // Name - Pool name.
+ Name *string `json:"name,omitempty"`
+ // OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
+ OsType OSType `json:"osType,omitempty"`
+ // Upgrades - List of orchestrator types and versions available for upgrade.
+ Upgrades *[]ManagedClusterPoolUpgradeProfileUpgradesItem `json:"upgrades,omitempty"`
+}
+
+// ManagedClusterPoolUpgradeProfileUpgradesItem ...
+type ManagedClusterPoolUpgradeProfileUpgradesItem struct {
+ // KubernetesVersion - Kubernetes version (major, minor, patch).
+ KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
+ // IsPreview - Whether Kubernetes version is currently in preview.
+ IsPreview *bool `json:"isPreview,omitempty"`
+}
+
+// ManagedClusterProperties properties of the managed cluster.
+type ManagedClusterProperties struct {
+ // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty"`
+ // MaxAgentPools - READ-ONLY; The max number of agent pools for the managed cluster.
+ MaxAgentPools *int32 `json:"maxAgentPools,omitempty"`
+ // KubernetesVersion - Version of Kubernetes specified when creating the managed cluster.
+ KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
+ // DNSPrefix - DNS prefix specified when creating the managed cluster.
+ DNSPrefix *string `json:"dnsPrefix,omitempty"`
+ // Fqdn - READ-ONLY; FQDN for the master pool.
+ Fqdn *string `json:"fqdn,omitempty"`
+ // PrivateFQDN - READ-ONLY; FQDN of private cluster.
+ PrivateFQDN *string `json:"privateFQDN,omitempty"`
+ // AgentPoolProfiles - Properties of the agent pool.
+ AgentPoolProfiles *[]ManagedClusterAgentPoolProfile `json:"agentPoolProfiles,omitempty"`
+ // LinuxProfile - Profile for Linux VMs in the container service cluster.
+ LinuxProfile *LinuxProfile `json:"linuxProfile,omitempty"`
+ // WindowsProfile - Profile for Windows VMs in the container service cluster.
+ WindowsProfile *ManagedClusterWindowsProfile `json:"windowsProfile,omitempty"`
+ // ServicePrincipalProfile - Information about a service principal identity for the cluster to use for manipulating Azure APIs.
+ ServicePrincipalProfile *ManagedClusterServicePrincipalProfile `json:"servicePrincipalProfile,omitempty"`
+ // AddonProfiles - Profile of managed cluster add-on.
+ AddonProfiles map[string]*ManagedClusterAddonProfile `json:"addonProfiles"`
+ // NodeResourceGroup - Name of the resource group containing agent pool nodes.
+ NodeResourceGroup *string `json:"nodeResourceGroup,omitempty"`
+ // EnableRBAC - Whether to enable Kubernetes Role-Based Access Control.
+ EnableRBAC *bool `json:"enableRBAC,omitempty"`
+ // EnablePodSecurityPolicy - (PREVIEW) Whether to enable Kubernetes Pod security policy.
+ EnablePodSecurityPolicy *bool `json:"enablePodSecurityPolicy,omitempty"`
+ // NetworkProfile - Profile of network configuration.
+ NetworkProfile *NetworkProfileType `json:"networkProfile,omitempty"`
+ // AadProfile - Profile of Azure Active Directory configuration.
+ AadProfile *ManagedClusterAADProfile `json:"aadProfile,omitempty"`
+ // APIServerAccessProfile - Access profile for managed cluster API server.
+ APIServerAccessProfile *ManagedClusterAPIServerAccessProfile `json:"apiServerAccessProfile,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ManagedClusterProperties.
+func (mcp ManagedClusterProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if mcp.KubernetesVersion != nil {
+ objectMap["kubernetesVersion"] = mcp.KubernetesVersion
+ }
+ if mcp.DNSPrefix != nil {
+ objectMap["dnsPrefix"] = mcp.DNSPrefix
+ }
+ if mcp.AgentPoolProfiles != nil {
+ objectMap["agentPoolProfiles"] = mcp.AgentPoolProfiles
+ }
+ if mcp.LinuxProfile != nil {
+ objectMap["linuxProfile"] = mcp.LinuxProfile
+ }
+ if mcp.WindowsProfile != nil {
+ objectMap["windowsProfile"] = mcp.WindowsProfile
+ }
+ if mcp.ServicePrincipalProfile != nil {
+ objectMap["servicePrincipalProfile"] = mcp.ServicePrincipalProfile
+ }
+ if mcp.AddonProfiles != nil {
+ objectMap["addonProfiles"] = mcp.AddonProfiles
+ }
+ if mcp.NodeResourceGroup != nil {
+ objectMap["nodeResourceGroup"] = mcp.NodeResourceGroup
+ }
+ if mcp.EnableRBAC != nil {
+ objectMap["enableRBAC"] = mcp.EnableRBAC
+ }
+ if mcp.EnablePodSecurityPolicy != nil {
+ objectMap["enablePodSecurityPolicy"] = mcp.EnablePodSecurityPolicy
+ }
+ if mcp.NetworkProfile != nil {
+ objectMap["networkProfile"] = mcp.NetworkProfile
+ }
+ if mcp.AadProfile != nil {
+ objectMap["aadProfile"] = mcp.AadProfile
+ }
+ if mcp.APIServerAccessProfile != nil {
+ objectMap["apiServerAccessProfile"] = mcp.APIServerAccessProfile
+ }
+ return json.Marshal(objectMap)
+}
+
+// ManagedClustersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ManagedClustersCreateOrUpdateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ManagedClustersCreateOrUpdateFuture) Result(client ManagedClustersClient) (mc ManagedCluster, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersCreateOrUpdateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.ManagedClustersCreateOrUpdateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if mc.Response.Response, err = future.GetResult(sender); err == nil && mc.Response.Response.StatusCode != http.StatusNoContent {
+ mc, err = client.CreateOrUpdateResponder(mc.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersCreateOrUpdateFuture", "Result", mc.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// ManagedClustersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type ManagedClustersDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ManagedClustersDeleteFuture) Result(client ManagedClustersClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.ManagedClustersDeleteFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// ManagedClusterServicePrincipalProfile information about a service principal identity for the cluster to
+// use for manipulating Azure APIs.
+type ManagedClusterServicePrincipalProfile struct {
+ // ClientID - The ID for the service principal.
+ ClientID *string `json:"clientId,omitempty"`
+ // Secret - The secret password associated with the service principal in plain text.
+ Secret *string `json:"secret,omitempty"`
+}
+
+// ManagedClustersResetAADProfileFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ManagedClustersResetAADProfileFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ManagedClustersResetAADProfileFuture) Result(client ManagedClustersClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersResetAADProfileFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.ManagedClustersResetAADProfileFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// ManagedClustersResetServicePrincipalProfileFuture an abstraction for monitoring and retrieving the
+// results of a long-running operation.
+type ManagedClustersResetServicePrincipalProfileFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ManagedClustersResetServicePrincipalProfileFuture) Result(client ManagedClustersClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersResetServicePrincipalProfileFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.ManagedClustersResetServicePrincipalProfileFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// ManagedClustersRotateClusterCertificatesFuture an abstraction for monitoring and retrieving the results
+// of a long-running operation.
+type ManagedClustersRotateClusterCertificatesFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ManagedClustersRotateClusterCertificatesFuture) Result(client ManagedClustersClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersRotateClusterCertificatesFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.ManagedClustersRotateClusterCertificatesFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// ManagedClustersUpdateTagsFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ManagedClustersUpdateTagsFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ManagedClustersUpdateTagsFuture) Result(client ManagedClustersClient) (mc ManagedCluster, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersUpdateTagsFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.ManagedClustersUpdateTagsFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if mc.Response.Response, err = future.GetResult(sender); err == nil && mc.Response.Response.StatusCode != http.StatusNoContent {
+ mc, err = client.UpdateTagsResponder(mc.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersUpdateTagsFuture", "Result", mc.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// ManagedClusterUpgradeProfile the list of available upgrades for compute pools.
+type ManagedClusterUpgradeProfile struct {
+ autorest.Response `json:"-"`
+ // ID - READ-ONLY; Id of upgrade profile.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of upgrade profile.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of upgrade profile.
+ Type *string `json:"type,omitempty"`
+ // ManagedClusterUpgradeProfileProperties - Properties of upgrade profile.
+ *ManagedClusterUpgradeProfileProperties `json:"properties,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ManagedClusterUpgradeProfile.
+func (mcup ManagedClusterUpgradeProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if mcup.ManagedClusterUpgradeProfileProperties != nil {
+ objectMap["properties"] = mcup.ManagedClusterUpgradeProfileProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ManagedClusterUpgradeProfile struct.
+func (mcup *ManagedClusterUpgradeProfile) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ mcup.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ mcup.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ mcup.Type = &typeVar
+ }
+ case "properties":
+ if v != nil {
+ var managedClusterUpgradeProfileProperties ManagedClusterUpgradeProfileProperties
+ err = json.Unmarshal(*v, &managedClusterUpgradeProfileProperties)
+ if err != nil {
+ return err
+ }
+ mcup.ManagedClusterUpgradeProfileProperties = &managedClusterUpgradeProfileProperties
+ }
+ }
+ }
+
+ return nil
+}
+
+// ManagedClusterUpgradeProfileProperties control plane and agent pool upgrade profiles.
+type ManagedClusterUpgradeProfileProperties struct {
+ // ControlPlaneProfile - The list of available upgrade versions for the control plane.
+ ControlPlaneProfile *ManagedClusterPoolUpgradeProfile `json:"controlPlaneProfile,omitempty"`
+ // AgentPoolProfiles - The list of available upgrade versions for agent pools.
+ AgentPoolProfiles *[]ManagedClusterPoolUpgradeProfile `json:"agentPoolProfiles,omitempty"`
+}
+
+// ManagedClusterWindowsProfile profile for Windows VMs in the container service cluster.
+type ManagedClusterWindowsProfile struct {
+ // AdminUsername - The administrator username to use for Windows VMs.
+ AdminUsername *string `json:"adminUsername,omitempty"`
+ // AdminPassword - The administrator password to use for Windows VMs.
+ AdminPassword *string `json:"adminPassword,omitempty"`
+}
+
+// MasterProfile profile for the container service master.
+type MasterProfile struct {
+ // Count - Number of masters (VMs) in the container service cluster. Allowed values are 1, 3, and 5. The default value is 1.
+ Count *int32 `json:"count,omitempty"`
+ // DNSPrefix - DNS prefix to be used to create the FQDN for the master pool.
+ DNSPrefix *string `json:"dnsPrefix,omitempty"`
+ // VMSize - Size of agent VMs. Possible values include: 'VMSizeTypesStandardA1', 'VMSizeTypesStandardA10', 'VMSizeTypesStandardA11', 'VMSizeTypesStandardA1V2', 'VMSizeTypesStandardA2', 'VMSizeTypesStandardA2V2', 'VMSizeTypesStandardA2mV2', 'VMSizeTypesStandardA3', 'VMSizeTypesStandardA4', 'VMSizeTypesStandardA4V2', 'VMSizeTypesStandardA4mV2', 'VMSizeTypesStandardA5', 'VMSizeTypesStandardA6', 'VMSizeTypesStandardA7', 'VMSizeTypesStandardA8', 'VMSizeTypesStandardA8V2', 'VMSizeTypesStandardA8mV2', 'VMSizeTypesStandardA9', 'VMSizeTypesStandardB2ms', 'VMSizeTypesStandardB2s', 'VMSizeTypesStandardB4ms', 'VMSizeTypesStandardB8ms', 'VMSizeTypesStandardD1', 'VMSizeTypesStandardD11', 'VMSizeTypesStandardD11V2', 'VMSizeTypesStandardD11V2Promo', 'VMSizeTypesStandardD12', 'VMSizeTypesStandardD12V2', 'VMSizeTypesStandardD12V2Promo', 'VMSizeTypesStandardD13', 'VMSizeTypesStandardD13V2', 'VMSizeTypesStandardD13V2Promo', 'VMSizeTypesStandardD14', 'VMSizeTypesStandardD14V2', 'VMSizeTypesStandardD14V2Promo', 'VMSizeTypesStandardD15V2', 'VMSizeTypesStandardD16V3', 'VMSizeTypesStandardD16sV3', 'VMSizeTypesStandardD1V2', 'VMSizeTypesStandardD2', 'VMSizeTypesStandardD2V2', 'VMSizeTypesStandardD2V2Promo', 'VMSizeTypesStandardD2V3', 'VMSizeTypesStandardD2sV3', 'VMSizeTypesStandardD3', 'VMSizeTypesStandardD32V3', 'VMSizeTypesStandardD32sV3', 'VMSizeTypesStandardD3V2', 'VMSizeTypesStandardD3V2Promo', 'VMSizeTypesStandardD4', 'VMSizeTypesStandardD4V2', 'VMSizeTypesStandardD4V2Promo', 'VMSizeTypesStandardD4V3', 'VMSizeTypesStandardD4sV3', 'VMSizeTypesStandardD5V2', 'VMSizeTypesStandardD5V2Promo', 'VMSizeTypesStandardD64V3', 'VMSizeTypesStandardD64sV3', 'VMSizeTypesStandardD8V3', 'VMSizeTypesStandardD8sV3', 'VMSizeTypesStandardDS1', 'VMSizeTypesStandardDS11', 'VMSizeTypesStandardDS11V2', 'VMSizeTypesStandardDS11V2Promo', 'VMSizeTypesStandardDS12', 'VMSizeTypesStandardDS12V2', 'VMSizeTypesStandardDS12V2Promo', 'VMSizeTypesStandardDS13', 'VMSizeTypesStandardDS132V2', 'VMSizeTypesStandardDS134V2', 'VMSizeTypesStandardDS13V2', 'VMSizeTypesStandardDS13V2Promo', 'VMSizeTypesStandardDS14', 'VMSizeTypesStandardDS144V2', 'VMSizeTypesStandardDS148V2', 'VMSizeTypesStandardDS14V2', 'VMSizeTypesStandardDS14V2Promo', 'VMSizeTypesStandardDS15V2', 'VMSizeTypesStandardDS1V2', 'VMSizeTypesStandardDS2', 'VMSizeTypesStandardDS2V2', 'VMSizeTypesStandardDS2V2Promo', 'VMSizeTypesStandardDS3', 'VMSizeTypesStandardDS3V2', 'VMSizeTypesStandardDS3V2Promo', 'VMSizeTypesStandardDS4', 'VMSizeTypesStandardDS4V2', 'VMSizeTypesStandardDS4V2Promo', 'VMSizeTypesStandardDS5V2', 'VMSizeTypesStandardDS5V2Promo', 'VMSizeTypesStandardE16V3', 'VMSizeTypesStandardE16sV3', 'VMSizeTypesStandardE2V3', 'VMSizeTypesStandardE2sV3', 'VMSizeTypesStandardE3216sV3', 'VMSizeTypesStandardE328sV3', 'VMSizeTypesStandardE32V3', 'VMSizeTypesStandardE32sV3', 'VMSizeTypesStandardE4V3', 'VMSizeTypesStandardE4sV3', 'VMSizeTypesStandardE6416sV3', 'VMSizeTypesStandardE6432sV3', 'VMSizeTypesStandardE64V3', 'VMSizeTypesStandardE64sV3', 'VMSizeTypesStandardE8V3', 'VMSizeTypesStandardE8sV3', 'VMSizeTypesStandardF1', 'VMSizeTypesStandardF16', 'VMSizeTypesStandardF16s', 'VMSizeTypesStandardF16sV2', 'VMSizeTypesStandardF1s', 'VMSizeTypesStandardF2', 'VMSizeTypesStandardF2s', 'VMSizeTypesStandardF2sV2', 'VMSizeTypesStandardF32sV2', 'VMSizeTypesStandardF4', 'VMSizeTypesStandardF4s', 'VMSizeTypesStandardF4sV2', 'VMSizeTypesStandardF64sV2', 'VMSizeTypesStandardF72sV2', 'VMSizeTypesStandardF8', 'VMSizeTypesStandardF8s', 'VMSizeTypesStandardF8sV2', 'VMSizeTypesStandardG1', 'VMSizeTypesStandardG2', 'VMSizeTypesStandardG3', 'VMSizeTypesStandardG4', 'VMSizeTypesStandardG5', 'VMSizeTypesStandardGS1', 'VMSizeTypesStandardGS2', 'VMSizeTypesStandardGS3', 'VMSizeTypesStandardGS4', 'VMSizeTypesStandardGS44', 'VMSizeTypesStandardGS48', 'VMSizeTypesStandardGS5', 'VMSizeTypesStandardGS516', 'VMSizeTypesStandardGS58', 'VMSizeTypesStandardH16', 'VMSizeTypesStandardH16m', 'VMSizeTypesStandardH16mr', 'VMSizeTypesStandardH16r', 'VMSizeTypesStandardH8', 'VMSizeTypesStandardH8m', 'VMSizeTypesStandardL16s', 'VMSizeTypesStandardL32s', 'VMSizeTypesStandardL4s', 'VMSizeTypesStandardL8s', 'VMSizeTypesStandardM12832ms', 'VMSizeTypesStandardM12864ms', 'VMSizeTypesStandardM128ms', 'VMSizeTypesStandardM128s', 'VMSizeTypesStandardM6416ms', 'VMSizeTypesStandardM6432ms', 'VMSizeTypesStandardM64ms', 'VMSizeTypesStandardM64s', 'VMSizeTypesStandardNC12', 'VMSizeTypesStandardNC12sV2', 'VMSizeTypesStandardNC12sV3', 'VMSizeTypesStandardNC24', 'VMSizeTypesStandardNC24r', 'VMSizeTypesStandardNC24rsV2', 'VMSizeTypesStandardNC24rsV3', 'VMSizeTypesStandardNC24sV2', 'VMSizeTypesStandardNC24sV3', 'VMSizeTypesStandardNC6', 'VMSizeTypesStandardNC6sV2', 'VMSizeTypesStandardNC6sV3', 'VMSizeTypesStandardND12s', 'VMSizeTypesStandardND24rs', 'VMSizeTypesStandardND24s', 'VMSizeTypesStandardND6s', 'VMSizeTypesStandardNV12', 'VMSizeTypesStandardNV24', 'VMSizeTypesStandardNV6'
+ VMSize VMSizeTypes `json:"vmSize,omitempty"`
+ // OsDiskSizeGB - OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified.
+ OsDiskSizeGB *int32 `json:"osDiskSizeGB,omitempty"`
+ // VnetSubnetID - VNet SubnetID specifies the VNet's subnet identifier.
+ VnetSubnetID *string `json:"vnetSubnetID,omitempty"`
+ // FirstConsecutiveStaticIP - FirstConsecutiveStaticIP used to specify the first static ip of masters.
+ FirstConsecutiveStaticIP *string `json:"firstConsecutiveStaticIP,omitempty"`
+ // StorageProfile - Storage profile specifies what kind of storage used. Choose from StorageAccount and ManagedDisks. Leave it empty, we will choose for you based on the orchestrator choice. Possible values include: 'StorageAccount', 'ManagedDisks'
+ StorageProfile StorageProfileTypes `json:"storageProfile,omitempty"`
+ // Fqdn - READ-ONLY; FQDN for the master pool.
+ Fqdn *string `json:"fqdn,omitempty"`
+}
+
+// NetworkProfile represents the OpenShift networking configuration
+type NetworkProfile struct {
+ // VnetCidr - CIDR for the OpenShift Vnet.
+ VnetCidr *string `json:"vnetCidr,omitempty"`
+ // PeerVnetID - CIDR of the Vnet to peer.
+ PeerVnetID *string `json:"peerVnetId,omitempty"`
+ // VnetID - ID of the Vnet created for OSA cluster.
+ VnetID *string `json:"vnetId,omitempty"`
+}
+
+// NetworkProfileType profile of network configuration.
+type NetworkProfileType struct {
+ // NetworkPlugin - Network plugin used for building Kubernetes network. Possible values include: 'Azure', 'Kubenet'
+ NetworkPlugin NetworkPlugin `json:"networkPlugin,omitempty"`
+ // NetworkPolicy - Network policy used for building Kubernetes network. Possible values include: 'NetworkPolicyCalico', 'NetworkPolicyAzure'
+ NetworkPolicy NetworkPolicy `json:"networkPolicy,omitempty"`
+ // PodCidr - A CIDR notation IP range from which to assign pod IPs when kubenet is used.
+ PodCidr *string `json:"podCidr,omitempty"`
+ // ServiceCidr - A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges.
+ ServiceCidr *string `json:"serviceCidr,omitempty"`
+ // DNSServiceIP - An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr.
+ DNSServiceIP *string `json:"dnsServiceIP,omitempty"`
+ // DockerBridgeCidr - A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range.
+ DockerBridgeCidr *string `json:"dockerBridgeCidr,omitempty"`
+ // LoadBalancerSku - The load balancer sku for the managed cluster. Possible values include: 'Standard', 'Basic'
+ LoadBalancerSku LoadBalancerSku `json:"loadBalancerSku,omitempty"`
+ // LoadBalancerProfile - Profile of the cluster load balancer.
+ LoadBalancerProfile *ManagedClusterLoadBalancerProfile `json:"loadBalancerProfile,omitempty"`
+}
+
+// OpenShiftManagedCluster openShift Managed cluster.
+type OpenShiftManagedCluster struct {
+ autorest.Response `json:"-"`
+ // Plan - Define the resource plan as required by ARM for billing purposes
+ Plan *PurchasePlan `json:"plan,omitempty"`
+ // OpenShiftManagedClusterProperties - Properties of a OpenShift managed cluster.
+ *OpenShiftManagedClusterProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; 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 OpenShiftManagedCluster.
+func (osmc OpenShiftManagedCluster) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if osmc.Plan != nil {
+ objectMap["plan"] = osmc.Plan
+ }
+ if osmc.OpenShiftManagedClusterProperties != nil {
+ objectMap["properties"] = osmc.OpenShiftManagedClusterProperties
+ }
+ if osmc.Location != nil {
+ objectMap["location"] = osmc.Location
+ }
+ if osmc.Tags != nil {
+ objectMap["tags"] = osmc.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for OpenShiftManagedCluster struct.
+func (osmc *OpenShiftManagedCluster) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "plan":
+ if v != nil {
+ var plan PurchasePlan
+ err = json.Unmarshal(*v, &plan)
+ if err != nil {
+ return err
+ }
+ osmc.Plan = &plan
+ }
+ case "properties":
+ if v != nil {
+ var openShiftManagedClusterProperties OpenShiftManagedClusterProperties
+ err = json.Unmarshal(*v, &openShiftManagedClusterProperties)
+ if err != nil {
+ return err
+ }
+ osmc.OpenShiftManagedClusterProperties = &openShiftManagedClusterProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ osmc.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ osmc.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ osmc.Type = &typeVar
+ }
+ case "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ osmc.Location = &location
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ osmc.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// OpenShiftManagedClusterAADIdentityProvider defines the Identity provider for MS AAD.
+type OpenShiftManagedClusterAADIdentityProvider struct {
+ // ClientID - The clientId password associated with the provider.
+ ClientID *string `json:"clientId,omitempty"`
+ // Secret - The secret password associated with the provider.
+ Secret *string `json:"secret,omitempty"`
+ // TenantID - The tenantId associated with the provider.
+ TenantID *string `json:"tenantId,omitempty"`
+ // CustomerAdminGroupID - The groupId to be granted cluster admin role.
+ CustomerAdminGroupID *string `json:"customerAdminGroupId,omitempty"`
+ // Kind - Possible values include: 'KindOpenShiftManagedClusterBaseIdentityProvider', 'KindAADIdentityProvider'
+ Kind Kind `json:"kind,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for OpenShiftManagedClusterAADIdentityProvider.
+func (osmcaip OpenShiftManagedClusterAADIdentityProvider) MarshalJSON() ([]byte, error) {
+ osmcaip.Kind = KindAADIdentityProvider
+ objectMap := make(map[string]interface{})
+ if osmcaip.ClientID != nil {
+ objectMap["clientId"] = osmcaip.ClientID
+ }
+ if osmcaip.Secret != nil {
+ objectMap["secret"] = osmcaip.Secret
+ }
+ if osmcaip.TenantID != nil {
+ objectMap["tenantId"] = osmcaip.TenantID
+ }
+ if osmcaip.CustomerAdminGroupID != nil {
+ objectMap["customerAdminGroupId"] = osmcaip.CustomerAdminGroupID
+ }
+ if osmcaip.Kind != "" {
+ objectMap["kind"] = osmcaip.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsOpenShiftManagedClusterAADIdentityProvider is the BasicOpenShiftManagedClusterBaseIdentityProvider implementation for OpenShiftManagedClusterAADIdentityProvider.
+func (osmcaip OpenShiftManagedClusterAADIdentityProvider) AsOpenShiftManagedClusterAADIdentityProvider() (*OpenShiftManagedClusterAADIdentityProvider, bool) {
+ return &osmcaip, true
+}
+
+// AsOpenShiftManagedClusterBaseIdentityProvider is the BasicOpenShiftManagedClusterBaseIdentityProvider implementation for OpenShiftManagedClusterAADIdentityProvider.
+func (osmcaip OpenShiftManagedClusterAADIdentityProvider) AsOpenShiftManagedClusterBaseIdentityProvider() (*OpenShiftManagedClusterBaseIdentityProvider, bool) {
+ return nil, false
+}
+
+// AsBasicOpenShiftManagedClusterBaseIdentityProvider is the BasicOpenShiftManagedClusterBaseIdentityProvider implementation for OpenShiftManagedClusterAADIdentityProvider.
+func (osmcaip OpenShiftManagedClusterAADIdentityProvider) AsBasicOpenShiftManagedClusterBaseIdentityProvider() (BasicOpenShiftManagedClusterBaseIdentityProvider, bool) {
+ return &osmcaip, true
+}
+
+// OpenShiftManagedClusterAgentPoolProfile defines the configuration of the OpenShift cluster VMs.
+type OpenShiftManagedClusterAgentPoolProfile struct {
+ // Name - Unique name of the pool profile in the context of the subscription and resource group.
+ Name *string `json:"name,omitempty"`
+ // Count - Number of agents (VMs) to host docker containers.
+ Count *int32 `json:"count,omitempty"`
+ // VMSize - Size of agent VMs. Possible values include: 'StandardD2sV3', 'StandardD4sV3', 'StandardD8sV3', 'StandardD16sV3', 'StandardD32sV3', 'StandardD64sV3', 'StandardDS4V2', 'StandardDS5V2', 'StandardF8sV2', 'StandardF16sV2', 'StandardF32sV2', 'StandardF64sV2', 'StandardF72sV2', 'StandardF8s', 'StandardF16s', 'StandardE4sV3', 'StandardE8sV3', 'StandardE16sV3', 'StandardE20sV3', 'StandardE32sV3', 'StandardE64sV3', 'StandardGS2', 'StandardGS3', 'StandardGS4', 'StandardGS5', 'StandardDS12V2', 'StandardDS13V2', 'StandardDS14V2', 'StandardDS15V2', 'StandardL4s', 'StandardL8s', 'StandardL16s', 'StandardL32s'
+ VMSize OpenShiftContainerServiceVMSize `json:"vmSize,omitempty"`
+ // SubnetCidr - Subnet CIDR for the peering.
+ SubnetCidr *string `json:"subnetCidr,omitempty"`
+ // OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
+ OsType OSType `json:"osType,omitempty"`
+ // Role - Define the role of the AgentPoolProfile. Possible values include: 'Compute', 'Infra'
+ Role OpenShiftAgentPoolProfileRole `json:"role,omitempty"`
+}
+
+// OpenShiftManagedClusterAuthProfile defines all possible authentication profiles for the OpenShift
+// cluster.
+type OpenShiftManagedClusterAuthProfile struct {
+ // IdentityProviders - Type of authentication profile to use.
+ IdentityProviders *[]OpenShiftManagedClusterIdentityProvider `json:"identityProviders,omitempty"`
+}
+
+// BasicOpenShiftManagedClusterBaseIdentityProvider structure for any Identity provider.
+type BasicOpenShiftManagedClusterBaseIdentityProvider interface {
+ AsOpenShiftManagedClusterAADIdentityProvider() (*OpenShiftManagedClusterAADIdentityProvider, bool)
+ AsOpenShiftManagedClusterBaseIdentityProvider() (*OpenShiftManagedClusterBaseIdentityProvider, bool)
+}
+
+// OpenShiftManagedClusterBaseIdentityProvider structure for any Identity provider.
+type OpenShiftManagedClusterBaseIdentityProvider struct {
+ // Kind - Possible values include: 'KindOpenShiftManagedClusterBaseIdentityProvider', 'KindAADIdentityProvider'
+ Kind Kind `json:"kind,omitempty"`
+}
+
+func unmarshalBasicOpenShiftManagedClusterBaseIdentityProvider(body []byte) (BasicOpenShiftManagedClusterBaseIdentityProvider, error) {
+ var m map[string]interface{}
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return nil, err
+ }
+
+ switch m["kind"] {
+ case string(KindAADIdentityProvider):
+ var osmcaip OpenShiftManagedClusterAADIdentityProvider
+ err := json.Unmarshal(body, &osmcaip)
+ return osmcaip, err
+ default:
+ var osmcbip OpenShiftManagedClusterBaseIdentityProvider
+ err := json.Unmarshal(body, &osmcbip)
+ return osmcbip, err
+ }
+}
+func unmarshalBasicOpenShiftManagedClusterBaseIdentityProviderArray(body []byte) ([]BasicOpenShiftManagedClusterBaseIdentityProvider, error) {
+ var rawMessages []*json.RawMessage
+ err := json.Unmarshal(body, &rawMessages)
+ if err != nil {
+ return nil, err
+ }
+
+ osmcbipArray := make([]BasicOpenShiftManagedClusterBaseIdentityProvider, len(rawMessages))
+
+ for index, rawMessage := range rawMessages {
+ osmcbip, err := unmarshalBasicOpenShiftManagedClusterBaseIdentityProvider(*rawMessage)
+ if err != nil {
+ return nil, err
+ }
+ osmcbipArray[index] = osmcbip
+ }
+ return osmcbipArray, nil
+}
+
+// MarshalJSON is the custom marshaler for OpenShiftManagedClusterBaseIdentityProvider.
+func (osmcbip OpenShiftManagedClusterBaseIdentityProvider) MarshalJSON() ([]byte, error) {
+ osmcbip.Kind = KindOpenShiftManagedClusterBaseIdentityProvider
+ objectMap := make(map[string]interface{})
+ if osmcbip.Kind != "" {
+ objectMap["kind"] = osmcbip.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsOpenShiftManagedClusterAADIdentityProvider is the BasicOpenShiftManagedClusterBaseIdentityProvider implementation for OpenShiftManagedClusterBaseIdentityProvider.
+func (osmcbip OpenShiftManagedClusterBaseIdentityProvider) AsOpenShiftManagedClusterAADIdentityProvider() (*OpenShiftManagedClusterAADIdentityProvider, bool) {
+ return nil, false
+}
+
+// AsOpenShiftManagedClusterBaseIdentityProvider is the BasicOpenShiftManagedClusterBaseIdentityProvider implementation for OpenShiftManagedClusterBaseIdentityProvider.
+func (osmcbip OpenShiftManagedClusterBaseIdentityProvider) AsOpenShiftManagedClusterBaseIdentityProvider() (*OpenShiftManagedClusterBaseIdentityProvider, bool) {
+ return &osmcbip, true
+}
+
+// AsBasicOpenShiftManagedClusterBaseIdentityProvider is the BasicOpenShiftManagedClusterBaseIdentityProvider implementation for OpenShiftManagedClusterBaseIdentityProvider.
+func (osmcbip OpenShiftManagedClusterBaseIdentityProvider) AsBasicOpenShiftManagedClusterBaseIdentityProvider() (BasicOpenShiftManagedClusterBaseIdentityProvider, bool) {
+ return &osmcbip, true
+}
+
+// OpenShiftManagedClusterIdentityProvider defines the configuration of the identity providers to be used
+// in the OpenShift cluster.
+type OpenShiftManagedClusterIdentityProvider struct {
+ // Name - Name of the provider.
+ Name *string `json:"name,omitempty"`
+ // Provider - Configuration of the provider.
+ Provider BasicOpenShiftManagedClusterBaseIdentityProvider `json:"provider,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for OpenShiftManagedClusterIdentityProvider struct.
+func (osmcip *OpenShiftManagedClusterIdentityProvider) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ osmcip.Name = &name
+ }
+ case "provider":
+ if v != nil {
+ provider, err := unmarshalBasicOpenShiftManagedClusterBaseIdentityProvider(*v)
+ if err != nil {
+ return err
+ }
+ osmcip.Provider = provider
+ }
+ }
+ }
+
+ return nil
+}
+
+// OpenShiftManagedClusterListResult the response from the List OpenShift Managed Clusters operation.
+type OpenShiftManagedClusterListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of OpenShift managed clusters.
+ Value *[]OpenShiftManagedCluster `json:"value,omitempty"`
+ // NextLink - READ-ONLY; The URL to get the next set of OpenShift managed cluster results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// OpenShiftManagedClusterListResultIterator provides access to a complete listing of
+// OpenShiftManagedCluster values.
+type OpenShiftManagedClusterListResultIterator struct {
+ i int
+ page OpenShiftManagedClusterListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *OpenShiftManagedClusterListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClusterListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *OpenShiftManagedClusterListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter OpenShiftManagedClusterListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter OpenShiftManagedClusterListResultIterator) Response() OpenShiftManagedClusterListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter OpenShiftManagedClusterListResultIterator) Value() OpenShiftManagedCluster {
+ if !iter.page.NotDone() {
+ return OpenShiftManagedCluster{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the OpenShiftManagedClusterListResultIterator type.
+func NewOpenShiftManagedClusterListResultIterator(page OpenShiftManagedClusterListResultPage) OpenShiftManagedClusterListResultIterator {
+ return OpenShiftManagedClusterListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (osmclr OpenShiftManagedClusterListResult) IsEmpty() bool {
+ return osmclr.Value == nil || len(*osmclr.Value) == 0
+}
+
+// openShiftManagedClusterListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (osmclr OpenShiftManagedClusterListResult) openShiftManagedClusterListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if osmclr.NextLink == nil || len(to.String(osmclr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(osmclr.NextLink)))
+}
+
+// OpenShiftManagedClusterListResultPage contains a page of OpenShiftManagedCluster values.
+type OpenShiftManagedClusterListResultPage struct {
+ fn func(context.Context, OpenShiftManagedClusterListResult) (OpenShiftManagedClusterListResult, error)
+ osmclr OpenShiftManagedClusterListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *OpenShiftManagedClusterListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClusterListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.osmclr)
+ if err != nil {
+ return err
+ }
+ page.osmclr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *OpenShiftManagedClusterListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page OpenShiftManagedClusterListResultPage) NotDone() bool {
+ return !page.osmclr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page OpenShiftManagedClusterListResultPage) Response() OpenShiftManagedClusterListResult {
+ return page.osmclr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page OpenShiftManagedClusterListResultPage) Values() []OpenShiftManagedCluster {
+ if page.osmclr.IsEmpty() {
+ return nil
+ }
+ return *page.osmclr.Value
+}
+
+// Creates a new instance of the OpenShiftManagedClusterListResultPage type.
+func NewOpenShiftManagedClusterListResultPage(getNextPage func(context.Context, OpenShiftManagedClusterListResult) (OpenShiftManagedClusterListResult, error)) OpenShiftManagedClusterListResultPage {
+ return OpenShiftManagedClusterListResultPage{fn: getNextPage}
+}
+
+// OpenShiftManagedClusterMasterPoolProfile openShiftManagedClusterMaterPoolProfile contains configuration
+// for OpenShift master VMs.
+type OpenShiftManagedClusterMasterPoolProfile struct {
+ // Name - Unique name of the master pool profile in the context of the subscription and resource group.
+ Name *string `json:"name,omitempty"`
+ // Count - Number of masters (VMs) to host docker containers. The default value is 3.
+ Count *int32 `json:"count,omitempty"`
+ // VMSize - Size of agent VMs. Possible values include: 'StandardD2sV3', 'StandardD4sV3', 'StandardD8sV3', 'StandardD16sV3', 'StandardD32sV3', 'StandardD64sV3', 'StandardDS4V2', 'StandardDS5V2', 'StandardF8sV2', 'StandardF16sV2', 'StandardF32sV2', 'StandardF64sV2', 'StandardF72sV2', 'StandardF8s', 'StandardF16s', 'StandardE4sV3', 'StandardE8sV3', 'StandardE16sV3', 'StandardE20sV3', 'StandardE32sV3', 'StandardE64sV3', 'StandardGS2', 'StandardGS3', 'StandardGS4', 'StandardGS5', 'StandardDS12V2', 'StandardDS13V2', 'StandardDS14V2', 'StandardDS15V2', 'StandardL4s', 'StandardL8s', 'StandardL16s', 'StandardL32s'
+ VMSize OpenShiftContainerServiceVMSize `json:"vmSize,omitempty"`
+ // SubnetCidr - Subnet CIDR for the peering.
+ SubnetCidr *string `json:"subnetCidr,omitempty"`
+ // OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
+ OsType OSType `json:"osType,omitempty"`
+}
+
+// OpenShiftManagedClusterProperties properties of the OpenShift managed cluster.
+type OpenShiftManagedClusterProperties struct {
+ // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty"`
+ // OpenShiftVersion - Version of OpenShift specified when creating the cluster.
+ OpenShiftVersion *string `json:"openShiftVersion,omitempty"`
+ // ClusterVersion - READ-ONLY; Version of OpenShift specified when creating the cluster.
+ ClusterVersion *string `json:"clusterVersion,omitempty"`
+ // PublicHostname - READ-ONLY; Service generated FQDN for OpenShift API server.
+ PublicHostname *string `json:"publicHostname,omitempty"`
+ // Fqdn - READ-ONLY; Service generated FQDN for OpenShift API server loadbalancer internal hostname.
+ Fqdn *string `json:"fqdn,omitempty"`
+ // NetworkProfile - Configuration for OpenShift networking.
+ NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"`
+ // RouterProfiles - Configuration for OpenShift router(s).
+ RouterProfiles *[]OpenShiftRouterProfile `json:"routerProfiles,omitempty"`
+ // MasterPoolProfile - Configuration for OpenShift master VMs.
+ MasterPoolProfile *OpenShiftManagedClusterMasterPoolProfile `json:"masterPoolProfile,omitempty"`
+ // AgentPoolProfiles - Configuration of OpenShift cluster VMs.
+ AgentPoolProfiles *[]OpenShiftManagedClusterAgentPoolProfile `json:"agentPoolProfiles,omitempty"`
+ // AuthProfile - Configures OpenShift authentication.
+ AuthProfile *OpenShiftManagedClusterAuthProfile `json:"authProfile,omitempty"`
+}
+
+// OpenShiftManagedClustersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of
+// a long-running operation.
+type OpenShiftManagedClustersCreateOrUpdateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *OpenShiftManagedClustersCreateOrUpdateFuture) Result(client OpenShiftManagedClustersClient) (osmc OpenShiftManagedCluster, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersCreateOrUpdateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.OpenShiftManagedClustersCreateOrUpdateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if osmc.Response.Response, err = future.GetResult(sender); err == nil && osmc.Response.Response.StatusCode != http.StatusNoContent {
+ osmc, err = client.CreateOrUpdateResponder(osmc.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersCreateOrUpdateFuture", "Result", osmc.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// OpenShiftManagedClustersDeleteFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type OpenShiftManagedClustersDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *OpenShiftManagedClustersDeleteFuture) Result(client OpenShiftManagedClustersClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.OpenShiftManagedClustersDeleteFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// OpenShiftManagedClustersUpdateTagsFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type OpenShiftManagedClustersUpdateTagsFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *OpenShiftManagedClustersUpdateTagsFuture) Result(client OpenShiftManagedClustersClient) (osmc OpenShiftManagedCluster, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersUpdateTagsFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.OpenShiftManagedClustersUpdateTagsFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if osmc.Response.Response, err = future.GetResult(sender); err == nil && osmc.Response.Response.StatusCode != http.StatusNoContent {
+ osmc, err = client.UpdateTagsResponder(osmc.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersUpdateTagsFuture", "Result", osmc.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// OpenShiftRouterProfile represents an OpenShift router
+type OpenShiftRouterProfile struct {
+ // Name - Name of the router profile.
+ Name *string `json:"name,omitempty"`
+ // PublicSubdomain - READ-ONLY; DNS subdomain for OpenShift router.
+ PublicSubdomain *string `json:"publicSubdomain,omitempty"`
+ // Fqdn - READ-ONLY; Auto-allocated FQDN for the OpenShift router.
+ Fqdn *string `json:"fqdn,omitempty"`
+}
+
+// OperationListResult the List Compute Operation operation response.
+type OperationListResult struct {
+ autorest.Response `json:"-"`
+ // Value - READ-ONLY; The list of compute operations
+ Value *[]OperationValue `json:"value,omitempty"`
+}
+
+// OperationValue describes the properties of a Compute Operation value.
+type OperationValue struct {
+ // Origin - READ-ONLY; The origin of the compute operation.
+ Origin *string `json:"origin,omitempty"`
+ // Name - READ-ONLY; The name of the compute operation.
+ Name *string `json:"name,omitempty"`
+ // OperationValueDisplay - Describes the properties of a Compute Operation Value Display.
+ *OperationValueDisplay `json:"display,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for OperationValue.
+func (ov OperationValue) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if ov.OperationValueDisplay != nil {
+ objectMap["display"] = ov.OperationValueDisplay
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for OperationValue struct.
+func (ov *OperationValue) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "origin":
+ if v != nil {
+ var origin string
+ err = json.Unmarshal(*v, &origin)
+ if err != nil {
+ return err
+ }
+ ov.Origin = &origin
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ov.Name = &name
+ }
+ case "display":
+ if v != nil {
+ var operationValueDisplay OperationValueDisplay
+ err = json.Unmarshal(*v, &operationValueDisplay)
+ if err != nil {
+ return err
+ }
+ ov.OperationValueDisplay = &operationValueDisplay
+ }
+ }
+ }
+
+ return nil
+}
+
+// OperationValueDisplay describes the properties of a Compute Operation Value Display.
+type OperationValueDisplay struct {
+ // Operation - READ-ONLY; The display name of the compute operation.
+ Operation *string `json:"operation,omitempty"`
+ // Resource - READ-ONLY; The display name of the resource the operation applies to.
+ Resource *string `json:"resource,omitempty"`
+ // Description - READ-ONLY; The description of the operation.
+ Description *string `json:"description,omitempty"`
+ // Provider - READ-ONLY; The resource provider for the operation.
+ Provider *string `json:"provider,omitempty"`
+}
+
+// OrchestratorProfile contains information about orchestrator.
+type OrchestratorProfile struct {
+ // OrchestratorType - Orchestrator type.
+ OrchestratorType *string `json:"orchestratorType,omitempty"`
+ // OrchestratorVersion - Orchestrator version (major, minor, patch).
+ OrchestratorVersion *string `json:"orchestratorVersion,omitempty"`
+ // IsPreview - Whether Kubernetes version is currently in preview.
+ IsPreview *bool `json:"isPreview,omitempty"`
+}
+
+// OrchestratorProfileType profile for the container service orchestrator.
+type OrchestratorProfileType struct {
+ // OrchestratorType - The orchestrator to use to manage container service cluster resources. Valid values are Kubernetes, Swarm, DCOS, DockerCE and Custom. Possible values include: 'Kubernetes', 'Swarm', 'DCOS', 'DockerCE', 'Custom'
+ OrchestratorType OrchestratorTypes `json:"orchestratorType,omitempty"`
+ // OrchestratorVersion - The version of the orchestrator to use. You can specify the major.minor.patch part of the actual version.For example, you can specify version as "1.6.11".
+ OrchestratorVersion *string `json:"orchestratorVersion,omitempty"`
+}
+
+// OrchestratorVersionProfile the profile of an orchestrator and its available versions.
+type OrchestratorVersionProfile struct {
+ // OrchestratorType - Orchestrator type.
+ OrchestratorType *string `json:"orchestratorType,omitempty"`
+ // OrchestratorVersion - Orchestrator version (major, minor, patch).
+ OrchestratorVersion *string `json:"orchestratorVersion,omitempty"`
+ // Default - Installed by default if version is not specified.
+ Default *bool `json:"default,omitempty"`
+ // IsPreview - Whether Kubernetes version is currently in preview.
+ IsPreview *bool `json:"isPreview,omitempty"`
+ // Upgrades - The list of available upgrade versions.
+ Upgrades *[]OrchestratorProfile `json:"upgrades,omitempty"`
+}
+
+// OrchestratorVersionProfileListResult the list of versions for supported orchestrators.
+type OrchestratorVersionProfileListResult struct {
+ autorest.Response `json:"-"`
+ // ID - READ-ONLY; Id of the orchestrator version profile list result.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the orchestrator version profile list result.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the orchestrator version profile list result.
+ Type *string `json:"type,omitempty"`
+ // OrchestratorVersionProfileProperties - The properties of an orchestrator version profile.
+ *OrchestratorVersionProfileProperties `json:"properties,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for OrchestratorVersionProfileListResult.
+func (ovplr OrchestratorVersionProfileListResult) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if ovplr.OrchestratorVersionProfileProperties != nil {
+ objectMap["properties"] = ovplr.OrchestratorVersionProfileProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for OrchestratorVersionProfileListResult struct.
+func (ovplr *OrchestratorVersionProfileListResult) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ ovplr.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ovplr.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ ovplr.Type = &typeVar
+ }
+ case "properties":
+ if v != nil {
+ var orchestratorVersionProfileProperties OrchestratorVersionProfileProperties
+ err = json.Unmarshal(*v, &orchestratorVersionProfileProperties)
+ if err != nil {
+ return err
+ }
+ ovplr.OrchestratorVersionProfileProperties = &orchestratorVersionProfileProperties
+ }
+ }
+ }
+
+ return nil
+}
+
+// OrchestratorVersionProfileProperties the properties of an orchestrator version profile.
+type OrchestratorVersionProfileProperties struct {
+ // Orchestrators - List of orchestrator version profiles.
+ Orchestrators *[]OrchestratorVersionProfile `json:"orchestrators,omitempty"`
+}
+
+// Properties properties of the container service.
+type Properties struct {
+ // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty"`
+ // OrchestratorProfile - Profile for the container service orchestrator.
+ OrchestratorProfile *OrchestratorProfileType `json:"orchestratorProfile,omitempty"`
+ // CustomProfile - Properties to configure a custom container service cluster.
+ CustomProfile *CustomProfile `json:"customProfile,omitempty"`
+ // ServicePrincipalProfile - Information about a service principal identity for the cluster to use for manipulating Azure APIs. Exact one of secret or keyVaultSecretRef need to be specified.
+ ServicePrincipalProfile *ServicePrincipalProfile `json:"servicePrincipalProfile,omitempty"`
+ // MasterProfile - Profile for the container service master.
+ MasterProfile *MasterProfile `json:"masterProfile,omitempty"`
+ // AgentPoolProfiles - Properties of the agent pool.
+ AgentPoolProfiles *[]AgentPoolProfile `json:"agentPoolProfiles,omitempty"`
+ // WindowsProfile - Profile for Windows VMs in the container service cluster.
+ WindowsProfile *WindowsProfile `json:"windowsProfile,omitempty"`
+ // LinuxProfile - Profile for Linux VMs in the container service cluster.
+ LinuxProfile *LinuxProfile `json:"linuxProfile,omitempty"`
+ // DiagnosticsProfile - Profile for diagnostics in the container service cluster.
+ DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"`
+}
+
+// PurchasePlan used for establishing the purchase context of any 3rd Party artifact through MarketPlace.
+type PurchasePlan struct {
+ // Name - The plan ID.
+ Name *string `json:"name,omitempty"`
+ // Product - Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
+ Product *string `json:"product,omitempty"`
+ // PromotionCode - The promotion code.
+ PromotionCode *string `json:"promotionCode,omitempty"`
+ // Publisher - The plan ID.
+ Publisher *string `json:"publisher,omitempty"`
+}
+
+// Resource the Resource model definition.
+type Resource struct {
+ // ID - READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; 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.Location != nil {
+ objectMap["location"] = r.Location
+ }
+ if r.Tags != nil {
+ objectMap["tags"] = r.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// ResourceReference a reference to an Azure resource.
+type ResourceReference struct {
+ // ID - The fully qualified Azure resource id.
+ ID *string `json:"id,omitempty"`
+}
+
+// ServicePrincipalProfile information about a service principal identity for the cluster to use for
+// manipulating Azure APIs. Either secret or keyVaultSecretRef must be specified.
+type ServicePrincipalProfile struct {
+ // ClientID - The ID for the service principal.
+ ClientID *string `json:"clientId,omitempty"`
+ // Secret - The secret password associated with the service principal in plain text.
+ Secret *string `json:"secret,omitempty"`
+ // KeyVaultSecretRef - Reference to a secret stored in Azure Key Vault.
+ KeyVaultSecretRef *KeyVaultSecretRef `json:"keyVaultSecretRef,omitempty"`
+}
+
+// SSHConfiguration SSH configuration for Linux-based VMs running on Azure.
+type SSHConfiguration struct {
+ // PublicKeys - The list of SSH public keys used to authenticate with Linux-based VMs. Only expect one key specified.
+ PublicKeys *[]SSHPublicKey `json:"publicKeys,omitempty"`
+}
+
+// SSHPublicKey contains information about SSH certificate public key data.
+type SSHPublicKey struct {
+ // KeyData - Certificate public key used to authenticate with VMs through SSH. The certificate must be in PEM format with or without headers.
+ KeyData *string `json:"keyData,omitempty"`
+}
+
+// SubResource reference to another subresource.
+type SubResource struct {
+ // ID - READ-ONLY; Resource ID.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; The name of the resource that is unique within a resource group. This name can be used to access the resource.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type
+ Type *string `json:"type,omitempty"`
+}
+
+// TagsObject tags object for patch operations.
+type TagsObject struct {
+ // Tags - Resource tags.
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for TagsObject.
+func (toVar TagsObject) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if toVar.Tags != nil {
+ objectMap["tags"] = toVar.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// VMDiagnostics profile for diagnostics on the container service VMs.
+type VMDiagnostics struct {
+ // Enabled - Whether the VM diagnostic agent is provisioned on the VM.
+ Enabled *bool `json:"enabled,omitempty"`
+ // StorageURI - READ-ONLY; The URI of the storage account where diagnostics are stored.
+ StorageURI *string `json:"storageUri,omitempty"`
+}
+
+// WindowsProfile profile for Windows VMs in the container service cluster.
+type WindowsProfile struct {
+ // AdminUsername - The administrator username to use for Windows VMs.
+ AdminUsername *string `json:"adminUsername,omitempty"`
+ // AdminPassword - The administrator password to use for Windows VMs.
+ AdminPassword *string `json:"adminPassword,omitempty"`
+}
diff --git a/services/containerservice/mgmt/2019-10-01/containerservice/openshiftmanagedclusters.go b/services/containerservice/mgmt/2019-10-01/containerservice/openshiftmanagedclusters.go
new file mode 100644
index 000000000000..ac574f3c4121
--- /dev/null
+++ b/services/containerservice/mgmt/2019-10-01/containerservice/openshiftmanagedclusters.go
@@ -0,0 +1,617 @@
+package containerservice
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// OpenShiftManagedClustersClient is the the Container Service Client.
+type OpenShiftManagedClustersClient struct {
+ BaseClient
+}
+
+// NewOpenShiftManagedClustersClient creates an instance of the OpenShiftManagedClustersClient client.
+func NewOpenShiftManagedClustersClient(subscriptionID string) OpenShiftManagedClustersClient {
+ return NewOpenShiftManagedClustersClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewOpenShiftManagedClustersClientWithBaseURI creates an instance of the OpenShiftManagedClustersClient client.
+func NewOpenShiftManagedClustersClientWithBaseURI(baseURI string, subscriptionID string) OpenShiftManagedClustersClient {
+ return OpenShiftManagedClustersClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates a OpenShift managed cluster with the specified configuration for agents and
+// OpenShift version.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the OpenShift managed cluster resource.
+// parameters - parameters supplied to the Create or Update an OpenShift Managed Cluster operation.
+func (client OpenShiftManagedClustersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, parameters OpenShiftManagedCluster) (result OpenShiftManagedClustersCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClustersClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.OpenShiftManagedClusterProperties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.OpenShiftManagedClusterProperties.OpenShiftVersion", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.OpenShiftManagedClusterProperties.MasterPoolProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.OpenShiftManagedClusterProperties.MasterPoolProfile.Count", Name: validation.Null, Rule: true, Chain: nil}}},
+ }}}}}); err != nil {
+ return result, validation.NewError("containerservice.OpenShiftManagedClustersClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, resourceName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client OpenShiftManagedClustersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters OpenShiftManagedCluster) (*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 = "2019-04-30"
+ 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.ContainerService/openShiftManagedClusters/{resourceName}", pathParameters),
+ autorest.WithJSON(parameters),
+ 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 OpenShiftManagedClustersClient) CreateOrUpdateSender(req *http.Request) (future OpenShiftManagedClustersCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client OpenShiftManagedClustersClient) CreateOrUpdateResponder(resp *http.Response) (result OpenShiftManagedCluster, 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 deletes the OpenShift managed cluster with a specified resource group and name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the OpenShift managed cluster resource.
+func (client OpenShiftManagedClustersClient) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result OpenShiftManagedClustersDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClustersClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.OpenShiftManagedClustersClient", "Delete", err.Error())
+ }
+
+ req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client OpenShiftManagedClustersClient) 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 = "2019-04-30"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{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 OpenShiftManagedClustersClient) DeleteSender(req *http.Request) (future OpenShiftManagedClustersDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client OpenShiftManagedClustersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the details of the managed OpenShift cluster with a specified resource group and name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the OpenShift managed cluster resource.
+func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result OpenShiftManagedCluster, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClustersClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.OpenShiftManagedClustersClient", "Get", err.Error())
+ }
+
+ req, err := client.GetPreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client OpenShiftManagedClustersClient) 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 = "2019-04-30"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{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 OpenShiftManagedClustersClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client OpenShiftManagedClustersClient) GetResponder(resp *http.Response) (result OpenShiftManagedCluster, 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 OpenShift managed clusters in the specified subscription. The operation returns properties of
+// each OpenShift managed cluster.
+func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result OpenShiftManagedClusterListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClustersClient.List")
+ defer func() {
+ sc := -1
+ if result.osmclr.Response.Response != nil {
+ sc = result.osmclr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.osmclr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.osmclr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client OpenShiftManagedClustersClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-04-30"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/openShiftManagedClusters", 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 OpenShiftManagedClustersClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client OpenShiftManagedClustersClient) ListResponder(resp *http.Response) (result OpenShiftManagedClusterListResult, 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 OpenShiftManagedClustersClient) listNextResults(ctx context.Context, lastResults OpenShiftManagedClusterListResult) (result OpenShiftManagedClusterListResult, err error) {
+ req, err := lastResults.openShiftManagedClusterListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "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, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client OpenShiftManagedClustersClient) ListComplete(ctx context.Context) (result OpenShiftManagedClusterListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClustersClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx)
+ return
+}
+
+// ListByResourceGroup lists OpenShift managed clusters in the specified subscription and resource group. The operation
+// returns properties of each OpenShift managed cluster.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result OpenShiftManagedClusterListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClustersClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.osmclr.Response.Response != nil {
+ sc = result.osmclr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", err.Error())
+ }
+
+ result.fn = client.listByResourceGroupNextResults
+ req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.osmclr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.osmclr, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client OpenShiftManagedClustersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-04-30"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client OpenShiftManagedClustersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client OpenShiftManagedClustersClient) ListByResourceGroupResponder(resp *http.Response) (result OpenShiftManagedClusterListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByResourceGroupNextResults retrieves the next set of results, if any.
+func (client OpenShiftManagedClustersClient) listByResourceGroupNextResults(ctx context.Context, lastResults OpenShiftManagedClusterListResult) (result OpenShiftManagedClusterListResult, err error) {
+ req, err := lastResults.openShiftManagedClusterListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client OpenShiftManagedClustersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result OpenShiftManagedClusterListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClustersClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByResourceGroup(ctx, resourceGroupName)
+ return
+}
+
+// UpdateTags updates an OpenShift managed cluster with the specified tags.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the OpenShift managed cluster resource.
+// parameters - parameters supplied to the Update OpenShift Managed Cluster Tags operation.
+func (client OpenShiftManagedClustersClient) UpdateTags(ctx context.Context, resourceGroupName string, resourceName string, parameters TagsObject) (result OpenShiftManagedClustersUpdateTagsFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClustersClient.UpdateTags")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.OpenShiftManagedClustersClient", "UpdateTags", err.Error())
+ }
+
+ req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, resourceName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "UpdateTags", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.UpdateTagsSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "UpdateTags", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// UpdateTagsPreparer prepares the UpdateTags request.
+func (client OpenShiftManagedClustersClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters TagsObject) (*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 = "2019-04-30"
+ 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.ContainerService/openShiftManagedClusters/{resourceName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateTagsSender sends the UpdateTags request. The method will close the
+// http.Response Body if it receives an error.
+func (client OpenShiftManagedClustersClient) UpdateTagsSender(req *http.Request) (future OpenShiftManagedClustersUpdateTagsFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// UpdateTagsResponder handles the response to the UpdateTags request. The method always
+// closes the http.Response Body.
+func (client OpenShiftManagedClustersClient) UpdateTagsResponder(resp *http.Response) (result OpenShiftManagedCluster, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/containerservice/mgmt/2019-10-01/containerservice/operations.go b/services/containerservice/mgmt/2019-10-01/containerservice/operations.go
new file mode 100644
index 000000000000..978c301f731c
--- /dev/null
+++ b/services/containerservice/mgmt/2019-10-01/containerservice/operations.go
@@ -0,0 +1,109 @@
+package containerservice
+
+// 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/tracing"
+ "net/http"
+)
+
+// OperationsClient is the the Container Service Client.
+type OperationsClient struct {
+ BaseClient
+}
+
+// NewOperationsClient creates an instance of the OperationsClient client.
+func NewOperationsClient(subscriptionID string) OperationsClient {
+ return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
+ return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List gets a list of compute operations.
+func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPath("/providers/Microsoft.ContainerService/operations"),
+ 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 OperationsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/containerservice/mgmt/2019-10-01/containerservice/version.go b/services/containerservice/mgmt/2019-10-01/containerservice/version.go
new file mode 100644
index 000000000000..8c5a50141b93
--- /dev/null
+++ b/services/containerservice/mgmt/2019-10-01/containerservice/version.go
@@ -0,0 +1,30 @@
+package containerservice
+
+import "github.com/Azure/azure-sdk-for-go/version"
+
+// 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.
+
+// UserAgent returns the UserAgent string to use when sending http.Requests.
+func UserAgent() string {
+ return "Azure-SDK-For-Go/" + version.Number + " containerservice/2019-10-01"
+}
+
+// Version returns the semantic version (see http://semver.org) of the client.
+func Version() string {
+ return version.Number
+}
diff --git a/services/costmanagement/mgmt/2019-10-01/costmanagement/client.go b/services/costmanagement/mgmt/2019-10-01/costmanagement/client.go
new file mode 100644
index 000000000000..4b604b5ee4e5
--- /dev/null
+++ b/services/costmanagement/mgmt/2019-10-01/costmanagement/client.go
@@ -0,0 +1,51 @@
+// Package costmanagement implements the Azure ARM Costmanagement service API version 2019-10-01.
+//
+//
+package costmanagement
+
+// 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 (
+ "github.com/Azure/go-autorest/autorest"
+)
+
+const (
+ // DefaultBaseURI is the default URI used for the service Costmanagement
+ DefaultBaseURI = "https://management.azure.com"
+)
+
+// BaseClient is the base client for Costmanagement.
+type BaseClient struct {
+ autorest.Client
+ BaseURI string
+ SubscriptionID string
+}
+
+// New creates an instance of the BaseClient client.
+func New(subscriptionID string) BaseClient {
+ return NewWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewWithBaseURI creates an instance of the BaseClient client.
+func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
+ return BaseClient{
+ Client: autorest.NewClientWithUserAgent(UserAgent()),
+ BaseURI: baseURI,
+ SubscriptionID: subscriptionID,
+ }
+}
diff --git a/services/costmanagement/mgmt/2019-10-01/costmanagement/costmanagementapi/interfaces.go b/services/costmanagement/mgmt/2019-10-01/costmanagement/costmanagementapi/interfaces.go
new file mode 100644
index 000000000000..99f0991e8484
--- /dev/null
+++ b/services/costmanagement/mgmt/2019-10-01/costmanagement/costmanagementapi/interfaces.go
@@ -0,0 +1,57 @@
+package costmanagementapi
+
+// 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/azure-sdk-for-go/services/costmanagement/mgmt/2019-10-01/costmanagement"
+ "github.com/Azure/go-autorest/autorest"
+)
+
+// DimensionsClientAPI contains the set of methods on the DimensionsClient type.
+type DimensionsClientAPI interface {
+ List(ctx context.Context, scope string, filter string, expand string, skiptoken string, top *int32) (result costmanagement.DimensionsListResult, err error)
+}
+
+var _ DimensionsClientAPI = (*costmanagement.DimensionsClient)(nil)
+
+// QueryClientAPI contains the set of methods on the QueryClient type.
+type QueryClientAPI interface {
+ Usage(ctx context.Context, scope string, parameters costmanagement.QueryDefinition) (result costmanagement.QueryResult, err error)
+}
+
+var _ QueryClientAPI = (*costmanagement.QueryClient)(nil)
+
+// ExportsClientAPI contains the set of methods on the ExportsClient type.
+type ExportsClientAPI interface {
+ CreateOrUpdate(ctx context.Context, scope string, exportName string, parameters costmanagement.Export) (result costmanagement.Export, err error)
+ Delete(ctx context.Context, scope string, exportName string) (result autorest.Response, err error)
+ Execute(ctx context.Context, scope string, exportName string) (result autorest.Response, err error)
+ Get(ctx context.Context, scope string, exportName string) (result costmanagement.Export, err error)
+ GetExecutionHistory(ctx context.Context, scope string, exportName string) (result costmanagement.ExportExecutionListResult, err error)
+ List(ctx context.Context, scope string) (result costmanagement.ExportListResult, err error)
+}
+
+var _ ExportsClientAPI = (*costmanagement.ExportsClient)(nil)
+
+// OperationsClientAPI contains the set of methods on the OperationsClient type.
+type OperationsClientAPI interface {
+ List(ctx context.Context) (result costmanagement.OperationListResultPage, err error)
+}
+
+var _ OperationsClientAPI = (*costmanagement.OperationsClient)(nil)
diff --git a/services/costmanagement/mgmt/2019-10-01/costmanagement/dimensions.go b/services/costmanagement/mgmt/2019-10-01/costmanagement/dimensions.go
new file mode 100644
index 000000000000..304cf2898f40
--- /dev/null
+++ b/services/costmanagement/mgmt/2019-10-01/costmanagement/dimensions.go
@@ -0,0 +1,158 @@
+package costmanagement
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// DimensionsClient is the client for the Dimensions methods of the Costmanagement service.
+type DimensionsClient struct {
+ BaseClient
+}
+
+// NewDimensionsClient creates an instance of the DimensionsClient client.
+func NewDimensionsClient(subscriptionID string) DimensionsClient {
+ return NewDimensionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewDimensionsClientWithBaseURI creates an instance of the DimensionsClient client.
+func NewDimensionsClientWithBaseURI(baseURI string, subscriptionID string) DimensionsClient {
+ return DimensionsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List lists the dimensions by the defined scope.
+// Parameters:
+// scope - the scope associated with dimension operations. This includes '/subscriptions/{subscriptionId}/' for
+// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup
+// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department
+// scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
+// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
+// Management Group scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for
+// billingProfile scope,
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
+// for invoiceSection scope, and
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
+// partners.
+// filter - may be used to filter dimensions by properties/category, properties/usageStart,
+// properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.
+// expand - may be used to expand the properties/data within a dimension category. By default, data is not
+// included when listing dimensions.
+// skiptoken - skiptoken is only used if a previous operation returned a partial result. If a previous response
+// contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that
+// specifies a starting point to use for subsequent calls.
+// top - may be used to limit the number of results to the most recent N dimension data.
+func (client DimensionsClient) List(ctx context.Context, scope string, filter string, expand string, skiptoken string, top *int32) (result DimensionsListResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DimensionsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMaximum, Rule: int64(1000), Chain: nil},
+ {Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("costmanagement.DimensionsClient", "List", err.Error())
+ }
+
+ req, err := client.ListPreparer(ctx, scope, filter, expand, skiptoken, top)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.DimensionsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "costmanagement.DimensionsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.DimensionsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client DimensionsClient) ListPreparer(ctx context.Context, scope string, filter string, expand string, skiptoken string, top *int32) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "scope": scope,
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+ if len(expand) > 0 {
+ queryParameters["$expand"] = autorest.Encode("query", expand)
+ }
+ if len(skiptoken) > 0 {
+ queryParameters["$skiptoken"] = autorest.Encode("query", skiptoken)
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{scope}/providers/Microsoft.CostManagement/dimensions", 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 DimensionsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client DimensionsClient) ListResponder(resp *http.Response) (result DimensionsListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/costmanagement/mgmt/2019-10-01/costmanagement/exports.go b/services/costmanagement/mgmt/2019-10-01/costmanagement/exports.go
new file mode 100644
index 000000000000..9042b6af21cc
--- /dev/null
+++ b/services/costmanagement/mgmt/2019-10-01/costmanagement/exports.go
@@ -0,0 +1,593 @@
+package costmanagement
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ExportsClient is the client for the Exports methods of the Costmanagement service.
+type ExportsClient struct {
+ BaseClient
+}
+
+// NewExportsClient creates an instance of the ExportsClient client.
+func NewExportsClient(subscriptionID string) ExportsClient {
+ return NewExportsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewExportsClientWithBaseURI creates an instance of the ExportsClient client.
+func NewExportsClientWithBaseURI(baseURI string, subscriptionID string) ExportsClient {
+ return ExportsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate the operation to create or update a export. Update operation requires latest eTag to be set in the
+// request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.
+// Parameters:
+// scope - the scope associated with query and export operations. This includes
+// '/subscriptions/{subscriptionId}/' for subscription scope,
+// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department
+// scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
+// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for
+// Management Group scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for
+// billingProfile scope,
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
+// for invoiceSection scope, and
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
+// partners.
+// exportName - export Name.
+// parameters - parameters supplied to the CreateOrUpdate Export operation.
+func (client ExportsClient) CreateOrUpdate(ctx context.Context, scope string, exportName string, parameters Export) (result Export, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExportsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.ExportProperties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ExportProperties.Schedule", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ExportProperties.Schedule.RecurrencePeriod", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ExportProperties.Schedule.RecurrencePeriod.From", Name: validation.Null, Rule: true, Chain: nil}}},
+ }},
+ }}}}}); err != nil {
+ return result, validation.NewError("costmanagement.ExportsClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, scope, exportName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateOrUpdateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "CreateOrUpdate", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "CreateOrUpdate", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ExportsClient) CreateOrUpdatePreparer(ctx context.Context, scope string, exportName string, parameters Export) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "exportName": autorest.Encode("path", exportName),
+ "scope": scope,
+ }
+
+ const APIVersion = "2019-10-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("/{scope}/providers/Microsoft.CostManagement/exports/{exportName}", pathParameters),
+ autorest.WithJSON(parameters),
+ 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 ExportsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ExportsClient) CreateOrUpdateResponder(resp *http.Response) (result Export, 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 the operation to delete a export.
+// Parameters:
+// scope - the scope associated with query and export operations. This includes
+// '/subscriptions/{subscriptionId}/' for subscription scope,
+// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department
+// scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
+// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for
+// Management Group scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for
+// billingProfile scope,
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
+// for invoiceSection scope, and
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
+// partners.
+// exportName - export Name.
+func (client ExportsClient) Delete(ctx context.Context, scope string, exportName string) (result autorest.Response, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExportsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response != nil {
+ sc = result.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, scope, exportName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Delete", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Delete", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ExportsClient) DeletePreparer(ctx context.Context, scope string, exportName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "exportName": autorest.Encode("path", exportName),
+ "scope": scope,
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{scope}/providers/Microsoft.CostManagement/exports/{exportName}", 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 ExportsClient) DeleteSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ExportsClient) 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
+}
+
+// Execute the operation to execute a export.
+// Parameters:
+// scope - the scope associated with query and export operations. This includes
+// '/subscriptions/{subscriptionId}/' for subscription scope,
+// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department
+// scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
+// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for
+// Management Group scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for
+// billingProfile scope,
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
+// for invoiceSection scope, and
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
+// partners.
+// exportName - export Name.
+func (client ExportsClient) Execute(ctx context.Context, scope string, exportName string) (result autorest.Response, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExportsClient.Execute")
+ defer func() {
+ sc := -1
+ if result.Response != nil {
+ sc = result.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ExecutePreparer(ctx, scope, exportName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Execute", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ExecuteSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Execute", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ExecuteResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Execute", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ExecutePreparer prepares the Execute request.
+func (client ExportsClient) ExecutePreparer(ctx context.Context, scope string, exportName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "exportName": autorest.Encode("path", exportName),
+ "scope": scope,
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ 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 ExportsClient) ExecuteSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ExecuteResponder handles the response to the Execute request. The method always
+// closes the http.Response Body.
+func (client ExportsClient) ExecuteResponder(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 the operation to get the export for the defined scope by export name.
+// Parameters:
+// scope - the scope associated with query and export operations. This includes
+// '/subscriptions/{subscriptionId}/' for subscription scope,
+// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department
+// scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
+// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for
+// Management Group scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for
+// billingProfile scope,
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
+// for invoiceSection scope, and
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
+// partners.
+// exportName - export Name.
+func (client ExportsClient) Get(ctx context.Context, scope string, exportName string) (result Export, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExportsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, scope, exportName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ExportsClient) GetPreparer(ctx context.Context, scope string, exportName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "exportName": autorest.Encode("path", exportName),
+ "scope": scope,
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{scope}/providers/Microsoft.CostManagement/exports/{exportName}", 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 ExportsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ExportsClient) GetResponder(resp *http.Response) (result Export, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetExecutionHistory the operation to get the execution history of an export for the defined scope by export name.
+// Parameters:
+// scope - the scope associated with query and export operations. This includes
+// '/subscriptions/{subscriptionId}/' for subscription scope,
+// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department
+// scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
+// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for
+// Management Group scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for
+// billingProfile scope,
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
+// for invoiceSection scope, and
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
+// partners.
+// exportName - export Name.
+func (client ExportsClient) GetExecutionHistory(ctx context.Context, scope string, exportName string) (result ExportExecutionListResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExportsClient.GetExecutionHistory")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetExecutionHistoryPreparer(ctx, scope, exportName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "GetExecutionHistory", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetExecutionHistorySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "GetExecutionHistory", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetExecutionHistoryResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "GetExecutionHistory", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetExecutionHistoryPreparer prepares the GetExecutionHistory request.
+func (client ExportsClient) GetExecutionHistoryPreparer(ctx context.Context, scope string, exportName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "exportName": autorest.Encode("path", exportName),
+ "scope": scope,
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetExecutionHistorySender sends the GetExecutionHistory request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExportsClient) GetExecutionHistorySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetExecutionHistoryResponder handles the response to the GetExecutionHistory request. The method always
+// closes the http.Response Body.
+func (client ExportsClient) GetExecutionHistoryResponder(resp *http.Response) (result ExportExecutionListResult, 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 the operation to list all exports at the given scope.
+// Parameters:
+// scope - the scope associated with query and export operations. This includes
+// '/subscriptions/{subscriptionId}/' for subscription scope,
+// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department
+// scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
+// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for
+// Management Group scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for
+// billingProfile scope,
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
+// for invoiceSection scope, and
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
+// partners.
+func (client ExportsClient) List(ctx context.Context, scope string) (result ExportListResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExportsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListPreparer(ctx, scope)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ExportsClient) ListPreparer(ctx context.Context, scope string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "scope": scope,
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{scope}/providers/Microsoft.CostManagement/exports", 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 ExportsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ExportsClient) ListResponder(resp *http.Response) (result ExportListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/costmanagement/mgmt/2019-10-01/costmanagement/models.go b/services/costmanagement/mgmt/2019-10-01/costmanagement/models.go
new file mode 100644
index 000000000000..edc00a3dc0c2
--- /dev/null
+++ b/services/costmanagement/mgmt/2019-10-01/costmanagement/models.go
@@ -0,0 +1,966 @@
+package costmanagement
+
+// 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"
+ "encoding/json"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/date"
+ "github.com/Azure/go-autorest/autorest/to"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// The package's fully qualified name.
+const fqdn = "github.com/Azure/azure-sdk-for-go/services/costmanagement/mgmt/2019-10-01/costmanagement"
+
+// ExecutionStatus enumerates the values for execution status.
+type ExecutionStatus string
+
+const (
+ // Completed ...
+ Completed ExecutionStatus = "Completed"
+ // DataNotAvailable ...
+ DataNotAvailable ExecutionStatus = "DataNotAvailable"
+ // Failed ...
+ Failed ExecutionStatus = "Failed"
+ // InProgress ...
+ InProgress ExecutionStatus = "InProgress"
+ // NewDataNotAvailable ...
+ NewDataNotAvailable ExecutionStatus = "NewDataNotAvailable"
+ // Queued ...
+ Queued ExecutionStatus = "Queued"
+ // Timeout ...
+ Timeout ExecutionStatus = "Timeout"
+)
+
+// PossibleExecutionStatusValues returns an array of possible values for the ExecutionStatus const type.
+func PossibleExecutionStatusValues() []ExecutionStatus {
+ return []ExecutionStatus{Completed, DataNotAvailable, Failed, InProgress, NewDataNotAvailable, Queued, Timeout}
+}
+
+// ExecutionType enumerates the values for execution type.
+type ExecutionType string
+
+const (
+ // OnDemand ...
+ OnDemand ExecutionType = "OnDemand"
+ // Scheduled ...
+ Scheduled ExecutionType = "Scheduled"
+)
+
+// PossibleExecutionTypeValues returns an array of possible values for the ExecutionType const type.
+func PossibleExecutionTypeValues() []ExecutionType {
+ return []ExecutionType{OnDemand, Scheduled}
+}
+
+// FormatType enumerates the values for format type.
+type FormatType string
+
+const (
+ // Csv ...
+ Csv FormatType = "Csv"
+)
+
+// PossibleFormatTypeValues returns an array of possible values for the FormatType const type.
+func PossibleFormatTypeValues() []FormatType {
+ return []FormatType{Csv}
+}
+
+// GranularityType enumerates the values for granularity type.
+type GranularityType string
+
+const (
+ // Daily ...
+ Daily GranularityType = "Daily"
+ // Hourly ...
+ Hourly GranularityType = "Hourly"
+)
+
+// PossibleGranularityTypeValues returns an array of possible values for the GranularityType const type.
+func PossibleGranularityTypeValues() []GranularityType {
+ return []GranularityType{Daily, Hourly}
+}
+
+// QueryColumnType enumerates the values for query column type.
+type QueryColumnType string
+
+const (
+ // QueryColumnTypeDimension ...
+ QueryColumnTypeDimension QueryColumnType = "Dimension"
+ // QueryColumnTypeTag ...
+ QueryColumnTypeTag QueryColumnType = "Tag"
+)
+
+// PossibleQueryColumnTypeValues returns an array of possible values for the QueryColumnType const type.
+func PossibleQueryColumnTypeValues() []QueryColumnType {
+ return []QueryColumnType{QueryColumnTypeDimension, QueryColumnTypeTag}
+}
+
+// RecurrenceType enumerates the values for recurrence type.
+type RecurrenceType string
+
+const (
+ // RecurrenceTypeAnnually ...
+ RecurrenceTypeAnnually RecurrenceType = "Annually"
+ // RecurrenceTypeDaily ...
+ RecurrenceTypeDaily RecurrenceType = "Daily"
+ // RecurrenceTypeMonthly ...
+ RecurrenceTypeMonthly RecurrenceType = "Monthly"
+ // RecurrenceTypeWeekly ...
+ RecurrenceTypeWeekly RecurrenceType = "Weekly"
+)
+
+// PossibleRecurrenceTypeValues returns an array of possible values for the RecurrenceType const type.
+func PossibleRecurrenceTypeValues() []RecurrenceType {
+ return []RecurrenceType{RecurrenceTypeAnnually, RecurrenceTypeDaily, RecurrenceTypeMonthly, RecurrenceTypeWeekly}
+}
+
+// SortDirection enumerates the values for sort direction.
+type SortDirection string
+
+const (
+ // Ascending ...
+ Ascending SortDirection = "Ascending"
+ // Descending ...
+ Descending SortDirection = "Descending"
+)
+
+// PossibleSortDirectionValues returns an array of possible values for the SortDirection const type.
+func PossibleSortDirectionValues() []SortDirection {
+ return []SortDirection{Ascending, Descending}
+}
+
+// StatusType enumerates the values for status type.
+type StatusType string
+
+const (
+ // Active ...
+ Active StatusType = "Active"
+ // Inactive ...
+ Inactive StatusType = "Inactive"
+)
+
+// PossibleStatusTypeValues returns an array of possible values for the StatusType const type.
+func PossibleStatusTypeValues() []StatusType {
+ return []StatusType{Active, Inactive}
+}
+
+// TimeframeType enumerates the values for timeframe type.
+type TimeframeType string
+
+const (
+ // Custom ...
+ Custom TimeframeType = "Custom"
+ // MonthToDate ...
+ MonthToDate TimeframeType = "MonthToDate"
+ // TheLastMonth ...
+ TheLastMonth TimeframeType = "TheLastMonth"
+ // TheLastWeek ...
+ TheLastWeek TimeframeType = "TheLastWeek"
+ // TheLastYear ...
+ TheLastYear TimeframeType = "TheLastYear"
+ // WeekToDate ...
+ WeekToDate TimeframeType = "WeekToDate"
+ // YearToDate ...
+ YearToDate TimeframeType = "YearToDate"
+)
+
+// PossibleTimeframeTypeValues returns an array of possible values for the TimeframeType const type.
+func PossibleTimeframeTypeValues() []TimeframeType {
+ return []TimeframeType{Custom, MonthToDate, TheLastMonth, TheLastWeek, TheLastYear, WeekToDate, YearToDate}
+}
+
+// CommonExportProperties the common properties of the export.
+type CommonExportProperties struct {
+ // Format - The format of the export being delivered. Possible values include: 'Csv'
+ Format FormatType `json:"format,omitempty"`
+ // DeliveryInfo - Has delivery information for the export.
+ DeliveryInfo *ExportDeliveryInfo `json:"deliveryInfo,omitempty"`
+ // Definition - Has definition for the export.
+ Definition *QueryDefinition `json:"definition,omitempty"`
+}
+
+// Dimension ...
+type Dimension struct {
+ *DimensionProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource Id.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty"`
+ // Tags - READ-ONLY; Resource tags.
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for Dimension.
+func (d Dimension) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if d.DimensionProperties != nil {
+ objectMap["properties"] = d.DimensionProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for Dimension struct.
+func (d *Dimension) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var dimensionProperties DimensionProperties
+ err = json.Unmarshal(*v, &dimensionProperties)
+ if err != nil {
+ return err
+ }
+ d.DimensionProperties = &dimensionProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ d.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ d.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ d.Type = &typeVar
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ d.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// DimensionProperties ...
+type DimensionProperties struct {
+ // Description - READ-ONLY; Dimension description.
+ Description *string `json:"description,omitempty"`
+ // FilterEnabled - READ-ONLY; Filter enabled.
+ FilterEnabled *bool `json:"filterEnabled,omitempty"`
+ // GroupingEnabled - READ-ONLY; Grouping enabled.
+ GroupingEnabled *bool `json:"groupingEnabled,omitempty"`
+ Data *[]string `json:"data,omitempty"`
+ // Total - READ-ONLY; Total number of data for the dimension.
+ Total *int32 `json:"total,omitempty"`
+ // Category - READ-ONLY; Dimension category.
+ Category *string `json:"category,omitempty"`
+ // UsageStart - READ-ONLY; Usage start.
+ UsageStart *date.Time `json:"usageStart,omitempty"`
+ // UsageEnd - READ-ONLY; Usage end.
+ UsageEnd *date.Time `json:"usageEnd,omitempty"`
+ // NextLink - READ-ONLY; The link (url) to the next page of results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// DimensionsListResult result of listing dimensions. It contains a list of available dimensions.
+type DimensionsListResult struct {
+ autorest.Response `json:"-"`
+ // Value - READ-ONLY; The list of dimensions.
+ Value *[]Dimension `json:"value,omitempty"`
+}
+
+// ErrorDetails the details of the error.
+type ErrorDetails struct {
+ // Code - READ-ONLY; Error code.
+ Code *string `json:"code,omitempty"`
+ // Message - READ-ONLY; Error message indicating why the operation failed.
+ Message *string `json:"message,omitempty"`
+}
+
+// ErrorResponse error response indicates that the service is not able to process the incoming request. The
+// reason is provided in the error message.
+type ErrorResponse struct {
+ // Error - The details of the error.
+ Error *ErrorDetails `json:"error,omitempty"`
+}
+
+// Export a export resource.
+type Export struct {
+ autorest.Response `json:"-"`
+ *ExportProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource Id.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty"`
+ // Tags - READ-ONLY; Resource tags.
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for Export.
+func (e Export) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if e.ExportProperties != nil {
+ objectMap["properties"] = e.ExportProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for Export struct.
+func (e *Export) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var exportProperties ExportProperties
+ err = json.Unmarshal(*v, &exportProperties)
+ if err != nil {
+ return err
+ }
+ e.ExportProperties = &exportProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ e.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ e.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ e.Type = &typeVar
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ e.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// ExportDeliveryDestination the destination information for the delivery of the export.
+type ExportDeliveryDestination struct {
+ // ResourceID - The resource id of the storage account where exports will be delivered.
+ ResourceID *string `json:"resourceId,omitempty"`
+ // Container - The name of the container where exports will be uploaded.
+ Container *string `json:"container,omitempty"`
+ // RootFolderPath - The name of the directory where exports will be uploaded.
+ RootFolderPath *string `json:"rootFolderPath,omitempty"`
+}
+
+// ExportDeliveryInfo the delivery information associated with a export.
+type ExportDeliveryInfo struct {
+ // Destination - Has destination for the export being delivered.
+ Destination *ExportDeliveryDestination `json:"destination,omitempty"`
+}
+
+// ExportExecution a export execution.
+type ExportExecution struct {
+ *ExportExecutionProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource Id.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty"`
+ // Tags - READ-ONLY; Resource tags.
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for ExportExecution.
+func (ee ExportExecution) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if ee.ExportExecutionProperties != nil {
+ objectMap["properties"] = ee.ExportExecutionProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ExportExecution struct.
+func (ee *ExportExecution) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var exportExecutionProperties ExportExecutionProperties
+ err = json.Unmarshal(*v, &exportExecutionProperties)
+ if err != nil {
+ return err
+ }
+ ee.ExportExecutionProperties = &exportExecutionProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ ee.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ee.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ ee.Type = &typeVar
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ ee.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// ExportExecutionListResult result of listing exports execution history of a export by name
+type ExportExecutionListResult struct {
+ autorest.Response `json:"-"`
+ // Value - READ-ONLY; The list of export executions.
+ Value *[]ExportExecution `json:"value,omitempty"`
+}
+
+// ExportExecutionProperties the properties of the export execution.
+type ExportExecutionProperties struct {
+ // ExecutionType - The type of the export execution. Possible values include: 'OnDemand', 'Scheduled'
+ ExecutionType ExecutionType `json:"executionType,omitempty"`
+ // Status - The status of the export execution. Possible values include: 'Queued', 'InProgress', 'Completed', 'Failed', 'Timeout', 'NewDataNotAvailable', 'DataNotAvailable'
+ Status ExecutionStatus `json:"status,omitempty"`
+ // SubmittedBy - The identifier for the entity that executed the export. For OnDemand executions, it is the email id. For Scheduled executions, it is the constant value - System.
+ SubmittedBy *string `json:"submittedBy,omitempty"`
+ // SubmittedTime - The time when export was queued to be executed.
+ SubmittedTime *date.Time `json:"submittedTime,omitempty"`
+ // ProcessingStartTime - The time when export was picked up to be executed.
+ ProcessingStartTime *date.Time `json:"processingStartTime,omitempty"`
+ // ProcessingEndTime - The time when export execution finished.
+ ProcessingEndTime *date.Time `json:"processingEndTime,omitempty"`
+ // FileName - The name of the file export got written to.
+ FileName *string `json:"fileName,omitempty"`
+ RunSettings *CommonExportProperties `json:"runSettings,omitempty"`
+}
+
+// ExportListResult result of listing exports. It contains a list of available exports in the scope
+// provided.
+type ExportListResult struct {
+ autorest.Response `json:"-"`
+ // Value - READ-ONLY; The list of exports.
+ Value *[]Export `json:"value,omitempty"`
+}
+
+// ExportProperties the properties of the export.
+type ExportProperties struct {
+ // Schedule - Has schedule information for the export.
+ Schedule *ExportSchedule `json:"schedule,omitempty"`
+ // Format - The format of the export being delivered. Possible values include: 'Csv'
+ Format FormatType `json:"format,omitempty"`
+ // DeliveryInfo - Has delivery information for the export.
+ DeliveryInfo *ExportDeliveryInfo `json:"deliveryInfo,omitempty"`
+ // Definition - Has definition for the export.
+ Definition *QueryDefinition `json:"definition,omitempty"`
+}
+
+// ExportRecurrencePeriod the start and end date for recurrence schedule.
+type ExportRecurrencePeriod struct {
+ // From - The start date of recurrence.
+ From *date.Time `json:"from,omitempty"`
+ // To - The end date of recurrence.
+ To *date.Time `json:"to,omitempty"`
+}
+
+// ExportSchedule the schedule associated with a export.
+type ExportSchedule struct {
+ // Status - The status of the schedule. Whether active or not. If inactive, the export's scheduled execution is paused. Possible values include: 'Active', 'Inactive'
+ Status StatusType `json:"status,omitempty"`
+ // Recurrence - The schedule recurrence. Possible values include: 'RecurrenceTypeDaily', 'RecurrenceTypeWeekly', 'RecurrenceTypeMonthly', 'RecurrenceTypeAnnually'
+ Recurrence RecurrenceType `json:"recurrence,omitempty"`
+ // RecurrencePeriod - Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
+ RecurrencePeriod *ExportRecurrencePeriod `json:"recurrencePeriod,omitempty"`
+}
+
+// Operation a Cost management REST API operation.
+type Operation struct {
+ // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation}.
+ Name *string `json:"name,omitempty"`
+ // Display - The object that represents the operation.
+ Display *OperationDisplay `json:"display,omitempty"`
+}
+
+// OperationDisplay the object that represents the operation.
+type OperationDisplay struct {
+ // Provider - READ-ONLY; Service provider: Microsoft.CostManagement.
+ Provider *string `json:"provider,omitempty"`
+ // Resource - READ-ONLY; Resource on which the operation is performed: Dimensions, Query.
+ Resource *string `json:"resource,omitempty"`
+ // Operation - READ-ONLY; Operation type: Read, write, delete, etc.
+ Operation *string `json:"operation,omitempty"`
+}
+
+// OperationListResult result of listing cost management operations. It contains a list of operations and a
+// URL link to get the next set of results.
+type OperationListResult struct {
+ autorest.Response `json:"-"`
+ // Value - READ-ONLY; List of cost management operations supported by the Microsoft.CostManagement resource provider.
+ Value *[]Operation `json:"value,omitempty"`
+ // NextLink - READ-ONLY; URL to get the next set of operation list results if there are any.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// OperationListResultIterator provides access to a complete listing of Operation values.
+type OperationListResultIterator struct {
+ i int
+ page OperationListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *OperationListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter OperationListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter OperationListResultIterator) Response() OperationListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter OperationListResultIterator) Value() Operation {
+ if !iter.page.NotDone() {
+ return Operation{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the OperationListResultIterator type.
+func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator {
+ return OperationListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (olr OperationListResult) IsEmpty() bool {
+ return olr.Value == nil || len(*olr.Value) == 0
+}
+
+// operationListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (olr OperationListResult) operationListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if olr.NextLink == nil || len(to.String(olr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(olr.NextLink)))
+}
+
+// OperationListResultPage contains a page of Operation values.
+type OperationListResultPage struct {
+ fn func(context.Context, OperationListResult) (OperationListResult, error)
+ olr OperationListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.olr)
+ if err != nil {
+ return err
+ }
+ page.olr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *OperationListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page OperationListResultPage) NotDone() bool {
+ return !page.olr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page OperationListResultPage) Response() OperationListResult {
+ return page.olr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page OperationListResultPage) Values() []Operation {
+ if page.olr.IsEmpty() {
+ return nil
+ }
+ return *page.olr.Value
+}
+
+// Creates a new instance of the OperationListResultPage type.
+func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage {
+ return OperationListResultPage{fn: getNextPage}
+}
+
+// QueryAggregation the aggregation expression to be used in the query.
+type QueryAggregation struct {
+ // Name - The name of the column to aggregate.
+ Name *string `json:"name,omitempty"`
+ // Function - The name of the aggregation function to use.
+ Function *string `json:"function,omitempty"`
+}
+
+// QueryColumn ...
+type QueryColumn struct {
+ // Name - The name of column.
+ Name *string `json:"name,omitempty"`
+ // Type - The type of column.
+ Type *string `json:"type,omitempty"`
+}
+
+// QueryComparisonExpression the comparison expression to be used in the query.
+type QueryComparisonExpression struct {
+ // Name - The name of the column to use in comparison.
+ Name *string `json:"name,omitempty"`
+ // Operator - The operator to use for comparison.
+ Operator *string `json:"operator,omitempty"`
+ // Values - Array of values to use for comparison
+ Values *[]string `json:"values,omitempty"`
+}
+
+// QueryDataset the definition of data present in the query.
+type QueryDataset struct {
+ // Granularity - The granularity of rows in the query. Possible values include: 'Daily', 'Hourly'
+ Granularity GranularityType `json:"granularity,omitempty"`
+ // Configuration - Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping are provided.
+ Configuration *QueryDatasetConfiguration `json:"configuration,omitempty"`
+ // Aggregation - Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the aggregated column. Query can have up to 2 aggregation clauses.
+ Aggregation map[string]*QueryAggregation `json:"aggregation"`
+ // Grouping - Array of group by expression to use in the query. Query can have up to 2 group by clauses.
+ Grouping *[]QueryGrouping `json:"grouping,omitempty"`
+ // Sorting - Array of sorting by columns in query.
+ Sorting *[]QuerySortingConfiguration `json:"sorting,omitempty"`
+ // Filter - Has filter expression to use in the query.
+ Filter *QueryFilter `json:"filter,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for QueryDataset.
+func (qd QueryDataset) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if qd.Granularity != "" {
+ objectMap["granularity"] = qd.Granularity
+ }
+ if qd.Configuration != nil {
+ objectMap["configuration"] = qd.Configuration
+ }
+ if qd.Aggregation != nil {
+ objectMap["aggregation"] = qd.Aggregation
+ }
+ if qd.Grouping != nil {
+ objectMap["grouping"] = qd.Grouping
+ }
+ if qd.Sorting != nil {
+ objectMap["sorting"] = qd.Sorting
+ }
+ if qd.Filter != nil {
+ objectMap["filter"] = qd.Filter
+ }
+ return json.Marshal(objectMap)
+}
+
+// QueryDatasetConfiguration the configuration of dataset in the query.
+type QueryDatasetConfiguration struct {
+ // Columns - Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query includes all columns.
+ Columns *[]string `json:"columns,omitempty"`
+}
+
+// QueryDefinition the definition of a query.
+type QueryDefinition struct {
+ // Type - The type of the query.
+ Type *string `json:"type,omitempty"`
+ // Timeframe - The time frame for pulling data for the query. If custom, then a specific time period must be provided. Possible values include: 'WeekToDate', 'MonthToDate', 'YearToDate', 'TheLastWeek', 'TheLastMonth', 'TheLastYear', 'Custom'
+ Timeframe TimeframeType `json:"timeframe,omitempty"`
+ // TimePeriod - Has time period for pulling data for the query.
+ TimePeriod *QueryTimePeriod `json:"timePeriod,omitempty"`
+ // Dataset - Has definition for data in this query.
+ Dataset *QueryDataset `json:"dataset,omitempty"`
+}
+
+// QueryFilter the filter expression to be used in the export.
+type QueryFilter struct {
+ // And - The logical "AND" expression. Must have at least 2 items.
+ And *[]QueryFilter `json:"and,omitempty"`
+ // Or - The logical "OR" expression. Must have at least 2 items.
+ Or *[]QueryFilter `json:"or,omitempty"`
+ // Not - The logical "NOT" expression.
+ Not *QueryFilter `json:"not,omitempty"`
+ // Dimension - Has comparison expression for a dimension
+ Dimension *QueryComparisonExpression `json:"dimension,omitempty"`
+ // Tag - Has comparison expression for a tag
+ Tag *QueryComparisonExpression `json:"tag,omitempty"`
+}
+
+// QueryGrouping the group by expression to be used in the query.
+type QueryGrouping struct {
+ // Type - Has type of the column to group. Possible values include: 'QueryColumnTypeTag', 'QueryColumnTypeDimension'
+ Type QueryColumnType `json:"type,omitempty"`
+ // Name - The name of the column to group.
+ Name *string `json:"name,omitempty"`
+}
+
+// QueryProperties ...
+type QueryProperties struct {
+ // NextLink - The link (url) to the next page of results.
+ NextLink *string `json:"nextLink,omitempty"`
+ // Columns - Array of columns
+ Columns *[]QueryColumn `json:"columns,omitempty"`
+ // Rows - Array of rows
+ Rows *[][]interface{} `json:"rows,omitempty"`
+}
+
+// QueryResult result of query. It contains all columns listed under groupings and aggregation.
+type QueryResult struct {
+ autorest.Response `json:"-"`
+ *QueryProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource Id.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty"`
+ // Tags - READ-ONLY; Resource tags.
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for QueryResult.
+func (qr QueryResult) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if qr.QueryProperties != nil {
+ objectMap["properties"] = qr.QueryProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for QueryResult struct.
+func (qr *QueryResult) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var queryProperties QueryProperties
+ err = json.Unmarshal(*v, &queryProperties)
+ if err != nil {
+ return err
+ }
+ qr.QueryProperties = &queryProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ qr.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ qr.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ qr.Type = &typeVar
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ qr.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// QuerySortingConfiguration the configuration for sorting in the query.
+type QuerySortingConfiguration struct {
+ // QuerySortingDirection - The sorting direction. Possible values include: 'Ascending', 'Descending'
+ QuerySortingDirection SortDirection `json:"querySortingDirection,omitempty"`
+ // Name - The name of the column to use in sorting.
+ Name *string `json:"name,omitempty"`
+}
+
+// QueryTimePeriod the start and end date for pulling data for the query.
+type QueryTimePeriod struct {
+ // From - The start date to pull data from.
+ From *date.Time `json:"from,omitempty"`
+ // To - The end date to pull data to.
+ To *date.Time `json:"to,omitempty"`
+}
+
+// Resource the Resource model definition.
+type Resource struct {
+ // ID - READ-ONLY; Resource Id.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty"`
+ // Tags - READ-ONLY; 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{})
+ return json.Marshal(objectMap)
+}
diff --git a/services/costmanagement/mgmt/2019-10-01/costmanagement/operations.go b/services/costmanagement/mgmt/2019-10-01/costmanagement/operations.go
new file mode 100644
index 000000000000..d8eb4bd62a9d
--- /dev/null
+++ b/services/costmanagement/mgmt/2019-10-01/costmanagement/operations.go
@@ -0,0 +1,147 @@
+package costmanagement
+
+// 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/tracing"
+ "net/http"
+)
+
+// OperationsClient is the client for the Operations methods of the Costmanagement service.
+type OperationsClient struct {
+ BaseClient
+}
+
+// NewOperationsClient creates an instance of the OperationsClient client.
+func NewOperationsClient(subscriptionID string) OperationsClient {
+ return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
+ return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List lists all of the available cost management REST API operations.
+func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List")
+ defer func() {
+ sc := -1
+ if result.olr.Response.Response != nil {
+ sc = result.olr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.olr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.olr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPath("/providers/Microsoft.CostManagement/operations"),
+ 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 OperationsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, 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 OperationsClient) listNextResults(ctx context.Context, lastResults OperationListResult) (result OperationListResult, err error) {
+ req, err := lastResults.operationListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "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, "costmanagement.OperationsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx)
+ return
+}
diff --git a/services/costmanagement/mgmt/2019-10-01/costmanagement/query.go b/services/costmanagement/mgmt/2019-10-01/costmanagement/query.go
new file mode 100644
index 000000000000..faaec591ea5b
--- /dev/null
+++ b/services/costmanagement/mgmt/2019-10-01/costmanagement/query.go
@@ -0,0 +1,166 @@
+package costmanagement
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// QueryClient is the client for the Query methods of the Costmanagement service.
+type QueryClient struct {
+ BaseClient
+}
+
+// NewQueryClient creates an instance of the QueryClient client.
+func NewQueryClient(subscriptionID string) QueryClient {
+ return NewQueryClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewQueryClientWithBaseURI creates an instance of the QueryClient client.
+func NewQueryClientWithBaseURI(baseURI string, subscriptionID string) QueryClient {
+ return QueryClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Usage query the usage data for scope defined.
+// Parameters:
+// scope - the scope associated with query and export operations. This includes
+// '/subscriptions/{subscriptionId}/' for subscription scope,
+// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department
+// scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
+// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for
+// Management Group scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for
+// billingProfile scope,
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
+// for invoiceSection scope, and
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
+// partners.
+// parameters - parameters supplied to the CreateOrUpdate Query Config operation.
+func (client QueryClient) Usage(ctx context.Context, scope string, parameters QueryDefinition) (result QueryResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/QueryClient.Usage")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.Type", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.TimePeriod", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.TimePeriod.From", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.TimePeriod.To", Name: validation.Null, Rule: true, Chain: nil},
+ }},
+ {Target: "parameters.Dataset", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Dataset.Grouping", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Dataset.Grouping", Name: validation.MaxItems, Rule: 2, Chain: nil}}},
+ {Target: "parameters.Dataset.Filter", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Dataset.Filter.And", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Dataset.Filter.And", Name: validation.MinItems, Rule: 2, Chain: nil}}},
+ {Target: "parameters.Dataset.Filter.Or", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Dataset.Filter.Or", Name: validation.MinItems, Rule: 2, Chain: nil}}},
+ {Target: "parameters.Dataset.Filter.Not", Name: validation.Null, Rule: false, Chain: nil},
+ {Target: "parameters.Dataset.Filter.Dimension", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Dataset.Filter.Dimension.Name", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.Dataset.Filter.Dimension.Operator", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.Dataset.Filter.Dimension.Values", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.Dataset.Filter.Dimension.Values", Name: validation.MinItems, Rule: 1, Chain: nil}}},
+ }},
+ {Target: "parameters.Dataset.Filter.Tag", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Dataset.Filter.Tag.Name", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.Dataset.Filter.Tag.Operator", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.Dataset.Filter.Tag.Values", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.Dataset.Filter.Tag.Values", Name: validation.MinItems, Rule: 1, Chain: nil}}},
+ }},
+ }},
+ }}}}}); err != nil {
+ return result, validation.NewError("costmanagement.QueryClient", "Usage", err.Error())
+ }
+
+ req, err := client.UsagePreparer(ctx, scope, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.QueryClient", "Usage", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UsageSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "costmanagement.QueryClient", "Usage", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UsageResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.QueryClient", "Usage", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UsagePreparer prepares the Usage request.
+func (client QueryClient) UsagePreparer(ctx context.Context, scope string, parameters QueryDefinition) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "scope": scope,
+ }
+
+ const APIVersion = "2019-10-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("/{scope}/providers/Microsoft.CostManagement/query", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UsageSender sends the Usage request. The method will close the
+// http.Response Body if it receives an error.
+func (client QueryClient) UsageSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UsageResponder handles the response to the Usage request. The method always
+// closes the http.Response Body.
+func (client QueryClient) UsageResponder(resp *http.Response) (result QueryResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/costmanagement/mgmt/2019-10-01/costmanagement/version.go b/services/costmanagement/mgmt/2019-10-01/costmanagement/version.go
new file mode 100644
index 000000000000..f1711e9d07e1
--- /dev/null
+++ b/services/costmanagement/mgmt/2019-10-01/costmanagement/version.go
@@ -0,0 +1,30 @@
+package costmanagement
+
+import "github.com/Azure/azure-sdk-for-go/version"
+
+// 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.
+
+// UserAgent returns the UserAgent string to use when sending http.Requests.
+func UserAgent() string {
+ return "Azure-SDK-For-Go/" + version.Number + " costmanagement/2019-10-01"
+}
+
+// Version returns the semantic version (see http://semver.org) of the client.
+func Version() string {
+ return version.Number
+}
diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/models.go b/services/datafactory/mgmt/2018-06-01/datafactory/models.go
index a7f764d671c7..210e26dfdf33 100644
--- a/services/datafactory/mgmt/2018-06-01/datafactory/models.go
+++ b/services/datafactory/mgmt/2018-06-01/datafactory/models.go
@@ -295,6 +295,8 @@ func PossibleDependencyConditionValues() []DependencyCondition {
type DynamicsAuthenticationType string
const (
+ // AADServicePrincipal ...
+ AADServicePrincipal DynamicsAuthenticationType = "AADServicePrincipal"
// Ifd ...
Ifd DynamicsAuthenticationType = "Ifd"
// Office365 ...
@@ -303,7 +305,7 @@ const (
// PossibleDynamicsAuthenticationTypeValues returns an array of possible values for the DynamicsAuthenticationType const type.
func PossibleDynamicsAuthenticationTypeValues() []DynamicsAuthenticationType {
- return []DynamicsAuthenticationType{Ifd, Office365}
+ return []DynamicsAuthenticationType{AADServicePrincipal, Ifd, Office365}
}
// DynamicsDeploymentType enumerates the values for dynamics deployment type.
@@ -806,6 +808,23 @@ func PossibleOraclePartitionOptionValues() []OraclePartitionOption {
return []OraclePartitionOption{OraclePartitionOptionDynamicRange, OraclePartitionOptionNone, OraclePartitionOptionPhysicalPartitionsOfTable}
}
+// OrcCompressionCodec enumerates the values for orc compression codec.
+type OrcCompressionCodec string
+
+const (
+ // OrcCompressionCodecNone ...
+ OrcCompressionCodecNone OrcCompressionCodec = "none"
+ // OrcCompressionCodecSnappy ...
+ OrcCompressionCodecSnappy OrcCompressionCodec = "snappy"
+ // OrcCompressionCodecZlib ...
+ OrcCompressionCodecZlib OrcCompressionCodec = "zlib"
+)
+
+// PossibleOrcCompressionCodecValues returns an array of possible values for the OrcCompressionCodec const type.
+func PossibleOrcCompressionCodecValues() []OrcCompressionCodec {
+ return []OrcCompressionCodec{OrcCompressionCodecNone, OrcCompressionCodecSnappy, OrcCompressionCodecZlib}
+}
+
// ParameterType enumerates the values for parameter type.
type ParameterType string
@@ -1398,6 +1417,8 @@ const (
TypeAzureFunctionActivity TypeBasicActivity = "AzureFunctionActivity"
// TypeAzureMLBatchExecution ...
TypeAzureMLBatchExecution TypeBasicActivity = "AzureMLBatchExecution"
+ // TypeAzureMLExecutePipeline ...
+ TypeAzureMLExecutePipeline TypeBasicActivity = "AzureMLExecutePipeline"
// TypeAzureMLUpdateResource ...
TypeAzureMLUpdateResource TypeBasicActivity = "AzureMLUpdateResource"
// TypeContainer ...
@@ -1448,6 +1469,8 @@ const (
TypeSetVariable TypeBasicActivity = "SetVariable"
// TypeSQLServerStoredProcedure ...
TypeSQLServerStoredProcedure TypeBasicActivity = "SqlServerStoredProcedure"
+ // TypeSwitch ...
+ TypeSwitch TypeBasicActivity = "Switch"
// TypeUntil ...
TypeUntil TypeBasicActivity = "Until"
// TypeValidation ...
@@ -1462,7 +1485,7 @@ const (
// PossibleTypeBasicActivityValues returns an array of possible values for the TypeBasicActivity const type.
func PossibleTypeBasicActivityValues() []TypeBasicActivity {
- return []TypeBasicActivity{TypeActivity, TypeAppendVariable, TypeAzureDataExplorerCommand, TypeAzureFunctionActivity, TypeAzureMLBatchExecution, TypeAzureMLUpdateResource, TypeContainer, TypeCopy, TypeCustom, TypeDatabricksNotebook, TypeDatabricksSparkJar, TypeDatabricksSparkPython, TypeDataLakeAnalyticsUSQL, TypeDelete, TypeExecuteDataFlow, TypeExecutePipeline, TypeExecuteSSISPackage, TypeExecution, TypeFilter, TypeForEach, TypeGetMetadata, TypeHDInsightHive, TypeHDInsightMapReduce, TypeHDInsightPig, TypeHDInsightSpark, TypeHDInsightStreaming, TypeIfCondition, TypeLookup, TypeSetVariable, TypeSQLServerStoredProcedure, TypeUntil, TypeValidation, TypeWait, TypeWebActivity, TypeWebHook}
+ return []TypeBasicActivity{TypeActivity, TypeAppendVariable, TypeAzureDataExplorerCommand, TypeAzureFunctionActivity, TypeAzureMLBatchExecution, TypeAzureMLExecutePipeline, TypeAzureMLUpdateResource, TypeContainer, TypeCopy, TypeCustom, TypeDatabricksNotebook, TypeDatabricksSparkJar, TypeDatabricksSparkPython, TypeDataLakeAnalyticsUSQL, TypeDelete, TypeExecuteDataFlow, TypeExecutePipeline, TypeExecuteSSISPackage, TypeExecution, TypeFilter, TypeForEach, TypeGetMetadata, TypeHDInsightHive, TypeHDInsightMapReduce, TypeHDInsightPig, TypeHDInsightSpark, TypeHDInsightStreaming, TypeIfCondition, TypeLookup, TypeSetVariable, TypeSQLServerStoredProcedure, TypeSwitch, TypeUntil, TypeValidation, TypeWait, TypeWebActivity, TypeWebHook}
}
// TypeBasicCopySink enumerates the values for type basic copy sink.
@@ -2092,6 +2115,8 @@ const (
TypeAzureDataLakeAnalytics TypeBasicLinkedService = "AzureDataLakeAnalytics"
// TypeAzureDataLakeStore ...
TypeAzureDataLakeStore TypeBasicLinkedService = "AzureDataLakeStore"
+ // TypeAzureFileStorage ...
+ TypeAzureFileStorage TypeBasicLinkedService = "AzureFileStorage"
// TypeAzureFunction ...
TypeAzureFunction TypeBasicLinkedService = "AzureFunction"
// TypeAzureKeyVault ...
@@ -2100,6 +2125,8 @@ const (
TypeAzureMariaDB TypeBasicLinkedService = "AzureMariaDB"
// TypeAzureML ...
TypeAzureML TypeBasicLinkedService = "AzureML"
+ // TypeAzureMLService ...
+ TypeAzureMLService TypeBasicLinkedService = "AzureMLService"
// TypeAzureMySQL ...
TypeAzureMySQL TypeBasicLinkedService = "AzureMySql"
// TypeAzurePostgreSQL ...
@@ -2150,6 +2177,8 @@ const (
TypeGoogleAdWords TypeBasicLinkedService = "GoogleAdWords"
// TypeGoogleBigQuery ...
TypeGoogleBigQuery TypeBasicLinkedService = "GoogleBigQuery"
+ // TypeGoogleCloudStorage ...
+ TypeGoogleCloudStorage TypeBasicLinkedService = "GoogleCloudStorage"
// TypeGreenplum ...
TypeGreenplum TypeBasicLinkedService = "Greenplum"
// TypeHBase ...
@@ -2260,7 +2289,7 @@ const (
// PossibleTypeBasicLinkedServiceValues returns an array of possible values for the TypeBasicLinkedService const type.
func PossibleTypeBasicLinkedServiceValues() []TypeBasicLinkedService {
- return []TypeBasicLinkedService{TypeAmazonMWS, TypeAmazonRedshift, TypeAmazonS3, TypeAzureBatch, TypeAzureBlobFS, TypeAzureBlobStorage, TypeAzureDatabricks, TypeAzureDataExplorer, TypeAzureDataLakeAnalytics, TypeAzureDataLakeStore, TypeAzureFunction, TypeAzureKeyVault, TypeAzureMariaDB, TypeAzureML, TypeAzureMySQL, TypeAzurePostgreSQL, TypeAzureSearch, TypeAzureSQLDatabase, TypeAzureSQLDW, TypeAzureSQLMI, TypeAzureStorage, TypeAzureTableStorage, TypeCassandra, TypeCommonDataServiceForApps, TypeConcur, TypeCosmosDb, TypeCosmosDbMongoDbAPI, TypeCouchbase, TypeCustomDataSource, TypeDb2, TypeDrill, TypeDynamics, TypeDynamicsAX, TypeDynamicsCrm, TypeEloqua, TypeFileServer, TypeFtpServer, TypeGoogleAdWords, TypeGoogleBigQuery, TypeGreenplum, TypeHBase, TypeHdfs, TypeHDInsight, TypeHDInsightOnDemand, TypeHive, TypeHTTPServer, TypeHubspot, TypeImpala, TypeInformix, TypeJira, TypeLinkedService, TypeMagento, TypeMariaDB, TypeMarketo, TypeMicrosoftAccess, TypeMongoDb, TypeMongoDbV2, TypeMySQL, TypeNetezza, TypeOData, TypeOdbc, TypeOffice365, TypeOracle, TypeOracleServiceCloud, TypePaypal, TypePhoenix, TypePostgreSQL, TypePresto, TypeQuickBooks, TypeResponsys, TypeRestService, TypeSalesforce, TypeSalesforceMarketingCloud, TypeSalesforceServiceCloud, TypeSapBW, TypeSapCloudForCustomer, TypeSapEcc, TypeSapHana, TypeSapOpenHub, TypeSapTable, TypeServiceNow, TypeSftp, TypeShopify, TypeSpark, TypeSQLServer, TypeSquare, TypeSybase, TypeTeradata, TypeVertica, TypeWeb, TypeXero, TypeZoho}
+ return []TypeBasicLinkedService{TypeAmazonMWS, TypeAmazonRedshift, TypeAmazonS3, TypeAzureBatch, TypeAzureBlobFS, TypeAzureBlobStorage, TypeAzureDatabricks, TypeAzureDataExplorer, TypeAzureDataLakeAnalytics, TypeAzureDataLakeStore, TypeAzureFileStorage, TypeAzureFunction, TypeAzureKeyVault, TypeAzureMariaDB, TypeAzureML, TypeAzureMLService, TypeAzureMySQL, TypeAzurePostgreSQL, TypeAzureSearch, TypeAzureSQLDatabase, TypeAzureSQLDW, TypeAzureSQLMI, TypeAzureStorage, TypeAzureTableStorage, TypeCassandra, TypeCommonDataServiceForApps, TypeConcur, TypeCosmosDb, TypeCosmosDbMongoDbAPI, TypeCouchbase, TypeCustomDataSource, TypeDb2, TypeDrill, TypeDynamics, TypeDynamicsAX, TypeDynamicsCrm, TypeEloqua, TypeFileServer, TypeFtpServer, TypeGoogleAdWords, TypeGoogleBigQuery, TypeGoogleCloudStorage, TypeGreenplum, TypeHBase, TypeHdfs, TypeHDInsight, TypeHDInsightOnDemand, TypeHive, TypeHTTPServer, TypeHubspot, TypeImpala, TypeInformix, TypeJira, TypeLinkedService, TypeMagento, TypeMariaDB, TypeMarketo, TypeMicrosoftAccess, TypeMongoDb, TypeMongoDbV2, TypeMySQL, TypeNetezza, TypeOData, TypeOdbc, TypeOffice365, TypeOracle, TypeOracleServiceCloud, TypePaypal, TypePhoenix, TypePostgreSQL, TypePresto, TypeQuickBooks, TypeResponsys, TypeRestService, TypeSalesforce, TypeSalesforceMarketingCloud, TypeSalesforceServiceCloud, TypeSapBW, TypeSapCloudForCustomer, TypeSapEcc, TypeSapHana, TypeSapOpenHub, TypeSapTable, TypeServiceNow, TypeSftp, TypeShopify, TypeSpark, TypeSQLServer, TypeSquare, TypeSybase, TypeTeradata, TypeVertica, TypeWeb, TypeXero, TypeZoho}
}
// TypeBasicSsisObjectMetadata enumerates the values for type basic ssis object metadata.
@@ -2400,6 +2429,7 @@ type BasicActivity interface {
AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool)
AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool)
AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool)
+ AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool)
AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool)
AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool)
AsGetMetadataActivity() (*GetMetadataActivity, bool)
@@ -2426,6 +2456,7 @@ type BasicActivity interface {
AsUntilActivity() (*UntilActivity, bool)
AsWaitActivity() (*WaitActivity, bool)
AsForEachActivity() (*ForEachActivity, bool)
+ AsSwitchActivity() (*SwitchActivity, bool)
AsIfConditionActivity() (*IfConditionActivity, bool)
AsExecutePipelineActivity() (*ExecutePipelineActivity, bool)
AsControlActivity() (*ControlActivity, bool)
@@ -2445,7 +2476,7 @@ type Activity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -2481,6 +2512,10 @@ func unmarshalBasicActivity(body []byte) (BasicActivity, error) {
var dlaua DataLakeAnalyticsUSQLActivity
err := json.Unmarshal(body, &dlaua)
return dlaua, err
+ case string(TypeAzureMLExecutePipeline):
+ var amepa AzureMLExecutePipelineActivity
+ err := json.Unmarshal(body, &amepa)
+ return amepa, err
case string(TypeAzureMLUpdateResource):
var amura AzureMLUpdateResourceActivity
err := json.Unmarshal(body, &amura)
@@ -2581,6 +2616,10 @@ func unmarshalBasicActivity(body []byte) (BasicActivity, error) {
var fea ForEachActivity
err := json.Unmarshal(body, &fea)
return fea, err
+ case string(TypeSwitch):
+ var sa SwitchActivity
+ err := json.Unmarshal(body, &sa)
+ return sa, err
case string(TypeIfCondition):
var ica IfConditionActivity
err := json.Unmarshal(body, &ica)
@@ -2673,6 +2712,11 @@ func (a Activity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActiv
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for Activity.
+func (a Activity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for Activity.
func (a Activity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -2803,6 +2847,11 @@ func (a Activity) AsForEachActivity() (*ForEachActivity, bool) {
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for Activity.
+func (a Activity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for Activity.
func (a Activity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -3302,7 +3351,7 @@ type AmazonMWSLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -3674,6 +3723,11 @@ func (amls AmazonMWSLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bo
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService.
+func (amls AmazonMWSLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService.
func (amls AmazonMWSLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -3714,6 +3768,16 @@ func (amls AmazonMWSLinkedService) AsOracleLinkedService() (*OracleLinkedService
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService.
+func (amls AmazonMWSLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService.
+func (amls AmazonMWSLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService.
func (amls AmazonMWSLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -5212,7 +5276,7 @@ type AmazonRedshiftLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -5584,6 +5648,11 @@ func (arls AmazonRedshiftLinkedService) AsOdbcLinkedService() (*OdbcLinkedServic
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService.
+func (arls AmazonRedshiftLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService.
func (arls AmazonRedshiftLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -5624,6 +5693,16 @@ func (arls AmazonRedshiftLinkedService) AsOracleLinkedService() (*OracleLinkedSe
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService.
+func (arls AmazonRedshiftLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService.
+func (arls AmazonRedshiftLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService.
func (arls AmazonRedshiftLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -7822,7 +7901,7 @@ type AmazonS3LinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -8194,6 +8273,11 @@ func (asls AmazonS3LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, boo
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService.
+func (asls AmazonS3LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService.
func (asls AmazonS3LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -8234,6 +8318,16 @@ func (asls AmazonS3LinkedService) AsOracleLinkedService() (*OracleLinkedService,
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService.
+func (asls AmazonS3LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService.
+func (asls AmazonS3LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService.
func (asls AmazonS3LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -8756,7 +8850,7 @@ type AppendVariableActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -8818,6 +8912,11 @@ func (ava AppendVariableActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAn
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AppendVariableActivity.
+func (ava AppendVariableActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AppendVariableActivity.
func (ava AppendVariableActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -8948,6 +9047,11 @@ func (ava AppendVariableActivity) AsForEachActivity() (*ForEachActivity, bool) {
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for AppendVariableActivity.
+func (ava AppendVariableActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for AppendVariableActivity.
func (ava AppendVariableActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -10803,7 +10907,7 @@ type AzureBatchLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -11175,6 +11279,11 @@ func (abls AzureBatchLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, b
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService.
+func (abls AzureBatchLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService.
func (abls AzureBatchLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -11215,6 +11324,16 @@ func (abls AzureBatchLinkedService) AsOracleLinkedService() (*OracleLinkedServic
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService.
+func (abls AzureBatchLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService.
+func (abls AzureBatchLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService.
func (abls AzureBatchLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -12862,7 +12981,7 @@ type AzureBlobFSLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -13234,6 +13353,11 @@ func (abfls AzureBlobFSLinkedService) AsOdbcLinkedService() (*OdbcLinkedService,
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService.
+func (abfls AzureBlobFSLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService.
func (abfls AzureBlobFSLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -13274,6 +13398,16 @@ func (abfls AzureBlobFSLinkedService) AsOracleLinkedService() (*OracleLinkedServ
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService.
+func (abfls AzureBlobFSLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService.
+func (abfls AzureBlobFSLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService.
func (abfls AzureBlobFSLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -14831,7 +14965,7 @@ type AzureBlobStorageLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -15203,6 +15337,11 @@ func (absls AzureBlobStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedSer
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService.
+func (absls AzureBlobStorageLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService.
func (absls AzureBlobStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -15243,6 +15382,16 @@ func (absls AzureBlobStorageLinkedService) AsOracleLinkedService() (*OracleLinke
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService.
+func (absls AzureBlobStorageLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService.
+func (absls AzureBlobStorageLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService.
func (absls AzureBlobStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -15921,7 +16070,7 @@ type AzureDatabricksLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -16293,6 +16442,11 @@ func (adls AzureDatabricksLinkedService) AsOdbcLinkedService() (*OdbcLinkedServi
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService.
+func (adls AzureDatabricksLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService.
func (adls AzureDatabricksLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -16333,6 +16487,16 @@ func (adls AzureDatabricksLinkedService) AsOracleLinkedService() (*OracleLinkedS
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService.
+func (adls AzureDatabricksLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService.
+func (adls AzureDatabricksLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService.
func (adls AzureDatabricksLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -16735,7 +16899,7 @@ type AzureDataExplorerCommandActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -16803,6 +16967,11 @@ func (adeca AzureDataExplorerCommandActivity) AsDataLakeAnalyticsUSQLActivity()
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity.
+func (adeca AzureDataExplorerCommandActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity.
func (adeca AzureDataExplorerCommandActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -16933,6 +17102,11 @@ func (adeca AzureDataExplorerCommandActivity) AsForEachActivity() (*ForEachActiv
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity.
+func (adeca AzureDataExplorerCommandActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity.
func (adeca AzureDataExplorerCommandActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -17090,7 +17264,7 @@ type AzureDataExplorerLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -17462,6 +17636,11 @@ func (adels AzureDataExplorerLinkedService) AsOdbcLinkedService() (*OdbcLinkedSe
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService.
+func (adels AzureDataExplorerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService.
func (adels AzureDataExplorerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -17502,6 +17681,16 @@ func (adels AzureDataExplorerLinkedService) AsOracleLinkedService() (*OracleLink
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService.
+func (adels AzureDataExplorerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService.
+func (adels AzureDataExplorerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService.
func (adels AzureDataExplorerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -19309,7 +19498,7 @@ type AzureDataLakeAnalyticsLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -19681,6 +19870,11 @@ func (adlals AzureDataLakeAnalyticsLinkedService) AsOdbcLinkedService() (*OdbcLi
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService.
+func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService.
func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -19721,6 +19915,16 @@ func (adlals AzureDataLakeAnalyticsLinkedService) AsOracleLinkedService() (*Orac
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService.
+func (adlals AzureDataLakeAnalyticsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService.
+func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService.
func (adlals AzureDataLakeAnalyticsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -20682,7 +20886,7 @@ type AzureDataLakeStoreLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -21054,6 +21258,11 @@ func (adlsls AzureDataLakeStoreLinkedService) AsOdbcLinkedService() (*OdbcLinked
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService.
+func (adlsls AzureDataLakeStoreLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService.
func (adlsls AzureDataLakeStoreLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -21094,6 +21303,16 @@ func (adlsls AzureDataLakeStoreLinkedService) AsOracleLinkedService() (*OracleLi
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService.
+func (adlsls AzureDataLakeStoreLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService.
+func (adlsls AzureDataLakeStoreLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService.
func (adlsls AzureDataLakeStoreLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -22617,6 +22836,913 @@ func (adlsws *AzureDataLakeStoreWriteSettings) UnmarshalJSON(body []byte) error
return nil
}
+// AzureFileStorageLinkedService azure File Storage linked service.
+type AzureFileStorageLinkedService struct {
+ // AzureFileStorageLinkedServiceTypeProperties - Azure File Storage linked service properties.
+ *AzureFileStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"`
+ // AdditionalProperties - Unmatched properties from the message are deserialized this collection
+ AdditionalProperties map[string]interface{} `json:""`
+ // ConnectVia - The integration runtime reference.
+ ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"`
+ // Description - Linked service description.
+ Description *string `json:"description,omitempty"`
+ // Parameters - Parameters for linked service.
+ Parameters map[string]*ParameterSpecification `json:"parameters"`
+ // Annotations - List of tags that can be used for describing the linked service.
+ Annotations *[]interface{} `json:"annotations,omitempty"`
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ Type TypeBasicLinkedService `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) MarshalJSON() ([]byte, error) {
+ afsls.Type = TypeAzureFileStorage
+ objectMap := make(map[string]interface{})
+ if afsls.AzureFileStorageLinkedServiceTypeProperties != nil {
+ objectMap["typeProperties"] = afsls.AzureFileStorageLinkedServiceTypeProperties
+ }
+ if afsls.ConnectVia != nil {
+ objectMap["connectVia"] = afsls.ConnectVia
+ }
+ if afsls.Description != nil {
+ objectMap["description"] = afsls.Description
+ }
+ if afsls.Parameters != nil {
+ objectMap["parameters"] = afsls.Parameters
+ }
+ if afsls.Annotations != nil {
+ objectMap["annotations"] = afsls.Annotations
+ }
+ if afsls.Type != "" {
+ objectMap["type"] = afsls.Type
+ }
+ for k, v := range afsls.AdditionalProperties {
+ objectMap[k] = v
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) {
+ return nil, false
+}
+
+// AsSapTableLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) {
+ return nil, false
+}
+
+// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) {
+ return nil, false
+}
+
+// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) {
+ return nil, false
+}
+
+// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) {
+ return nil, false
+}
+
+// AsResponsysLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) {
+ return nil, false
+}
+
+// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) {
+ return nil, false
+}
+
+// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) {
+ return nil, false
+}
+
+// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) {
+ return nil, false
+}
+
+// AsVerticaLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) {
+ return nil, false
+}
+
+// AsZohoLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) {
+ return nil, false
+}
+
+// AsXeroLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) {
+ return nil, false
+}
+
+// AsSquareLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) {
+ return nil, false
+}
+
+// AsSparkLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) {
+ return nil, false
+}
+
+// AsShopifyLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) {
+ return nil, false
+}
+
+// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) {
+ return nil, false
+}
+
+// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) {
+ return nil, false
+}
+
+// AsPrestoLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) {
+ return nil, false
+}
+
+// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) {
+ return nil, false
+}
+
+// AsPaypalLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) {
+ return nil, false
+}
+
+// AsMarketoLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) {
+ return nil, false
+}
+
+// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) {
+ return nil, false
+}
+
+// AsMagentoLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) {
+ return nil, false
+}
+
+// AsJiraLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) {
+ return nil, false
+}
+
+// AsImpalaLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) {
+ return nil, false
+}
+
+// AsHubspotLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) {
+ return nil, false
+}
+
+// AsHiveLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) {
+ return nil, false
+}
+
+// AsHBaseLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) {
+ return nil, false
+}
+
+// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) {
+ return nil, false
+}
+
+// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) {
+ return nil, false
+}
+
+// AsEloquaLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) {
+ return nil, false
+}
+
+// AsDrillLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) {
+ return nil, false
+}
+
+// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) {
+ return nil, false
+}
+
+// AsConcurLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) {
+ return nil, false
+}
+
+// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) {
+ return nil, false
+}
+
+// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) {
+ return nil, false
+}
+
+// AsSapBWLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) {
+ return nil, false
+}
+
+// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) {
+ return nil, false
+}
+
+// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) {
+ return nil, false
+}
+
+// AsHTTPLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) {
+ return nil, false
+}
+
+// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) {
+ return nil, false
+}
+
+// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) {
+ return nil, false
+}
+
+// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) {
+ return nil, false
+}
+
+// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) {
+ return nil, false
+}
+
+// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) {
+ return nil, false
+}
+
+// AsSapEccLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) {
+ return nil, false
+}
+
+// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) {
+ return nil, false
+}
+
+// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) {
+ return nil, false
+}
+
+// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) {
+ return nil, false
+}
+
+// AsOffice365LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) {
+ return nil, false
+}
+
+// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) {
+ return nil, false
+}
+
+// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) {
+ return nil, false
+}
+
+// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) {
+ return nil, false
+}
+
+// AsCassandraLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) {
+ return nil, false
+}
+
+// AsWebLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsWebLinkedService() (*WebLinkedService, bool) {
+ return nil, false
+}
+
+// AsODataLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) {
+ return nil, false
+}
+
+// AsHdfsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) {
+ return nil, false
+}
+
+// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) {
+ return nil, false
+}
+
+// AsInformixLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) {
+ return nil, false
+}
+
+// AsOdbcLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
+ return nil, false
+}
+
+// AsTeradataLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) {
+ return nil, false
+}
+
+// AsDb2LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) {
+ return nil, false
+}
+
+// AsSybaseLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) {
+ return nil, false
+}
+
+// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) {
+ return nil, false
+}
+
+// AsMySQLLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) {
+ return nil, false
+}
+
+// AsOracleLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) {
+ return nil, false
+}
+
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return &afsls, true
+}
+
+// AsFileServerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
+ return nil, false
+}
+
+// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) {
+ return nil, false
+}
+
+// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) {
+ return nil, false
+}
+
+// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) {
+ return nil, false
+}
+
+// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) {
+ return nil, false
+}
+
+// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) {
+ return nil, false
+}
+
+// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsLinkedService() (*LinkedService, bool) {
+ return nil, false
+}
+
+// AsBasicLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService.
+func (afsls AzureFileStorageLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) {
+ return &afsls, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for AzureFileStorageLinkedService struct.
+func (afsls *AzureFileStorageLinkedService) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "typeProperties":
+ if v != nil {
+ var azureFileStorageLinkedServiceTypeProperties AzureFileStorageLinkedServiceTypeProperties
+ err = json.Unmarshal(*v, &azureFileStorageLinkedServiceTypeProperties)
+ if err != nil {
+ return err
+ }
+ afsls.AzureFileStorageLinkedServiceTypeProperties = &azureFileStorageLinkedServiceTypeProperties
+ }
+ default:
+ if v != nil {
+ var additionalProperties interface{}
+ err = json.Unmarshal(*v, &additionalProperties)
+ if err != nil {
+ return err
+ }
+ if afsls.AdditionalProperties == nil {
+ afsls.AdditionalProperties = make(map[string]interface{})
+ }
+ afsls.AdditionalProperties[k] = additionalProperties
+ }
+ case "connectVia":
+ if v != nil {
+ var connectVia IntegrationRuntimeReference
+ err = json.Unmarshal(*v, &connectVia)
+ if err != nil {
+ return err
+ }
+ afsls.ConnectVia = &connectVia
+ }
+ case "description":
+ if v != nil {
+ var description string
+ err = json.Unmarshal(*v, &description)
+ if err != nil {
+ return err
+ }
+ afsls.Description = &description
+ }
+ case "parameters":
+ if v != nil {
+ var parameters map[string]*ParameterSpecification
+ err = json.Unmarshal(*v, ¶meters)
+ if err != nil {
+ return err
+ }
+ afsls.Parameters = parameters
+ }
+ case "annotations":
+ if v != nil {
+ var annotations []interface{}
+ err = json.Unmarshal(*v, &annotations)
+ if err != nil {
+ return err
+ }
+ afsls.Annotations = &annotations
+ }
+ case "type":
+ if v != nil {
+ var typeVar TypeBasicLinkedService
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ afsls.Type = typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// AzureFileStorageLinkedServiceTypeProperties azure File Storage linked service properties.
+type AzureFileStorageLinkedServiceTypeProperties struct {
+ // Host - Host name of the server. Type: string (or Expression with resultType string).
+ Host interface{} `json:"host,omitempty"`
+ // UserID - User ID to logon the server. Type: string (or Expression with resultType string).
+ UserID interface{} `json:"userId,omitempty"`
+ // Password - Password to logon the server.
+ Password BasicSecretBase `json:"password,omitempty"`
+ // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string).
+ EncryptedCredential interface{} `json:"encryptedCredential,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for AzureFileStorageLinkedServiceTypeProperties struct.
+func (afslstp *AzureFileStorageLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "host":
+ if v != nil {
+ var host interface{}
+ err = json.Unmarshal(*v, &host)
+ if err != nil {
+ return err
+ }
+ afslstp.Host = host
+ }
+ case "userId":
+ if v != nil {
+ var userID interface{}
+ err = json.Unmarshal(*v, &userID)
+ if err != nil {
+ return err
+ }
+ afslstp.UserID = userID
+ }
+ case "password":
+ if v != nil {
+ password, err := unmarshalBasicSecretBase(*v)
+ if err != nil {
+ return err
+ }
+ afslstp.Password = password
+ }
+ case "encryptedCredential":
+ if v != nil {
+ var encryptedCredential interface{}
+ err = json.Unmarshal(*v, &encryptedCredential)
+ if err != nil {
+ return err
+ }
+ afslstp.EncryptedCredential = encryptedCredential
+ }
+ }
+ }
+
+ return nil
+}
+
+// AzureFileStorageLocation the location of file server dataset.
+type AzureFileStorageLocation struct {
+ // AdditionalProperties - Unmatched properties from the message are deserialized this collection
+ AdditionalProperties map[string]interface{} `json:""`
+ // Type - Type of dataset storage location.
+ Type *string `json:"type,omitempty"`
+ // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string)
+ FolderPath interface{} `json:"folderPath,omitempty"`
+ // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string).
+ FileName interface{} `json:"fileName,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for AzureFileStorageLocation.
+func (afsl AzureFileStorageLocation) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if afsl.Type != nil {
+ objectMap["type"] = afsl.Type
+ }
+ if afsl.FolderPath != nil {
+ objectMap["folderPath"] = afsl.FolderPath
+ }
+ if afsl.FileName != nil {
+ objectMap["fileName"] = afsl.FileName
+ }
+ for k, v := range afsl.AdditionalProperties {
+ objectMap[k] = v
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for AzureFileStorageLocation struct.
+func (afsl *AzureFileStorageLocation) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ default:
+ if v != nil {
+ var additionalProperties interface{}
+ err = json.Unmarshal(*v, &additionalProperties)
+ if err != nil {
+ return err
+ }
+ if afsl.AdditionalProperties == nil {
+ afsl.AdditionalProperties = make(map[string]interface{})
+ }
+ afsl.AdditionalProperties[k] = additionalProperties
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ afsl.Type = &typeVar
+ }
+ case "folderPath":
+ if v != nil {
+ var folderPath interface{}
+ err = json.Unmarshal(*v, &folderPath)
+ if err != nil {
+ return err
+ }
+ afsl.FolderPath = folderPath
+ }
+ case "fileName":
+ if v != nil {
+ var fileName interface{}
+ err = json.Unmarshal(*v, &fileName)
+ if err != nil {
+ return err
+ }
+ afsl.FileName = fileName
+ }
+ }
+ }
+
+ return nil
+}
+
+// AzureFileStorageReadSettings azure File Storage read settings.
+type AzureFileStorageReadSettings struct {
+ // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean).
+ Recursive interface{} `json:"recursive,omitempty"`
+ // WildcardFolderPath - Azure File Storage wildcardFolderPath. Type: string (or Expression with resultType string).
+ WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"`
+ // WildcardFileName - Azure File Storage wildcardFileName. Type: string (or Expression with resultType string).
+ WildcardFileName interface{} `json:"wildcardFileName,omitempty"`
+ // EnablePartitionDiscovery - Indicates whether to enable partition discovery.
+ EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"`
+ // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string).
+ ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"`
+ // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string).
+ ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"`
+ // AdditionalProperties - Unmatched properties from the message are deserialized this collection
+ AdditionalProperties map[string]interface{} `json:""`
+ // Type - The read setting type.
+ Type *string `json:"type,omitempty"`
+ // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer).
+ MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for AzureFileStorageReadSettings.
+func (afsrs AzureFileStorageReadSettings) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if afsrs.Recursive != nil {
+ objectMap["recursive"] = afsrs.Recursive
+ }
+ if afsrs.WildcardFolderPath != nil {
+ objectMap["wildcardFolderPath"] = afsrs.WildcardFolderPath
+ }
+ if afsrs.WildcardFileName != nil {
+ objectMap["wildcardFileName"] = afsrs.WildcardFileName
+ }
+ if afsrs.EnablePartitionDiscovery != nil {
+ objectMap["enablePartitionDiscovery"] = afsrs.EnablePartitionDiscovery
+ }
+ if afsrs.ModifiedDatetimeStart != nil {
+ objectMap["modifiedDatetimeStart"] = afsrs.ModifiedDatetimeStart
+ }
+ if afsrs.ModifiedDatetimeEnd != nil {
+ objectMap["modifiedDatetimeEnd"] = afsrs.ModifiedDatetimeEnd
+ }
+ if afsrs.Type != nil {
+ objectMap["type"] = afsrs.Type
+ }
+ if afsrs.MaxConcurrentConnections != nil {
+ objectMap["maxConcurrentConnections"] = afsrs.MaxConcurrentConnections
+ }
+ for k, v := range afsrs.AdditionalProperties {
+ objectMap[k] = v
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for AzureFileStorageReadSettings struct.
+func (afsrs *AzureFileStorageReadSettings) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "recursive":
+ if v != nil {
+ var recursive interface{}
+ err = json.Unmarshal(*v, &recursive)
+ if err != nil {
+ return err
+ }
+ afsrs.Recursive = recursive
+ }
+ case "wildcardFolderPath":
+ if v != nil {
+ var wildcardFolderPath interface{}
+ err = json.Unmarshal(*v, &wildcardFolderPath)
+ if err != nil {
+ return err
+ }
+ afsrs.WildcardFolderPath = wildcardFolderPath
+ }
+ case "wildcardFileName":
+ if v != nil {
+ var wildcardFileName interface{}
+ err = json.Unmarshal(*v, &wildcardFileName)
+ if err != nil {
+ return err
+ }
+ afsrs.WildcardFileName = wildcardFileName
+ }
+ case "enablePartitionDiscovery":
+ if v != nil {
+ var enablePartitionDiscovery bool
+ err = json.Unmarshal(*v, &enablePartitionDiscovery)
+ if err != nil {
+ return err
+ }
+ afsrs.EnablePartitionDiscovery = &enablePartitionDiscovery
+ }
+ case "modifiedDatetimeStart":
+ if v != nil {
+ var modifiedDatetimeStart interface{}
+ err = json.Unmarshal(*v, &modifiedDatetimeStart)
+ if err != nil {
+ return err
+ }
+ afsrs.ModifiedDatetimeStart = modifiedDatetimeStart
+ }
+ case "modifiedDatetimeEnd":
+ if v != nil {
+ var modifiedDatetimeEnd interface{}
+ err = json.Unmarshal(*v, &modifiedDatetimeEnd)
+ if err != nil {
+ return err
+ }
+ afsrs.ModifiedDatetimeEnd = modifiedDatetimeEnd
+ }
+ default:
+ if v != nil {
+ var additionalProperties interface{}
+ err = json.Unmarshal(*v, &additionalProperties)
+ if err != nil {
+ return err
+ }
+ if afsrs.AdditionalProperties == nil {
+ afsrs.AdditionalProperties = make(map[string]interface{})
+ }
+ afsrs.AdditionalProperties[k] = additionalProperties
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ afsrs.Type = &typeVar
+ }
+ case "maxConcurrentConnections":
+ if v != nil {
+ var maxConcurrentConnections interface{}
+ err = json.Unmarshal(*v, &maxConcurrentConnections)
+ if err != nil {
+ return err
+ }
+ afsrs.MaxConcurrentConnections = maxConcurrentConnections
+ }
+ }
+ }
+
+ return nil
+}
+
// AzureFunctionActivity azure Function activity.
type AzureFunctionActivity struct {
// AzureFunctionActivityTypeProperties - Azure Function activity properties.
@@ -22635,7 +23761,7 @@ type AzureFunctionActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -22703,6 +23829,11 @@ func (afa AzureFunctionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAna
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureFunctionActivity.
+func (afa AzureFunctionActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureFunctionActivity.
func (afa AzureFunctionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -22833,6 +23964,11 @@ func (afa AzureFunctionActivity) AsForEachActivity() (*ForEachActivity, bool) {
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for AzureFunctionActivity.
+func (afa AzureFunctionActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for AzureFunctionActivity.
func (afa AzureFunctionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -22988,7 +24124,7 @@ type AzureFunctionLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -23360,6 +24496,11 @@ func (afls AzureFunctionLinkedService) AsOdbcLinkedService() (*OdbcLinkedService
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService.
+func (afls AzureFunctionLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService.
func (afls AzureFunctionLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -23400,6 +24541,16 @@ func (afls AzureFunctionLinkedService) AsOracleLinkedService() (*OracleLinkedSer
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService.
+func (afls AzureFunctionLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService.
+func (afls AzureFunctionLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService.
func (afls AzureFunctionLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -23631,7 +24782,7 @@ type AzureKeyVaultLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -24003,6 +25154,11 @@ func (akvls AzureKeyVaultLinkedService) AsOdbcLinkedService() (*OdbcLinkedServic
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService.
+func (akvls AzureKeyVaultLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService.
func (akvls AzureKeyVaultLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -24043,6 +25199,16 @@ func (akvls AzureKeyVaultLinkedService) AsOracleLinkedService() (*OracleLinkedSe
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService.
+func (akvls AzureKeyVaultLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService.
+func (akvls AzureKeyVaultLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService.
func (akvls AzureKeyVaultLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -24280,7 +25446,7 @@ type AzureMariaDBLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -24652,6 +25818,11 @@ func (amdls AzureMariaDBLinkedService) AsOdbcLinkedService() (*OdbcLinkedService
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService.
+func (amdls AzureMariaDBLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService.
func (amdls AzureMariaDBLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -24692,6 +25863,16 @@ func (amdls AzureMariaDBLinkedService) AsOracleLinkedService() (*OracleLinkedSer
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService.
+func (amdls AzureMariaDBLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService.
+func (amdls AzureMariaDBLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService.
func (amdls AzureMariaDBLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -26077,7 +27258,7 @@ type AzureMLBatchExecutionActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -26145,6 +27326,11 @@ func (ambea AzureMLBatchExecutionActivity) AsDataLakeAnalyticsUSQLActivity() (*D
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity.
+func (ambea AzureMLBatchExecutionActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity.
func (ambea AzureMLBatchExecutionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -26275,6 +27461,11 @@ func (ambea AzureMLBatchExecutionActivity) AsForEachActivity() (*ForEachActivity
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity.
+func (ambea AzureMLBatchExecutionActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity.
func (ambea AzureMLBatchExecutionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -26429,9 +27620,378 @@ func (ambeatp AzureMLBatchExecutionActivityTypeProperties) MarshalJSON() ([]byte
return json.Marshal(objectMap)
}
-// AzureMLLinkedService azure ML Web Service linked service.
+// AzureMLExecutePipelineActivity azure ML Execute Pipeline activity.
+type AzureMLExecutePipelineActivity struct {
+ // AzureMLExecutePipelineActivityTypeProperties - Azure ML Execute Pipeline activity properties.
+ *AzureMLExecutePipelineActivityTypeProperties `json:"typeProperties,omitempty"`
+ // LinkedServiceName - Linked service reference.
+ LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"`
+ // Policy - Activity policy.
+ Policy *ActivityPolicy `json:"policy,omitempty"`
+ // AdditionalProperties - Unmatched properties from the message are deserialized this collection
+ AdditionalProperties map[string]interface{} `json:""`
+ // Name - Activity name.
+ Name *string `json:"name,omitempty"`
+ // Description - Activity description.
+ Description *string `json:"description,omitempty"`
+ // DependsOn - Activity depends on condition.
+ DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
+ // UserProperties - Activity user properties.
+ UserProperties *[]UserProperty `json:"userProperties,omitempty"`
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ Type TypeBasicActivity `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) MarshalJSON() ([]byte, error) {
+ amepa.Type = TypeAzureMLExecutePipeline
+ objectMap := make(map[string]interface{})
+ if amepa.AzureMLExecutePipelineActivityTypeProperties != nil {
+ objectMap["typeProperties"] = amepa.AzureMLExecutePipelineActivityTypeProperties
+ }
+ if amepa.LinkedServiceName != nil {
+ objectMap["linkedServiceName"] = amepa.LinkedServiceName
+ }
+ if amepa.Policy != nil {
+ objectMap["policy"] = amepa.Policy
+ }
+ if amepa.Name != nil {
+ objectMap["name"] = amepa.Name
+ }
+ if amepa.Description != nil {
+ objectMap["description"] = amepa.Description
+ }
+ if amepa.DependsOn != nil {
+ objectMap["dependsOn"] = amepa.DependsOn
+ }
+ if amepa.UserProperties != nil {
+ objectMap["userProperties"] = amepa.UserProperties
+ }
+ if amepa.Type != "" {
+ objectMap["type"] = amepa.Type
+ }
+ for k, v := range amepa.AdditionalProperties {
+ objectMap[k] = v
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsExecuteDataFlowActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) {
+ return nil, false
+}
+
+// AsAzureFunctionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) {
+ return nil, false
+}
+
+// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) {
+ return nil, false
+}
+
+// AsDatabricksSparkJarActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) {
+ return nil, false
+}
+
+// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) {
+ return nil, false
+}
+
+// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) {
+ return nil, false
+}
+
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return &amepa, true
+}
+
+// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
+ return nil, false
+}
+
+// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) {
+ return nil, false
+}
+
+// AsGetMetadataActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) {
+ return nil, false
+}
+
+// AsWebActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsWebActivity() (*WebActivity, bool) {
+ return nil, false
+}
+
+// AsLookupActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsLookupActivity() (*LookupActivity, bool) {
+ return nil, false
+}
+
+// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) {
+ return nil, false
+}
+
+// AsDeleteActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsDeleteActivity() (*DeleteActivity, bool) {
+ return nil, false
+}
+
+// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) {
+ return nil, false
+}
+
+// AsCustomActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsCustomActivity() (*CustomActivity, bool) {
+ return nil, false
+}
+
+// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) {
+ return nil, false
+}
+
+// AsHDInsightSparkActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) {
+ return nil, false
+}
+
+// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) {
+ return nil, false
+}
+
+// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) {
+ return nil, false
+}
+
+// AsHDInsightPigActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) {
+ return nil, false
+}
+
+// AsHDInsightHiveActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) {
+ return nil, false
+}
+
+// AsCopyActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsCopyActivity() (*CopyActivity, bool) {
+ return nil, false
+}
+
+// AsExecutionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsExecutionActivity() (*ExecutionActivity, bool) {
+ return nil, false
+}
+
+// AsBasicExecutionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) {
+ return &amepa, true
+}
+
+// AsWebHookActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsWebHookActivity() (*WebHookActivity, bool) {
+ return nil, false
+}
+
+// AsAppendVariableActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) {
+ return nil, false
+}
+
+// AsSetVariableActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsSetVariableActivity() (*SetVariableActivity, bool) {
+ return nil, false
+}
+
+// AsFilterActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsFilterActivity() (*FilterActivity, bool) {
+ return nil, false
+}
+
+// AsValidationActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsValidationActivity() (*ValidationActivity, bool) {
+ return nil, false
+}
+
+// AsUntilActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsUntilActivity() (*UntilActivity, bool) {
+ return nil, false
+}
+
+// AsWaitActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsWaitActivity() (*WaitActivity, bool) {
+ return nil, false
+}
+
+// AsForEachActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsForEachActivity() (*ForEachActivity, bool) {
+ return nil, false
+}
+
+// AsSwitchActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
+// AsIfConditionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
+ return nil, false
+}
+
+// AsExecutePipelineActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) {
+ return nil, false
+}
+
+// AsControlActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsControlActivity() (*ControlActivity, bool) {
+ return nil, false
+}
+
+// AsBasicControlActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsBasicControlActivity() (BasicControlActivity, bool) {
+ return nil, false
+}
+
+// AsActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsActivity() (*Activity, bool) {
+ return nil, false
+}
+
+// AsBasicActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity.
+func (amepa AzureMLExecutePipelineActivity) AsBasicActivity() (BasicActivity, bool) {
+ return &amepa, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for AzureMLExecutePipelineActivity struct.
+func (amepa *AzureMLExecutePipelineActivity) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "typeProperties":
+ if v != nil {
+ var azureMLExecutePipelineActivityTypeProperties AzureMLExecutePipelineActivityTypeProperties
+ err = json.Unmarshal(*v, &azureMLExecutePipelineActivityTypeProperties)
+ if err != nil {
+ return err
+ }
+ amepa.AzureMLExecutePipelineActivityTypeProperties = &azureMLExecutePipelineActivityTypeProperties
+ }
+ case "linkedServiceName":
+ if v != nil {
+ var linkedServiceName LinkedServiceReference
+ err = json.Unmarshal(*v, &linkedServiceName)
+ if err != nil {
+ return err
+ }
+ amepa.LinkedServiceName = &linkedServiceName
+ }
+ case "policy":
+ if v != nil {
+ var policy ActivityPolicy
+ err = json.Unmarshal(*v, &policy)
+ if err != nil {
+ return err
+ }
+ amepa.Policy = &policy
+ }
+ default:
+ if v != nil {
+ var additionalProperties interface{}
+ err = json.Unmarshal(*v, &additionalProperties)
+ if err != nil {
+ return err
+ }
+ if amepa.AdditionalProperties == nil {
+ amepa.AdditionalProperties = make(map[string]interface{})
+ }
+ amepa.AdditionalProperties[k] = additionalProperties
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ amepa.Name = &name
+ }
+ case "description":
+ if v != nil {
+ var description string
+ err = json.Unmarshal(*v, &description)
+ if err != nil {
+ return err
+ }
+ amepa.Description = &description
+ }
+ case "dependsOn":
+ if v != nil {
+ var dependsOn []ActivityDependency
+ err = json.Unmarshal(*v, &dependsOn)
+ if err != nil {
+ return err
+ }
+ amepa.DependsOn = &dependsOn
+ }
+ case "userProperties":
+ if v != nil {
+ var userProperties []UserProperty
+ err = json.Unmarshal(*v, &userProperties)
+ if err != nil {
+ return err
+ }
+ amepa.UserProperties = &userProperties
+ }
+ case "type":
+ if v != nil {
+ var typeVar TypeBasicActivity
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ amepa.Type = typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// AzureMLExecutePipelineActivityTypeProperties azure ML Execute Pipeline activity properties.
+type AzureMLExecutePipelineActivityTypeProperties struct {
+ // MlPipelineID - ID of the published Azure ML pipeline. Type: string (or Expression with resultType string).
+ MlPipelineID interface{} `json:"mlPipelineId,omitempty"`
+ // ExperimentName - Run history experiment name of the pipeline run. This information will be passed in the ExperimentName property of the published pipeline execution request. Type: string (or Expression with resultType string).
+ ExperimentName interface{} `json:"experimentName,omitempty"`
+ // MlPipelineParameters - Key,Value pairs to be passed to the published Azure ML pipeline endpoint. Keys must match the names of pipeline parameters defined in the published pipeline. Values will be passed in the ParameterAssignments property of the published pipeline execution request. Type: object with key value pairs (or Expression with resultType object).
+ MlPipelineParameters interface{} `json:"mlPipelineParameters,omitempty"`
+ // MlParentRunID - The parent Azure ML Service pipeline run id. This information will be passed in the ParentRunId property of the published pipeline execution request. Type: string (or Expression with resultType string).
+ MlParentRunID interface{} `json:"mlParentRunId,omitempty"`
+ // ContinueOnStepFailure - Whether to continue execution of other steps in the PipelineRun if a step fails. This information will be passed in the continueOnStepFailure property of the published pipeline execution request. Type: boolean (or Expression with resultType boolean).
+ ContinueOnStepFailure interface{} `json:"continueOnStepFailure,omitempty"`
+}
+
+// AzureMLLinkedService azure ML Studio Web Service linked service.
type AzureMLLinkedService struct {
- // AzureMLLinkedServiceTypeProperties - Azure ML Web Service linked service properties.
+ // AzureMLLinkedServiceTypeProperties - Azure ML Studio Web Service linked service properties.
*AzureMLLinkedServiceTypeProperties `json:"typeProperties,omitempty"`
// AdditionalProperties - Unmatched properties from the message are deserialized this collection
AdditionalProperties map[string]interface{} `json:""`
@@ -26443,7 +28003,7 @@ type AzureMLLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -26815,6 +28375,11 @@ func (amls AzureMLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureMLLinkedService.
+func (amls AzureMLLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService.
func (amls AzureMLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return &amls, true
@@ -26855,6 +28420,16 @@ func (amls AzureMLLinkedService) AsOracleLinkedService() (*OracleLinkedService,
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService.
+func (amls AzureMLLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService.
+func (amls AzureMLLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService.
func (amls AzureMLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -27021,17 +28596,17 @@ func (amls *AzureMLLinkedService) UnmarshalJSON(body []byte) error {
return nil
}
-// AzureMLLinkedServiceTypeProperties azure ML Web Service linked service properties.
+// AzureMLLinkedServiceTypeProperties azure ML Studio Web Service linked service properties.
type AzureMLLinkedServiceTypeProperties struct {
- // MlEndpoint - The Batch Execution REST URL for an Azure ML Web Service endpoint. Type: string (or Expression with resultType string).
+ // MlEndpoint - The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType string).
MlEndpoint interface{} `json:"mlEndpoint,omitempty"`
// APIKey - The API key for accessing the Azure ML model endpoint.
APIKey BasicSecretBase `json:"apiKey,omitempty"`
- // UpdateResourceEndpoint - The Update Resource REST URL for an Azure ML Web Service endpoint. Type: string (or Expression with resultType string).
+ // UpdateResourceEndpoint - The Update Resource REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType string).
UpdateResourceEndpoint interface{} `json:"updateResourceEndpoint,omitempty"`
- // ServicePrincipalID - The ID of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML web service. Type: string (or Expression with resultType string).
+ // ServicePrincipalID - The ID of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML Studio web service. Type: string (or Expression with resultType string).
ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"`
- // ServicePrincipalKey - The key of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML web service.
+ // ServicePrincipalKey - The key of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML Studio web service.
ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"`
// Tenant - The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string).
Tenant interface{} `json:"tenant,omitempty"`
@@ -27115,6 +28690,708 @@ func (amlstp *AzureMLLinkedServiceTypeProperties) UnmarshalJSON(body []byte) err
return nil
}
+// AzureMLServiceLinkedService azure ML Service linked service.
+type AzureMLServiceLinkedService struct {
+ // AzureMLServiceLinkedServiceTypeProperties - Azure ML Service linked service properties.
+ *AzureMLServiceLinkedServiceTypeProperties `json:"typeProperties,omitempty"`
+ // AdditionalProperties - Unmatched properties from the message are deserialized this collection
+ AdditionalProperties map[string]interface{} `json:""`
+ // ConnectVia - The integration runtime reference.
+ ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"`
+ // Description - Linked service description.
+ Description *string `json:"description,omitempty"`
+ // Parameters - Parameters for linked service.
+ Parameters map[string]*ParameterSpecification `json:"parameters"`
+ // Annotations - List of tags that can be used for describing the linked service.
+ Annotations *[]interface{} `json:"annotations,omitempty"`
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ Type TypeBasicLinkedService `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) MarshalJSON() ([]byte, error) {
+ amsls.Type = TypeAzureMLService
+ objectMap := make(map[string]interface{})
+ if amsls.AzureMLServiceLinkedServiceTypeProperties != nil {
+ objectMap["typeProperties"] = amsls.AzureMLServiceLinkedServiceTypeProperties
+ }
+ if amsls.ConnectVia != nil {
+ objectMap["connectVia"] = amsls.ConnectVia
+ }
+ if amsls.Description != nil {
+ objectMap["description"] = amsls.Description
+ }
+ if amsls.Parameters != nil {
+ objectMap["parameters"] = amsls.Parameters
+ }
+ if amsls.Annotations != nil {
+ objectMap["annotations"] = amsls.Annotations
+ }
+ if amsls.Type != "" {
+ objectMap["type"] = amsls.Type
+ }
+ for k, v := range amsls.AdditionalProperties {
+ objectMap[k] = v
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) {
+ return nil, false
+}
+
+// AsSapTableLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) {
+ return nil, false
+}
+
+// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) {
+ return nil, false
+}
+
+// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) {
+ return nil, false
+}
+
+// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) {
+ return nil, false
+}
+
+// AsResponsysLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) {
+ return nil, false
+}
+
+// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) {
+ return nil, false
+}
+
+// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) {
+ return nil, false
+}
+
+// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) {
+ return nil, false
+}
+
+// AsVerticaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) {
+ return nil, false
+}
+
+// AsZohoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) {
+ return nil, false
+}
+
+// AsXeroLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) {
+ return nil, false
+}
+
+// AsSquareLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) {
+ return nil, false
+}
+
+// AsSparkLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) {
+ return nil, false
+}
+
+// AsShopifyLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) {
+ return nil, false
+}
+
+// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) {
+ return nil, false
+}
+
+// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) {
+ return nil, false
+}
+
+// AsPrestoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) {
+ return nil, false
+}
+
+// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) {
+ return nil, false
+}
+
+// AsPaypalLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) {
+ return nil, false
+}
+
+// AsMarketoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) {
+ return nil, false
+}
+
+// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) {
+ return nil, false
+}
+
+// AsMagentoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) {
+ return nil, false
+}
+
+// AsJiraLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) {
+ return nil, false
+}
+
+// AsImpalaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) {
+ return nil, false
+}
+
+// AsHubspotLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) {
+ return nil, false
+}
+
+// AsHiveLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) {
+ return nil, false
+}
+
+// AsHBaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) {
+ return nil, false
+}
+
+// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) {
+ return nil, false
+}
+
+// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) {
+ return nil, false
+}
+
+// AsEloquaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) {
+ return nil, false
+}
+
+// AsDrillLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) {
+ return nil, false
+}
+
+// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) {
+ return nil, false
+}
+
+// AsConcurLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) {
+ return nil, false
+}
+
+// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) {
+ return nil, false
+}
+
+// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) {
+ return nil, false
+}
+
+// AsSapBWLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) {
+ return nil, false
+}
+
+// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) {
+ return nil, false
+}
+
+// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) {
+ return nil, false
+}
+
+// AsHTTPLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) {
+ return nil, false
+}
+
+// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) {
+ return nil, false
+}
+
+// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) {
+ return nil, false
+}
+
+// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) {
+ return nil, false
+}
+
+// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) {
+ return nil, false
+}
+
+// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) {
+ return nil, false
+}
+
+// AsSapEccLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) {
+ return nil, false
+}
+
+// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) {
+ return nil, false
+}
+
+// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) {
+ return nil, false
+}
+
+// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) {
+ return nil, false
+}
+
+// AsOffice365LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) {
+ return nil, false
+}
+
+// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) {
+ return nil, false
+}
+
+// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) {
+ return nil, false
+}
+
+// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) {
+ return nil, false
+}
+
+// AsCassandraLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) {
+ return nil, false
+}
+
+// AsWebLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsWebLinkedService() (*WebLinkedService, bool) {
+ return nil, false
+}
+
+// AsODataLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) {
+ return nil, false
+}
+
+// AsHdfsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) {
+ return nil, false
+}
+
+// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) {
+ return nil, false
+}
+
+// AsInformixLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) {
+ return nil, false
+}
+
+// AsOdbcLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return &amsls, true
+}
+
+// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
+ return nil, false
+}
+
+// AsTeradataLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) {
+ return nil, false
+}
+
+// AsDb2LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) {
+ return nil, false
+}
+
+// AsSybaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) {
+ return nil, false
+}
+
+// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) {
+ return nil, false
+}
+
+// AsMySQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) {
+ return nil, false
+}
+
+// AsOracleLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) {
+ return nil, false
+}
+
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
+ return nil, false
+}
+
+// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) {
+ return nil, false
+}
+
+// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) {
+ return nil, false
+}
+
+// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) {
+ return nil, false
+}
+
+// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) {
+ return nil, false
+}
+
+// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) {
+ return nil, false
+}
+
+// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsLinkedService() (*LinkedService, bool) {
+ return nil, false
+}
+
+// AsBasicLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService.
+func (amsls AzureMLServiceLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) {
+ return &amsls, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for AzureMLServiceLinkedService struct.
+func (amsls *AzureMLServiceLinkedService) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "typeProperties":
+ if v != nil {
+ var azureMLServiceLinkedServiceTypeProperties AzureMLServiceLinkedServiceTypeProperties
+ err = json.Unmarshal(*v, &azureMLServiceLinkedServiceTypeProperties)
+ if err != nil {
+ return err
+ }
+ amsls.AzureMLServiceLinkedServiceTypeProperties = &azureMLServiceLinkedServiceTypeProperties
+ }
+ default:
+ if v != nil {
+ var additionalProperties interface{}
+ err = json.Unmarshal(*v, &additionalProperties)
+ if err != nil {
+ return err
+ }
+ if amsls.AdditionalProperties == nil {
+ amsls.AdditionalProperties = make(map[string]interface{})
+ }
+ amsls.AdditionalProperties[k] = additionalProperties
+ }
+ case "connectVia":
+ if v != nil {
+ var connectVia IntegrationRuntimeReference
+ err = json.Unmarshal(*v, &connectVia)
+ if err != nil {
+ return err
+ }
+ amsls.ConnectVia = &connectVia
+ }
+ case "description":
+ if v != nil {
+ var description string
+ err = json.Unmarshal(*v, &description)
+ if err != nil {
+ return err
+ }
+ amsls.Description = &description
+ }
+ case "parameters":
+ if v != nil {
+ var parameters map[string]*ParameterSpecification
+ err = json.Unmarshal(*v, ¶meters)
+ if err != nil {
+ return err
+ }
+ amsls.Parameters = parameters
+ }
+ case "annotations":
+ if v != nil {
+ var annotations []interface{}
+ err = json.Unmarshal(*v, &annotations)
+ if err != nil {
+ return err
+ }
+ amsls.Annotations = &annotations
+ }
+ case "type":
+ if v != nil {
+ var typeVar TypeBasicLinkedService
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ amsls.Type = typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// AzureMLServiceLinkedServiceTypeProperties azure ML Service linked service properties.
+type AzureMLServiceLinkedServiceTypeProperties struct {
+ // SubscriptionID - Azure ML Service workspace subscription ID. Type: string (or Expression with resultType string).
+ SubscriptionID interface{} `json:"subscriptionId,omitempty"`
+ // ResourceGroupName - Azure ML Service workspace resource group name. Type: string (or Expression with resultType string).
+ ResourceGroupName interface{} `json:"resourceGroupName,omitempty"`
+ // MlWorkspaceName - Azure ML Service workspace name. Type: string (or Expression with resultType string).
+ MlWorkspaceName interface{} `json:"mlWorkspaceName,omitempty"`
+ // ServicePrincipalID - The ID of the service principal used to authenticate against the endpoint of a published Azure ML Service pipeline. Type: string (or Expression with resultType string).
+ ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"`
+ // ServicePrincipalKey - The key of the service principal used to authenticate against the endpoint of a published Azure ML Service pipeline.
+ ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"`
+ // Tenant - The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string).
+ Tenant interface{} `json:"tenant,omitempty"`
+ // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string).
+ EncryptedCredential interface{} `json:"encryptedCredential,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for AzureMLServiceLinkedServiceTypeProperties struct.
+func (amslstp *AzureMLServiceLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "subscriptionId":
+ if v != nil {
+ var subscriptionID interface{}
+ err = json.Unmarshal(*v, &subscriptionID)
+ if err != nil {
+ return err
+ }
+ amslstp.SubscriptionID = subscriptionID
+ }
+ case "resourceGroupName":
+ if v != nil {
+ var resourceGroupName interface{}
+ err = json.Unmarshal(*v, &resourceGroupName)
+ if err != nil {
+ return err
+ }
+ amslstp.ResourceGroupName = resourceGroupName
+ }
+ case "mlWorkspaceName":
+ if v != nil {
+ var mlWorkspaceName interface{}
+ err = json.Unmarshal(*v, &mlWorkspaceName)
+ if err != nil {
+ return err
+ }
+ amslstp.MlWorkspaceName = mlWorkspaceName
+ }
+ case "servicePrincipalId":
+ if v != nil {
+ var servicePrincipalID interface{}
+ err = json.Unmarshal(*v, &servicePrincipalID)
+ if err != nil {
+ return err
+ }
+ amslstp.ServicePrincipalID = servicePrincipalID
+ }
+ case "servicePrincipalKey":
+ if v != nil {
+ servicePrincipalKey, err := unmarshalBasicSecretBase(*v)
+ if err != nil {
+ return err
+ }
+ amslstp.ServicePrincipalKey = servicePrincipalKey
+ }
+ case "tenant":
+ if v != nil {
+ var tenant interface{}
+ err = json.Unmarshal(*v, &tenant)
+ if err != nil {
+ return err
+ }
+ amslstp.Tenant = tenant
+ }
+ case "encryptedCredential":
+ if v != nil {
+ var encryptedCredential interface{}
+ err = json.Unmarshal(*v, &encryptedCredential)
+ if err != nil {
+ return err
+ }
+ amslstp.EncryptedCredential = encryptedCredential
+ }
+ }
+ }
+
+ return nil
+}
+
// AzureMLUpdateResourceActivity azure ML Update Resource management activity.
type AzureMLUpdateResourceActivity struct {
// AzureMLUpdateResourceActivityTypeProperties - Azure ML Update Resource management activity properties.
@@ -27133,7 +29410,7 @@ type AzureMLUpdateResourceActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -27201,6 +29478,11 @@ func (amura AzureMLUpdateResourceActivity) AsDataLakeAnalyticsUSQLActivity() (*D
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity.
+func (amura AzureMLUpdateResourceActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity.
func (amura AzureMLUpdateResourceActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return &amura, true
@@ -27331,6 +29613,11 @@ func (amura AzureMLUpdateResourceActivity) AsForEachActivity() (*ForEachActivity
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity.
+func (amura AzureMLUpdateResourceActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity.
func (amura AzureMLUpdateResourceActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -27492,7 +29779,7 @@ type AzureMySQLLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -27864,6 +30151,11 @@ func (amsls AzureMySQLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService,
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService.
+func (amsls AzureMySQLLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService.
func (amsls AzureMySQLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -27904,6 +30196,16 @@ func (amsls AzureMySQLLinkedService) AsOracleLinkedService() (*OracleLinkedServi
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService.
+func (amsls AzureMySQLLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService.
+func (amsls AzureMySQLLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService.
func (amsls AzureMySQLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -29596,6 +31898,8 @@ func (amstd *AzureMySQLTableDataset) UnmarshalJSON(body []byte) error {
type AzureMySQLTableDatasetTypeProperties struct {
// TableName - The Azure MySQL database table name. Type: string (or Expression with resultType string).
TableName interface{} `json:"tableName,omitempty"`
+ // Table - The name of Azure MySQL database table. Type: string (or Expression with resultType string).
+ Table interface{} `json:"table,omitempty"`
}
// AzurePostgreSQLLinkedService azure PostgreSQL linked service.
@@ -29612,7 +31916,7 @@ type AzurePostgreSQLLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -29984,6 +32288,11 @@ func (apsls AzurePostgreSQLLinkedService) AsOdbcLinkedService() (*OdbcLinkedServ
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService.
+func (apsls AzurePostgreSQLLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService.
func (apsls AzurePostgreSQLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -30024,6 +32333,16 @@ func (apsls AzurePostgreSQLLinkedService) AsOracleLinkedService() (*OracleLinked
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService.
+func (apsls AzurePostgreSQLLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService.
+func (apsls AzurePostgreSQLLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService.
func (apsls AzurePostgreSQLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -32984,7 +35303,7 @@ type AzureSearchLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -33356,6 +35675,11 @@ func (asls AzureSearchLinkedService) AsOdbcLinkedService() (*OdbcLinkedService,
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService.
+func (asls AzureSearchLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService.
func (asls AzureSearchLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -33396,6 +35720,16 @@ func (asls AzureSearchLinkedService) AsOracleLinkedService() (*OracleLinkedServi
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService.
+func (asls AzureSearchLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService.
+func (asls AzureSearchLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService.
func (asls AzureSearchLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -33627,7 +35961,7 @@ type AzureSQLDatabaseLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -33999,6 +36333,11 @@ func (asdls AzureSQLDatabaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedSer
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService.
+func (asdls AzureSQLDatabaseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService.
func (asdls AzureSQLDatabaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -34039,6 +36378,16 @@ func (asdls AzureSQLDatabaseLinkedService) AsOracleLinkedService() (*OracleLinke
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService.
+func (asdls AzureSQLDatabaseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService.
+func (asdls AzureSQLDatabaseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService.
func (asdls AzureSQLDatabaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -34303,7 +36652,7 @@ type AzureSQLDWLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -34675,6 +37024,11 @@ func (asdls AzureSQLDWLinkedService) AsOdbcLinkedService() (*OdbcLinkedService,
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService.
+func (asdls AzureSQLDWLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService.
func (asdls AzureSQLDWLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -34715,6 +37069,16 @@ func (asdls AzureSQLDWLinkedService) AsOracleLinkedService() (*OracleLinkedServi
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService.
+func (asdls AzureSQLDWLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService.
+func (asdls AzureSQLDWLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService.
func (asdls AzureSQLDWLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -35603,7 +37967,7 @@ type AzureSQLMILinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -35975,6 +38339,11 @@ func (asmls AzureSQLMILinkedService) AsOdbcLinkedService() (*OdbcLinkedService,
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService.
+func (asmls AzureSQLMILinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService.
func (asmls AzureSQLMILinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -36015,6 +38384,16 @@ func (asmls AzureSQLMILinkedService) AsOracleLinkedService() (*OracleLinkedServi
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService.
+func (asmls AzureSQLMILinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService.
+func (asmls AzureSQLMILinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService.
func (asmls AzureSQLMILinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -38537,7 +40916,7 @@ type AzureStorageLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -38909,6 +41288,11 @@ func (asls AzureStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedService,
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService.
+func (asls AzureStorageLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService.
func (asls AzureStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -38949,6 +41333,16 @@ func (asls AzureStorageLinkedService) AsOracleLinkedService() (*OracleLinkedServ
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService.
+func (asls AzureStorageLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService.
+func (asls AzureStorageLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService.
func (asls AzureStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -40717,7 +43111,7 @@ type AzureTableStorageLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -41089,6 +43483,11 @@ func (atsls AzureTableStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedSe
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService.
+func (atsls AzureTableStorageLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService.
func (atsls AzureTableStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -41129,6 +43528,16 @@ func (atsls AzureTableStorageLinkedService) AsOracleLinkedService() (*OracleLink
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService.
+func (atsls AzureTableStorageLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService.
+func (atsls AzureTableStorageLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService.
func (atsls AzureTableStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -43010,6 +45419,8 @@ type BlobEventsTriggerTypeProperties struct {
BlobPathBeginsWith *string `json:"blobPathBeginsWith,omitempty"`
// BlobPathEndsWith - The blob path must end with the pattern provided for trigger to fire. For example, 'december/boxes.csv' will only fire the trigger for blobs named boxes in a december folder. At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith.
BlobPathEndsWith *string `json:"blobPathEndsWith,omitempty"`
+ // IgnoreEmptyBlobs - If set to true, blobs with zero bytes will be ignored.
+ IgnoreEmptyBlobs *bool `json:"ignoreEmptyBlobs,omitempty"`
// Events - The type of events that cause this trigger to fire.
Events *[]BlobEventTypes `json:"events,omitempty"`
// Scope - The ARM resource ID of the Storage Account.
@@ -44168,7 +46579,7 @@ type CassandraLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -44540,6 +46951,11 @@ func (cls CassandraLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, boo
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CassandraLinkedService.
+func (cls CassandraLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for CassandraLinkedService.
func (cls CassandraLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -44580,6 +46996,16 @@ func (cls CassandraLinkedService) AsOracleLinkedService() (*OracleLinkedService,
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CassandraLinkedService.
+func (cls CassandraLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CassandraLinkedService.
+func (cls CassandraLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for CassandraLinkedService.
func (cls CassandraLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -47044,7 +49470,7 @@ type CommonDataServiceForAppsLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -47416,6 +49842,11 @@ func (cdsfals CommonDataServiceForAppsLinkedService) AsOdbcLinkedService() (*Odb
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService.
+func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService.
func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -47456,6 +49887,16 @@ func (cdsfals CommonDataServiceForAppsLinkedService) AsOracleLinkedService() (*O
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService.
+func (cdsfals CommonDataServiceForAppsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService.
+func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService.
func (cdsfals CommonDataServiceForAppsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -47635,12 +50076,18 @@ type CommonDataServiceForAppsLinkedServiceTypeProperties struct {
ServiceURI interface{} `json:"serviceUri,omitempty"`
// OrganizationName - The organization name of the Common Data Service for Apps instance. The property is required for on-prem and required for online when there are more than one Common Data Service for Apps instances associated with the user. Type: string (or Expression with resultType string).
OrganizationName interface{} `json:"organizationName,omitempty"`
- // AuthenticationType - The authentication type to connect to Common Data Service for Apps server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. Type: string (or Expression with resultType string). Possible values include: 'Office365', 'Ifd'
+ // AuthenticationType - The authentication type to connect to Common Data Service for Apps server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. 'AADServicePrincipal' for Server-To-Server authentication in online scenario. Type: string (or Expression with resultType string). Possible values include: 'Office365', 'Ifd', 'AADServicePrincipal'
AuthenticationType DynamicsAuthenticationType `json:"authenticationType,omitempty"`
// Username - User name to access the Common Data Service for Apps instance. Type: string (or Expression with resultType string).
Username interface{} `json:"username,omitempty"`
// Password - Password to access the Common Data Service for Apps instance.
Password BasicSecretBase `json:"password,omitempty"`
+ // ServicePrincipalID - The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression with resultType string).
+ ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"`
+ // ServicePrincipalCredentialType - The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string).
+ ServicePrincipalCredentialType interface{} `json:"servicePrincipalCredentialType,omitempty"`
+ // ServicePrincipalCredential - The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.
+ ServicePrincipalCredential BasicSecretBase `json:"servicePrincipalCredential,omitempty"`
// EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string).
EncryptedCredential interface{} `json:"encryptedCredential,omitempty"`
}
@@ -47725,6 +50172,32 @@ func (cdsfalstp *CommonDataServiceForAppsLinkedServiceTypeProperties) UnmarshalJ
}
cdsfalstp.Password = password
}
+ case "servicePrincipalId":
+ if v != nil {
+ var servicePrincipalID interface{}
+ err = json.Unmarshal(*v, &servicePrincipalID)
+ if err != nil {
+ return err
+ }
+ cdsfalstp.ServicePrincipalID = servicePrincipalID
+ }
+ case "servicePrincipalCredentialType":
+ if v != nil {
+ var servicePrincipalCredentialType interface{}
+ err = json.Unmarshal(*v, &servicePrincipalCredentialType)
+ if err != nil {
+ return err
+ }
+ cdsfalstp.ServicePrincipalCredentialType = servicePrincipalCredentialType
+ }
+ case "servicePrincipalCredential":
+ if v != nil {
+ servicePrincipalCredential, err := unmarshalBasicSecretBase(*v)
+ if err != nil {
+ return err
+ }
+ cdsfalstp.ServicePrincipalCredential = servicePrincipalCredential
+ }
case "encryptedCredential":
if v != nil {
var encryptedCredential interface{}
@@ -48745,7 +51218,7 @@ type ConcurLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -49117,6 +51590,11 @@ func (cls ConcurLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ConcurLinkedService.
+func (cls ConcurLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for ConcurLinkedService.
func (cls ConcurLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -49157,6 +51635,16 @@ func (cls ConcurLinkedService) AsOracleLinkedService() (*OracleLinkedService, bo
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ConcurLinkedService.
+func (cls ConcurLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ConcurLinkedService.
+func (cls ConcurLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for ConcurLinkedService.
func (cls ConcurLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -50619,6 +53107,7 @@ type BasicControlActivity interface {
AsUntilActivity() (*UntilActivity, bool)
AsWaitActivity() (*WaitActivity, bool)
AsForEachActivity() (*ForEachActivity, bool)
+ AsSwitchActivity() (*SwitchActivity, bool)
AsIfConditionActivity() (*IfConditionActivity, bool)
AsExecutePipelineActivity() (*ExecutePipelineActivity, bool)
AsControlActivity() (*ControlActivity, bool)
@@ -50636,7 +53125,7 @@ type ControlActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -50680,6 +53169,10 @@ func unmarshalBasicControlActivity(body []byte) (BasicControlActivity, error) {
var fea ForEachActivity
err := json.Unmarshal(body, &fea)
return fea, err
+ case string(TypeSwitch):
+ var sa SwitchActivity
+ err := json.Unmarshal(body, &sa)
+ return sa, err
case string(TypeIfCondition):
var ica IfConditionActivity
err := json.Unmarshal(body, &ica)
@@ -50768,6 +53261,11 @@ func (ca ControlActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsU
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ControlActivity.
+func (ca ControlActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ControlActivity.
func (ca ControlActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -50898,6 +53396,11 @@ func (ca ControlActivity) AsForEachActivity() (*ForEachActivity, bool) {
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for ControlActivity.
+func (ca ControlActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for ControlActivity.
func (ca ControlActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -51022,7 +53525,7 @@ type CopyActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -51096,6 +53599,11 @@ func (ca CopyActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQL
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for CopyActivity.
+func (ca CopyActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for CopyActivity.
func (ca CopyActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -51226,6 +53734,11 @@ func (ca CopyActivity) AsForEachActivity() (*ForEachActivity, bool) {
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for CopyActivity.
+func (ca CopyActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for CopyActivity.
func (ca CopyActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -53063,7 +55576,7 @@ type CosmosDbLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -53435,6 +55948,11 @@ func (cdls CosmosDbLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, boo
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService.
+func (cdls CosmosDbLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService.
func (cdls CosmosDbLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -53475,6 +55993,16 @@ func (cdls CosmosDbLinkedService) AsOracleLinkedService() (*OracleLinkedService,
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService.
+func (cdls CosmosDbLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService.
+func (cdls CosmosDbLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService.
func (cdls CosmosDbLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -54348,7 +56876,7 @@ type CosmosDbMongoDbAPILinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -54720,6 +57248,11 @@ func (cdmdals CosmosDbMongoDbAPILinkedService) AsOdbcLinkedService() (*OdbcLinke
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService.
+func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService.
func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -54760,6 +57293,16 @@ func (cdmdals CosmosDbMongoDbAPILinkedService) AsOracleLinkedService() (*OracleL
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService.
+func (cdmdals CosmosDbMongoDbAPILinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService.
+func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService.
func (cdmdals CosmosDbMongoDbAPILinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -57406,7 +59949,7 @@ type CouchbaseLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -57778,6 +60321,11 @@ func (cls CouchbaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, boo
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService.
+func (cls CouchbaseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService.
func (cls CouchbaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -57818,6 +60366,16 @@ func (cls CouchbaseLinkedService) AsOracleLinkedService() (*OracleLinkedService,
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService.
+func (cls CouchbaseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService.
+func (cls CouchbaseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService.
func (cls CouchbaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -59194,7 +61752,7 @@ type CreateDataFlowDebugSessionRequest struct {
// TimeToLive - Time to live setting of the cluster in minutes.
TimeToLive *int32 `json:"timeToLive,omitempty"`
// IntegrationRuntime - Set to use integration runtime setting for data flow debug session.
- IntegrationRuntime *IntegrationRuntimeResource `json:"integrationRuntime,omitempty"`
+ IntegrationRuntime *IntegrationRuntimeDebugResource `json:"integrationRuntime,omitempty"`
}
// CreateDataFlowDebugSessionResponse response body structure for creating data flow debug session.
@@ -59243,7 +61801,7 @@ type CustomActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -59311,6 +61869,11 @@ func (ca CustomActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUS
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for CustomActivity.
+func (ca CustomActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for CustomActivity.
func (ca CustomActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -59441,6 +62004,11 @@ func (ca CustomActivity) AsForEachActivity() (*ForEachActivity, bool) {
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for CustomActivity.
+func (ca CustomActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for CustomActivity.
func (ca CustomActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -60246,7 +62814,7 @@ type CustomDataSourceLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -60618,6 +63186,11 @@ func (cdsls CustomDataSourceLinkedService) AsOdbcLinkedService() (*OdbcLinkedSer
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService.
+func (cdsls CustomDataSourceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService.
func (cdsls CustomDataSourceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -60658,6 +63231,16 @@ func (cdsls CustomDataSourceLinkedService) AsOracleLinkedService() (*OracleLinke
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService.
+func (cdsls CustomDataSourceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService.
+func (cdsls CustomDataSourceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService.
func (cdsls CustomDataSourceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -60936,7 +63519,7 @@ type DatabricksNotebookActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -61004,6 +63587,11 @@ func (dna DatabricksNotebookActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLa
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DatabricksNotebookActivity.
+func (dna DatabricksNotebookActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DatabricksNotebookActivity.
func (dna DatabricksNotebookActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -61134,6 +63722,11 @@ func (dna DatabricksNotebookActivity) AsForEachActivity() (*ForEachActivity, boo
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for DatabricksNotebookActivity.
+func (dna DatabricksNotebookActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for DatabricksNotebookActivity.
func (dna DatabricksNotebookActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -61306,7 +63899,7 @@ type DatabricksSparkJarActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -61374,6 +63967,11 @@ func (dsja DatabricksSparkJarActivity) AsDataLakeAnalyticsUSQLActivity() (*DataL
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DatabricksSparkJarActivity.
+func (dsja DatabricksSparkJarActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DatabricksSparkJarActivity.
func (dsja DatabricksSparkJarActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -61504,6 +64102,11 @@ func (dsja DatabricksSparkJarActivity) AsForEachActivity() (*ForEachActivity, bo
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for DatabricksSparkJarActivity.
+func (dsja DatabricksSparkJarActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for DatabricksSparkJarActivity.
func (dsja DatabricksSparkJarActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -61661,7 +64264,7 @@ type DatabricksSparkPythonActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -61729,6 +64332,11 @@ func (dspa DatabricksSparkPythonActivity) AsDataLakeAnalyticsUSQLActivity() (*Da
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DatabricksSparkPythonActivity.
+func (dspa DatabricksSparkPythonActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DatabricksSparkPythonActivity.
func (dspa DatabricksSparkPythonActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -61859,6 +64467,11 @@ func (dspa DatabricksSparkPythonActivity) AsForEachActivity() (*ForEachActivity,
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for DatabricksSparkPythonActivity.
+func (dspa DatabricksSparkPythonActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity.
func (dspa DatabricksSparkPythonActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -62126,11 +64739,11 @@ type DataFlowDebugPackage struct {
// SessionID - The ID of data flow debug session.
SessionID *string `json:"sessionId,omitempty"`
// DataFlow - Data flow instance.
- DataFlow *DataFlowResource `json:"dataFlow,omitempty"`
+ DataFlow *DataFlowDebugResource `json:"dataFlow,omitempty"`
// Datasets - List of datasets.
- Datasets *[]DatasetResource `json:"datasets,omitempty"`
+ Datasets *[]DatasetDebugResource `json:"datasets,omitempty"`
// LinkedServices - List of linked services.
- LinkedServices *[]LinkedServiceResource `json:"linkedServices,omitempty"`
+ LinkedServices *[]LinkedServiceDebugResource `json:"linkedServices,omitempty"`
// Staging - Staging info for debug session.
Staging *DataFlowStagingInfo `json:"staging,omitempty"`
// DebugSettings - Data flow debug settings.
@@ -62196,7 +64809,7 @@ func (dfdp *DataFlowDebugPackage) UnmarshalJSON(body []byte) error {
}
case "dataFlow":
if v != nil {
- var dataFlow DataFlowResource
+ var dataFlow DataFlowDebugResource
err = json.Unmarshal(*v, &dataFlow)
if err != nil {
return err
@@ -62205,7 +64818,7 @@ func (dfdp *DataFlowDebugPackage) UnmarshalJSON(body []byte) error {
}
case "datasets":
if v != nil {
- var datasets []DatasetResource
+ var datasets []DatasetDebugResource
err = json.Unmarshal(*v, &datasets)
if err != nil {
return err
@@ -62214,7 +64827,7 @@ func (dfdp *DataFlowDebugPackage) UnmarshalJSON(body []byte) error {
}
case "linkedServices":
if v != nil {
- var linkedServices []LinkedServiceResource
+ var linkedServices []LinkedServiceDebugResource
err = json.Unmarshal(*v, &linkedServices)
if err != nil {
return err
@@ -62270,6 +64883,46 @@ func (dfdpS DataFlowDebugPackageDebugSettings) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
+// DataFlowDebugResource data flow debug resource.
+type DataFlowDebugResource struct {
+ // Properties - Data flow properties.
+ Properties BasicDataFlow `json:"properties,omitempty"`
+ // Name - The resource name.
+ Name *string `json:"name,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for DataFlowDebugResource struct.
+func (dfdr *DataFlowDebugResource) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ properties, err := unmarshalBasicDataFlow(*v)
+ if err != nil {
+ return err
+ }
+ dfdr.Properties = properties
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ dfdr.Name = &name
+ }
+ }
+ }
+
+ return nil
+}
+
// DataFlowDebugSessionCreateFuture an abstraction for monitoring and retrieving the results of a
// long-running operation.
type DataFlowDebugSessionCreateFuture struct {
@@ -62849,7 +65502,7 @@ type DataLakeAnalyticsUSQLActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -62917,6 +65570,11 @@ func (dlaua DataLakeAnalyticsUSQLActivity) AsDataLakeAnalyticsUSQLActivity() (*D
return &dlaua, true
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity.
+func (dlaua DataLakeAnalyticsUSQLActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity.
func (dlaua DataLakeAnalyticsUSQLActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -63047,6 +65705,11 @@ func (dlaua DataLakeAnalyticsUSQLActivity) AsForEachActivity() (*ForEachActivity
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity.
+func (dlaua DataLakeAnalyticsUSQLActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity.
func (dlaua DataLakeAnalyticsUSQLActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -64528,6 +67191,46 @@ func (dc *DatasetCompression) UnmarshalJSON(body []byte) error {
return nil
}
+// DatasetDebugResource dataset debug resource.
+type DatasetDebugResource struct {
+ // Properties - Dataset properties.
+ Properties BasicDataset `json:"properties,omitempty"`
+ // Name - The resource name.
+ Name *string `json:"name,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for DatasetDebugResource struct.
+func (ddr *DatasetDebugResource) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ properties, err := unmarshalBasicDataset(*v)
+ if err != nil {
+ return err
+ }
+ ddr.Properties = properties
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ddr.Name = &name
+ }
+ }
+ }
+
+ return nil
+}
+
// DatasetDeflateCompression the Deflate compression method used on a dataset.
type DatasetDeflateCompression struct {
// Level - The Deflate compression level.
@@ -65364,7 +68067,7 @@ type Db2LinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -65736,6 +68439,11 @@ func (d2ls Db2LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) {
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for Db2LinkedService.
+func (d2ls Db2LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for Db2LinkedService.
func (d2ls Db2LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -65776,6 +68484,16 @@ func (d2ls Db2LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService.
+func (d2ls Db2LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService.
+func (d2ls Db2LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for Db2LinkedService.
func (d2ls Db2LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -65954,6 +68672,10 @@ type Db2LinkedServiceTypeProperties struct {
Username interface{} `json:"username,omitempty"`
// Password - Password for authentication.
Password BasicSecretBase `json:"password,omitempty"`
+ // PackageCollection - Under where packages are created when querying database. Type: string (or Expression with resultType string).
+ PackageCollection interface{} `json:"packageCollection,omitempty"`
+ // CertificateCommonName - Certificate Common Name when TLS is enabled. Type: string (or Expression with resultType string).
+ CertificateCommonName interface{} `json:"certificateCommonName,omitempty"`
// EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string).
EncryptedCredential interface{} `json:"encryptedCredential,omitempty"`
}
@@ -66011,6 +68733,24 @@ func (d2lstp *Db2LinkedServiceTypeProperties) UnmarshalJSON(body []byte) error {
}
d2lstp.Password = password
}
+ case "packageCollection":
+ if v != nil {
+ var packageCollection interface{}
+ err = json.Unmarshal(*v, &packageCollection)
+ if err != nil {
+ return err
+ }
+ d2lstp.PackageCollection = packageCollection
+ }
+ case "certificateCommonName":
+ if v != nil {
+ var certificateCommonName interface{}
+ err = json.Unmarshal(*v, &certificateCommonName)
+ if err != nil {
+ return err
+ }
+ d2lstp.CertificateCommonName = certificateCommonName
+ }
case "encryptedCredential":
if v != nil {
var encryptedCredential interface{}
@@ -67245,7 +69985,7 @@ type DeleteActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -67313,6 +70053,11 @@ func (da DeleteActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUS
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DeleteActivity.
+func (da DeleteActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DeleteActivity.
func (da DeleteActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -67443,6 +70188,11 @@ func (da DeleteActivity) AsForEachActivity() (*ForEachActivity, bool) {
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for DeleteActivity.
+func (da DeleteActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for DeleteActivity.
func (da DeleteActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -70972,7 +73722,7 @@ type DrillLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -71344,6 +74094,11 @@ func (dls DrillLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) {
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DrillLinkedService.
+func (dls DrillLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for DrillLinkedService.
func (dls DrillLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -71384,6 +74139,16 @@ func (dls DrillLinkedService) AsOracleLinkedService() (*OracleLinkedService, boo
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService.
+func (dls DrillLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService.
+func (dls DrillLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for DrillLinkedService.
func (dls DrillLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -72765,7 +75530,7 @@ type DynamicsAXLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -73137,6 +75902,11 @@ func (dals DynamicsAXLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, b
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService.
+func (dals DynamicsAXLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService.
func (dals DynamicsAXLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -73177,6 +75947,16 @@ func (dals DynamicsAXLinkedService) AsOracleLinkedService() (*OracleLinkedServic
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService.
+func (dals DynamicsAXLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService.
+func (dals DynamicsAXLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService.
func (dals DynamicsAXLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -75258,7 +78038,7 @@ type DynamicsCrmLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -75630,6 +78410,11 @@ func (dcls DynamicsCrmLinkedService) AsOdbcLinkedService() (*OdbcLinkedService,
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService.
+func (dcls DynamicsCrmLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService.
func (dcls DynamicsCrmLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -75670,6 +78455,16 @@ func (dcls DynamicsCrmLinkedService) AsOracleLinkedService() (*OracleLinkedServi
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService.
+func (dcls DynamicsCrmLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService.
+func (dcls DynamicsCrmLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService.
func (dcls DynamicsCrmLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -75848,12 +78643,18 @@ type DynamicsCrmLinkedServiceTypeProperties struct {
ServiceURI interface{} `json:"serviceUri,omitempty"`
// OrganizationName - The organization name of the Dynamics CRM instance. The property is required for on-prem and required for online when there are more than one Dynamics CRM instances associated with the user. Type: string (or Expression with resultType string).
OrganizationName interface{} `json:"organizationName,omitempty"`
- // AuthenticationType - The authentication type to connect to Dynamics CRM server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. Type: string (or Expression with resultType string). Possible values include: 'Office365', 'Ifd'
+ // AuthenticationType - The authentication type to connect to Dynamics CRM server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' for Server-To-Server authentication in online scenario. Type: string (or Expression with resultType string). Possible values include: 'Office365', 'Ifd', 'AADServicePrincipal'
AuthenticationType DynamicsAuthenticationType `json:"authenticationType,omitempty"`
// Username - User name to access the Dynamics CRM instance. Type: string (or Expression with resultType string).
Username interface{} `json:"username,omitempty"`
// Password - Password to access the Dynamics CRM instance.
Password BasicSecretBase `json:"password,omitempty"`
+ // ServicePrincipalID - The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression with resultType string).
+ ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"`
+ // ServicePrincipalCredentialType - The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string).
+ ServicePrincipalCredentialType interface{} `json:"servicePrincipalCredentialType,omitempty"`
+ // ServicePrincipalCredential - The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.
+ ServicePrincipalCredential BasicSecretBase `json:"servicePrincipalCredential,omitempty"`
// EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string).
EncryptedCredential interface{} `json:"encryptedCredential,omitempty"`
}
@@ -75938,6 +78739,32 @@ func (dclstp *DynamicsCrmLinkedServiceTypeProperties) UnmarshalJSON(body []byte)
}
dclstp.Password = password
}
+ case "servicePrincipalId":
+ if v != nil {
+ var servicePrincipalID interface{}
+ err = json.Unmarshal(*v, &servicePrincipalID)
+ if err != nil {
+ return err
+ }
+ dclstp.ServicePrincipalID = servicePrincipalID
+ }
+ case "servicePrincipalCredentialType":
+ if v != nil {
+ var servicePrincipalCredentialType interface{}
+ err = json.Unmarshal(*v, &servicePrincipalCredentialType)
+ if err != nil {
+ return err
+ }
+ dclstp.ServicePrincipalCredentialType = servicePrincipalCredentialType
+ }
+ case "servicePrincipalCredential":
+ if v != nil {
+ servicePrincipalCredential, err := unmarshalBasicSecretBase(*v)
+ if err != nil {
+ return err
+ }
+ dclstp.ServicePrincipalCredential = servicePrincipalCredential
+ }
case "encryptedCredential":
if v != nil {
var encryptedCredential interface{}
@@ -77499,7 +80326,7 @@ type DynamicsLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -77871,6 +80698,11 @@ func (dls DynamicsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DynamicsLinkedService.
+func (dls DynamicsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService.
func (dls DynamicsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -77911,6 +80743,16 @@ func (dls DynamicsLinkedService) AsOracleLinkedService() (*OracleLinkedService,
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService.
+func (dls DynamicsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService.
+func (dls DynamicsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService.
func (dls DynamicsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -78089,12 +80931,18 @@ type DynamicsLinkedServiceTypeProperties struct {
ServiceURI interface{} `json:"serviceUri,omitempty"`
// OrganizationName - The organization name of the Dynamics instance. The property is required for on-prem and required for online when there are more than one Dynamics instances associated with the user. Type: string (or Expression with resultType string).
OrganizationName interface{} `json:"organizationName,omitempty"`
- // AuthenticationType - The authentication type to connect to Dynamics server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario. Type: string (or Expression with resultType string).
+ // AuthenticationType - The authentication type to connect to Dynamics server. 'Office365' for online scenario, 'Ifd' for on-premises with Ifd scenario, 'AADServicePrincipal' for Server-To-Server authentication in online scenario. Type: string (or Expression with resultType string).
AuthenticationType interface{} `json:"authenticationType,omitempty"`
// Username - User name to access the Dynamics instance. Type: string (or Expression with resultType string).
Username interface{} `json:"username,omitempty"`
// Password - Password to access the Dynamics instance.
Password BasicSecretBase `json:"password,omitempty"`
+ // ServicePrincipalID - The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression with resultType string).
+ ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"`
+ // ServicePrincipalCredentialType - The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string).
+ ServicePrincipalCredentialType interface{} `json:"servicePrincipalCredentialType,omitempty"`
+ // ServicePrincipalCredential - The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.
+ ServicePrincipalCredential BasicSecretBase `json:"servicePrincipalCredential,omitempty"`
// EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string).
EncryptedCredential interface{} `json:"encryptedCredential,omitempty"`
}
@@ -78179,6 +81027,32 @@ func (dlstp *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) err
}
dlstp.Password = password
}
+ case "servicePrincipalId":
+ if v != nil {
+ var servicePrincipalID interface{}
+ err = json.Unmarshal(*v, &servicePrincipalID)
+ if err != nil {
+ return err
+ }
+ dlstp.ServicePrincipalID = servicePrincipalID
+ }
+ case "servicePrincipalCredentialType":
+ if v != nil {
+ var servicePrincipalCredentialType interface{}
+ err = json.Unmarshal(*v, &servicePrincipalCredentialType)
+ if err != nil {
+ return err
+ }
+ dlstp.ServicePrincipalCredentialType = servicePrincipalCredentialType
+ }
+ case "servicePrincipalCredential":
+ if v != nil {
+ servicePrincipalCredential, err := unmarshalBasicSecretBase(*v)
+ if err != nil {
+ return err
+ }
+ dlstp.ServicePrincipalCredential = servicePrincipalCredential
+ }
case "encryptedCredential":
if v != nil {
var encryptedCredential interface{}
@@ -79120,7 +81994,7 @@ type EloquaLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -79492,6 +82366,11 @@ func (els EloquaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for EloquaLinkedService.
+func (els EloquaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for EloquaLinkedService.
func (els EloquaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -79532,6 +82411,16 @@ func (els EloquaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bo
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService.
+func (els EloquaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService.
+func (els EloquaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService.
func (els EloquaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -81097,7 +83986,7 @@ type ExecuteDataFlowActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -81165,6 +84054,11 @@ func (edfa ExecuteDataFlowActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLake
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecuteDataFlowActivity.
+func (edfa ExecuteDataFlowActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecuteDataFlowActivity.
func (edfa ExecuteDataFlowActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -81295,6 +84189,11 @@ func (edfa ExecuteDataFlowActivity) AsForEachActivity() (*ForEachActivity, bool)
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for ExecuteDataFlowActivity.
+func (edfa ExecuteDataFlowActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for ExecuteDataFlowActivity.
func (edfa ExecuteDataFlowActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -81448,7 +84347,7 @@ type ExecutePipelineActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -81510,6 +84409,11 @@ func (epa ExecutePipelineActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeA
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecutePipelineActivity.
+func (epa ExecutePipelineActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecutePipelineActivity.
func (epa ExecutePipelineActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -81640,6 +84544,11 @@ func (epa ExecutePipelineActivity) AsForEachActivity() (*ForEachActivity, bool)
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for ExecutePipelineActivity.
+func (epa ExecutePipelineActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for ExecutePipelineActivity.
func (epa ExecutePipelineActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -81794,7 +84703,7 @@ type ExecuteSSISPackageActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -81862,6 +84771,11 @@ func (espa ExecuteSSISPackageActivity) AsDataLakeAnalyticsUSQLActivity() (*DataL
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecuteSSISPackageActivity.
+func (espa ExecuteSSISPackageActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecuteSSISPackageActivity.
func (espa ExecuteSSISPackageActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -81992,6 +84906,11 @@ func (espa ExecuteSSISPackageActivity) AsForEachActivity() (*ForEachActivity, bo
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for ExecuteSSISPackageActivity.
+func (espa ExecuteSSISPackageActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity.
func (espa ExecuteSSISPackageActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -82199,6 +85118,7 @@ type BasicExecutionActivity interface {
AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool)
AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool)
AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool)
+ AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool)
AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool)
AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool)
AsGetMetadataActivity() (*GetMetadataActivity, bool)
@@ -82234,7 +85154,7 @@ type ExecutionActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -82270,6 +85190,10 @@ func unmarshalBasicExecutionActivity(body []byte) (BasicExecutionActivity, error
var dlaua DataLakeAnalyticsUSQLActivity
err := json.Unmarshal(body, &dlaua)
return dlaua, err
+ case string(TypeAzureMLExecutePipeline):
+ var amepa AzureMLExecutePipelineActivity
+ err := json.Unmarshal(body, &amepa)
+ return amepa, err
case string(TypeAzureMLUpdateResource):
var amura AzureMLUpdateResourceActivity
err := json.Unmarshal(body, &amura)
@@ -82420,6 +85344,11 @@ func (ea ExecutionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalytic
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecutionActivity.
+func (ea ExecutionActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecutionActivity.
func (ea ExecutionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -82550,6 +85479,11 @@ func (ea ExecutionActivity) AsForEachActivity() (*ForEachActivity, bool) {
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for ExecutionActivity.
+func (ea ExecutionActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for ExecutionActivity.
func (ea ExecutionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -83376,7 +86310,7 @@ type FileServerLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -83748,6 +86682,11 @@ func (fsls FileServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, b
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for FileServerLinkedService.
+func (fsls FileServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for FileServerLinkedService.
func (fsls FileServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -83788,6 +86727,16 @@ func (fsls FileServerLinkedService) AsOracleLinkedService() (*OracleLinkedServic
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService.
+func (fsls FileServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService.
+func (fsls FileServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService.
func (fsls FileServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return &fsls, true
@@ -85975,7 +88924,7 @@ type FilterActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -86037,6 +88986,11 @@ func (fa FilterActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUS
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for FilterActivity.
+func (fa FilterActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for FilterActivity.
func (fa FilterActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -86167,6 +89121,11 @@ func (fa FilterActivity) AsForEachActivity() (*ForEachActivity, bool) {
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for FilterActivity.
+func (fa FilterActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for FilterActivity.
func (fa FilterActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -86300,7 +89259,7 @@ type ForEachActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -86362,6 +89321,11 @@ func (fea ForEachActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalytics
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ForEachActivity.
+func (fea ForEachActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ForEachActivity.
func (fea ForEachActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -86492,6 +89456,11 @@ func (fea ForEachActivity) AsForEachActivity() (*ForEachActivity, bool) {
return &fea, true
}
+// AsSwitchActivity is the BasicActivity implementation for ForEachActivity.
+func (fea ForEachActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for ForEachActivity.
func (fea ForEachActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -86917,7 +89886,7 @@ type FtpServerLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -87289,6 +90258,11 @@ func (fsls FtpServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bo
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for FtpServerLinkedService.
+func (fsls FtpServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService.
func (fsls FtpServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -87329,6 +90303,16 @@ func (fsls FtpServerLinkedService) AsOracleLinkedService() (*OracleLinkedService
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService.
+func (fsls FtpServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService.
+func (fsls FtpServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService.
func (fsls FtpServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -87765,7 +90749,7 @@ type GetMetadataActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -87833,6 +90817,11 @@ func (gma GetMetadataActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnaly
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for GetMetadataActivity.
+func (gma GetMetadataActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for GetMetadataActivity.
func (gma GetMetadataActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -87963,6 +90952,11 @@ func (gma GetMetadataActivity) AsForEachActivity() (*ForEachActivity, bool) {
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for GetMetadataActivity.
+func (gma GetMetadataActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for GetMetadataActivity.
func (gma GetMetadataActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -88137,7 +91131,7 @@ type GoogleAdWordsLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -88509,6 +91503,11 @@ func (gawls GoogleAdWordsLinkedService) AsOdbcLinkedService() (*OdbcLinkedServic
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService.
+func (gawls GoogleAdWordsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService.
func (gawls GoogleAdWordsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -88549,6 +91548,16 @@ func (gawls GoogleAdWordsLinkedService) AsOracleLinkedService() (*OracleLinkedSe
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService.
+func (gawls GoogleAdWordsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService.
+func (gawls GoogleAdWordsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService.
func (gawls GoogleAdWordsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -90066,7 +93075,7 @@ type GoogleBigQueryLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -90438,6 +93447,11 @@ func (gbqls GoogleBigQueryLinkedService) AsOdbcLinkedService() (*OdbcLinkedServi
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService.
+func (gbqls GoogleBigQueryLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService.
func (gbqls GoogleBigQueryLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -90478,6 +93492,16 @@ func (gbqls GoogleBigQueryLinkedService) AsOracleLinkedService() (*OracleLinkedS
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService.
+func (gbqls GoogleBigQueryLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService.
+func (gbqls GoogleBigQueryLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService.
func (gbqls GoogleBigQueryLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -91983,6 +95007,955 @@ func (gbqs *GoogleBigQuerySource) UnmarshalJSON(body []byte) error {
return nil
}
+// GoogleCloudStorageLinkedService linked service for Google Cloud Storage.
+type GoogleCloudStorageLinkedService struct {
+ // GoogleCloudStorageLinkedServiceTypeProperties - Google Cloud Storage linked service properties.
+ *GoogleCloudStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"`
+ // AdditionalProperties - Unmatched properties from the message are deserialized this collection
+ AdditionalProperties map[string]interface{} `json:""`
+ // ConnectVia - The integration runtime reference.
+ ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"`
+ // Description - Linked service description.
+ Description *string `json:"description,omitempty"`
+ // Parameters - Parameters for linked service.
+ Parameters map[string]*ParameterSpecification `json:"parameters"`
+ // Annotations - List of tags that can be used for describing the linked service.
+ Annotations *[]interface{} `json:"annotations,omitempty"`
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ Type TypeBasicLinkedService `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) MarshalJSON() ([]byte, error) {
+ gcsls.Type = TypeGoogleCloudStorage
+ objectMap := make(map[string]interface{})
+ if gcsls.GoogleCloudStorageLinkedServiceTypeProperties != nil {
+ objectMap["typeProperties"] = gcsls.GoogleCloudStorageLinkedServiceTypeProperties
+ }
+ if gcsls.ConnectVia != nil {
+ objectMap["connectVia"] = gcsls.ConnectVia
+ }
+ if gcsls.Description != nil {
+ objectMap["description"] = gcsls.Description
+ }
+ if gcsls.Parameters != nil {
+ objectMap["parameters"] = gcsls.Parameters
+ }
+ if gcsls.Annotations != nil {
+ objectMap["annotations"] = gcsls.Annotations
+ }
+ if gcsls.Type != "" {
+ objectMap["type"] = gcsls.Type
+ }
+ for k, v := range gcsls.AdditionalProperties {
+ objectMap[k] = v
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) {
+ return nil, false
+}
+
+// AsSapTableLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) {
+ return nil, false
+}
+
+// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) {
+ return nil, false
+}
+
+// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) {
+ return nil, false
+}
+
+// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) {
+ return nil, false
+}
+
+// AsResponsysLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) {
+ return nil, false
+}
+
+// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) {
+ return nil, false
+}
+
+// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) {
+ return nil, false
+}
+
+// AsNetezzaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) {
+ return nil, false
+}
+
+// AsVerticaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) {
+ return nil, false
+}
+
+// AsZohoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) {
+ return nil, false
+}
+
+// AsXeroLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) {
+ return nil, false
+}
+
+// AsSquareLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) {
+ return nil, false
+}
+
+// AsSparkLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) {
+ return nil, false
+}
+
+// AsShopifyLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) {
+ return nil, false
+}
+
+// AsServiceNowLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) {
+ return nil, false
+}
+
+// AsQuickBooksLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) {
+ return nil, false
+}
+
+// AsPrestoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) {
+ return nil, false
+}
+
+// AsPhoenixLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) {
+ return nil, false
+}
+
+// AsPaypalLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) {
+ return nil, false
+}
+
+// AsMarketoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) {
+ return nil, false
+}
+
+// AsMariaDBLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) {
+ return nil, false
+}
+
+// AsMagentoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) {
+ return nil, false
+}
+
+// AsJiraLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) {
+ return nil, false
+}
+
+// AsImpalaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) {
+ return nil, false
+}
+
+// AsHubspotLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) {
+ return nil, false
+}
+
+// AsHiveLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) {
+ return nil, false
+}
+
+// AsHBaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) {
+ return nil, false
+}
+
+// AsGreenplumLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) {
+ return nil, false
+}
+
+// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) {
+ return nil, false
+}
+
+// AsEloquaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) {
+ return nil, false
+}
+
+// AsDrillLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) {
+ return nil, false
+}
+
+// AsCouchbaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) {
+ return nil, false
+}
+
+// AsConcurLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) {
+ return nil, false
+}
+
+// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) {
+ return nil, false
+}
+
+// AsSapHanaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) {
+ return nil, false
+}
+
+// AsSapBWLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) {
+ return nil, false
+}
+
+// AsSftpServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) {
+ return nil, false
+}
+
+// AsFtpServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) {
+ return nil, false
+}
+
+// AsHTTPLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureSearchLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) {
+ return nil, false
+}
+
+// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) {
+ return nil, false
+}
+
+// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) {
+ return nil, false
+}
+
+// AsAmazonS3LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) {
+ return nil, false
+}
+
+// AsRestServiceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) {
+ return nil, false
+}
+
+// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) {
+ return nil, false
+}
+
+// AsSapEccLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) {
+ return nil, false
+}
+
+// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) {
+ return nil, false
+}
+
+// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) {
+ return nil, false
+}
+
+// AsSalesforceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) {
+ return nil, false
+}
+
+// AsOffice365LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) {
+ return nil, false
+}
+
+// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) {
+ return nil, false
+}
+
+// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) {
+ return nil, false
+}
+
+// AsMongoDbLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) {
+ return nil, false
+}
+
+// AsCassandraLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) {
+ return nil, false
+}
+
+// AsWebLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsWebLinkedService() (*WebLinkedService, bool) {
+ return nil, false
+}
+
+// AsODataLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) {
+ return nil, false
+}
+
+// AsHdfsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) {
+ return nil, false
+}
+
+// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) {
+ return nil, false
+}
+
+// AsInformixLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) {
+ return nil, false
+}
+
+// AsOdbcLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureMLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
+ return nil, false
+}
+
+// AsTeradataLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) {
+ return nil, false
+}
+
+// AsDb2LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) {
+ return nil, false
+}
+
+// AsSybaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) {
+ return nil, false
+}
+
+// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) {
+ return nil, false
+}
+
+// AsMySQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) {
+ return nil, false
+}
+
+// AsOracleLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) {
+ return nil, false
+}
+
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return &gcsls, true
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsFileServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
+ return nil, false
+}
+
+// AsHDInsightLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) {
+ return nil, false
+}
+
+// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) {
+ return nil, false
+}
+
+// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) {
+ return nil, false
+}
+
+// AsDynamicsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) {
+ return nil, false
+}
+
+// AsCosmosDbLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureBatchLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) {
+ return nil, false
+}
+
+// AsSQLServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsLinkedService() (*LinkedService, bool) {
+ return nil, false
+}
+
+// AsBasicLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService.
+func (gcsls GoogleCloudStorageLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) {
+ return &gcsls, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageLinkedService struct.
+func (gcsls *GoogleCloudStorageLinkedService) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "typeProperties":
+ if v != nil {
+ var googleCloudStorageLinkedServiceTypeProperties GoogleCloudStorageLinkedServiceTypeProperties
+ err = json.Unmarshal(*v, &googleCloudStorageLinkedServiceTypeProperties)
+ if err != nil {
+ return err
+ }
+ gcsls.GoogleCloudStorageLinkedServiceTypeProperties = &googleCloudStorageLinkedServiceTypeProperties
+ }
+ default:
+ if v != nil {
+ var additionalProperties interface{}
+ err = json.Unmarshal(*v, &additionalProperties)
+ if err != nil {
+ return err
+ }
+ if gcsls.AdditionalProperties == nil {
+ gcsls.AdditionalProperties = make(map[string]interface{})
+ }
+ gcsls.AdditionalProperties[k] = additionalProperties
+ }
+ case "connectVia":
+ if v != nil {
+ var connectVia IntegrationRuntimeReference
+ err = json.Unmarshal(*v, &connectVia)
+ if err != nil {
+ return err
+ }
+ gcsls.ConnectVia = &connectVia
+ }
+ case "description":
+ if v != nil {
+ var description string
+ err = json.Unmarshal(*v, &description)
+ if err != nil {
+ return err
+ }
+ gcsls.Description = &description
+ }
+ case "parameters":
+ if v != nil {
+ var parameters map[string]*ParameterSpecification
+ err = json.Unmarshal(*v, ¶meters)
+ if err != nil {
+ return err
+ }
+ gcsls.Parameters = parameters
+ }
+ case "annotations":
+ if v != nil {
+ var annotations []interface{}
+ err = json.Unmarshal(*v, &annotations)
+ if err != nil {
+ return err
+ }
+ gcsls.Annotations = &annotations
+ }
+ case "type":
+ if v != nil {
+ var typeVar TypeBasicLinkedService
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ gcsls.Type = typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// GoogleCloudStorageLinkedServiceTypeProperties google Cloud Storage linked service properties.
+type GoogleCloudStorageLinkedServiceTypeProperties struct {
+ // AccessKeyID - The access key identifier of the Google Cloud Storage Identity and Access Management (IAM) user. Type: string (or Expression with resultType string).
+ AccessKeyID interface{} `json:"accessKeyId,omitempty"`
+ // SecretAccessKey - The secret access key of the Google Cloud Storage Identity and Access Management (IAM) user.
+ SecretAccessKey BasicSecretBase `json:"secretAccessKey,omitempty"`
+ // ServiceURL - This value specifies the endpoint to access with the Google Cloud Storage Connector. This is an optional property; change it only if you want to try a different service endpoint or want to switch between https and http. Type: string (or Expression with resultType string).
+ ServiceURL interface{} `json:"serviceUrl,omitempty"`
+ // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string).
+ EncryptedCredential interface{} `json:"encryptedCredential,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageLinkedServiceTypeProperties struct.
+func (gcslstp *GoogleCloudStorageLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "accessKeyId":
+ if v != nil {
+ var accessKeyID interface{}
+ err = json.Unmarshal(*v, &accessKeyID)
+ if err != nil {
+ return err
+ }
+ gcslstp.AccessKeyID = accessKeyID
+ }
+ case "secretAccessKey":
+ if v != nil {
+ secretAccessKey, err := unmarshalBasicSecretBase(*v)
+ if err != nil {
+ return err
+ }
+ gcslstp.SecretAccessKey = secretAccessKey
+ }
+ case "serviceUrl":
+ if v != nil {
+ var serviceURL interface{}
+ err = json.Unmarshal(*v, &serviceURL)
+ if err != nil {
+ return err
+ }
+ gcslstp.ServiceURL = serviceURL
+ }
+ case "encryptedCredential":
+ if v != nil {
+ var encryptedCredential interface{}
+ err = json.Unmarshal(*v, &encryptedCredential)
+ if err != nil {
+ return err
+ }
+ gcslstp.EncryptedCredential = encryptedCredential
+ }
+ }
+ }
+
+ return nil
+}
+
+// GoogleCloudStorageLocation the location of Google Cloud Storage dataset.
+type GoogleCloudStorageLocation struct {
+ // BucketName - Specify the bucketName of Google Cloud Storage. Type: string (or Expression with resultType string)
+ BucketName interface{} `json:"bucketName,omitempty"`
+ // Version - Specify the version of Google Cloud Storage. Type: string (or Expression with resultType string).
+ Version interface{} `json:"version,omitempty"`
+ // AdditionalProperties - Unmatched properties from the message are deserialized this collection
+ AdditionalProperties map[string]interface{} `json:""`
+ // Type - Type of dataset storage location.
+ Type *string `json:"type,omitempty"`
+ // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string)
+ FolderPath interface{} `json:"folderPath,omitempty"`
+ // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string).
+ FileName interface{} `json:"fileName,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for GoogleCloudStorageLocation.
+func (gcsl GoogleCloudStorageLocation) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if gcsl.BucketName != nil {
+ objectMap["bucketName"] = gcsl.BucketName
+ }
+ if gcsl.Version != nil {
+ objectMap["version"] = gcsl.Version
+ }
+ if gcsl.Type != nil {
+ objectMap["type"] = gcsl.Type
+ }
+ if gcsl.FolderPath != nil {
+ objectMap["folderPath"] = gcsl.FolderPath
+ }
+ if gcsl.FileName != nil {
+ objectMap["fileName"] = gcsl.FileName
+ }
+ for k, v := range gcsl.AdditionalProperties {
+ objectMap[k] = v
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageLocation struct.
+func (gcsl *GoogleCloudStorageLocation) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "bucketName":
+ if v != nil {
+ var bucketName interface{}
+ err = json.Unmarshal(*v, &bucketName)
+ if err != nil {
+ return err
+ }
+ gcsl.BucketName = bucketName
+ }
+ case "version":
+ if v != nil {
+ var version interface{}
+ err = json.Unmarshal(*v, &version)
+ if err != nil {
+ return err
+ }
+ gcsl.Version = version
+ }
+ default:
+ if v != nil {
+ var additionalProperties interface{}
+ err = json.Unmarshal(*v, &additionalProperties)
+ if err != nil {
+ return err
+ }
+ if gcsl.AdditionalProperties == nil {
+ gcsl.AdditionalProperties = make(map[string]interface{})
+ }
+ gcsl.AdditionalProperties[k] = additionalProperties
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ gcsl.Type = &typeVar
+ }
+ case "folderPath":
+ if v != nil {
+ var folderPath interface{}
+ err = json.Unmarshal(*v, &folderPath)
+ if err != nil {
+ return err
+ }
+ gcsl.FolderPath = folderPath
+ }
+ case "fileName":
+ if v != nil {
+ var fileName interface{}
+ err = json.Unmarshal(*v, &fileName)
+ if err != nil {
+ return err
+ }
+ gcsl.FileName = fileName
+ }
+ }
+ }
+
+ return nil
+}
+
+// GoogleCloudStorageReadSettings google Cloud Storage read settings.
+type GoogleCloudStorageReadSettings struct {
+ // Recursive - If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean).
+ Recursive interface{} `json:"recursive,omitempty"`
+ // WildcardFolderPath - Google Cloud Storage wildcardFolderPath. Type: string (or Expression with resultType string).
+ WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"`
+ // WildcardFileName - Google Cloud Storage wildcardFileName. Type: string (or Expression with resultType string).
+ WildcardFileName interface{} `json:"wildcardFileName,omitempty"`
+ // Prefix - The prefix filter for the Google Cloud Storage object name. Type: string (or Expression with resultType string).
+ Prefix interface{} `json:"prefix,omitempty"`
+ // EnablePartitionDiscovery - Indicates whether to enable partition discovery.
+ EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"`
+ // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string).
+ ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"`
+ // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string).
+ ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"`
+ // AdditionalProperties - Unmatched properties from the message are deserialized this collection
+ AdditionalProperties map[string]interface{} `json:""`
+ // Type - The read setting type.
+ Type *string `json:"type,omitempty"`
+ // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer).
+ MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for GoogleCloudStorageReadSettings.
+func (gcsrs GoogleCloudStorageReadSettings) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if gcsrs.Recursive != nil {
+ objectMap["recursive"] = gcsrs.Recursive
+ }
+ if gcsrs.WildcardFolderPath != nil {
+ objectMap["wildcardFolderPath"] = gcsrs.WildcardFolderPath
+ }
+ if gcsrs.WildcardFileName != nil {
+ objectMap["wildcardFileName"] = gcsrs.WildcardFileName
+ }
+ if gcsrs.Prefix != nil {
+ objectMap["prefix"] = gcsrs.Prefix
+ }
+ if gcsrs.EnablePartitionDiscovery != nil {
+ objectMap["enablePartitionDiscovery"] = gcsrs.EnablePartitionDiscovery
+ }
+ if gcsrs.ModifiedDatetimeStart != nil {
+ objectMap["modifiedDatetimeStart"] = gcsrs.ModifiedDatetimeStart
+ }
+ if gcsrs.ModifiedDatetimeEnd != nil {
+ objectMap["modifiedDatetimeEnd"] = gcsrs.ModifiedDatetimeEnd
+ }
+ if gcsrs.Type != nil {
+ objectMap["type"] = gcsrs.Type
+ }
+ if gcsrs.MaxConcurrentConnections != nil {
+ objectMap["maxConcurrentConnections"] = gcsrs.MaxConcurrentConnections
+ }
+ for k, v := range gcsrs.AdditionalProperties {
+ objectMap[k] = v
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageReadSettings struct.
+func (gcsrs *GoogleCloudStorageReadSettings) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "recursive":
+ if v != nil {
+ var recursive interface{}
+ err = json.Unmarshal(*v, &recursive)
+ if err != nil {
+ return err
+ }
+ gcsrs.Recursive = recursive
+ }
+ case "wildcardFolderPath":
+ if v != nil {
+ var wildcardFolderPath interface{}
+ err = json.Unmarshal(*v, &wildcardFolderPath)
+ if err != nil {
+ return err
+ }
+ gcsrs.WildcardFolderPath = wildcardFolderPath
+ }
+ case "wildcardFileName":
+ if v != nil {
+ var wildcardFileName interface{}
+ err = json.Unmarshal(*v, &wildcardFileName)
+ if err != nil {
+ return err
+ }
+ gcsrs.WildcardFileName = wildcardFileName
+ }
+ case "prefix":
+ if v != nil {
+ var prefix interface{}
+ err = json.Unmarshal(*v, &prefix)
+ if err != nil {
+ return err
+ }
+ gcsrs.Prefix = prefix
+ }
+ case "enablePartitionDiscovery":
+ if v != nil {
+ var enablePartitionDiscovery bool
+ err = json.Unmarshal(*v, &enablePartitionDiscovery)
+ if err != nil {
+ return err
+ }
+ gcsrs.EnablePartitionDiscovery = &enablePartitionDiscovery
+ }
+ case "modifiedDatetimeStart":
+ if v != nil {
+ var modifiedDatetimeStart interface{}
+ err = json.Unmarshal(*v, &modifiedDatetimeStart)
+ if err != nil {
+ return err
+ }
+ gcsrs.ModifiedDatetimeStart = modifiedDatetimeStart
+ }
+ case "modifiedDatetimeEnd":
+ if v != nil {
+ var modifiedDatetimeEnd interface{}
+ err = json.Unmarshal(*v, &modifiedDatetimeEnd)
+ if err != nil {
+ return err
+ }
+ gcsrs.ModifiedDatetimeEnd = modifiedDatetimeEnd
+ }
+ default:
+ if v != nil {
+ var additionalProperties interface{}
+ err = json.Unmarshal(*v, &additionalProperties)
+ if err != nil {
+ return err
+ }
+ if gcsrs.AdditionalProperties == nil {
+ gcsrs.AdditionalProperties = make(map[string]interface{})
+ }
+ gcsrs.AdditionalProperties[k] = additionalProperties
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ gcsrs.Type = &typeVar
+ }
+ case "maxConcurrentConnections":
+ if v != nil {
+ var maxConcurrentConnections interface{}
+ err = json.Unmarshal(*v, &maxConcurrentConnections)
+ if err != nil {
+ return err
+ }
+ gcsrs.MaxConcurrentConnections = maxConcurrentConnections
+ }
+ }
+ }
+
+ return nil
+}
+
// GreenplumDatasetTypeProperties greenplum Dataset Properties
type GreenplumDatasetTypeProperties struct {
// TableName - This property will be retired. Please consider using schema + table properties instead.
@@ -92007,7 +95980,7 @@ type GreenplumLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -92379,6 +96352,11 @@ func (gls GreenplumLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, boo
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GreenplumLinkedService.
+func (gls GreenplumLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService.
func (gls GreenplumLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -92419,6 +96397,16 @@ func (gls GreenplumLinkedService) AsOracleLinkedService() (*OracleLinkedService,
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService.
+func (gls GreenplumLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService.
+func (gls GreenplumLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService.
func (gls GreenplumLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -93800,7 +97788,7 @@ type HBaseLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -94172,6 +98160,11 @@ func (hbls HBaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HBaseLinkedService.
+func (hbls HBaseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for HBaseLinkedService.
func (hbls HBaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -94212,6 +98205,16 @@ func (hbls HBaseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bo
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService.
+func (hbls HBaseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService.
+func (hbls HBaseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService.
func (hbls HBaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -95722,7 +99725,7 @@ type HdfsLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -96094,6 +100097,11 @@ func (hls HdfsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) {
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HdfsLinkedService.
+func (hls HdfsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for HdfsLinkedService.
func (hls HdfsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -96134,6 +100142,16 @@ func (hls HdfsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService.
+func (hls HdfsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService.
+func (hls HdfsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService.
func (hls HdfsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -97220,7 +101238,7 @@ type HDInsightHiveActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -97288,6 +101306,11 @@ func (hiha HDInsightHiveActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAn
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for HDInsightHiveActivity.
+func (hiha HDInsightHiveActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightHiveActivity.
func (hiha HDInsightHiveActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -97418,6 +101441,11 @@ func (hiha HDInsightHiveActivity) AsForEachActivity() (*ForEachActivity, bool) {
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for HDInsightHiveActivity.
+func (hiha HDInsightHiveActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for HDInsightHiveActivity.
func (hiha HDInsightHiveActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -97611,7 +101639,7 @@ type HDInsightLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -97983,6 +102011,11 @@ func (hils HDInsightLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bo
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HDInsightLinkedService.
+func (hils HDInsightLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for HDInsightLinkedService.
func (hils HDInsightLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -98023,6 +102056,16 @@ func (hils HDInsightLinkedService) AsOracleLinkedService() (*OracleLinkedService
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HDInsightLinkedService.
+func (hils HDInsightLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HDInsightLinkedService.
+func (hils HDInsightLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService.
func (hils HDInsightLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -98313,7 +102356,7 @@ type HDInsightMapReduceActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -98381,6 +102424,11 @@ func (himra HDInsightMapReduceActivity) AsDataLakeAnalyticsUSQLActivity() (*Data
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for HDInsightMapReduceActivity.
+func (himra HDInsightMapReduceActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightMapReduceActivity.
func (himra HDInsightMapReduceActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -98511,6 +102559,11 @@ func (himra HDInsightMapReduceActivity) AsForEachActivity() (*ForEachActivity, b
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for HDInsightMapReduceActivity.
+func (himra HDInsightMapReduceActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for HDInsightMapReduceActivity.
func (himra HDInsightMapReduceActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -98704,7 +102757,7 @@ type HDInsightOnDemandLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -99076,6 +103129,11 @@ func (hiodls HDInsightOnDemandLinkedService) AsOdbcLinkedService() (*OdbcLinkedS
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService.
+func (hiodls HDInsightOnDemandLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService.
func (hiodls HDInsightOnDemandLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -99116,6 +103174,16 @@ func (hiodls HDInsightOnDemandLinkedService) AsOracleLinkedService() (*OracleLin
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService.
+func (hiodls HDInsightOnDemandLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService.
+func (hiodls HDInsightOnDemandLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService.
func (hiodls HDInsightOnDemandLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -99679,7 +103747,7 @@ type HDInsightPigActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -99747,6 +103815,11 @@ func (hipa HDInsightPigActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAna
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for HDInsightPigActivity.
+func (hipa HDInsightPigActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightPigActivity.
func (hipa HDInsightPigActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -99877,6 +103950,11 @@ func (hipa HDInsightPigActivity) AsForEachActivity() (*ForEachActivity, bool) {
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for HDInsightPigActivity.
+func (hipa HDInsightPigActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for HDInsightPigActivity.
func (hipa HDInsightPigActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -100010,8 +104088,8 @@ func (hipa *HDInsightPigActivity) UnmarshalJSON(body []byte) error {
type HDInsightPigActivityTypeProperties struct {
// StorageLinkedServices - Storage linked service references.
StorageLinkedServices *[]LinkedServiceReference `json:"storageLinkedServices,omitempty"`
- // Arguments - User specified arguments to HDInsightActivity.
- Arguments *[]interface{} `json:"arguments,omitempty"`
+ // Arguments - User specified arguments to HDInsightActivity. Type: array (or Expression with resultType array).
+ Arguments interface{} `json:"arguments,omitempty"`
// GetDebugInfo - Debug info option. Possible values include: 'HDInsightActivityDebugInfoOptionNone', 'HDInsightActivityDebugInfoOptionAlways', 'HDInsightActivityDebugInfoOptionFailure'
GetDebugInfo HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"`
// ScriptPath - Script path. Type: string (or Expression with resultType string).
@@ -100064,7 +104142,7 @@ type HDInsightSparkActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -100132,6 +104210,11 @@ func (hisa HDInsightSparkActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeA
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for HDInsightSparkActivity.
+func (hisa HDInsightSparkActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightSparkActivity.
func (hisa HDInsightSparkActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -100262,6 +104345,11 @@ func (hisa HDInsightSparkActivity) AsForEachActivity() (*ForEachActivity, bool)
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for HDInsightSparkActivity.
+func (hisa HDInsightSparkActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for HDInsightSparkActivity.
func (hisa HDInsightSparkActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -100459,7 +104547,7 @@ type HDInsightStreamingActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -100527,6 +104615,11 @@ func (hisa HDInsightStreamingActivity) AsDataLakeAnalyticsUSQLActivity() (*DataL
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for HDInsightStreamingActivity.
+func (hisa HDInsightStreamingActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightStreamingActivity.
func (hisa HDInsightStreamingActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -100657,6 +104750,11 @@ func (hisa HDInsightStreamingActivity) AsForEachActivity() (*ForEachActivity, bo
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for HDInsightStreamingActivity.
+func (hisa HDInsightStreamingActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for HDInsightStreamingActivity.
func (hisa HDInsightStreamingActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -100880,7 +104978,7 @@ type HiveLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -101252,6 +105350,11 @@ func (hls HiveLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) {
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HiveLinkedService.
+func (hls HiveLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for HiveLinkedService.
func (hls HiveLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -101292,6 +105395,16 @@ func (hls HiveLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService.
+func (hls HiveLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService.
+func (hls HiveLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for HiveLinkedService.
func (hls HiveLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -103567,7 +107680,7 @@ type HTTPLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -103939,6 +108052,11 @@ func (hls HTTPLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) {
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HTTPLinkedService.
+func (hls HTTPLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for HTTPLinkedService.
func (hls HTTPLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -103979,6 +108097,16 @@ func (hls HTTPLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService.
+func (hls HTTPLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService.
+func (hls HTTPLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService.
func (hls HTTPLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -105052,7 +109180,7 @@ type HubspotLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -105424,6 +109552,11 @@ func (hls HubspotLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HubspotLinkedService.
+func (hls HubspotLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for HubspotLinkedService.
func (hls HubspotLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -105464,6 +109597,16 @@ func (hls HubspotLinkedService) AsOracleLinkedService() (*OracleLinkedService, b
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HubspotLinkedService.
+func (hls HubspotLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HubspotLinkedService.
+func (hls HubspotLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for HubspotLinkedService.
func (hls HubspotLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -106941,7 +111084,7 @@ type IfConditionActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -107003,6 +111146,11 @@ func (ica IfConditionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnaly
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for IfConditionActivity.
+func (ica IfConditionActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for IfConditionActivity.
func (ica IfConditionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -107133,6 +111281,11 @@ func (ica IfConditionActivity) AsForEachActivity() (*ForEachActivity, bool) {
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for IfConditionActivity.
+func (ica IfConditionActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for IfConditionActivity.
func (ica IfConditionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return &ica, true
@@ -107318,7 +111471,7 @@ type ImpalaLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -107690,6 +111843,11 @@ func (ils ImpalaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ImpalaLinkedService.
+func (ils ImpalaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for ImpalaLinkedService.
func (ils ImpalaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -107730,6 +111888,16 @@ func (ils ImpalaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bo
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ImpalaLinkedService.
+func (ils ImpalaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ImpalaLinkedService.
+func (ils ImpalaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService.
func (ils ImpalaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -109240,7 +113408,7 @@ type InformixLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -109612,6 +113780,11 @@ func (ils InformixLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for InformixLinkedService.
+func (ils InformixLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for InformixLinkedService.
func (ils InformixLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -109652,6 +113825,16 @@ func (ils InformixLinkedService) AsOracleLinkedService() (*OracleLinkedService,
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for InformixLinkedService.
+func (ils InformixLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for InformixLinkedService.
+func (ils InformixLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for InformixLinkedService.
func (ils InformixLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -111906,6 +116089,46 @@ type IntegrationRuntimeDataProxyProperties struct {
Path *string `json:"path,omitempty"`
}
+// IntegrationRuntimeDebugResource integration runtime debug resource.
+type IntegrationRuntimeDebugResource struct {
+ // Properties - Integration runtime properties.
+ Properties BasicIntegrationRuntime `json:"properties,omitempty"`
+ // Name - The resource name.
+ Name *string `json:"name,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeDebugResource struct.
+func (irdr *IntegrationRuntimeDebugResource) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ properties, err := unmarshalBasicIntegrationRuntime(*v)
+ if err != nil {
+ return err
+ }
+ irdr.Properties = properties
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ irdr.Name = &name
+ }
+ }
+ }
+
+ return nil
+}
+
// IntegrationRuntimeListResponse a list of integration runtime resources.
type IntegrationRuntimeListResponse struct {
autorest.Response `json:"-"`
@@ -112888,7 +117111,7 @@ type JiraLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -113260,6 +117483,11 @@ func (jls JiraLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) {
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for JiraLinkedService.
+func (jls JiraLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for JiraLinkedService.
func (jls JiraLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -113300,6 +117528,16 @@ func (jls JiraLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService.
+func (jls JiraLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService.
+func (jls JiraLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for JiraLinkedService.
func (jls JiraLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -116881,6 +121119,7 @@ type BasicLinkedService interface {
AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool)
AsInformixLinkedService() (*InformixLinkedService, bool)
AsOdbcLinkedService() (*OdbcLinkedService, bool)
+ AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool)
AsAzureMLLinkedService() (*AzureMLLinkedService, bool)
AsTeradataLinkedService() (*TeradataLinkedService, bool)
AsDb2LinkedService() (*Db2LinkedService, bool)
@@ -116889,6 +121128,8 @@ type BasicLinkedService interface {
AsMySQLLinkedService() (*MySQLLinkedService, bool)
AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool)
AsOracleLinkedService() (*OracleLinkedService, bool)
+ AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool)
+ AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool)
AsFileServerLinkedService() (*FileServerLinkedService, bool)
AsHDInsightLinkedService() (*HDInsightLinkedService, bool)
AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool)
@@ -116920,7 +121161,7 @@ type LinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -117204,6 +121445,10 @@ func unmarshalBasicLinkedService(body []byte) (BasicLinkedService, error) {
var ols OdbcLinkedService
err := json.Unmarshal(body, &ols)
return ols, err
+ case string(TypeAzureMLService):
+ var amsls AzureMLServiceLinkedService
+ err := json.Unmarshal(body, &amsls)
+ return amsls, err
case string(TypeAzureML):
var amls AzureMLLinkedService
err := json.Unmarshal(body, &amls)
@@ -117236,6 +121481,14 @@ func unmarshalBasicLinkedService(body []byte) (BasicLinkedService, error) {
var ols OracleLinkedService
err := json.Unmarshal(body, &ols)
return ols, err
+ case string(TypeGoogleCloudStorage):
+ var gcsls GoogleCloudStorageLinkedService
+ err := json.Unmarshal(body, &gcsls)
+ return gcsls, err
+ case string(TypeAzureFileStorage):
+ var afsls AzureFileStorageLinkedService
+ err := json.Unmarshal(body, &afsls)
+ return afsls, err
case string(TypeFileServer):
var fsls FileServerLinkedService
err := json.Unmarshal(body, &fsls)
@@ -117686,6 +121939,11 @@ func (ls LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) {
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for LinkedService.
+func (ls LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for LinkedService.
func (ls LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -117726,6 +121984,16 @@ func (ls LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) {
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for LinkedService.
+func (ls LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for LinkedService.
+func (ls LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for LinkedService.
func (ls LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -117883,6 +122151,46 @@ func (ls *LinkedService) UnmarshalJSON(body []byte) error {
return nil
}
+// LinkedServiceDebugResource linked service debug resource.
+type LinkedServiceDebugResource struct {
+ // Properties - Properties of linked service.
+ Properties BasicLinkedService `json:"properties,omitempty"`
+ // Name - The resource name.
+ Name *string `json:"name,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for LinkedServiceDebugResource struct.
+func (lsdr *LinkedServiceDebugResource) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ properties, err := unmarshalBasicLinkedService(*v)
+ if err != nil {
+ return err
+ }
+ lsdr.Properties = properties
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ lsdr.Name = &name
+ }
+ }
+ }
+
+ return nil
+}
+
// LinkedServiceListResponse a list of linked service resources.
type LinkedServiceListResponse struct {
autorest.Response `json:"-"`
@@ -118216,7 +122524,7 @@ type LookupActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -118284,6 +122592,11 @@ func (la LookupActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUS
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for LookupActivity.
+func (la LookupActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for LookupActivity.
func (la LookupActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -118414,6 +122727,11 @@ func (la LookupActivity) AsForEachActivity() (*ForEachActivity, bool) {
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for LookupActivity.
+func (la LookupActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for LookupActivity.
func (la LookupActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -118608,7 +122926,7 @@ type MagentoLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -118980,6 +123298,11 @@ func (mls MagentoLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MagentoLinkedService.
+func (mls MagentoLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for MagentoLinkedService.
func (mls MagentoLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -119020,6 +123343,16 @@ func (mls MagentoLinkedService) AsOracleLinkedService() (*OracleLinkedService, b
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MagentoLinkedService.
+func (mls MagentoLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MagentoLinkedService.
+func (mls MagentoLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for MagentoLinkedService.
func (mls MagentoLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -120886,7 +125219,7 @@ type MariaDBLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -121258,6 +125591,11 @@ func (mdls MariaDBLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MariaDBLinkedService.
+func (mdls MariaDBLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for MariaDBLinkedService.
func (mdls MariaDBLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -121298,6 +125636,16 @@ func (mdls MariaDBLinkedService) AsOracleLinkedService() (*OracleLinkedService,
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MariaDBLinkedService.
+func (mdls MariaDBLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MariaDBLinkedService.
+func (mdls MariaDBLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService.
func (mdls MariaDBLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -122679,7 +127027,7 @@ type MarketoLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -123051,6 +127399,11 @@ func (mls MarketoLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MarketoLinkedService.
+func (mls MarketoLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for MarketoLinkedService.
func (mls MarketoLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -123091,6 +127444,16 @@ func (mls MarketoLinkedService) AsOracleLinkedService() (*OracleLinkedService, b
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MarketoLinkedService.
+func (mls MarketoLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MarketoLinkedService.
+func (mls MarketoLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for MarketoLinkedService.
func (mls MarketoLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -124557,7 +128920,7 @@ type MicrosoftAccessLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -124929,6 +129292,11 @@ func (mals MicrosoftAccessLinkedService) AsOdbcLinkedService() (*OdbcLinkedServi
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService.
+func (mals MicrosoftAccessLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService.
func (mals MicrosoftAccessLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -124969,6 +129337,16 @@ func (mals MicrosoftAccessLinkedService) AsOracleLinkedService() (*OracleLinkedS
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService.
+func (mals MicrosoftAccessLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService.
+func (mals MicrosoftAccessLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService.
func (mals MicrosoftAccessLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -127454,7 +131832,7 @@ type MongoDbLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -127826,6 +132204,11 @@ func (mdls MongoDbLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MongoDbLinkedService.
+func (mdls MongoDbLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for MongoDbLinkedService.
func (mdls MongoDbLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -127866,6 +132249,16 @@ func (mdls MongoDbLinkedService) AsOracleLinkedService() (*OracleLinkedService,
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MongoDbLinkedService.
+func (mdls MongoDbLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MongoDbLinkedService.
+func (mdls MongoDbLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService.
func (mdls MongoDbLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -129357,7 +133750,7 @@ type MongoDbV2LinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -129729,6 +134122,11 @@ func (mdvls MongoDbV2LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, b
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService.
+func (mdvls MongoDbV2LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService.
func (mdvls MongoDbV2LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -129769,6 +134167,16 @@ func (mdvls MongoDbV2LinkedService) AsOracleLinkedService() (*OracleLinkedServic
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService.
+func (mdvls MongoDbV2LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService.
+func (mdvls MongoDbV2LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService.
func (mdvls MongoDbV2LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -130775,7 +135183,7 @@ type MySQLLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -131147,6 +135555,11 @@ func (msls MySQLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MySQLLinkedService.
+func (msls MySQLLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for MySQLLinkedService.
func (msls MySQLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -131187,6 +135600,16 @@ func (msls MySQLLinkedService) AsOracleLinkedService() (*OracleLinkedService, bo
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MySQLLinkedService.
+func (msls MySQLLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MySQLLinkedService.
+func (msls MySQLLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for MySQLLinkedService.
func (msls MySQLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -132615,7 +137038,7 @@ type NetezzaLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -132987,6 +137410,11 @@ func (nls NetezzaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for NetezzaLinkedService.
+func (nls NetezzaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for NetezzaLinkedService.
func (nls NetezzaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -133027,6 +137455,16 @@ func (nls NetezzaLinkedService) AsOracleLinkedService() (*OracleLinkedService, b
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for NetezzaLinkedService.
+func (nls NetezzaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for NetezzaLinkedService.
+func (nls NetezzaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService.
func (nls NetezzaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -134456,7 +138894,7 @@ type ODataLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -134828,6 +139266,11 @@ func (odls ODataLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ODataLinkedService.
+func (odls ODataLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for ODataLinkedService.
func (odls ODataLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -134868,6 +139311,16 @@ func (odls ODataLinkedService) AsOracleLinkedService() (*OracleLinkedService, bo
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ODataLinkedService.
+func (odls ODataLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ODataLinkedService.
+func (odls ODataLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for ODataLinkedService.
func (odls ODataLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -136378,7 +140831,7 @@ type OdbcLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -136750,6 +141203,11 @@ func (ols OdbcLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) {
return &ols, true
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for OdbcLinkedService.
+func (ols OdbcLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for OdbcLinkedService.
func (ols OdbcLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -136790,6 +141248,16 @@ func (ols OdbcLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for OdbcLinkedService.
+func (ols OdbcLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for OdbcLinkedService.
+func (ols OdbcLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for OdbcLinkedService.
func (ols OdbcLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -139193,7 +143661,7 @@ type Office365LinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -139565,6 +144033,11 @@ func (o3ls Office365LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bo
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for Office365LinkedService.
+func (o3ls Office365LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for Office365LinkedService.
func (o3ls Office365LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -139605,6 +144078,16 @@ func (o3ls Office365LinkedService) AsOracleLinkedService() (*OracleLinkedService
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for Office365LinkedService.
+func (o3ls Office365LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for Office365LinkedService.
+func (o3ls Office365LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for Office365LinkedService.
func (o3ls Office365LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -140796,7 +145279,7 @@ type OracleLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -141168,6 +145651,11 @@ func (ols OracleLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for OracleLinkedService.
+func (ols OracleLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for OracleLinkedService.
func (ols OracleLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -141208,6 +145696,16 @@ func (ols OracleLinkedService) AsOracleLinkedService() (*OracleLinkedService, bo
return &ols, true
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for OracleLinkedService.
+func (ols OracleLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for OracleLinkedService.
+func (ols OracleLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for OracleLinkedService.
func (ols OracleLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -141410,7 +145908,7 @@ type OracleServiceCloudLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -141782,6 +146280,11 @@ func (oscls OracleServiceCloudLinkedService) AsOdbcLinkedService() (*OdbcLinkedS
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService.
+func (oscls OracleServiceCloudLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService.
func (oscls OracleServiceCloudLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -141822,6 +146325,16 @@ func (oscls OracleServiceCloudLinkedService) AsOracleLinkedService() (*OracleLin
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService.
+func (oscls OracleServiceCloudLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService.
+func (oscls OracleServiceCloudLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService.
func (oscls OracleServiceCloudLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -145442,6 +149955,8 @@ func (od *OrcDataset) UnmarshalJSON(body []byte) error {
type OrcDatasetTypeProperties struct {
// Location - The location of the ORC data storage.
Location *DatasetLocation `json:"location,omitempty"`
+ // OrcCompressionCodec - Possible values include: 'OrcCompressionCodecNone', 'OrcCompressionCodecZlib', 'OrcCompressionCodecSnappy'
+ OrcCompressionCodec OrcCompressionCodec `json:"orcCompressionCodec,omitempty"`
}
// OrcFormat the data stored in Optimized Row Columnar (ORC) format.
@@ -148089,7 +152604,7 @@ type PaypalLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -148461,6 +152976,11 @@ func (pls PaypalLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for PaypalLinkedService.
+func (pls PaypalLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for PaypalLinkedService.
func (pls PaypalLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -148501,6 +153021,16 @@ func (pls PaypalLinkedService) AsOracleLinkedService() (*OracleLinkedService, bo
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for PaypalLinkedService.
+func (pls PaypalLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for PaypalLinkedService.
+func (pls PaypalLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for PaypalLinkedService.
func (pls PaypalLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -149977,7 +154507,7 @@ type PhoenixLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -150349,6 +154879,11 @@ func (pls PhoenixLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for PhoenixLinkedService.
+func (pls PhoenixLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for PhoenixLinkedService.
func (pls PhoenixLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -150389,6 +154924,16 @@ func (pls PhoenixLinkedService) AsOracleLinkedService() (*OracleLinkedService, b
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for PhoenixLinkedService.
+func (pls PhoenixLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for PhoenixLinkedService.
+func (pls PhoenixLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService.
func (pls PhoenixLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -152613,7 +157158,7 @@ type PostgreSQLLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -152985,6 +157530,11 @@ func (psls PostgreSQLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, b
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService.
+func (psls PostgreSQLLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService.
func (psls PostgreSQLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -153025,6 +157575,16 @@ func (psls PostgreSQLLinkedService) AsOracleLinkedService() (*OracleLinkedServic
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService.
+func (psls PostgreSQLLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService.
+func (psls PostgreSQLLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService.
func (psls PostgreSQLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -154467,7 +159027,7 @@ type PrestoLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -154839,6 +159399,11 @@ func (pls PrestoLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for PrestoLinkedService.
+func (pls PrestoLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for PrestoLinkedService.
func (pls PrestoLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -154879,6 +159444,16 @@ func (pls PrestoLinkedService) AsOracleLinkedService() (*OracleLinkedService, bo
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for PrestoLinkedService.
+func (pls PrestoLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for PrestoLinkedService.
+func (pls PrestoLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for PrestoLinkedService.
func (pls PrestoLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -156569,7 +161144,7 @@ type QuickBooksLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -156941,6 +161516,11 @@ func (qbls QuickBooksLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, b
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService.
+func (qbls QuickBooksLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService.
func (qbls QuickBooksLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -156981,6 +161561,16 @@ func (qbls QuickBooksLinkedService) AsOracleLinkedService() (*OracleLinkedServic
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService.
+func (qbls QuickBooksLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService.
+func (qbls QuickBooksLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService.
func (qbls QuickBooksLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -160341,7 +164931,7 @@ type ResponsysLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -160713,6 +165303,11 @@ func (rls ResponsysLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, boo
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ResponsysLinkedService.
+func (rls ResponsysLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for ResponsysLinkedService.
func (rls ResponsysLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -160753,6 +165348,16 @@ func (rls ResponsysLinkedService) AsOracleLinkedService() (*OracleLinkedService,
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ResponsysLinkedService.
+func (rls ResponsysLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ResponsysLinkedService.
+func (rls ResponsysLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService.
func (rls ResponsysLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -162847,7 +167452,7 @@ type RestServiceLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -163219,6 +167824,11 @@ func (rsls RestServiceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService,
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for RestServiceLinkedService.
+func (rsls RestServiceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService.
func (rsls RestServiceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -163259,6 +167869,16 @@ func (rsls RestServiceLinkedService) AsOracleLinkedService() (*OracleLinkedServi
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService.
+func (rsls RestServiceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService.
+func (rsls RestServiceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService.
func (rsls RestServiceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -164239,7 +168859,7 @@ type SalesforceLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -164611,6 +169231,11 @@ func (sls SalesforceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bo
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SalesforceLinkedService.
+func (sls SalesforceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService.
func (sls SalesforceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -164651,6 +169276,16 @@ func (sls SalesforceLinkedService) AsOracleLinkedService() (*OracleLinkedService
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService.
+func (sls SalesforceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService.
+func (sls SalesforceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService.
func (sls SalesforceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -164903,7 +169538,7 @@ type SalesforceMarketingCloudLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -165275,6 +169910,11 @@ func (smcls SalesforceMarketingCloudLinkedService) AsOdbcLinkedService() (*OdbcL
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService.
+func (smcls SalesforceMarketingCloudLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService.
func (smcls SalesforceMarketingCloudLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -165315,6 +169955,16 @@ func (smcls SalesforceMarketingCloudLinkedService) AsOracleLinkedService() (*Ora
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService.
+func (smcls SalesforceMarketingCloudLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService.
+func (smcls SalesforceMarketingCloudLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService.
func (smcls SalesforceMarketingCloudLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -167391,7 +172041,7 @@ type SalesforceServiceCloudLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -167763,6 +172413,11 @@ func (sscls SalesforceServiceCloudLinkedService) AsOdbcLinkedService() (*OdbcLin
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService.
+func (sscls SalesforceServiceCloudLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService.
func (sscls SalesforceServiceCloudLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -167803,6 +172458,16 @@ func (sscls SalesforceServiceCloudLinkedService) AsOracleLinkedService() (*Oracl
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService.
+func (sscls SalesforceServiceCloudLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService.
+func (sscls SalesforceServiceCloudLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService.
func (sscls SalesforceServiceCloudLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -171152,7 +175817,7 @@ type SapBWLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -171524,6 +176189,11 @@ func (sbls SapBWLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapBWLinkedService.
+func (sbls SapBWLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for SapBWLinkedService.
func (sbls SapBWLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -171564,6 +176234,16 @@ func (sbls SapBWLinkedService) AsOracleLinkedService() (*OracleLinkedService, bo
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService.
+func (sbls SapBWLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService.
+func (sbls SapBWLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService.
func (sbls SapBWLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -172405,7 +177085,7 @@ type SapCloudForCustomerLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -172777,6 +177457,11 @@ func (scfcls SapCloudForCustomerLinkedService) AsOdbcLinkedService() (*OdbcLinke
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService.
+func (scfcls SapCloudForCustomerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService.
func (scfcls SapCloudForCustomerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -172817,6 +177502,16 @@ func (scfcls SapCloudForCustomerLinkedService) AsOracleLinkedService() (*OracleL
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService.
+func (scfcls SapCloudForCustomerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService.
+func (scfcls SapCloudForCustomerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService.
func (scfcls SapCloudForCustomerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -174578,7 +179273,7 @@ type SapEccLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -174950,6 +179645,11 @@ func (sels SapEccLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapEccLinkedService.
+func (sels SapEccLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for SapEccLinkedService.
func (sels SapEccLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -174990,6 +179690,16 @@ func (sels SapEccLinkedService) AsOracleLinkedService() (*OracleLinkedService, b
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService.
+func (sels SapEccLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService.
+func (sels SapEccLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService.
func (sels SapEccLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -176429,7 +181139,7 @@ type SapHanaLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -176801,6 +181511,11 @@ func (shls SapHanaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapHanaLinkedService.
+func (shls SapHanaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService.
func (shls SapHanaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -176841,6 +181556,16 @@ func (shls SapHanaLinkedService) AsOracleLinkedService() (*OracleLinkedService,
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService.
+func (shls SapHanaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService.
+func (shls SapHanaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService.
func (shls SapHanaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -178318,7 +183043,7 @@ type SapOpenHubLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -178690,6 +183415,11 @@ func (sohls SapOpenHubLinkedService) AsOdbcLinkedService() (*OdbcLinkedService,
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService.
+func (sohls SapOpenHubLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService.
func (sohls SapOpenHubLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -178730,6 +183460,16 @@ func (sohls SapOpenHubLinkedService) AsOracleLinkedService() (*OracleLinkedServi
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService.
+func (sohls SapOpenHubLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService.
+func (sohls SapOpenHubLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService.
func (sohls SapOpenHubLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -180221,7 +184961,7 @@ type SapTableLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -180593,6 +185333,11 @@ func (stls SapTableLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, boo
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapTableLinkedService.
+func (stls SapTableLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for SapTableLinkedService.
func (stls SapTableLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -180633,6 +185378,16 @@ func (stls SapTableLinkedService) AsOracleLinkedService() (*OracleLinkedService,
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService.
+func (stls SapTableLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService.
+func (stls SapTableLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for SapTableLinkedService.
func (stls SapTableLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -183155,7 +187910,7 @@ type ServiceNowLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -183527,6 +188282,11 @@ func (snls ServiceNowLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, b
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService.
+func (snls ServiceNowLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService.
func (snls ServiceNowLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -183567,6 +188327,16 @@ func (snls ServiceNowLinkedService) AsOracleLinkedService() (*OracleLinkedServic
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService.
+func (snls ServiceNowLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService.
+func (snls ServiceNowLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService.
func (snls ServiceNowLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -185065,7 +189835,7 @@ type SetVariableActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -185127,6 +189897,11 @@ func (sva SetVariableActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnaly
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for SetVariableActivity.
+func (sva SetVariableActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for SetVariableActivity.
func (sva SetVariableActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -185257,6 +190032,11 @@ func (sva SetVariableActivity) AsForEachActivity() (*ForEachActivity, bool) {
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for SetVariableActivity.
+func (sva SetVariableActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for SetVariableActivity.
func (sva SetVariableActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -185614,7 +190394,7 @@ type SftpServerLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -185986,6 +190766,11 @@ func (ssls SftpServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, b
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SftpServerLinkedService.
+func (ssls SftpServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService.
func (ssls SftpServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -186026,6 +190811,16 @@ func (ssls SftpServerLinkedService) AsOracleLinkedService() (*OracleLinkedServic
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService.
+func (ssls SftpServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService.
+func (ssls SftpServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService.
func (ssls SftpServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -186343,7 +191138,7 @@ type ShopifyLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -186715,6 +191510,11 @@ func (sls ShopifyLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ShopifyLinkedService.
+func (sls ShopifyLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService.
func (sls ShopifyLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -186755,6 +191555,16 @@ func (sls ShopifyLinkedService) AsOracleLinkedService() (*OracleLinkedService, b
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService.
+func (sls ShopifyLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService.
+func (sls ShopifyLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService.
func (sls ShopifyLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -188220,7 +193030,7 @@ type SparkLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -188592,6 +193402,11 @@ func (sls SparkLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) {
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SparkLinkedService.
+func (sls SparkLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for SparkLinkedService.
func (sls SparkLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -188632,6 +193447,16 @@ func (sls SparkLinkedService) AsOracleLinkedService() (*OracleLinkedService, boo
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService.
+func (sls SparkLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService.
+func (sls SparkLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for SparkLinkedService.
func (sls SparkLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -192153,7 +196978,7 @@ type SQLServerLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -192525,6 +197350,11 @@ func (ssls SQLServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bo
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SQLServerLinkedService.
+func (ssls SQLServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService.
func (ssls SQLServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -192565,6 +197395,16 @@ func (ssls SQLServerLinkedService) AsOracleLinkedService() (*OracleLinkedService
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService.
+func (ssls SQLServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService.
+func (ssls SQLServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService.
func (ssls SQLServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -193821,7 +198661,7 @@ type SQLServerStoredProcedureActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -193889,6 +198729,11 @@ func (ssspa SQLServerStoredProcedureActivity) AsDataLakeAnalyticsUSQLActivity()
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity.
+func (ssspa SQLServerStoredProcedureActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity.
func (ssspa SQLServerStoredProcedureActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -194019,6 +198864,11 @@ func (ssspa SQLServerStoredProcedureActivity) AsForEachActivity() (*ForEachActiv
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity.
+func (ssspa SQLServerStoredProcedureActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity.
func (ssspa SQLServerStoredProcedureActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -195802,7 +200652,7 @@ type SquareLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -196174,6 +201024,11 @@ func (sls SquareLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SquareLinkedService.
+func (sls SquareLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for SquareLinkedService.
func (sls SquareLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -196214,6 +201069,16 @@ func (sls SquareLinkedService) AsOracleLinkedService() (*OracleLinkedService, bo
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SquareLinkedService.
+func (sls SquareLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SquareLinkedService.
+func (sls SquareLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for SquareLinkedService.
func (sls SquareLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -197684,7 +202549,48 @@ type SSISAccessCredential struct {
// UserName - UseName for windows authentication.
UserName interface{} `json:"userName,omitempty"`
// Password - Password for windows authentication.
- Password *SecureString `json:"password,omitempty"`
+ Password BasicSecretBase `json:"password,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for SSISAccessCredential struct.
+func (sac *SSISAccessCredential) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "domain":
+ if v != nil {
+ var domain interface{}
+ err = json.Unmarshal(*v, &domain)
+ if err != nil {
+ return err
+ }
+ sac.Domain = domain
+ }
+ case "userName":
+ if v != nil {
+ var userName interface{}
+ err = json.Unmarshal(*v, &userName)
+ if err != nil {
+ return err
+ }
+ sac.UserName = userName
+ }
+ case "password":
+ if v != nil {
+ password, err := unmarshalBasicSecretBase(*v)
+ if err != nil {
+ return err
+ }
+ sac.Password = password
+ }
+ }
+ }
+
+ return nil
}
// SsisEnvironment ssis environment.
@@ -198246,13 +203152,54 @@ func (spl *SSISPackageLocation) UnmarshalJSON(body []byte) error {
// SSISPackageLocationTypeProperties SSIS package location properties.
type SSISPackageLocationTypeProperties struct {
// PackagePassword - Password of the package.
- PackagePassword *SecureString `json:"packagePassword,omitempty"`
+ PackagePassword BasicSecretBase `json:"packagePassword,omitempty"`
// AccessCredential - The package access credential.
AccessCredential *SSISAccessCredential `json:"accessCredential,omitempty"`
// ConfigurationPath - The configuration file of the package execution. Type: string (or Expression with resultType string).
ConfigurationPath interface{} `json:"configurationPath,omitempty"`
}
+// UnmarshalJSON is the custom unmarshaler for SSISPackageLocationTypeProperties struct.
+func (spltp *SSISPackageLocationTypeProperties) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "packagePassword":
+ if v != nil {
+ packagePassword, err := unmarshalBasicSecretBase(*v)
+ if err != nil {
+ return err
+ }
+ spltp.PackagePassword = packagePassword
+ }
+ case "accessCredential":
+ if v != nil {
+ var accessCredential SSISAccessCredential
+ err = json.Unmarshal(*v, &accessCredential)
+ if err != nil {
+ return err
+ }
+ spltp.AccessCredential = &accessCredential
+ }
+ case "configurationPath":
+ if v != nil {
+ var configurationPath interface{}
+ err = json.Unmarshal(*v, &configurationPath)
+ if err != nil {
+ return err
+ }
+ spltp.ConfigurationPath = configurationPath
+ }
+ }
+ }
+
+ return nil
+}
+
// SsisParameter ssis parameter.
type SsisParameter struct {
// ID - Parameter id.
@@ -198735,6 +203682,431 @@ type SubResource struct {
Etag *string `json:"etag,omitempty"`
}
+// SubResourceDebugResource azure Data Factory nested debug resource.
+type SubResourceDebugResource struct {
+ // Name - The resource name.
+ Name *string `json:"name,omitempty"`
+}
+
+// SwitchActivity this activity evaluates an expression and executes activities under the cases property
+// that correspond to the expression evaluation expected in the equals property.
+type SwitchActivity struct {
+ // SwitchActivityTypeProperties - Switch activity properties.
+ *SwitchActivityTypeProperties `json:"typeProperties,omitempty"`
+ // AdditionalProperties - Unmatched properties from the message are deserialized this collection
+ AdditionalProperties map[string]interface{} `json:""`
+ // Name - Activity name.
+ Name *string `json:"name,omitempty"`
+ // Description - Activity description.
+ Description *string `json:"description,omitempty"`
+ // DependsOn - Activity depends on condition.
+ DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
+ // UserProperties - Activity user properties.
+ UserProperties *[]UserProperty `json:"userProperties,omitempty"`
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ Type TypeBasicActivity `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for SwitchActivity.
+func (sa SwitchActivity) MarshalJSON() ([]byte, error) {
+ sa.Type = TypeSwitch
+ objectMap := make(map[string]interface{})
+ if sa.SwitchActivityTypeProperties != nil {
+ objectMap["typeProperties"] = sa.SwitchActivityTypeProperties
+ }
+ if sa.Name != nil {
+ objectMap["name"] = sa.Name
+ }
+ if sa.Description != nil {
+ objectMap["description"] = sa.Description
+ }
+ if sa.DependsOn != nil {
+ objectMap["dependsOn"] = sa.DependsOn
+ }
+ if sa.UserProperties != nil {
+ objectMap["userProperties"] = sa.UserProperties
+ }
+ if sa.Type != "" {
+ objectMap["type"] = sa.Type
+ }
+ for k, v := range sa.AdditionalProperties {
+ objectMap[k] = v
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsExecuteDataFlowActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) {
+ return nil, false
+}
+
+// AsAzureFunctionActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) {
+ return nil, false
+}
+
+// AsDatabricksSparkPythonActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) {
+ return nil, false
+}
+
+// AsDatabricksSparkJarActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) {
+ return nil, false
+}
+
+// AsDatabricksNotebookActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) {
+ return nil, false
+}
+
+// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) {
+ return nil, false
+}
+
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
+// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
+ return nil, false
+}
+
+// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) {
+ return nil, false
+}
+
+// AsGetMetadataActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) {
+ return nil, false
+}
+
+// AsWebActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsWebActivity() (*WebActivity, bool) {
+ return nil, false
+}
+
+// AsLookupActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsLookupActivity() (*LookupActivity, bool) {
+ return nil, false
+}
+
+// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) {
+ return nil, false
+}
+
+// AsDeleteActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsDeleteActivity() (*DeleteActivity, bool) {
+ return nil, false
+}
+
+// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) {
+ return nil, false
+}
+
+// AsCustomActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsCustomActivity() (*CustomActivity, bool) {
+ return nil, false
+}
+
+// AsExecuteSSISPackageActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) {
+ return nil, false
+}
+
+// AsHDInsightSparkActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) {
+ return nil, false
+}
+
+// AsHDInsightStreamingActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) {
+ return nil, false
+}
+
+// AsHDInsightMapReduceActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) {
+ return nil, false
+}
+
+// AsHDInsightPigActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) {
+ return nil, false
+}
+
+// AsHDInsightHiveActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) {
+ return nil, false
+}
+
+// AsCopyActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsCopyActivity() (*CopyActivity, bool) {
+ return nil, false
+}
+
+// AsExecutionActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsExecutionActivity() (*ExecutionActivity, bool) {
+ return nil, false
+}
+
+// AsBasicExecutionActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) {
+ return nil, false
+}
+
+// AsWebHookActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsWebHookActivity() (*WebHookActivity, bool) {
+ return nil, false
+}
+
+// AsAppendVariableActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) {
+ return nil, false
+}
+
+// AsSetVariableActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsSetVariableActivity() (*SetVariableActivity, bool) {
+ return nil, false
+}
+
+// AsFilterActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsFilterActivity() (*FilterActivity, bool) {
+ return nil, false
+}
+
+// AsValidationActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsValidationActivity() (*ValidationActivity, bool) {
+ return nil, false
+}
+
+// AsUntilActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsUntilActivity() (*UntilActivity, bool) {
+ return nil, false
+}
+
+// AsWaitActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsWaitActivity() (*WaitActivity, bool) {
+ return nil, false
+}
+
+// AsForEachActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsForEachActivity() (*ForEachActivity, bool) {
+ return nil, false
+}
+
+// AsSwitchActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return &sa, true
+}
+
+// AsIfConditionActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
+ return nil, false
+}
+
+// AsExecutePipelineActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) {
+ return nil, false
+}
+
+// AsControlActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsControlActivity() (*ControlActivity, bool) {
+ return nil, false
+}
+
+// AsBasicControlActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsBasicControlActivity() (BasicControlActivity, bool) {
+ return &sa, true
+}
+
+// AsActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsActivity() (*Activity, bool) {
+ return nil, false
+}
+
+// AsBasicActivity is the BasicActivity implementation for SwitchActivity.
+func (sa SwitchActivity) AsBasicActivity() (BasicActivity, bool) {
+ return &sa, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for SwitchActivity struct.
+func (sa *SwitchActivity) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "typeProperties":
+ if v != nil {
+ var switchActivityTypeProperties SwitchActivityTypeProperties
+ err = json.Unmarshal(*v, &switchActivityTypeProperties)
+ if err != nil {
+ return err
+ }
+ sa.SwitchActivityTypeProperties = &switchActivityTypeProperties
+ }
+ default:
+ if v != nil {
+ var additionalProperties interface{}
+ err = json.Unmarshal(*v, &additionalProperties)
+ if err != nil {
+ return err
+ }
+ if sa.AdditionalProperties == nil {
+ sa.AdditionalProperties = make(map[string]interface{})
+ }
+ sa.AdditionalProperties[k] = additionalProperties
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ sa.Name = &name
+ }
+ case "description":
+ if v != nil {
+ var description string
+ err = json.Unmarshal(*v, &description)
+ if err != nil {
+ return err
+ }
+ sa.Description = &description
+ }
+ case "dependsOn":
+ if v != nil {
+ var dependsOn []ActivityDependency
+ err = json.Unmarshal(*v, &dependsOn)
+ if err != nil {
+ return err
+ }
+ sa.DependsOn = &dependsOn
+ }
+ case "userProperties":
+ if v != nil {
+ var userProperties []UserProperty
+ err = json.Unmarshal(*v, &userProperties)
+ if err != nil {
+ return err
+ }
+ sa.UserProperties = &userProperties
+ }
+ case "type":
+ if v != nil {
+ var typeVar TypeBasicActivity
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ sa.Type = typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// SwitchActivityTypeProperties switch activity properties.
+type SwitchActivityTypeProperties struct {
+ // On - An expression that would evaluate to a string or integer. This is used to determine the block of activities in cases that will be executed.
+ On *Expression `json:"on,omitempty"`
+ // Cases - List of cases that correspond to expected values of the 'on' property. This is an optional property and if not provided, the activity will execute activities provided in defaultActivities.
+ Cases *[]SwitchCase `json:"cases,omitempty"`
+ // DefaultActivities - List of activities to execute if no case condition is satisfied. This is an optional property and if not provided, the activity will exit without any action.
+ DefaultActivities *[]BasicActivity `json:"defaultActivities,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for SwitchActivityTypeProperties struct.
+func (satp *SwitchActivityTypeProperties) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "on":
+ if v != nil {
+ var on Expression
+ err = json.Unmarshal(*v, &on)
+ if err != nil {
+ return err
+ }
+ satp.On = &on
+ }
+ case "cases":
+ if v != nil {
+ var cases []SwitchCase
+ err = json.Unmarshal(*v, &cases)
+ if err != nil {
+ return err
+ }
+ satp.Cases = &cases
+ }
+ case "defaultActivities":
+ if v != nil {
+ defaultActivities, err := unmarshalBasicActivityArray(*v)
+ if err != nil {
+ return err
+ }
+ satp.DefaultActivities = &defaultActivities
+ }
+ }
+ }
+
+ return nil
+}
+
+// SwitchCase switch cases with have a value and corresponding activities.
+type SwitchCase struct {
+ // Value - Expected value that satisfies the expression result of the 'on' property.
+ Value *string `json:"value,omitempty"`
+ // Activities - List of activities to execute for satisfied case condition.
+ Activities *[]BasicActivity `json:"activities,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for SwitchCase struct.
+func (sc *SwitchCase) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "value":
+ if v != nil {
+ var value string
+ err = json.Unmarshal(*v, &value)
+ if err != nil {
+ return err
+ }
+ sc.Value = &value
+ }
+ case "activities":
+ if v != nil {
+ activities, err := unmarshalBasicActivityArray(*v)
+ if err != nil {
+ return err
+ }
+ sc.Activities = &activities
+ }
+ }
+ }
+
+ return nil
+}
+
// SybaseLinkedService linked service for Sybase data source.
type SybaseLinkedService struct {
// SybaseLinkedServiceTypeProperties - Sybase linked service properties.
@@ -198749,7 +204121,7 @@ type SybaseLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -199121,6 +204493,11 @@ func (sls SybaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SybaseLinkedService.
+func (sls SybaseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for SybaseLinkedService.
func (sls SybaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -199161,6 +204538,16 @@ func (sls SybaseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bo
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SybaseLinkedService.
+func (sls SybaseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SybaseLinkedService.
+func (sls SybaseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for SybaseLinkedService.
func (sls SybaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -201519,7 +206906,7 @@ type TeradataLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -201891,6 +207278,11 @@ func (TLSVar TeradataLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, b
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for TeradataLinkedService.
+func (TLSVar TeradataLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for TeradataLinkedService.
func (TLSVar TeradataLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -201931,6 +207323,16 @@ func (TLSVar TeradataLinkedService) AsOracleLinkedService() (*OracleLinkedServic
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for TeradataLinkedService.
+func (TLSVar TeradataLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for TeradataLinkedService.
+func (TLSVar TeradataLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for TeradataLinkedService.
func (TLSVar TeradataLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -204864,7 +210266,7 @@ type UntilActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -204926,6 +210328,11 @@ func (ua UntilActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQ
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for UntilActivity.
+func (ua UntilActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for UntilActivity.
func (ua UntilActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -205056,6 +210463,11 @@ func (ua UntilActivity) AsForEachActivity() (*ForEachActivity, bool) {
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for UntilActivity.
+func (ua UntilActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for UntilActivity.
func (ua UntilActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -205268,7 +210680,7 @@ type ValidationActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -205330,6 +210742,11 @@ func (va ValidationActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyti
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ValidationActivity.
+func (va ValidationActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ValidationActivity.
func (va ValidationActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -205460,6 +210877,11 @@ func (va ValidationActivity) AsForEachActivity() (*ForEachActivity, bool) {
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for ValidationActivity.
+func (va ValidationActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for ValidationActivity.
func (va ValidationActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -205617,7 +211039,7 @@ type VerticaLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -205989,6 +211411,11 @@ func (vls VerticaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool)
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for VerticaLinkedService.
+func (vls VerticaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for VerticaLinkedService.
func (vls VerticaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -206029,6 +211456,16 @@ func (vls VerticaLinkedService) AsOracleLinkedService() (*OracleLinkedService, b
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for VerticaLinkedService.
+func (vls VerticaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for VerticaLinkedService.
+func (vls VerticaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for VerticaLinkedService.
func (vls VerticaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -207410,7 +212847,7 @@ type WaitActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -207472,6 +212909,11 @@ func (wa WaitActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQL
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for WaitActivity.
+func (wa WaitActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for WaitActivity.
func (wa WaitActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -207602,6 +213044,11 @@ func (wa WaitActivity) AsForEachActivity() (*ForEachActivity, bool) {
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for WaitActivity.
+func (wa WaitActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for WaitActivity.
func (wa WaitActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -207713,260 +213160,383 @@ func (wa *WaitActivity) UnmarshalJSON(body []byte) error {
return nil
}
-// WaitActivityTypeProperties wait activity properties.
-type WaitActivityTypeProperties struct {
- // WaitTimeInSeconds - Duration in seconds.
- WaitTimeInSeconds *int32 `json:"waitTimeInSeconds,omitempty"`
-}
-
-// WebActivity web activity.
-type WebActivity struct {
- // WebActivityTypeProperties - Web activity properties.
- *WebActivityTypeProperties `json:"typeProperties,omitempty"`
- // LinkedServiceName - Linked service reference.
- LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"`
- // Policy - Activity policy.
- Policy *ActivityPolicy `json:"policy,omitempty"`
- // AdditionalProperties - Unmatched properties from the message are deserialized this collection
- AdditionalProperties map[string]interface{} `json:""`
- // Name - Activity name.
- Name *string `json:"name,omitempty"`
- // Description - Activity description.
- Description *string `json:"description,omitempty"`
- // DependsOn - Activity depends on condition.
- DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
- // UserProperties - Activity user properties.
- UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
- Type TypeBasicActivity `json:"type,omitempty"`
-}
-
-// MarshalJSON is the custom marshaler for WebActivity.
-func (wa WebActivity) MarshalJSON() ([]byte, error) {
- wa.Type = TypeWebActivity
- objectMap := make(map[string]interface{})
- if wa.WebActivityTypeProperties != nil {
- objectMap["typeProperties"] = wa.WebActivityTypeProperties
- }
- if wa.LinkedServiceName != nil {
- objectMap["linkedServiceName"] = wa.LinkedServiceName
- }
- if wa.Policy != nil {
- objectMap["policy"] = wa.Policy
- }
- if wa.Name != nil {
- objectMap["name"] = wa.Name
- }
- if wa.Description != nil {
- objectMap["description"] = wa.Description
- }
- if wa.DependsOn != nil {
- objectMap["dependsOn"] = wa.DependsOn
- }
- if wa.UserProperties != nil {
- objectMap["userProperties"] = wa.UserProperties
- }
- if wa.Type != "" {
- objectMap["type"] = wa.Type
- }
- for k, v := range wa.AdditionalProperties {
- objectMap[k] = v
- }
- return json.Marshal(objectMap)
-}
-
-// AsExecuteDataFlowActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) {
- return nil, false
-}
-
-// AsAzureFunctionActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) {
- return nil, false
-}
-
-// AsDatabricksSparkPythonActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) {
- return nil, false
-}
-
-// AsDatabricksSparkJarActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) {
- return nil, false
-}
-
-// AsDatabricksNotebookActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) {
- return nil, false
-}
-
-// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) {
- return nil, false
-}
-
-// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
- return nil, false
-}
-
-// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) {
- return nil, false
-}
-
-// AsGetMetadataActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) {
- return nil, false
-}
-
-// AsWebActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsWebActivity() (*WebActivity, bool) {
- return &wa, true
-}
-
-// AsLookupActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsLookupActivity() (*LookupActivity, bool) {
- return nil, false
-}
-
-// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) {
- return nil, false
-}
-
-// AsDeleteActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsDeleteActivity() (*DeleteActivity, bool) {
- return nil, false
-}
-
-// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) {
- return nil, false
-}
-
-// AsCustomActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsCustomActivity() (*CustomActivity, bool) {
- return nil, false
-}
-
-// AsExecuteSSISPackageActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) {
- return nil, false
-}
-
-// AsHDInsightSparkActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) {
- return nil, false
-}
-
-// AsHDInsightStreamingActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) {
- return nil, false
-}
-
-// AsHDInsightMapReduceActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) {
- return nil, false
-}
-
-// AsHDInsightPigActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) {
- return nil, false
-}
-
-// AsHDInsightHiveActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) {
- return nil, false
-}
-
-// AsCopyActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsCopyActivity() (*CopyActivity, bool) {
- return nil, false
-}
-
-// AsExecutionActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsExecutionActivity() (*ExecutionActivity, bool) {
- return nil, false
-}
-
-// AsBasicExecutionActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) {
- return &wa, true
-}
-
-// AsWebHookActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsWebHookActivity() (*WebHookActivity, bool) {
- return nil, false
-}
-
-// AsAppendVariableActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) {
- return nil, false
-}
-
-// AsSetVariableActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsSetVariableActivity() (*SetVariableActivity, bool) {
- return nil, false
-}
-
-// AsFilterActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsFilterActivity() (*FilterActivity, bool) {
- return nil, false
-}
-
-// AsValidationActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsValidationActivity() (*ValidationActivity, bool) {
- return nil, false
-}
-
-// AsUntilActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsUntilActivity() (*UntilActivity, bool) {
- return nil, false
-}
-
-// AsWaitActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsWaitActivity() (*WaitActivity, bool) {
- return nil, false
-}
-
-// AsForEachActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsForEachActivity() (*ForEachActivity, bool) {
- return nil, false
-}
-
-// AsIfConditionActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
- return nil, false
-}
-
-// AsExecutePipelineActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) {
- return nil, false
-}
-
-// AsControlActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsControlActivity() (*ControlActivity, bool) {
- return nil, false
-}
-
-// AsBasicControlActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsBasicControlActivity() (BasicControlActivity, bool) {
- return nil, false
-}
-
-// AsActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsActivity() (*Activity, bool) {
- return nil, false
-}
-
-// AsBasicActivity is the BasicActivity implementation for WebActivity.
-func (wa WebActivity) AsBasicActivity() (BasicActivity, bool) {
- return &wa, true
+// WaitActivityTypeProperties wait activity properties.
+type WaitActivityTypeProperties struct {
+ // WaitTimeInSeconds - Duration in seconds.
+ WaitTimeInSeconds *int32 `json:"waitTimeInSeconds,omitempty"`
+}
+
+// WebActivity web activity.
+type WebActivity struct {
+ // WebActivityTypeProperties - Web activity properties.
+ *WebActivityTypeProperties `json:"typeProperties,omitempty"`
+ // LinkedServiceName - Linked service reference.
+ LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"`
+ // Policy - Activity policy.
+ Policy *ActivityPolicy `json:"policy,omitempty"`
+ // AdditionalProperties - Unmatched properties from the message are deserialized this collection
+ AdditionalProperties map[string]interface{} `json:""`
+ // Name - Activity name.
+ Name *string `json:"name,omitempty"`
+ // Description - Activity description.
+ Description *string `json:"description,omitempty"`
+ // DependsOn - Activity depends on condition.
+ DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
+ // UserProperties - Activity user properties.
+ UserProperties *[]UserProperty `json:"userProperties,omitempty"`
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ Type TypeBasicActivity `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for WebActivity.
+func (wa WebActivity) MarshalJSON() ([]byte, error) {
+ wa.Type = TypeWebActivity
+ objectMap := make(map[string]interface{})
+ if wa.WebActivityTypeProperties != nil {
+ objectMap["typeProperties"] = wa.WebActivityTypeProperties
+ }
+ if wa.LinkedServiceName != nil {
+ objectMap["linkedServiceName"] = wa.LinkedServiceName
+ }
+ if wa.Policy != nil {
+ objectMap["policy"] = wa.Policy
+ }
+ if wa.Name != nil {
+ objectMap["name"] = wa.Name
+ }
+ if wa.Description != nil {
+ objectMap["description"] = wa.Description
+ }
+ if wa.DependsOn != nil {
+ objectMap["dependsOn"] = wa.DependsOn
+ }
+ if wa.UserProperties != nil {
+ objectMap["userProperties"] = wa.UserProperties
+ }
+ if wa.Type != "" {
+ objectMap["type"] = wa.Type
+ }
+ for k, v := range wa.AdditionalProperties {
+ objectMap[k] = v
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsExecuteDataFlowActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) {
+ return nil, false
+}
+
+// AsAzureFunctionActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) {
+ return nil, false
+}
+
+// AsDatabricksSparkPythonActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) {
+ return nil, false
+}
+
+// AsDatabricksSparkJarActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) {
+ return nil, false
+}
+
+// AsDatabricksNotebookActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) {
+ return nil, false
+}
+
+// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) {
+ return nil, false
+}
+
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
+// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
+ return nil, false
+}
+
+// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) {
+ return nil, false
+}
+
+// AsGetMetadataActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) {
+ return nil, false
+}
+
+// AsWebActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsWebActivity() (*WebActivity, bool) {
+ return &wa, true
+}
+
+// AsLookupActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsLookupActivity() (*LookupActivity, bool) {
+ return nil, false
+}
+
+// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) {
+ return nil, false
+}
+
+// AsDeleteActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsDeleteActivity() (*DeleteActivity, bool) {
+ return nil, false
+}
+
+// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) {
+ return nil, false
+}
+
+// AsCustomActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsCustomActivity() (*CustomActivity, bool) {
+ return nil, false
+}
+
+// AsExecuteSSISPackageActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) {
+ return nil, false
+}
+
+// AsHDInsightSparkActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) {
+ return nil, false
+}
+
+// AsHDInsightStreamingActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) {
+ return nil, false
+}
+
+// AsHDInsightMapReduceActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) {
+ return nil, false
+}
+
+// AsHDInsightPigActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) {
+ return nil, false
+}
+
+// AsHDInsightHiveActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) {
+ return nil, false
+}
+
+// AsCopyActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsCopyActivity() (*CopyActivity, bool) {
+ return nil, false
+}
+
+// AsExecutionActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsExecutionActivity() (*ExecutionActivity, bool) {
+ return nil, false
+}
+
+// AsBasicExecutionActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) {
+ return &wa, true
+}
+
+// AsWebHookActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsWebHookActivity() (*WebHookActivity, bool) {
+ return nil, false
+}
+
+// AsAppendVariableActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) {
+ return nil, false
+}
+
+// AsSetVariableActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsSetVariableActivity() (*SetVariableActivity, bool) {
+ return nil, false
+}
+
+// AsFilterActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsFilterActivity() (*FilterActivity, bool) {
+ return nil, false
+}
+
+// AsValidationActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsValidationActivity() (*ValidationActivity, bool) {
+ return nil, false
+}
+
+// AsUntilActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsUntilActivity() (*UntilActivity, bool) {
+ return nil, false
+}
+
+// AsWaitActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsWaitActivity() (*WaitActivity, bool) {
+ return nil, false
+}
+
+// AsForEachActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsForEachActivity() (*ForEachActivity, bool) {
+ return nil, false
+}
+
+// AsSwitchActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
+// AsIfConditionActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
+ return nil, false
+}
+
+// AsExecutePipelineActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) {
+ return nil, false
+}
+
+// AsControlActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsControlActivity() (*ControlActivity, bool) {
+ return nil, false
+}
+
+// AsBasicControlActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsBasicControlActivity() (BasicControlActivity, bool) {
+ return nil, false
+}
+
+// AsActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsActivity() (*Activity, bool) {
+ return nil, false
+}
+
+// AsBasicActivity is the BasicActivity implementation for WebActivity.
+func (wa WebActivity) AsBasicActivity() (BasicActivity, bool) {
+ return &wa, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for WebActivity struct.
+func (wa *WebActivity) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "typeProperties":
+ if v != nil {
+ var webActivityTypeProperties WebActivityTypeProperties
+ err = json.Unmarshal(*v, &webActivityTypeProperties)
+ if err != nil {
+ return err
+ }
+ wa.WebActivityTypeProperties = &webActivityTypeProperties
+ }
+ case "linkedServiceName":
+ if v != nil {
+ var linkedServiceName LinkedServiceReference
+ err = json.Unmarshal(*v, &linkedServiceName)
+ if err != nil {
+ return err
+ }
+ wa.LinkedServiceName = &linkedServiceName
+ }
+ case "policy":
+ if v != nil {
+ var policy ActivityPolicy
+ err = json.Unmarshal(*v, &policy)
+ if err != nil {
+ return err
+ }
+ wa.Policy = &policy
+ }
+ default:
+ if v != nil {
+ var additionalProperties interface{}
+ err = json.Unmarshal(*v, &additionalProperties)
+ if err != nil {
+ return err
+ }
+ if wa.AdditionalProperties == nil {
+ wa.AdditionalProperties = make(map[string]interface{})
+ }
+ wa.AdditionalProperties[k] = additionalProperties
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ wa.Name = &name
+ }
+ case "description":
+ if v != nil {
+ var description string
+ err = json.Unmarshal(*v, &description)
+ if err != nil {
+ return err
+ }
+ wa.Description = &description
+ }
+ case "dependsOn":
+ if v != nil {
+ var dependsOn []ActivityDependency
+ err = json.Unmarshal(*v, &dependsOn)
+ if err != nil {
+ return err
+ }
+ wa.DependsOn = &dependsOn
+ }
+ case "userProperties":
+ if v != nil {
+ var userProperties []UserProperty
+ err = json.Unmarshal(*v, &userProperties)
+ if err != nil {
+ return err
+ }
+ wa.UserProperties = &userProperties
+ }
+ case "type":
+ if v != nil {
+ var typeVar TypeBasicActivity
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ wa.Type = typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// WebActivityAuthentication web activity authentication properties.
+type WebActivityAuthentication struct {
+ // Type - Web activity authentication (Basic/ClientCertificate/MSI)
+ Type *string `json:"type,omitempty"`
+ // Pfx - Base64-encoded contents of a PFX file.
+ Pfx BasicSecretBase `json:"pfx,omitempty"`
+ // Username - Web activity authentication user name for basic authentication.
+ Username *string `json:"username,omitempty"`
+ // Password - Password for the PFX file or basic authentication.
+ Password BasicSecretBase `json:"password,omitempty"`
+ // Resource - Resource for which Azure Auth token will be requested when using MSI Authentication.
+ Resource *string `json:"resource,omitempty"`
}
-// UnmarshalJSON is the custom unmarshaler for WebActivity struct.
-func (wa *WebActivity) UnmarshalJSON(body []byte) error {
+// UnmarshalJSON is the custom unmarshaler for WebActivityAuthentication struct.
+func (waa *WebActivityAuthentication) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
err := json.Unmarshal(body, &m)
if err != nil {
@@ -207974,89 +213544,48 @@ func (wa *WebActivity) UnmarshalJSON(body []byte) error {
}
for k, v := range m {
switch k {
- case "typeProperties":
- if v != nil {
- var webActivityTypeProperties WebActivityTypeProperties
- err = json.Unmarshal(*v, &webActivityTypeProperties)
- if err != nil {
- return err
- }
- wa.WebActivityTypeProperties = &webActivityTypeProperties
- }
- case "linkedServiceName":
- if v != nil {
- var linkedServiceName LinkedServiceReference
- err = json.Unmarshal(*v, &linkedServiceName)
- if err != nil {
- return err
- }
- wa.LinkedServiceName = &linkedServiceName
- }
- case "policy":
- if v != nil {
- var policy ActivityPolicy
- err = json.Unmarshal(*v, &policy)
- if err != nil {
- return err
- }
- wa.Policy = &policy
- }
- default:
+ case "type":
if v != nil {
- var additionalProperties interface{}
- err = json.Unmarshal(*v, &additionalProperties)
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
if err != nil {
return err
}
- if wa.AdditionalProperties == nil {
- wa.AdditionalProperties = make(map[string]interface{})
- }
- wa.AdditionalProperties[k] = additionalProperties
+ waa.Type = &typeVar
}
- case "name":
- if v != nil {
- var name string
- err = json.Unmarshal(*v, &name)
- if err != nil {
- return err
- }
- wa.Name = &name
- }
- case "description":
+ case "pfx":
if v != nil {
- var description string
- err = json.Unmarshal(*v, &description)
+ pfx, err := unmarshalBasicSecretBase(*v)
if err != nil {
return err
}
- wa.Description = &description
+ waa.Pfx = pfx
}
- case "dependsOn":
+ case "username":
if v != nil {
- var dependsOn []ActivityDependency
- err = json.Unmarshal(*v, &dependsOn)
+ var username string
+ err = json.Unmarshal(*v, &username)
if err != nil {
return err
}
- wa.DependsOn = &dependsOn
+ waa.Username = &username
}
- case "userProperties":
+ case "password":
if v != nil {
- var userProperties []UserProperty
- err = json.Unmarshal(*v, &userProperties)
+ password, err := unmarshalBasicSecretBase(*v)
if err != nil {
return err
}
- wa.UserProperties = &userProperties
+ waa.Password = password
}
- case "type":
+ case "resource":
if v != nil {
- var typeVar TypeBasicActivity
- err = json.Unmarshal(*v, &typeVar)
+ var resource string
+ err = json.Unmarshal(*v, &resource)
if err != nil {
return err
}
- wa.Type = typeVar
+ waa.Resource = &resource
}
}
}
@@ -208064,20 +213593,6 @@ func (wa *WebActivity) UnmarshalJSON(body []byte) error {
return nil
}
-// WebActivityAuthentication web activity authentication properties.
-type WebActivityAuthentication struct {
- // Type - Web activity authentication (Basic/ClientCertificate/MSI)
- Type *string `json:"type,omitempty"`
- // Pfx - Base64-encoded contents of a PFX file.
- Pfx *SecureString `json:"pfx,omitempty"`
- // Username - Web activity authentication user name for basic authentication.
- Username *string `json:"username,omitempty"`
- // Password - Password for the PFX file or basic authentication.
- Password *SecureString `json:"password,omitempty"`
- // Resource - Resource for which Azure Auth token will be requested when using MSI Authentication.
- Resource *string `json:"resource,omitempty"`
-}
-
// WebActivityTypeProperties web activity type properties.
type WebActivityTypeProperties struct {
// Method - Rest API method for target endpoint. Possible values include: 'WebActivityMethodGET', 'WebActivityMethodPOST', 'WebActivityMethodPUT', 'WebActivityMethodDELETE'
@@ -208365,7 +213880,7 @@ type WebHookActivity struct {
DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"`
// UserProperties - Activity user properties.
UserProperties *[]UserProperty `json:"userProperties,omitempty"`
- // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
+ // Type - Possible values include: 'TypeActivity', 'TypeExecuteDataFlow', 'TypeAzureFunctionActivity', 'TypeDatabricksSparkPython', 'TypeDatabricksSparkJar', 'TypeDatabricksNotebook', 'TypeDataLakeAnalyticsUSQL', 'TypeAzureMLExecutePipeline', 'TypeAzureMLUpdateResource', 'TypeAzureMLBatchExecution', 'TypeGetMetadata', 'TypeWebActivity', 'TypeLookup', 'TypeAzureDataExplorerCommand', 'TypeDelete', 'TypeSQLServerStoredProcedure', 'TypeCustom', 'TypeExecuteSSISPackage', 'TypeHDInsightSpark', 'TypeHDInsightStreaming', 'TypeHDInsightMapReduce', 'TypeHDInsightPig', 'TypeHDInsightHive', 'TypeCopy', 'TypeExecution', 'TypeWebHook', 'TypeAppendVariable', 'TypeSetVariable', 'TypeFilter', 'TypeValidation', 'TypeUntil', 'TypeWait', 'TypeForEach', 'TypeSwitch', 'TypeIfCondition', 'TypeExecutePipeline', 'TypeContainer'
Type TypeBasicActivity `json:"type,omitempty"`
}
@@ -208427,6 +213942,11 @@ func (wha WebHookActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalytics
return nil, false
}
+// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for WebHookActivity.
+func (wha WebHookActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) {
+ return nil, false
+}
+
// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for WebHookActivity.
func (wha WebHookActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) {
return nil, false
@@ -208557,6 +214077,11 @@ func (wha WebHookActivity) AsForEachActivity() (*ForEachActivity, bool) {
return nil, false
}
+// AsSwitchActivity is the BasicActivity implementation for WebHookActivity.
+func (wha WebHookActivity) AsSwitchActivity() (*SwitchActivity, bool) {
+ return nil, false
+}
+
// AsIfConditionActivity is the BasicActivity implementation for WebHookActivity.
func (wha WebHookActivity) AsIfConditionActivity() (*IfConditionActivity, bool) {
return nil, false
@@ -208698,7 +214223,7 @@ type WebLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -209068,6 +214593,11 @@ func (wls WebLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) {
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for WebLinkedService.
+func (wls WebLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for WebLinkedService.
func (wls WebLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -209108,6 +214638,16 @@ func (wls WebLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool)
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for WebLinkedService.
+func (wls WebLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for WebLinkedService.
+func (wls WebLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for WebLinkedService.
func (wls WebLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -210559,7 +216099,7 @@ type XeroLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -210931,6 +216471,11 @@ func (xls XeroLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) {
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for XeroLinkedService.
+func (xls XeroLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for XeroLinkedService.
func (xls XeroLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -210971,6 +216516,16 @@ func (xls XeroLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService.
+func (xls XeroLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService.
+func (xls XeroLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for XeroLinkedService.
func (xls XeroLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
@@ -212437,7 +217992,7 @@ type ZohoLinkedService struct {
Parameters map[string]*ParameterSpecification `json:"parameters"`
// Annotations - List of tags that can be used for describing the linked service.
Annotations *[]interface{} `json:"annotations,omitempty"`
- // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
+ // Type - Possible values include: 'TypeLinkedService', 'TypeAzureFunction', 'TypeAzureDataExplorer', 'TypeSapTable', 'TypeGoogleAdWords', 'TypeOracleServiceCloud', 'TypeDynamicsAX', 'TypeResponsys', 'TypeAzureDatabricks', 'TypeAzureDataLakeAnalytics', 'TypeHDInsightOnDemand', 'TypeSalesforceMarketingCloud', 'TypeNetezza', 'TypeVertica', 'TypeZoho', 'TypeXero', 'TypeSquare', 'TypeSpark', 'TypeShopify', 'TypeServiceNow', 'TypeQuickBooks', 'TypePresto', 'TypePhoenix', 'TypePaypal', 'TypeMarketo', 'TypeAzureMariaDB', 'TypeMariaDB', 'TypeMagento', 'TypeJira', 'TypeImpala', 'TypeHubspot', 'TypeHive', 'TypeHBase', 'TypeGreenplum', 'TypeGoogleBigQuery', 'TypeEloqua', 'TypeDrill', 'TypeCouchbase', 'TypeConcur', 'TypeAzurePostgreSQL', 'TypeAmazonMWS', 'TypeSapHana', 'TypeSapBW', 'TypeSftp', 'TypeFtpServer', 'TypeHTTPServer', 'TypeAzureSearch', 'TypeCustomDataSource', 'TypeAmazonRedshift', 'TypeAmazonS3', 'TypeRestService', 'TypeSapOpenHub', 'TypeSapEcc', 'TypeSapCloudForCustomer', 'TypeSalesforceServiceCloud', 'TypeSalesforce', 'TypeOffice365', 'TypeAzureBlobFS', 'TypeAzureDataLakeStore', 'TypeCosmosDbMongoDbAPI', 'TypeMongoDbV2', 'TypeMongoDb', 'TypeCassandra', 'TypeWeb', 'TypeOData', 'TypeHdfs', 'TypeMicrosoftAccess', 'TypeInformix', 'TypeOdbc', 'TypeAzureMLService', 'TypeAzureML', 'TypeTeradata', 'TypeDb2', 'TypeSybase', 'TypePostgreSQL', 'TypeMySQL', 'TypeAzureMySQL', 'TypeOracle', 'TypeGoogleCloudStorage', 'TypeAzureFileStorage', 'TypeFileServer', 'TypeHDInsight', 'TypeCommonDataServiceForApps', 'TypeDynamicsCrm', 'TypeDynamics', 'TypeCosmosDb', 'TypeAzureKeyVault', 'TypeAzureBatch', 'TypeAzureSQLMI', 'TypeAzureSQLDatabase', 'TypeSQLServer', 'TypeAzureSQLDW', 'TypeAzureTableStorage', 'TypeAzureBlobStorage', 'TypeAzureStorage'
Type TypeBasicLinkedService `json:"type,omitempty"`
}
@@ -212809,6 +218364,11 @@ func (zls ZohoLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) {
return nil, false
}
+// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ZohoLinkedService.
+func (zls ZohoLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) {
+ return nil, false
+}
+
// AsAzureMLLinkedService is the BasicLinkedService implementation for ZohoLinkedService.
func (zls ZohoLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) {
return nil, false
@@ -212849,6 +218409,16 @@ func (zls ZohoLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool
return nil, false
}
+// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ZohoLinkedService.
+func (zls ZohoLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) {
+ return nil, false
+}
+
+// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ZohoLinkedService.
+func (zls ZohoLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) {
+ return nil, false
+}
+
// AsFileServerLinkedService is the BasicLinkedService implementation for ZohoLinkedService.
func (zls ZohoLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) {
return nil, false
diff --git a/services/datashare/mgmt/2019-11-01/datashare/accounts.go b/services/datashare/mgmt/2019-11-01/datashare/accounts.go
new file mode 100644
index 000000000000..a6f223dd5992
--- /dev/null
+++ b/services/datashare/mgmt/2019-11-01/datashare/accounts.go
@@ -0,0 +1,594 @@
+package datashare
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// AccountsClient is the creates a Microsoft.DataShare management client.
+type AccountsClient struct {
+ BaseClient
+}
+
+// NewAccountsClient creates an instance of the AccountsClient client.
+func NewAccountsClient(subscriptionID string) AccountsClient {
+ return NewAccountsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewAccountsClientWithBaseURI creates an instance of the AccountsClient client.
+func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) AccountsClient {
+ return AccountsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Create create an account
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// account - the account payload.
+func (client AccountsClient) Create(ctx context.Context, resourceGroupName string, accountName string, account Account) (result AccountsCreateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.Create")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: account,
+ Constraints: []validation.Constraint{{Target: "account.Identity", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("datashare.AccountsClient", "Create", err.Error())
+ }
+
+ req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, account)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "Create", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "Create", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreatePreparer prepares the Create request.
+func (client AccountsClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, account Account) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}", pathParameters),
+ autorest.WithJSON(account),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateSender sends the Create request. The method will close the
+// http.Response Body if it receives an error.
+func (client AccountsClient) CreateSender(req *http.Request) (future AccountsCreateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateResponder handles the response to the Create request. The method always
+// closes the http.Response Body.
+func (client AccountsClient) CreateResponder(resp *http.Response) (result Account, 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 deleteAccount
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+func (client AccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string) (result AccountsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, accountName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client AccountsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}", 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 AccountsClient) DeleteSender(req *http.Request) (future AccountsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client AccountsClient) DeleteResponder(resp *http.Response) (result OperationResponse, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Get get an account
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string) (result Account, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, accountName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client AccountsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}", 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 AccountsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client AccountsClient) GetResponder(resp *http.Response) (result Account, 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 list Accounts in ResourceGroup
+// Parameters:
+// resourceGroupName - the resource group name.
+// skipToken - continuation token
+func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, skipToken string) (result AccountListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.al.Response.Response != nil {
+ sc = result.al.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByResourceGroupNextResults
+ req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.al.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.al, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client AccountsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, skipToken string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client AccountsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client AccountsClient) ListByResourceGroupResponder(resp *http.Response) (result AccountList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByResourceGroupNextResults retrieves the next set of results, if any.
+func (client AccountsClient) listByResourceGroupNextResults(ctx context.Context, lastResults AccountList) (result AccountList, err error) {
+ req, err := lastResults.accountListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "datashare.AccountsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "datashare.AccountsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client AccountsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, skipToken string) (result AccountListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByResourceGroup(ctx, resourceGroupName, skipToken)
+ return
+}
+
+// ListBySubscription list Accounts in Subscription
+// Parameters:
+// skipToken - continuation token
+func (client AccountsClient) ListBySubscription(ctx context.Context, skipToken string) (result AccountListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.ListBySubscription")
+ defer func() {
+ sc := -1
+ if result.al.Response.Response != nil {
+ sc = result.al.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listBySubscriptionNextResults
+ req, err := client.ListBySubscriptionPreparer(ctx, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "ListBySubscription", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListBySubscriptionSender(req)
+ if err != nil {
+ result.al.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "ListBySubscription", resp, "Failure sending request")
+ return
+ }
+
+ result.al, err = client.ListBySubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "ListBySubscription", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListBySubscriptionPreparer prepares the ListBySubscription request.
+func (client AccountsClient) ListBySubscriptionPreparer(ctx context.Context, skipToken string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.DataShare/accounts", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListBySubscriptionSender sends the ListBySubscription request. The method will close the
+// http.Response Body if it receives an error.
+func (client AccountsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always
+// closes the http.Response Body.
+func (client AccountsClient) ListBySubscriptionResponder(resp *http.Response) (result AccountList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listBySubscriptionNextResults retrieves the next set of results, if any.
+func (client AccountsClient) listBySubscriptionNextResults(ctx context.Context, lastResults AccountList) (result AccountList, err error) {
+ req, err := lastResults.accountListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "datashare.AccountsClient", "listBySubscriptionNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListBySubscriptionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "datashare.AccountsClient", "listBySubscriptionNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListBySubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
+func (client AccountsClient) ListBySubscriptionComplete(ctx context.Context, skipToken string) (result AccountListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.ListBySubscription")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListBySubscription(ctx, skipToken)
+ return
+}
+
+// Update patch an account
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// accountUpdateParameters - the account update parameters.
+func (client AccountsClient) Update(ctx context.Context, resourceGroupName string, accountName string, accountUpdateParameters AccountUpdateParameters) (result Account, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AccountsClient.Update")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdatePreparer(ctx, resourceGroupName, accountName, accountUpdateParameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "Update", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "Update", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.AccountsClient", "Update", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdatePreparer prepares the Update request.
+func (client AccountsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, accountUpdateParameters AccountUpdateParameters) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}", pathParameters),
+ autorest.WithJSON(accountUpdateParameters),
+ 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 AccountsClient) UpdateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateResponder handles the response to the Update request. The method always
+// closes the http.Response Body.
+func (client AccountsClient) UpdateResponder(resp *http.Response) (result Account, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/datashare/mgmt/2019-11-01/datashare/client.go b/services/datashare/mgmt/2019-11-01/datashare/client.go
new file mode 100644
index 000000000000..de12f9c689d9
--- /dev/null
+++ b/services/datashare/mgmt/2019-11-01/datashare/client.go
@@ -0,0 +1,51 @@
+// Package datashare implements the Azure ARM Datashare service API version 2019-11-01.
+//
+// Creates a Microsoft.DataShare management client.
+package datashare
+
+// 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 (
+ "github.com/Azure/go-autorest/autorest"
+)
+
+const (
+ // DefaultBaseURI is the default URI used for the service Datashare
+ DefaultBaseURI = "https://management.azure.com"
+)
+
+// BaseClient is the base client for Datashare.
+type BaseClient struct {
+ autorest.Client
+ BaseURI string
+ SubscriptionID string
+}
+
+// New creates an instance of the BaseClient client.
+func New(subscriptionID string) BaseClient {
+ return NewWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewWithBaseURI creates an instance of the BaseClient client.
+func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
+ return BaseClient{
+ Client: autorest.NewClientWithUserAgent(UserAgent()),
+ BaseURI: baseURI,
+ SubscriptionID: subscriptionID,
+ }
+}
diff --git a/services/datashare/mgmt/2019-11-01/datashare/consumerinvitations.go b/services/datashare/mgmt/2019-11-01/datashare/consumerinvitations.go
new file mode 100644
index 000000000000..3fb5b0818b00
--- /dev/null
+++ b/services/datashare/mgmt/2019-11-01/datashare/consumerinvitations.go
@@ -0,0 +1,313 @@
+package datashare
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ConsumerInvitationsClient is the creates a Microsoft.DataShare management client.
+type ConsumerInvitationsClient struct {
+ BaseClient
+}
+
+// NewConsumerInvitationsClient creates an instance of the ConsumerInvitationsClient client.
+func NewConsumerInvitationsClient(subscriptionID string) ConsumerInvitationsClient {
+ return NewConsumerInvitationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewConsumerInvitationsClientWithBaseURI creates an instance of the ConsumerInvitationsClient client.
+func NewConsumerInvitationsClientWithBaseURI(baseURI string, subscriptionID string) ConsumerInvitationsClient {
+ return ConsumerInvitationsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Get get an invitation
+// Parameters:
+// location - location of the invitation
+// invitationID - an invitation id
+func (client ConsumerInvitationsClient) Get(ctx context.Context, location string, invitationID string) (result ConsumerInvitation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConsumerInvitationsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, location, invitationID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ConsumerInvitationsClient) GetPreparer(ctx context.Context, location string, invitationID string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "invitationId": autorest.Encode("path", invitationID),
+ "location": autorest.Encode("path", location),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/providers/Microsoft.DataShare/locations/{location}/consumerInvitations/{invitationId}", 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 ConsumerInvitationsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ConsumerInvitationsClient) GetResponder(resp *http.Response) (result ConsumerInvitation, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListInvitations lists invitations
+// Parameters:
+// skipToken - the continuation token
+func (client ConsumerInvitationsClient) ListInvitations(ctx context.Context, skipToken string) (result ConsumerInvitationListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConsumerInvitationsClient.ListInvitations")
+ defer func() {
+ sc := -1
+ if result.cil.Response.Response != nil {
+ sc = result.cil.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listInvitationsNextResults
+ req, err := client.ListInvitationsPreparer(ctx, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "ListInvitations", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListInvitationsSender(req)
+ if err != nil {
+ result.cil.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "ListInvitations", resp, "Failure sending request")
+ return
+ }
+
+ result.cil, err = client.ListInvitationsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "ListInvitations", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListInvitationsPreparer prepares the ListInvitations request.
+func (client ConsumerInvitationsClient) ListInvitationsPreparer(ctx context.Context, skipToken string) (*http.Request, error) {
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPath("/providers/Microsoft.DataShare/ListInvitations"),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListInvitationsSender sends the ListInvitations request. The method will close the
+// http.Response Body if it receives an error.
+func (client ConsumerInvitationsClient) ListInvitationsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListInvitationsResponder handles the response to the ListInvitations request. The method always
+// closes the http.Response Body.
+func (client ConsumerInvitationsClient) ListInvitationsResponder(resp *http.Response) (result ConsumerInvitationList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listInvitationsNextResults retrieves the next set of results, if any.
+func (client ConsumerInvitationsClient) listInvitationsNextResults(ctx context.Context, lastResults ConsumerInvitationList) (result ConsumerInvitationList, err error) {
+ req, err := lastResults.consumerInvitationListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "listInvitationsNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListInvitationsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "listInvitationsNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListInvitationsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "listInvitationsNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListInvitationsComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ConsumerInvitationsClient) ListInvitationsComplete(ctx context.Context, skipToken string) (result ConsumerInvitationListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConsumerInvitationsClient.ListInvitations")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListInvitations(ctx, skipToken)
+ return
+}
+
+// RejectInvitation reject an invitation
+// Parameters:
+// location - location of the invitation
+// invitation - an invitation payload
+func (client ConsumerInvitationsClient) RejectInvitation(ctx context.Context, location string, invitation ConsumerInvitation) (result ConsumerInvitation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConsumerInvitationsClient.RejectInvitation")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: invitation,
+ Constraints: []validation.Constraint{{Target: "invitation.ConsumerInvitationProperties", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "invitation.ConsumerInvitationProperties.InvitationID", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("datashare.ConsumerInvitationsClient", "RejectInvitation", err.Error())
+ }
+
+ req, err := client.RejectInvitationPreparer(ctx, location, invitation)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "RejectInvitation", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.RejectInvitationSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "RejectInvitation", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.RejectInvitationResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ConsumerInvitationsClient", "RejectInvitation", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// RejectInvitationPreparer prepares the RejectInvitation request.
+func (client ConsumerInvitationsClient) RejectInvitationPreparer(ctx context.Context, location string, invitation ConsumerInvitation) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "location": autorest.Encode("path", location),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/locations/{location}/RejectInvitation", pathParameters),
+ autorest.WithJSON(invitation),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// RejectInvitationSender sends the RejectInvitation request. The method will close the
+// http.Response Body if it receives an error.
+func (client ConsumerInvitationsClient) RejectInvitationSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// RejectInvitationResponder handles the response to the RejectInvitation request. The method always
+// closes the http.Response Body.
+func (client ConsumerInvitationsClient) RejectInvitationResponder(resp *http.Response) (result ConsumerInvitation, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/datashare/mgmt/2019-11-01/datashare/consumersourcedatasets.go b/services/datashare/mgmt/2019-11-01/datashare/consumersourcedatasets.go
new file mode 100644
index 000000000000..18a6baf1fb8b
--- /dev/null
+++ b/services/datashare/mgmt/2019-11-01/datashare/consumersourcedatasets.go
@@ -0,0 +1,162 @@
+package datashare
+
+// 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/tracing"
+ "net/http"
+)
+
+// ConsumerSourceDataSetsClient is the creates a Microsoft.DataShare management client.
+type ConsumerSourceDataSetsClient struct {
+ BaseClient
+}
+
+// NewConsumerSourceDataSetsClient creates an instance of the ConsumerSourceDataSetsClient client.
+func NewConsumerSourceDataSetsClient(subscriptionID string) ConsumerSourceDataSetsClient {
+ return NewConsumerSourceDataSetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewConsumerSourceDataSetsClientWithBaseURI creates an instance of the ConsumerSourceDataSetsClient client.
+func NewConsumerSourceDataSetsClientWithBaseURI(baseURI string, subscriptionID string) ConsumerSourceDataSetsClient {
+ return ConsumerSourceDataSetsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// ListByShareSubscription get source dataSets of a shareSubscription
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareSubscriptionName - the name of the shareSubscription.
+// skipToken - continuation token
+func (client ConsumerSourceDataSetsClient) ListByShareSubscription(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (result ConsumerSourceDataSetListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConsumerSourceDataSetsClient.ListByShareSubscription")
+ defer func() {
+ sc := -1
+ if result.csdsl.Response.Response != nil {
+ sc = result.csdsl.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByShareSubscriptionNextResults
+ req, err := client.ListByShareSubscriptionPreparer(ctx, resourceGroupName, accountName, shareSubscriptionName, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ConsumerSourceDataSetsClient", "ListByShareSubscription", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByShareSubscriptionSender(req)
+ if err != nil {
+ result.csdsl.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.ConsumerSourceDataSetsClient", "ListByShareSubscription", resp, "Failure sending request")
+ return
+ }
+
+ result.csdsl, err = client.ListByShareSubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ConsumerSourceDataSetsClient", "ListByShareSubscription", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByShareSubscriptionPreparer prepares the ListByShareSubscription request.
+func (client ConsumerSourceDataSetsClient) ListByShareSubscriptionPreparer(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareSubscriptionName": autorest.Encode("path", shareSubscriptionName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/ConsumerSourceDataSets", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByShareSubscriptionSender sends the ListByShareSubscription request. The method will close the
+// http.Response Body if it receives an error.
+func (client ConsumerSourceDataSetsClient) ListByShareSubscriptionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByShareSubscriptionResponder handles the response to the ListByShareSubscription request. The method always
+// closes the http.Response Body.
+func (client ConsumerSourceDataSetsClient) ListByShareSubscriptionResponder(resp *http.Response) (result ConsumerSourceDataSetList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByShareSubscriptionNextResults retrieves the next set of results, if any.
+func (client ConsumerSourceDataSetsClient) listByShareSubscriptionNextResults(ctx context.Context, lastResults ConsumerSourceDataSetList) (result ConsumerSourceDataSetList, err error) {
+ req, err := lastResults.consumerSourceDataSetListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "datashare.ConsumerSourceDataSetsClient", "listByShareSubscriptionNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByShareSubscriptionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "datashare.ConsumerSourceDataSetsClient", "listByShareSubscriptionNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByShareSubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ConsumerSourceDataSetsClient", "listByShareSubscriptionNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByShareSubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ConsumerSourceDataSetsClient) ListByShareSubscriptionComplete(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (result ConsumerSourceDataSetListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConsumerSourceDataSetsClient.ListByShareSubscription")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByShareSubscription(ctx, resourceGroupName, accountName, shareSubscriptionName, skipToken)
+ return
+}
diff --git a/services/datashare/mgmt/2019-11-01/datashare/datasetmappings.go b/services/datashare/mgmt/2019-11-01/datashare/datasetmappings.go
new file mode 100644
index 000000000000..7b191048f461
--- /dev/null
+++ b/services/datashare/mgmt/2019-11-01/datashare/datasetmappings.go
@@ -0,0 +1,407 @@
+package datashare
+
+// 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/tracing"
+ "net/http"
+)
+
+// DataSetMappingsClient is the creates a Microsoft.DataShare management client.
+type DataSetMappingsClient struct {
+ BaseClient
+}
+
+// NewDataSetMappingsClient creates an instance of the DataSetMappingsClient client.
+func NewDataSetMappingsClient(subscriptionID string) DataSetMappingsClient {
+ return NewDataSetMappingsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewDataSetMappingsClientWithBaseURI creates an instance of the DataSetMappingsClient client.
+func NewDataSetMappingsClientWithBaseURI(baseURI string, subscriptionID string) DataSetMappingsClient {
+ return DataSetMappingsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Create create a DataSetMapping
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareSubscriptionName - the name of the share subscription which will hold the data set sink.
+// dataSetMappingName - the name of the data set mapping to be created.
+// dataSetMapping - destination data set configuration details.
+func (client DataSetMappingsClient) Create(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, dataSetMappingName string, dataSetMapping BasicDataSetMapping) (result DataSetMappingModel, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DataSetMappingsClient.Create")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, shareSubscriptionName, dataSetMappingName, dataSetMapping)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "Create", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "Create", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "Create", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreatePreparer prepares the Create request.
+func (client DataSetMappingsClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, dataSetMappingName string, dataSetMapping BasicDataSetMapping) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "dataSetMappingName": autorest.Encode("path", dataSetMappingName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareSubscriptionName": autorest.Encode("path", shareSubscriptionName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/dataSetMappings/{dataSetMappingName}", pathParameters),
+ autorest.WithJSON(dataSetMapping),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateSender sends the Create request. The method will close the
+// http.Response Body if it receives an error.
+func (client DataSetMappingsClient) CreateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateResponder handles the response to the Create request. The method always
+// closes the http.Response Body.
+func (client DataSetMappingsClient) CreateResponder(resp *http.Response) (result DataSetMappingModel, 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 DataSetMapping in a shareSubscription
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareSubscriptionName - the name of the shareSubscription.
+// dataSetMappingName - the name of the dataSetMapping.
+func (client DataSetMappingsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, dataSetMappingName string) (result autorest.Response, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DataSetMappingsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response != nil {
+ sc = result.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, shareSubscriptionName, dataSetMappingName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "Delete", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "Delete", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client DataSetMappingsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, dataSetMappingName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "dataSetMappingName": autorest.Encode("path", dataSetMappingName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareSubscriptionName": autorest.Encode("path", shareSubscriptionName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/dataSetMappings/{dataSetMappingName}", 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 DataSetMappingsClient) DeleteSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client DataSetMappingsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get get a DataSetMapping in a shareSubscription
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareSubscriptionName - the name of the shareSubscription.
+// dataSetMappingName - the name of the dataSetMapping.
+func (client DataSetMappingsClient) Get(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, dataSetMappingName string) (result DataSetMappingModel, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DataSetMappingsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, accountName, shareSubscriptionName, dataSetMappingName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client DataSetMappingsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, dataSetMappingName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "dataSetMappingName": autorest.Encode("path", dataSetMappingName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareSubscriptionName": autorest.Encode("path", shareSubscriptionName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/dataSetMappings/{dataSetMappingName}", 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 DataSetMappingsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client DataSetMappingsClient) GetResponder(resp *http.Response) (result DataSetMappingModel, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListByShareSubscription list DataSetMappings in a share subscription
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareSubscriptionName - the name of the share subscription.
+// skipToken - continuation token
+func (client DataSetMappingsClient) ListByShareSubscription(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (result DataSetMappingListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DataSetMappingsClient.ListByShareSubscription")
+ defer func() {
+ sc := -1
+ if result.dsml.Response.Response != nil {
+ sc = result.dsml.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByShareSubscriptionNextResults
+ req, err := client.ListByShareSubscriptionPreparer(ctx, resourceGroupName, accountName, shareSubscriptionName, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "ListByShareSubscription", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByShareSubscriptionSender(req)
+ if err != nil {
+ result.dsml.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "ListByShareSubscription", resp, "Failure sending request")
+ return
+ }
+
+ result.dsml, err = client.ListByShareSubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "ListByShareSubscription", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByShareSubscriptionPreparer prepares the ListByShareSubscription request.
+func (client DataSetMappingsClient) ListByShareSubscriptionPreparer(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareSubscriptionName": autorest.Encode("path", shareSubscriptionName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/dataSetMappings", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByShareSubscriptionSender sends the ListByShareSubscription request. The method will close the
+// http.Response Body if it receives an error.
+func (client DataSetMappingsClient) ListByShareSubscriptionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByShareSubscriptionResponder handles the response to the ListByShareSubscription request. The method always
+// closes the http.Response Body.
+func (client DataSetMappingsClient) ListByShareSubscriptionResponder(resp *http.Response) (result DataSetMappingList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByShareSubscriptionNextResults retrieves the next set of results, if any.
+func (client DataSetMappingsClient) listByShareSubscriptionNextResults(ctx context.Context, lastResults DataSetMappingList) (result DataSetMappingList, err error) {
+ req, err := lastResults.dataSetMappingListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "listByShareSubscriptionNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByShareSubscriptionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "listByShareSubscriptionNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByShareSubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetMappingsClient", "listByShareSubscriptionNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByShareSubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
+func (client DataSetMappingsClient) ListByShareSubscriptionComplete(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (result DataSetMappingListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DataSetMappingsClient.ListByShareSubscription")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByShareSubscription(ctx, resourceGroupName, accountName, shareSubscriptionName, skipToken)
+ return
+}
diff --git a/services/datashare/mgmt/2019-11-01/datashare/datasets.go b/services/datashare/mgmt/2019-11-01/datashare/datasets.go
new file mode 100644
index 000000000000..7e6e3df8fc66
--- /dev/null
+++ b/services/datashare/mgmt/2019-11-01/datashare/datasets.go
@@ -0,0 +1,407 @@
+package datashare
+
+// 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/tracing"
+ "net/http"
+)
+
+// DataSetsClient is the creates a Microsoft.DataShare management client.
+type DataSetsClient struct {
+ BaseClient
+}
+
+// NewDataSetsClient creates an instance of the DataSetsClient client.
+func NewDataSetsClient(subscriptionID string) DataSetsClient {
+ return NewDataSetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewDataSetsClientWithBaseURI creates an instance of the DataSetsClient client.
+func NewDataSetsClientWithBaseURI(baseURI string, subscriptionID string) DataSetsClient {
+ return DataSetsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Create create a DataSet
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share to add the data set to.
+// dataSetName - the name of the dataSet.
+// dataSet - the new data set information.
+func (client DataSetsClient) Create(ctx context.Context, resourceGroupName string, accountName string, shareName string, dataSetName string, dataSet BasicDataSet) (result DataSetModel, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DataSetsClient.Create")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, shareName, dataSetName, dataSet)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "Create", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "Create", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "Create", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreatePreparer prepares the Create request.
+func (client DataSetsClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, dataSetName string, dataSet BasicDataSet) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "dataSetName": autorest.Encode("path", dataSetName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shares/{shareName}/dataSets/{dataSetName}", pathParameters),
+ autorest.WithJSON(dataSet),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateSender sends the Create request. The method will close the
+// http.Response Body if it receives an error.
+func (client DataSetsClient) CreateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateResponder handles the response to the Create request. The method always
+// closes the http.Response Body.
+func (client DataSetsClient) CreateResponder(resp *http.Response) (result DataSetModel, 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 DataSet in a share
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share.
+// dataSetName - the name of the dataSet.
+func (client DataSetsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string, dataSetName string) (result DataSetsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DataSetsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, shareName, dataSetName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client DataSetsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, dataSetName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "dataSetName": autorest.Encode("path", dataSetName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shares/{shareName}/dataSets/{dataSetName}", 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 DataSetsClient) DeleteSender(req *http.Request) (future DataSetsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client DataSetsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get get a DataSet in a share
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share.
+// dataSetName - the name of the dataSet.
+func (client DataSetsClient) Get(ctx context.Context, resourceGroupName string, accountName string, shareName string, dataSetName string) (result DataSetModel, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DataSetsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, accountName, shareName, dataSetName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client DataSetsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, dataSetName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "dataSetName": autorest.Encode("path", dataSetName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shares/{shareName}/dataSets/{dataSetName}", 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 DataSetsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client DataSetsClient) GetResponder(resp *http.Response) (result DataSetModel, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListByShare list DataSets in a share
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share.
+// skipToken - continuation token
+func (client DataSetsClient) ListByShare(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (result DataSetListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DataSetsClient.ListByShare")
+ defer func() {
+ sc := -1
+ if result.dsl.Response.Response != nil {
+ sc = result.dsl.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByShareNextResults
+ req, err := client.ListBySharePreparer(ctx, resourceGroupName, accountName, shareName, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "ListByShare", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByShareSender(req)
+ if err != nil {
+ result.dsl.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "ListByShare", resp, "Failure sending request")
+ return
+ }
+
+ result.dsl, err = client.ListByShareResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "ListByShare", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListBySharePreparer prepares the ListByShare request.
+func (client DataSetsClient) ListBySharePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/dataSets", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByShareSender sends the ListByShare request. The method will close the
+// http.Response Body if it receives an error.
+func (client DataSetsClient) ListByShareSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByShareResponder handles the response to the ListByShare request. The method always
+// closes the http.Response Body.
+func (client DataSetsClient) ListByShareResponder(resp *http.Response) (result DataSetList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByShareNextResults retrieves the next set of results, if any.
+func (client DataSetsClient) listByShareNextResults(ctx context.Context, lastResults DataSetList) (result DataSetList, err error) {
+ req, err := lastResults.dataSetListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "datashare.DataSetsClient", "listByShareNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByShareSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "datashare.DataSetsClient", "listByShareNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByShareResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "listByShareNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByShareComplete enumerates all values, automatically crossing page boundaries as required.
+func (client DataSetsClient) ListByShareComplete(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (result DataSetListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DataSetsClient.ListByShare")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByShare(ctx, resourceGroupName, accountName, shareName, skipToken)
+ return
+}
diff --git a/services/datashare/mgmt/2019-11-01/datashare/datashareapi/interfaces.go b/services/datashare/mgmt/2019-11-01/datashare/datashareapi/interfaces.go
new file mode 100644
index 000000000000..84cab0ea6297
--- /dev/null
+++ b/services/datashare/mgmt/2019-11-01/datashare/datashareapi/interfaces.go
@@ -0,0 +1,146 @@
+package datashareapi
+
+// 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/azure-sdk-for-go/services/datashare/mgmt/2019-11-01/datashare"
+ "github.com/Azure/go-autorest/autorest"
+)
+
+// AccountsClientAPI contains the set of methods on the AccountsClient type.
+type AccountsClientAPI interface {
+ Create(ctx context.Context, resourceGroupName string, accountName string, account datashare.Account) (result datashare.AccountsCreateFuture, err error)
+ Delete(ctx context.Context, resourceGroupName string, accountName string) (result datashare.AccountsDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, accountName string) (result datashare.Account, err error)
+ ListByResourceGroup(ctx context.Context, resourceGroupName string, skipToken string) (result datashare.AccountListPage, err error)
+ ListBySubscription(ctx context.Context, skipToken string) (result datashare.AccountListPage, err error)
+ Update(ctx context.Context, resourceGroupName string, accountName string, accountUpdateParameters datashare.AccountUpdateParameters) (result datashare.Account, err error)
+}
+
+var _ AccountsClientAPI = (*datashare.AccountsClient)(nil)
+
+// ConsumerInvitationsClientAPI contains the set of methods on the ConsumerInvitationsClient type.
+type ConsumerInvitationsClientAPI interface {
+ Get(ctx context.Context, location string, invitationID string) (result datashare.ConsumerInvitation, err error)
+ ListInvitations(ctx context.Context, skipToken string) (result datashare.ConsumerInvitationListPage, err error)
+ RejectInvitation(ctx context.Context, location string, invitation datashare.ConsumerInvitation) (result datashare.ConsumerInvitation, err error)
+}
+
+var _ ConsumerInvitationsClientAPI = (*datashare.ConsumerInvitationsClient)(nil)
+
+// DataSetsClientAPI contains the set of methods on the DataSetsClient type.
+type DataSetsClientAPI interface {
+ Create(ctx context.Context, resourceGroupName string, accountName string, shareName string, dataSetName string, dataSet datashare.BasicDataSet) (result datashare.DataSetModel, err error)
+ Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string, dataSetName string) (result datashare.DataSetsDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, accountName string, shareName string, dataSetName string) (result datashare.DataSetModel, err error)
+ ListByShare(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (result datashare.DataSetListPage, err error)
+}
+
+var _ DataSetsClientAPI = (*datashare.DataSetsClient)(nil)
+
+// DataSetMappingsClientAPI contains the set of methods on the DataSetMappingsClient type.
+type DataSetMappingsClientAPI interface {
+ Create(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, dataSetMappingName string, dataSetMapping datashare.BasicDataSetMapping) (result datashare.DataSetMappingModel, err error)
+ Delete(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, dataSetMappingName string) (result autorest.Response, err error)
+ Get(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, dataSetMappingName string) (result datashare.DataSetMappingModel, err error)
+ ListByShareSubscription(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (result datashare.DataSetMappingListPage, err error)
+}
+
+var _ DataSetMappingsClientAPI = (*datashare.DataSetMappingsClient)(nil)
+
+// InvitationsClientAPI contains the set of methods on the InvitationsClient type.
+type InvitationsClientAPI interface {
+ Create(ctx context.Context, resourceGroupName string, accountName string, shareName string, invitationName string, invitation datashare.Invitation) (result datashare.Invitation, err error)
+ Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string, invitationName string) (result autorest.Response, err error)
+ Get(ctx context.Context, resourceGroupName string, accountName string, shareName string, invitationName string) (result datashare.Invitation, err error)
+ ListByShare(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (result datashare.InvitationListPage, err error)
+}
+
+var _ InvitationsClientAPI = (*datashare.InvitationsClient)(nil)
+
+// OperationsClientAPI contains the set of methods on the OperationsClient type.
+type OperationsClientAPI interface {
+ List(ctx context.Context) (result datashare.OperationListPage, err error)
+}
+
+var _ OperationsClientAPI = (*datashare.OperationsClient)(nil)
+
+// SharesClientAPI contains the set of methods on the SharesClient type.
+type SharesClientAPI interface {
+ Create(ctx context.Context, resourceGroupName string, accountName string, shareName string, share datashare.Share) (result datashare.Share, err error)
+ Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string) (result datashare.SharesDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, accountName string, shareName string) (result datashare.Share, err error)
+ ListByAccount(ctx context.Context, resourceGroupName string, accountName string, skipToken string) (result datashare.ShareListPage, err error)
+ ListSynchronizationDetails(ctx context.Context, resourceGroupName string, accountName string, shareName string, shareSynchronization datashare.ShareSynchronization, skipToken string) (result datashare.SynchronizationDetailsListPage, err error)
+ ListSynchronizations(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (result datashare.ShareSynchronizationListPage, err error)
+}
+
+var _ SharesClientAPI = (*datashare.SharesClient)(nil)
+
+// ProviderShareSubscriptionsClientAPI contains the set of methods on the ProviderShareSubscriptionsClient type.
+type ProviderShareSubscriptionsClientAPI interface {
+ GetByShare(ctx context.Context, resourceGroupName string, accountName string, shareName string, providerShareSubscriptionID string) (result datashare.ProviderShareSubscription, err error)
+ ListByShare(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (result datashare.ProviderShareSubscriptionListPage, err error)
+ Reinstate(ctx context.Context, resourceGroupName string, accountName string, shareName string, providerShareSubscriptionID string) (result datashare.ProviderShareSubscription, err error)
+ Revoke(ctx context.Context, resourceGroupName string, accountName string, shareName string, providerShareSubscriptionID string) (result datashare.ProviderShareSubscriptionsRevokeFuture, err error)
+}
+
+var _ ProviderShareSubscriptionsClientAPI = (*datashare.ProviderShareSubscriptionsClient)(nil)
+
+// ShareSubscriptionsClientAPI contains the set of methods on the ShareSubscriptionsClient type.
+type ShareSubscriptionsClientAPI interface {
+ CancelSynchronization(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, shareSubscriptionSynchronization datashare.ShareSubscriptionSynchronization) (result datashare.ShareSubscriptionsCancelSynchronizationFuture, err error)
+ Create(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, shareSubscription datashare.ShareSubscription) (result datashare.ShareSubscription, err error)
+ Delete(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string) (result datashare.ShareSubscriptionsDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string) (result datashare.ShareSubscription, err error)
+ ListByAccount(ctx context.Context, resourceGroupName string, accountName string, skipToken string) (result datashare.ShareSubscriptionListPage, err error)
+ ListSourceShareSynchronizationSettings(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (result datashare.SourceShareSynchronizationSettingListPage, err error)
+ ListSynchronizationDetails(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, shareSubscriptionSynchronization datashare.ShareSubscriptionSynchronization, skipToken string) (result datashare.SynchronizationDetailsListPage, err error)
+ ListSynchronizations(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (result datashare.ShareSubscriptionSynchronizationListPage, err error)
+ SynchronizeMethod(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, synchronize datashare.Synchronize) (result datashare.ShareSubscriptionsSynchronizeMethodFuture, err error)
+}
+
+var _ ShareSubscriptionsClientAPI = (*datashare.ShareSubscriptionsClient)(nil)
+
+// ConsumerSourceDataSetsClientAPI contains the set of methods on the ConsumerSourceDataSetsClient type.
+type ConsumerSourceDataSetsClientAPI interface {
+ ListByShareSubscription(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (result datashare.ConsumerSourceDataSetListPage, err error)
+}
+
+var _ ConsumerSourceDataSetsClientAPI = (*datashare.ConsumerSourceDataSetsClient)(nil)
+
+// SynchronizationSettingsClientAPI contains the set of methods on the SynchronizationSettingsClient type.
+type SynchronizationSettingsClientAPI interface {
+ Create(ctx context.Context, resourceGroupName string, accountName string, shareName string, synchronizationSettingName string, synchronizationSetting datashare.BasicSynchronizationSetting) (result datashare.SynchronizationSettingModel, err error)
+ Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string, synchronizationSettingName string) (result datashare.SynchronizationSettingsDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, accountName string, shareName string, synchronizationSettingName string) (result datashare.SynchronizationSettingModel, err error)
+ ListByShare(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (result datashare.SynchronizationSettingListPage, err error)
+}
+
+var _ SynchronizationSettingsClientAPI = (*datashare.SynchronizationSettingsClient)(nil)
+
+// TriggersClientAPI contains the set of methods on the TriggersClient type.
+type TriggersClientAPI interface {
+ Create(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, triggerName string, trigger datashare.BasicTrigger) (result datashare.TriggersCreateFuture, err error)
+ Delete(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, triggerName string) (result datashare.TriggersDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, triggerName string) (result datashare.TriggerModel, err error)
+ ListByShareSubscription(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (result datashare.TriggerListPage, err error)
+}
+
+var _ TriggersClientAPI = (*datashare.TriggersClient)(nil)
diff --git a/services/datashare/mgmt/2019-11-01/datashare/invitations.go b/services/datashare/mgmt/2019-11-01/datashare/invitations.go
new file mode 100644
index 000000000000..a30e426f71c3
--- /dev/null
+++ b/services/datashare/mgmt/2019-11-01/datashare/invitations.go
@@ -0,0 +1,407 @@
+package datashare
+
+// 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/tracing"
+ "net/http"
+)
+
+// InvitationsClient is the creates a Microsoft.DataShare management client.
+type InvitationsClient struct {
+ BaseClient
+}
+
+// NewInvitationsClient creates an instance of the InvitationsClient client.
+func NewInvitationsClient(subscriptionID string) InvitationsClient {
+ return NewInvitationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewInvitationsClientWithBaseURI creates an instance of the InvitationsClient client.
+func NewInvitationsClientWithBaseURI(baseURI string, subscriptionID string) InvitationsClient {
+ return InvitationsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Create create an invitation
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share to send the invitation for.
+// invitationName - the name of the invitation.
+// invitation - invitation details.
+func (client InvitationsClient) Create(ctx context.Context, resourceGroupName string, accountName string, shareName string, invitationName string, invitation Invitation) (result Invitation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InvitationsClient.Create")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, shareName, invitationName, invitation)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "Create", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "Create", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "Create", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreatePreparer prepares the Create request.
+func (client InvitationsClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, invitationName string, invitation Invitation) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "invitationName": autorest.Encode("path", invitationName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shares/{shareName}/invitations/{invitationName}", pathParameters),
+ autorest.WithJSON(invitation),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateSender sends the Create request. The method will close the
+// http.Response Body if it receives an error.
+func (client InvitationsClient) CreateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateResponder handles the response to the Create request. The method always
+// closes the http.Response Body.
+func (client InvitationsClient) CreateResponder(resp *http.Response) (result Invitation, 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 an invitation in a share
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share.
+// invitationName - the name of the invitation.
+func (client InvitationsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string, invitationName string) (result autorest.Response, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InvitationsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response != nil {
+ sc = result.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, shareName, invitationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "Delete", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "Delete", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client InvitationsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, invitationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "invitationName": autorest.Encode("path", invitationName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shares/{shareName}/invitations/{invitationName}", 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 InvitationsClient) DeleteSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client InvitationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get get an invitation in a share
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share.
+// invitationName - the name of the invitation.
+func (client InvitationsClient) Get(ctx context.Context, resourceGroupName string, accountName string, shareName string, invitationName string) (result Invitation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InvitationsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, accountName, shareName, invitationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client InvitationsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, invitationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "invitationName": autorest.Encode("path", invitationName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shares/{shareName}/invitations/{invitationName}", 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 InvitationsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client InvitationsClient) GetResponder(resp *http.Response) (result Invitation, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListByShare list invitations in a share
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share.
+// skipToken - the continuation token
+func (client InvitationsClient) ListByShare(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (result InvitationListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InvitationsClient.ListByShare")
+ defer func() {
+ sc := -1
+ if result.il.Response.Response != nil {
+ sc = result.il.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByShareNextResults
+ req, err := client.ListBySharePreparer(ctx, resourceGroupName, accountName, shareName, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "ListByShare", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByShareSender(req)
+ if err != nil {
+ result.il.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "ListByShare", resp, "Failure sending request")
+ return
+ }
+
+ result.il, err = client.ListByShareResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "ListByShare", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListBySharePreparer prepares the ListByShare request.
+func (client InvitationsClient) ListBySharePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/invitations", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByShareSender sends the ListByShare request. The method will close the
+// http.Response Body if it receives an error.
+func (client InvitationsClient) ListByShareSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByShareResponder handles the response to the ListByShare request. The method always
+// closes the http.Response Body.
+func (client InvitationsClient) ListByShareResponder(resp *http.Response) (result InvitationList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByShareNextResults retrieves the next set of results, if any.
+func (client InvitationsClient) listByShareNextResults(ctx context.Context, lastResults InvitationList) (result InvitationList, err error) {
+ req, err := lastResults.invitationListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "datashare.InvitationsClient", "listByShareNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByShareSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "datashare.InvitationsClient", "listByShareNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByShareResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.InvitationsClient", "listByShareNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByShareComplete enumerates all values, automatically crossing page boundaries as required.
+func (client InvitationsClient) ListByShareComplete(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (result InvitationListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InvitationsClient.ListByShare")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByShare(ctx, resourceGroupName, accountName, shareName, skipToken)
+ return
+}
diff --git a/services/datashare/mgmt/2019-11-01/datashare/models.go b/services/datashare/mgmt/2019-11-01/datashare/models.go
new file mode 100644
index 000000000000..2219eb89f0b7
--- /dev/null
+++ b/services/datashare/mgmt/2019-11-01/datashare/models.go
@@ -0,0 +1,8906 @@
+package datashare
+
+// 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"
+ "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/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// The package's fully qualified name.
+const fqdn = "github.com/Azure/azure-sdk-for-go/services/datashare/mgmt/2019-11-01/datashare"
+
+// DataSetMappingStatus enumerates the values for data set mapping status.
+type DataSetMappingStatus string
+
+const (
+ // Broken ...
+ Broken DataSetMappingStatus = "Broken"
+ // Ok ...
+ Ok DataSetMappingStatus = "Ok"
+)
+
+// PossibleDataSetMappingStatusValues returns an array of possible values for the DataSetMappingStatus const type.
+func PossibleDataSetMappingStatusValues() []DataSetMappingStatus {
+ return []DataSetMappingStatus{Broken, Ok}
+}
+
+// DataSetType enumerates the values for data set type.
+type DataSetType string
+
+const (
+ // AdlsGen1File ...
+ AdlsGen1File DataSetType = "AdlsGen1File"
+ // AdlsGen1Folder ...
+ AdlsGen1Folder DataSetType = "AdlsGen1Folder"
+ // AdlsGen2File ...
+ AdlsGen2File DataSetType = "AdlsGen2File"
+ // AdlsGen2FileSystem ...
+ AdlsGen2FileSystem DataSetType = "AdlsGen2FileSystem"
+ // AdlsGen2Folder ...
+ AdlsGen2Folder DataSetType = "AdlsGen2Folder"
+ // Blob ...
+ Blob DataSetType = "Blob"
+ // BlobFolder ...
+ BlobFolder DataSetType = "BlobFolder"
+ // Container ...
+ Container DataSetType = "Container"
+ // KustoCluster ...
+ KustoCluster DataSetType = "KustoCluster"
+ // KustoDatabase ...
+ KustoDatabase DataSetType = "KustoDatabase"
+ // SQLDBTable ...
+ SQLDBTable DataSetType = "SqlDBTable"
+ // SQLDWTable ...
+ SQLDWTable DataSetType = "SqlDWTable"
+)
+
+// PossibleDataSetTypeValues returns an array of possible values for the DataSetType const type.
+func PossibleDataSetTypeValues() []DataSetType {
+ return []DataSetType{AdlsGen1File, AdlsGen1Folder, AdlsGen2File, AdlsGen2FileSystem, AdlsGen2Folder, Blob, BlobFolder, Container, KustoCluster, KustoDatabase, SQLDBTable, SQLDWTable}
+}
+
+// InvitationStatus enumerates the values for invitation status.
+type InvitationStatus string
+
+const (
+ // Accepted ...
+ Accepted InvitationStatus = "Accepted"
+ // Pending ...
+ Pending InvitationStatus = "Pending"
+ // Rejected ...
+ Rejected InvitationStatus = "Rejected"
+ // Withdrawn ...
+ Withdrawn InvitationStatus = "Withdrawn"
+)
+
+// PossibleInvitationStatusValues returns an array of possible values for the InvitationStatus const type.
+func PossibleInvitationStatusValues() []InvitationStatus {
+ return []InvitationStatus{Accepted, Pending, Rejected, Withdrawn}
+}
+
+// Kind enumerates the values for kind.
+type Kind string
+
+const (
+ // KindAdlsGen1File ...
+ KindAdlsGen1File Kind = "AdlsGen1File"
+ // KindAdlsGen1Folder ...
+ KindAdlsGen1Folder Kind = "AdlsGen1Folder"
+ // KindAdlsGen2File ...
+ KindAdlsGen2File Kind = "AdlsGen2File"
+ // KindAdlsGen2FileSystem ...
+ KindAdlsGen2FileSystem Kind = "AdlsGen2FileSystem"
+ // KindAdlsGen2Folder ...
+ KindAdlsGen2Folder Kind = "AdlsGen2Folder"
+ // KindBlob ...
+ KindBlob Kind = "Blob"
+ // KindBlobFolder ...
+ KindBlobFolder Kind = "BlobFolder"
+ // KindContainer ...
+ KindContainer Kind = "Container"
+ // KindDataSet ...
+ KindDataSet Kind = "DataSet"
+ // KindKustoCluster ...
+ KindKustoCluster Kind = "KustoCluster"
+ // KindKustoDatabase ...
+ KindKustoDatabase Kind = "KustoDatabase"
+ // KindSQLDBTable ...
+ KindSQLDBTable Kind = "SqlDBTable"
+ // KindSQLDWTable ...
+ KindSQLDWTable Kind = "SqlDWTable"
+)
+
+// PossibleKindValues returns an array of possible values for the Kind const type.
+func PossibleKindValues() []Kind {
+ return []Kind{KindAdlsGen1File, KindAdlsGen1Folder, KindAdlsGen2File, KindAdlsGen2FileSystem, KindAdlsGen2Folder, KindBlob, KindBlobFolder, KindContainer, KindDataSet, KindKustoCluster, KindKustoDatabase, KindSQLDBTable, KindSQLDWTable}
+}
+
+// KindBasicDataSetMapping enumerates the values for kind basic data set mapping.
+type KindBasicDataSetMapping string
+
+const (
+ // KindBasicDataSetMappingKindAdlsGen2File ...
+ KindBasicDataSetMappingKindAdlsGen2File KindBasicDataSetMapping = "AdlsGen2File"
+ // KindBasicDataSetMappingKindAdlsGen2FileSystem ...
+ KindBasicDataSetMappingKindAdlsGen2FileSystem KindBasicDataSetMapping = "AdlsGen2FileSystem"
+ // KindBasicDataSetMappingKindAdlsGen2Folder ...
+ KindBasicDataSetMappingKindAdlsGen2Folder KindBasicDataSetMapping = "AdlsGen2Folder"
+ // KindBasicDataSetMappingKindBlob ...
+ KindBasicDataSetMappingKindBlob KindBasicDataSetMapping = "Blob"
+ // KindBasicDataSetMappingKindBlobFolder ...
+ KindBasicDataSetMappingKindBlobFolder KindBasicDataSetMapping = "BlobFolder"
+ // KindBasicDataSetMappingKindContainer ...
+ KindBasicDataSetMappingKindContainer KindBasicDataSetMapping = "Container"
+ // KindBasicDataSetMappingKindDataSetMapping ...
+ KindBasicDataSetMappingKindDataSetMapping KindBasicDataSetMapping = "DataSetMapping"
+ // KindBasicDataSetMappingKindKustoCluster ...
+ KindBasicDataSetMappingKindKustoCluster KindBasicDataSetMapping = "KustoCluster"
+ // KindBasicDataSetMappingKindKustoDatabase ...
+ KindBasicDataSetMappingKindKustoDatabase KindBasicDataSetMapping = "KustoDatabase"
+ // KindBasicDataSetMappingKindSQLDBTable ...
+ KindBasicDataSetMappingKindSQLDBTable KindBasicDataSetMapping = "SqlDBTable"
+ // KindBasicDataSetMappingKindSQLDWTable ...
+ KindBasicDataSetMappingKindSQLDWTable KindBasicDataSetMapping = "SqlDWTable"
+)
+
+// PossibleKindBasicDataSetMappingValues returns an array of possible values for the KindBasicDataSetMapping const type.
+func PossibleKindBasicDataSetMappingValues() []KindBasicDataSetMapping {
+ return []KindBasicDataSetMapping{KindBasicDataSetMappingKindAdlsGen2File, KindBasicDataSetMappingKindAdlsGen2FileSystem, KindBasicDataSetMappingKindAdlsGen2Folder, KindBasicDataSetMappingKindBlob, KindBasicDataSetMappingKindBlobFolder, KindBasicDataSetMappingKindContainer, KindBasicDataSetMappingKindDataSetMapping, KindBasicDataSetMappingKindKustoCluster, KindBasicDataSetMappingKindKustoDatabase, KindBasicDataSetMappingKindSQLDBTable, KindBasicDataSetMappingKindSQLDWTable}
+}
+
+// KindBasicSourceShareSynchronizationSetting enumerates the values for kind basic source share synchronization
+// setting.
+type KindBasicSourceShareSynchronizationSetting string
+
+const (
+ // KindScheduleBased ...
+ KindScheduleBased KindBasicSourceShareSynchronizationSetting = "ScheduleBased"
+ // KindSourceShareSynchronizationSetting ...
+ KindSourceShareSynchronizationSetting KindBasicSourceShareSynchronizationSetting = "SourceShareSynchronizationSetting"
+)
+
+// PossibleKindBasicSourceShareSynchronizationSettingValues returns an array of possible values for the KindBasicSourceShareSynchronizationSetting const type.
+func PossibleKindBasicSourceShareSynchronizationSettingValues() []KindBasicSourceShareSynchronizationSetting {
+ return []KindBasicSourceShareSynchronizationSetting{KindScheduleBased, KindSourceShareSynchronizationSetting}
+}
+
+// KindBasicSynchronizationSetting enumerates the values for kind basic synchronization setting.
+type KindBasicSynchronizationSetting string
+
+const (
+ // KindBasicSynchronizationSettingKindScheduleBased ...
+ KindBasicSynchronizationSettingKindScheduleBased KindBasicSynchronizationSetting = "ScheduleBased"
+ // KindBasicSynchronizationSettingKindSynchronizationSetting ...
+ KindBasicSynchronizationSettingKindSynchronizationSetting KindBasicSynchronizationSetting = "SynchronizationSetting"
+)
+
+// PossibleKindBasicSynchronizationSettingValues returns an array of possible values for the KindBasicSynchronizationSetting const type.
+func PossibleKindBasicSynchronizationSettingValues() []KindBasicSynchronizationSetting {
+ return []KindBasicSynchronizationSetting{KindBasicSynchronizationSettingKindScheduleBased, KindBasicSynchronizationSettingKindSynchronizationSetting}
+}
+
+// KindBasicTrigger enumerates the values for kind basic trigger.
+type KindBasicTrigger string
+
+const (
+ // KindBasicTriggerKindScheduleBased ...
+ KindBasicTriggerKindScheduleBased KindBasicTrigger = "ScheduleBased"
+ // KindBasicTriggerKindTrigger ...
+ KindBasicTriggerKindTrigger KindBasicTrigger = "Trigger"
+)
+
+// PossibleKindBasicTriggerValues returns an array of possible values for the KindBasicTrigger const type.
+func PossibleKindBasicTriggerValues() []KindBasicTrigger {
+ return []KindBasicTrigger{KindBasicTriggerKindScheduleBased, KindBasicTriggerKindTrigger}
+}
+
+// OutputType enumerates the values for output type.
+type OutputType string
+
+const (
+ // Csv ...
+ Csv OutputType = "Csv"
+ // Parquet ...
+ Parquet OutputType = "Parquet"
+)
+
+// PossibleOutputTypeValues returns an array of possible values for the OutputType const type.
+func PossibleOutputTypeValues() []OutputType {
+ return []OutputType{Csv, Parquet}
+}
+
+// ProvisioningState enumerates the values for provisioning state.
+type ProvisioningState string
+
+const (
+ // Creating ...
+ Creating ProvisioningState = "Creating"
+ // Deleting ...
+ Deleting ProvisioningState = "Deleting"
+ // Failed ...
+ Failed ProvisioningState = "Failed"
+ // Moving ...
+ Moving ProvisioningState = "Moving"
+ // Succeeded ...
+ Succeeded ProvisioningState = "Succeeded"
+)
+
+// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
+func PossibleProvisioningStateValues() []ProvisioningState {
+ return []ProvisioningState{Creating, Deleting, Failed, Moving, Succeeded}
+}
+
+// RecurrenceInterval enumerates the values for recurrence interval.
+type RecurrenceInterval string
+
+const (
+ // Day ...
+ Day RecurrenceInterval = "Day"
+ // Hour ...
+ Hour RecurrenceInterval = "Hour"
+)
+
+// PossibleRecurrenceIntervalValues returns an array of possible values for the RecurrenceInterval const type.
+func PossibleRecurrenceIntervalValues() []RecurrenceInterval {
+ return []RecurrenceInterval{Day, Hour}
+}
+
+// ShareKind enumerates the values for share kind.
+type ShareKind string
+
+const (
+ // CopyBased ...
+ CopyBased ShareKind = "CopyBased"
+ // InPlace ...
+ InPlace ShareKind = "InPlace"
+)
+
+// PossibleShareKindValues returns an array of possible values for the ShareKind const type.
+func PossibleShareKindValues() []ShareKind {
+ return []ShareKind{CopyBased, InPlace}
+}
+
+// ShareSubscriptionStatus enumerates the values for share subscription status.
+type ShareSubscriptionStatus string
+
+const (
+ // Active ...
+ Active ShareSubscriptionStatus = "Active"
+ // Revoked ...
+ Revoked ShareSubscriptionStatus = "Revoked"
+ // Revoking ...
+ Revoking ShareSubscriptionStatus = "Revoking"
+ // SourceDeleted ...
+ SourceDeleted ShareSubscriptionStatus = "SourceDeleted"
+)
+
+// PossibleShareSubscriptionStatusValues returns an array of possible values for the ShareSubscriptionStatus const type.
+func PossibleShareSubscriptionStatusValues() []ShareSubscriptionStatus {
+ return []ShareSubscriptionStatus{Active, Revoked, Revoking, SourceDeleted}
+}
+
+// Status enumerates the values for status.
+type Status string
+
+const (
+ // StatusAccepted ...
+ StatusAccepted Status = "Accepted"
+ // StatusCanceled ...
+ StatusCanceled Status = "Canceled"
+ // StatusFailed ...
+ StatusFailed Status = "Failed"
+ // StatusInProgress ...
+ StatusInProgress Status = "InProgress"
+ // StatusSucceeded ...
+ StatusSucceeded Status = "Succeeded"
+ // StatusTransientFailure ...
+ StatusTransientFailure Status = "TransientFailure"
+)
+
+// PossibleStatusValues returns an array of possible values for the Status const type.
+func PossibleStatusValues() []Status {
+ return []Status{StatusAccepted, StatusCanceled, StatusFailed, StatusInProgress, StatusSucceeded, StatusTransientFailure}
+}
+
+// SynchronizationMode enumerates the values for synchronization mode.
+type SynchronizationMode string
+
+const (
+ // FullSync ...
+ FullSync SynchronizationMode = "FullSync"
+ // Incremental ...
+ Incremental SynchronizationMode = "Incremental"
+)
+
+// PossibleSynchronizationModeValues returns an array of possible values for the SynchronizationMode const type.
+func PossibleSynchronizationModeValues() []SynchronizationMode {
+ return []SynchronizationMode{FullSync, Incremental}
+}
+
+// TriggerStatus enumerates the values for trigger status.
+type TriggerStatus string
+
+const (
+ // TriggerStatusActive ...
+ TriggerStatusActive TriggerStatus = "Active"
+ // TriggerStatusInactive ...
+ TriggerStatusInactive TriggerStatus = "Inactive"
+ // TriggerStatusSourceSynchronizationSettingDeleted ...
+ TriggerStatusSourceSynchronizationSettingDeleted TriggerStatus = "SourceSynchronizationSettingDeleted"
+)
+
+// PossibleTriggerStatusValues returns an array of possible values for the TriggerStatus const type.
+func PossibleTriggerStatusValues() []TriggerStatus {
+ return []TriggerStatus{TriggerStatusActive, TriggerStatusInactive, TriggerStatusSourceSynchronizationSettingDeleted}
+}
+
+// Type enumerates the values for type.
+type Type string
+
+const (
+ // SystemAssigned ...
+ SystemAssigned Type = "SystemAssigned"
+)
+
+// PossibleTypeValues returns an array of possible values for the Type const type.
+func PossibleTypeValues() []Type {
+ return []Type{SystemAssigned}
+}
+
+// Account an account data transfer object.
+type Account struct {
+ autorest.Response `json:"-"`
+ // Identity - Identity Info on the Account
+ Identity *Identity `json:"identity,omitempty"`
+ // AccountProperties - Properties on the account
+ *AccountProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Location - Location of the azure resource.
+ Location *string `json:"location,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Tags - Tags on the azure resource.
+ Tags map[string]*string `json:"tags"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for Account.
+func (a Account) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if a.Identity != nil {
+ objectMap["identity"] = a.Identity
+ }
+ if a.AccountProperties != nil {
+ objectMap["properties"] = a.AccountProperties
+ }
+ if a.Location != nil {
+ objectMap["location"] = a.Location
+ }
+ if a.Tags != nil {
+ objectMap["tags"] = a.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for Account struct.
+func (a *Account) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "identity":
+ if v != nil {
+ var identity Identity
+ err = json.Unmarshal(*v, &identity)
+ if err != nil {
+ return err
+ }
+ a.Identity = &identity
+ }
+ case "properties":
+ if v != nil {
+ var accountProperties AccountProperties
+ err = json.Unmarshal(*v, &accountProperties)
+ if err != nil {
+ return err
+ }
+ a.AccountProperties = &accountProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ a.ID = &ID
+ }
+ case "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ a.Location = &location
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ a.Name = &name
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ a.Tags = tags
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ a.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// AccountList list response for get Accounts.
+type AccountList struct {
+ autorest.Response `json:"-"`
+ // NextLink - The Url of next result page.
+ NextLink *string `json:"nextLink,omitempty"`
+ // Value - Collection of items of type DataTransferObjects.
+ Value *[]Account `json:"value,omitempty"`
+}
+
+// AccountListIterator provides access to a complete listing of Account values.
+type AccountListIterator struct {
+ i int
+ page AccountListPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *AccountListIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AccountListIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *AccountListIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter AccountListIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter AccountListIterator) Response() AccountList {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter AccountListIterator) Value() Account {
+ if !iter.page.NotDone() {
+ return Account{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the AccountListIterator type.
+func NewAccountListIterator(page AccountListPage) AccountListIterator {
+ return AccountListIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (al AccountList) IsEmpty() bool {
+ return al.Value == nil || len(*al.Value) == 0
+}
+
+// accountListPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (al AccountList) accountListPreparer(ctx context.Context) (*http.Request, error) {
+ if al.NextLink == nil || len(to.String(al.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(al.NextLink)))
+}
+
+// AccountListPage contains a page of Account values.
+type AccountListPage struct {
+ fn func(context.Context, AccountList) (AccountList, error)
+ al AccountList
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *AccountListPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AccountListPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.al)
+ if err != nil {
+ return err
+ }
+ page.al = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *AccountListPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page AccountListPage) NotDone() bool {
+ return !page.al.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page AccountListPage) Response() AccountList {
+ return page.al
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page AccountListPage) Values() []Account {
+ if page.al.IsEmpty() {
+ return nil
+ }
+ return *page.al.Value
+}
+
+// Creates a new instance of the AccountListPage type.
+func NewAccountListPage(getNextPage func(context.Context, AccountList) (AccountList, error)) AccountListPage {
+ return AccountListPage{fn: getNextPage}
+}
+
+// AccountProperties account property bag.
+type AccountProperties struct {
+ // CreatedAt - READ-ONLY; Time at which the account was created.
+ CreatedAt *date.Time `json:"createdAt,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the Account. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+ // UserEmail - READ-ONLY; Email of the user who created the resource
+ UserEmail *string `json:"userEmail,omitempty"`
+ // UserName - READ-ONLY; Name of the user who created the resource
+ UserName *string `json:"userName,omitempty"`
+}
+
+// AccountsCreateFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type AccountsCreateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *AccountsCreateFuture) Result(client AccountsClient) (a Account, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.AccountsCreateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("datashare.AccountsCreateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if a.Response.Response, err = future.GetResult(sender); err == nil && a.Response.Response.StatusCode != http.StatusNoContent {
+ a, err = client.CreateResponder(a.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.AccountsCreateFuture", "Result", a.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// AccountsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type AccountsDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *AccountsDeleteFuture) Result(client AccountsClient) (or OperationResponse, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.AccountsDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("datashare.AccountsDeleteFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if or.Response.Response, err = future.GetResult(sender); err == nil && or.Response.Response.StatusCode != http.StatusNoContent {
+ or, err = client.DeleteResponder(or.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.AccountsDeleteFuture", "Result", or.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// AccountUpdateParameters update parameters for accounts
+type AccountUpdateParameters struct {
+ // Tags - Tags on the azure resource.
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for AccountUpdateParameters.
+func (aup AccountUpdateParameters) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if aup.Tags != nil {
+ objectMap["tags"] = aup.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// ADLSGen1FileDataSet an ADLS Gen 1 file data set.
+type ADLSGen1FileDataSet struct {
+ // ADLSGen1FileProperties - ADLS Gen 1 file data set properties.
+ *ADLSGen1FileProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
+ Kind Kind `json:"kind,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ADLSGen1FileDataSet.
+func (ag1fds ADLSGen1FileDataSet) MarshalJSON() ([]byte, error) {
+ ag1fds.Kind = KindAdlsGen1File
+ objectMap := make(map[string]interface{})
+ if ag1fds.ADLSGen1FileProperties != nil {
+ objectMap["properties"] = ag1fds.ADLSGen1FileProperties
+ }
+ if ag1fds.Kind != "" {
+ objectMap["kind"] = ag1fds.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSet is the BasicDataSet implementation for ADLSGen1FileDataSet.
+func (ag1fds ADLSGen1FileDataSet) AsBlobDataSet() (*BlobDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSet is the BasicDataSet implementation for ADLSGen1FileDataSet.
+func (ag1fds ADLSGen1FileDataSet) AsBlobFolderDataSet() (*BlobFolderDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSet is the BasicDataSet implementation for ADLSGen1FileDataSet.
+func (ag1fds ADLSGen1FileDataSet) AsBlobContainerDataSet() (*BlobContainerDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSet is the BasicDataSet implementation for ADLSGen1FileDataSet.
+func (ag1fds ADLSGen1FileDataSet) AsADLSGen2FileDataSet() (*ADLSGen2FileDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSet is the BasicDataSet implementation for ADLSGen1FileDataSet.
+func (ag1fds ADLSGen1FileDataSet) AsADLSGen2FolderDataSet() (*ADLSGen2FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSet is the BasicDataSet implementation for ADLSGen1FileDataSet.
+func (ag1fds ADLSGen1FileDataSet) AsADLSGen2FileSystemDataSet() (*ADLSGen2FileSystemDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FolderDataSet is the BasicDataSet implementation for ADLSGen1FileDataSet.
+func (ag1fds ADLSGen1FileDataSet) AsADLSGen1FolderDataSet() (*ADLSGen1FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FileDataSet is the BasicDataSet implementation for ADLSGen1FileDataSet.
+func (ag1fds ADLSGen1FileDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool) {
+ return &ag1fds, true
+}
+
+// AsKustoClusterDataSet is the BasicDataSet implementation for ADLSGen1FileDataSet.
+func (ag1fds ADLSGen1FileDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for ADLSGen1FileDataSet.
+func (ag1fds ADLSGen1FileDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSet is the BasicDataSet implementation for ADLSGen1FileDataSet.
+func (ag1fds ADLSGen1FileDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSet is the BasicDataSet implementation for ADLSGen1FileDataSet.
+func (ag1fds ADLSGen1FileDataSet) AsSQLDBTableDataSet() (*SQLDBTableDataSet, bool) {
+ return nil, false
+}
+
+// AsDataSet is the BasicDataSet implementation for ADLSGen1FileDataSet.
+func (ag1fds ADLSGen1FileDataSet) AsDataSet() (*DataSet, bool) {
+ return nil, false
+}
+
+// AsBasicDataSet is the BasicDataSet implementation for ADLSGen1FileDataSet.
+func (ag1fds ADLSGen1FileDataSet) AsBasicDataSet() (BasicDataSet, bool) {
+ return &ag1fds, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for ADLSGen1FileDataSet struct.
+func (ag1fds *ADLSGen1FileDataSet) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var aDLSGen1FileProperties ADLSGen1FileProperties
+ err = json.Unmarshal(*v, &aDLSGen1FileProperties)
+ if err != nil {
+ return err
+ }
+ ag1fds.ADLSGen1FileProperties = &aDLSGen1FileProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind Kind
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ ag1fds.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ ag1fds.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ag1fds.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ ag1fds.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ADLSGen1FileProperties properties of the ADLS Gen1 file data set.
+type ADLSGen1FileProperties struct {
+ // AccountName - The ADLS account name.
+ AccountName *string `json:"accountName,omitempty"`
+ // DataSetID - READ-ONLY; Unique id for identifying a data set resource
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // FileName - The file name in the ADLS account.
+ FileName *string `json:"fileName,omitempty"`
+ // FolderPath - The folder path within the ADLS account.
+ FolderPath *string `json:"folderPath,omitempty"`
+ // ResourceGroup - Resource group of ADLS account.
+ ResourceGroup *string `json:"resourceGroup,omitempty"`
+ // SubscriptionID - Subscription id of ADLS account.
+ SubscriptionID *string `json:"subscriptionId,omitempty"`
+}
+
+// ADLSGen1FolderDataSet an ADLS Gen 1 folder data set.
+type ADLSGen1FolderDataSet struct {
+ // ADLSGen1FolderProperties - ADLS Gen 1 folder data set properties.
+ *ADLSGen1FolderProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
+ Kind Kind `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ADLSGen1FolderDataSet.
+func (ag1fds ADLSGen1FolderDataSet) MarshalJSON() ([]byte, error) {
+ ag1fds.Kind = KindAdlsGen1Folder
+ objectMap := make(map[string]interface{})
+ if ag1fds.ADLSGen1FolderProperties != nil {
+ objectMap["properties"] = ag1fds.ADLSGen1FolderProperties
+ }
+ if ag1fds.Kind != "" {
+ objectMap["kind"] = ag1fds.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSet is the BasicDataSet implementation for ADLSGen1FolderDataSet.
+func (ag1fds ADLSGen1FolderDataSet) AsBlobDataSet() (*BlobDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSet is the BasicDataSet implementation for ADLSGen1FolderDataSet.
+func (ag1fds ADLSGen1FolderDataSet) AsBlobFolderDataSet() (*BlobFolderDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSet is the BasicDataSet implementation for ADLSGen1FolderDataSet.
+func (ag1fds ADLSGen1FolderDataSet) AsBlobContainerDataSet() (*BlobContainerDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSet is the BasicDataSet implementation for ADLSGen1FolderDataSet.
+func (ag1fds ADLSGen1FolderDataSet) AsADLSGen2FileDataSet() (*ADLSGen2FileDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSet is the BasicDataSet implementation for ADLSGen1FolderDataSet.
+func (ag1fds ADLSGen1FolderDataSet) AsADLSGen2FolderDataSet() (*ADLSGen2FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSet is the BasicDataSet implementation for ADLSGen1FolderDataSet.
+func (ag1fds ADLSGen1FolderDataSet) AsADLSGen2FileSystemDataSet() (*ADLSGen2FileSystemDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FolderDataSet is the BasicDataSet implementation for ADLSGen1FolderDataSet.
+func (ag1fds ADLSGen1FolderDataSet) AsADLSGen1FolderDataSet() (*ADLSGen1FolderDataSet, bool) {
+ return &ag1fds, true
+}
+
+// AsADLSGen1FileDataSet is the BasicDataSet implementation for ADLSGen1FolderDataSet.
+func (ag1fds ADLSGen1FolderDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSet is the BasicDataSet implementation for ADLSGen1FolderDataSet.
+func (ag1fds ADLSGen1FolderDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for ADLSGen1FolderDataSet.
+func (ag1fds ADLSGen1FolderDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSet is the BasicDataSet implementation for ADLSGen1FolderDataSet.
+func (ag1fds ADLSGen1FolderDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSet is the BasicDataSet implementation for ADLSGen1FolderDataSet.
+func (ag1fds ADLSGen1FolderDataSet) AsSQLDBTableDataSet() (*SQLDBTableDataSet, bool) {
+ return nil, false
+}
+
+// AsDataSet is the BasicDataSet implementation for ADLSGen1FolderDataSet.
+func (ag1fds ADLSGen1FolderDataSet) AsDataSet() (*DataSet, bool) {
+ return nil, false
+}
+
+// AsBasicDataSet is the BasicDataSet implementation for ADLSGen1FolderDataSet.
+func (ag1fds ADLSGen1FolderDataSet) AsBasicDataSet() (BasicDataSet, bool) {
+ return &ag1fds, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for ADLSGen1FolderDataSet struct.
+func (ag1fds *ADLSGen1FolderDataSet) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var aDLSGen1FolderProperties ADLSGen1FolderProperties
+ err = json.Unmarshal(*v, &aDLSGen1FolderProperties)
+ if err != nil {
+ return err
+ }
+ ag1fds.ADLSGen1FolderProperties = &aDLSGen1FolderProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind Kind
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ ag1fds.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ ag1fds.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ag1fds.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ ag1fds.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ADLSGen1FolderProperties properties of the ADLS Gen1 folder data set.
+type ADLSGen1FolderProperties struct {
+ // AccountName - The ADLS account name.
+ AccountName *string `json:"accountName,omitempty"`
+ // DataSetID - READ-ONLY; Unique id for identifying a data set resource
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // FolderPath - The folder path within the ADLS account.
+ FolderPath *string `json:"folderPath,omitempty"`
+ // ResourceGroup - Resource group of ADLS account.
+ ResourceGroup *string `json:"resourceGroup,omitempty"`
+ // SubscriptionID - Subscription id of ADLS account.
+ SubscriptionID *string `json:"subscriptionId,omitempty"`
+}
+
+// ADLSGen2FileDataSet an ADLS Gen 2 file data set.
+type ADLSGen2FileDataSet struct {
+ // ADLSGen2FileProperties - ADLS Gen 2 file data set properties.
+ *ADLSGen2FileProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
+ Kind Kind `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ADLSGen2FileDataSet.
+func (ag2fds ADLSGen2FileDataSet) MarshalJSON() ([]byte, error) {
+ ag2fds.Kind = KindAdlsGen2File
+ objectMap := make(map[string]interface{})
+ if ag2fds.ADLSGen2FileProperties != nil {
+ objectMap["properties"] = ag2fds.ADLSGen2FileProperties
+ }
+ if ag2fds.Kind != "" {
+ objectMap["kind"] = ag2fds.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSet is the BasicDataSet implementation for ADLSGen2FileDataSet.
+func (ag2fds ADLSGen2FileDataSet) AsBlobDataSet() (*BlobDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSet is the BasicDataSet implementation for ADLSGen2FileDataSet.
+func (ag2fds ADLSGen2FileDataSet) AsBlobFolderDataSet() (*BlobFolderDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSet is the BasicDataSet implementation for ADLSGen2FileDataSet.
+func (ag2fds ADLSGen2FileDataSet) AsBlobContainerDataSet() (*BlobContainerDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSet is the BasicDataSet implementation for ADLSGen2FileDataSet.
+func (ag2fds ADLSGen2FileDataSet) AsADLSGen2FileDataSet() (*ADLSGen2FileDataSet, bool) {
+ return &ag2fds, true
+}
+
+// AsADLSGen2FolderDataSet is the BasicDataSet implementation for ADLSGen2FileDataSet.
+func (ag2fds ADLSGen2FileDataSet) AsADLSGen2FolderDataSet() (*ADLSGen2FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSet is the BasicDataSet implementation for ADLSGen2FileDataSet.
+func (ag2fds ADLSGen2FileDataSet) AsADLSGen2FileSystemDataSet() (*ADLSGen2FileSystemDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FolderDataSet is the BasicDataSet implementation for ADLSGen2FileDataSet.
+func (ag2fds ADLSGen2FileDataSet) AsADLSGen1FolderDataSet() (*ADLSGen1FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FileDataSet is the BasicDataSet implementation for ADLSGen2FileDataSet.
+func (ag2fds ADLSGen2FileDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSet is the BasicDataSet implementation for ADLSGen2FileDataSet.
+func (ag2fds ADLSGen2FileDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for ADLSGen2FileDataSet.
+func (ag2fds ADLSGen2FileDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSet is the BasicDataSet implementation for ADLSGen2FileDataSet.
+func (ag2fds ADLSGen2FileDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSet is the BasicDataSet implementation for ADLSGen2FileDataSet.
+func (ag2fds ADLSGen2FileDataSet) AsSQLDBTableDataSet() (*SQLDBTableDataSet, bool) {
+ return nil, false
+}
+
+// AsDataSet is the BasicDataSet implementation for ADLSGen2FileDataSet.
+func (ag2fds ADLSGen2FileDataSet) AsDataSet() (*DataSet, bool) {
+ return nil, false
+}
+
+// AsBasicDataSet is the BasicDataSet implementation for ADLSGen2FileDataSet.
+func (ag2fds ADLSGen2FileDataSet) AsBasicDataSet() (BasicDataSet, bool) {
+ return &ag2fds, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for ADLSGen2FileDataSet struct.
+func (ag2fds *ADLSGen2FileDataSet) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var aDLSGen2FileProperties ADLSGen2FileProperties
+ err = json.Unmarshal(*v, &aDLSGen2FileProperties)
+ if err != nil {
+ return err
+ }
+ ag2fds.ADLSGen2FileProperties = &aDLSGen2FileProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind Kind
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ ag2fds.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ ag2fds.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ag2fds.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ ag2fds.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ADLSGen2FileDataSetMapping an ADLS Gen2 file data set mapping.
+type ADLSGen2FileDataSetMapping struct {
+ // ADLSGen2FileDataSetMappingProperties - ADLS Gen2 file data set mapping properties.
+ *ADLSGen2FileDataSetMappingProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ Kind KindBasicDataSetMapping `json:"kind,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ADLSGen2FileDataSetMapping.
+func (ag2fdsm ADLSGen2FileDataSetMapping) MarshalJSON() ([]byte, error) {
+ ag2fdsm.Kind = KindBasicDataSetMappingKindAdlsGen2File
+ objectMap := make(map[string]interface{})
+ if ag2fdsm.ADLSGen2FileDataSetMappingProperties != nil {
+ objectMap["properties"] = ag2fdsm.ADLSGen2FileDataSetMappingProperties
+ }
+ if ag2fdsm.Kind != "" {
+ objectMap["kind"] = ag2fdsm.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileDataSetMapping.
+func (ag2fdsm ADLSGen2FileDataSetMapping) AsBlobDataSetMapping() (*BlobDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileDataSetMapping.
+func (ag2fdsm ADLSGen2FileDataSetMapping) AsBlobFolderDataSetMapping() (*BlobFolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileDataSetMapping.
+func (ag2fdsm ADLSGen2FileDataSetMapping) AsBlobContainerDataSetMapping() (*BlobContainerDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileDataSetMapping.
+func (ag2fdsm ADLSGen2FileDataSetMapping) AsADLSGen2FileDataSetMapping() (*ADLSGen2FileDataSetMapping, bool) {
+ return &ag2fdsm, true
+}
+
+// AsADLSGen2FolderDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileDataSetMapping.
+func (ag2fdsm ADLSGen2FileDataSetMapping) AsADLSGen2FolderDataSetMapping() (*ADLSGen2FolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileDataSetMapping.
+func (ag2fdsm ADLSGen2FileDataSetMapping) AsADLSGen2FileSystemDataSetMapping() (*ADLSGen2FileSystemDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileDataSetMapping.
+func (ag2fdsm ADLSGen2FileDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileDataSetMapping.
+func (ag2fdsm ADLSGen2FileDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileDataSetMapping.
+func (ag2fdsm ADLSGen2FileDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileDataSetMapping.
+func (ag2fdsm ADLSGen2FileDataSetMapping) AsSQLDBTableDataSetMapping() (*SQLDBTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileDataSetMapping.
+func (ag2fdsm ADLSGen2FileDataSetMapping) AsDataSetMapping() (*DataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBasicDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileDataSetMapping.
+func (ag2fdsm ADLSGen2FileDataSetMapping) AsBasicDataSetMapping() (BasicDataSetMapping, bool) {
+ return &ag2fdsm, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for ADLSGen2FileDataSetMapping struct.
+func (ag2fdsm *ADLSGen2FileDataSetMapping) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var aDLSGen2FileDataSetMappingProperties ADLSGen2FileDataSetMappingProperties
+ err = json.Unmarshal(*v, &aDLSGen2FileDataSetMappingProperties)
+ if err != nil {
+ return err
+ }
+ ag2fdsm.ADLSGen2FileDataSetMappingProperties = &aDLSGen2FileDataSetMappingProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind KindBasicDataSetMapping
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ ag2fdsm.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ ag2fdsm.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ag2fdsm.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ ag2fdsm.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ADLSGen2FileDataSetMappingProperties ADLS Gen 2 file data set mapping property bag.
+type ADLSGen2FileDataSetMappingProperties struct {
+ // DataSetID - The id of the source data set.
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
+ DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
+ // FilePath - File path within the file system.
+ FilePath *string `json:"filePath,omitempty"`
+ // FileSystem - File system to which the file belongs.
+ FileSystem *string `json:"fileSystem,omitempty"`
+ // OutputType - Type of output file. Possible values include: 'Csv', 'Parquet'
+ OutputType OutputType `json:"outputType,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+ // ResourceGroup - Resource group of storage account.
+ ResourceGroup *string `json:"resourceGroup,omitempty"`
+ // StorageAccountName - Storage account name of the source data set.
+ StorageAccountName *string `json:"storageAccountName,omitempty"`
+ // SubscriptionID - Subscription id of storage account.
+ SubscriptionID *string `json:"subscriptionId,omitempty"`
+}
+
+// ADLSGen2FileProperties properties of the ADLS Gen2 file data set.
+type ADLSGen2FileProperties struct {
+ // DataSetID - READ-ONLY; Unique id for identifying a data set resource
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // FilePath - File path within the file system.
+ FilePath *string `json:"filePath,omitempty"`
+ // FileSystem - File system to which the file belongs.
+ FileSystem *string `json:"fileSystem,omitempty"`
+ // ResourceGroup - Resource group of storage account
+ ResourceGroup *string `json:"resourceGroup,omitempty"`
+ // StorageAccountName - Storage account name of the source data set
+ StorageAccountName *string `json:"storageAccountName,omitempty"`
+ // SubscriptionID - Subscription id of storage account
+ SubscriptionID *string `json:"subscriptionId,omitempty"`
+}
+
+// ADLSGen2FileSystemDataSet an ADLS Gen 2 file system data set.
+type ADLSGen2FileSystemDataSet struct {
+ // ADLSGen2FileSystemProperties - ADLS Gen 2 file system data set properties.
+ *ADLSGen2FileSystemProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
+ Kind Kind `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ADLSGen2FileSystemDataSet.
+func (ag2fsds ADLSGen2FileSystemDataSet) MarshalJSON() ([]byte, error) {
+ ag2fsds.Kind = KindAdlsGen2FileSystem
+ objectMap := make(map[string]interface{})
+ if ag2fsds.ADLSGen2FileSystemProperties != nil {
+ objectMap["properties"] = ag2fsds.ADLSGen2FileSystemProperties
+ }
+ if ag2fsds.Kind != "" {
+ objectMap["kind"] = ag2fsds.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSet is the BasicDataSet implementation for ADLSGen2FileSystemDataSet.
+func (ag2fsds ADLSGen2FileSystemDataSet) AsBlobDataSet() (*BlobDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSet is the BasicDataSet implementation for ADLSGen2FileSystemDataSet.
+func (ag2fsds ADLSGen2FileSystemDataSet) AsBlobFolderDataSet() (*BlobFolderDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSet is the BasicDataSet implementation for ADLSGen2FileSystemDataSet.
+func (ag2fsds ADLSGen2FileSystemDataSet) AsBlobContainerDataSet() (*BlobContainerDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSet is the BasicDataSet implementation for ADLSGen2FileSystemDataSet.
+func (ag2fsds ADLSGen2FileSystemDataSet) AsADLSGen2FileDataSet() (*ADLSGen2FileDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSet is the BasicDataSet implementation for ADLSGen2FileSystemDataSet.
+func (ag2fsds ADLSGen2FileSystemDataSet) AsADLSGen2FolderDataSet() (*ADLSGen2FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSet is the BasicDataSet implementation for ADLSGen2FileSystemDataSet.
+func (ag2fsds ADLSGen2FileSystemDataSet) AsADLSGen2FileSystemDataSet() (*ADLSGen2FileSystemDataSet, bool) {
+ return &ag2fsds, true
+}
+
+// AsADLSGen1FolderDataSet is the BasicDataSet implementation for ADLSGen2FileSystemDataSet.
+func (ag2fsds ADLSGen2FileSystemDataSet) AsADLSGen1FolderDataSet() (*ADLSGen1FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FileDataSet is the BasicDataSet implementation for ADLSGen2FileSystemDataSet.
+func (ag2fsds ADLSGen2FileSystemDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSet is the BasicDataSet implementation for ADLSGen2FileSystemDataSet.
+func (ag2fsds ADLSGen2FileSystemDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for ADLSGen2FileSystemDataSet.
+func (ag2fsds ADLSGen2FileSystemDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSet is the BasicDataSet implementation for ADLSGen2FileSystemDataSet.
+func (ag2fsds ADLSGen2FileSystemDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSet is the BasicDataSet implementation for ADLSGen2FileSystemDataSet.
+func (ag2fsds ADLSGen2FileSystemDataSet) AsSQLDBTableDataSet() (*SQLDBTableDataSet, bool) {
+ return nil, false
+}
+
+// AsDataSet is the BasicDataSet implementation for ADLSGen2FileSystemDataSet.
+func (ag2fsds ADLSGen2FileSystemDataSet) AsDataSet() (*DataSet, bool) {
+ return nil, false
+}
+
+// AsBasicDataSet is the BasicDataSet implementation for ADLSGen2FileSystemDataSet.
+func (ag2fsds ADLSGen2FileSystemDataSet) AsBasicDataSet() (BasicDataSet, bool) {
+ return &ag2fsds, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for ADLSGen2FileSystemDataSet struct.
+func (ag2fsds *ADLSGen2FileSystemDataSet) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var aDLSGen2FileSystemProperties ADLSGen2FileSystemProperties
+ err = json.Unmarshal(*v, &aDLSGen2FileSystemProperties)
+ if err != nil {
+ return err
+ }
+ ag2fsds.ADLSGen2FileSystemProperties = &aDLSGen2FileSystemProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind Kind
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ ag2fsds.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ ag2fsds.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ag2fsds.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ ag2fsds.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ADLSGen2FileSystemDataSetMapping an ADLS Gen2 file system data set mapping.
+type ADLSGen2FileSystemDataSetMapping struct {
+ // ADLSGen2FileSystemDataSetMappingProperties - ADLS Gen2 file system data set mapping properties.
+ *ADLSGen2FileSystemDataSetMappingProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ Kind KindBasicDataSetMapping `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ADLSGen2FileSystemDataSetMapping.
+func (ag2fsdsm ADLSGen2FileSystemDataSetMapping) MarshalJSON() ([]byte, error) {
+ ag2fsdsm.Kind = KindBasicDataSetMappingKindAdlsGen2FileSystem
+ objectMap := make(map[string]interface{})
+ if ag2fsdsm.ADLSGen2FileSystemDataSetMappingProperties != nil {
+ objectMap["properties"] = ag2fsdsm.ADLSGen2FileSystemDataSetMappingProperties
+ }
+ if ag2fsdsm.Kind != "" {
+ objectMap["kind"] = ag2fsdsm.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileSystemDataSetMapping.
+func (ag2fsdsm ADLSGen2FileSystemDataSetMapping) AsBlobDataSetMapping() (*BlobDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileSystemDataSetMapping.
+func (ag2fsdsm ADLSGen2FileSystemDataSetMapping) AsBlobFolderDataSetMapping() (*BlobFolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileSystemDataSetMapping.
+func (ag2fsdsm ADLSGen2FileSystemDataSetMapping) AsBlobContainerDataSetMapping() (*BlobContainerDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileSystemDataSetMapping.
+func (ag2fsdsm ADLSGen2FileSystemDataSetMapping) AsADLSGen2FileDataSetMapping() (*ADLSGen2FileDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileSystemDataSetMapping.
+func (ag2fsdsm ADLSGen2FileSystemDataSetMapping) AsADLSGen2FolderDataSetMapping() (*ADLSGen2FolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileSystemDataSetMapping.
+func (ag2fsdsm ADLSGen2FileSystemDataSetMapping) AsADLSGen2FileSystemDataSetMapping() (*ADLSGen2FileSystemDataSetMapping, bool) {
+ return &ag2fsdsm, true
+}
+
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileSystemDataSetMapping.
+func (ag2fsdsm ADLSGen2FileSystemDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileSystemDataSetMapping.
+func (ag2fsdsm ADLSGen2FileSystemDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileSystemDataSetMapping.
+func (ag2fsdsm ADLSGen2FileSystemDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileSystemDataSetMapping.
+func (ag2fsdsm ADLSGen2FileSystemDataSetMapping) AsSQLDBTableDataSetMapping() (*SQLDBTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileSystemDataSetMapping.
+func (ag2fsdsm ADLSGen2FileSystemDataSetMapping) AsDataSetMapping() (*DataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBasicDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileSystemDataSetMapping.
+func (ag2fsdsm ADLSGen2FileSystemDataSetMapping) AsBasicDataSetMapping() (BasicDataSetMapping, bool) {
+ return &ag2fsdsm, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for ADLSGen2FileSystemDataSetMapping struct.
+func (ag2fsdsm *ADLSGen2FileSystemDataSetMapping) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var aDLSGen2FileSystemDataSetMappingProperties ADLSGen2FileSystemDataSetMappingProperties
+ err = json.Unmarshal(*v, &aDLSGen2FileSystemDataSetMappingProperties)
+ if err != nil {
+ return err
+ }
+ ag2fsdsm.ADLSGen2FileSystemDataSetMappingProperties = &aDLSGen2FileSystemDataSetMappingProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind KindBasicDataSetMapping
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ ag2fsdsm.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ ag2fsdsm.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ag2fsdsm.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ ag2fsdsm.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ADLSGen2FileSystemDataSetMappingProperties ADLS Gen 2 file system data set mapping property bag.
+type ADLSGen2FileSystemDataSetMappingProperties struct {
+ // DataSetID - The id of the source data set.
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
+ DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
+ // FileSystem - The file system name.
+ FileSystem *string `json:"fileSystem,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+ // ResourceGroup - Resource group of storage account.
+ ResourceGroup *string `json:"resourceGroup,omitempty"`
+ // StorageAccountName - Storage account name of the source data set.
+ StorageAccountName *string `json:"storageAccountName,omitempty"`
+ // SubscriptionID - Subscription id of storage account.
+ SubscriptionID *string `json:"subscriptionId,omitempty"`
+}
+
+// ADLSGen2FileSystemProperties properties of the ADLS Gen2 file system data set.
+type ADLSGen2FileSystemProperties struct {
+ // DataSetID - READ-ONLY; Unique id for identifying a data set resource
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // FileSystem - The file system name.
+ FileSystem *string `json:"fileSystem,omitempty"`
+ // ResourceGroup - Resource group of storage account
+ ResourceGroup *string `json:"resourceGroup,omitempty"`
+ // StorageAccountName - Storage account name of the source data set
+ StorageAccountName *string `json:"storageAccountName,omitempty"`
+ // SubscriptionID - Subscription id of storage account
+ SubscriptionID *string `json:"subscriptionId,omitempty"`
+}
+
+// ADLSGen2FolderDataSet an ADLS Gen 2 folder data set.
+type ADLSGen2FolderDataSet struct {
+ // ADLSGen2FolderProperties - ADLS Gen 2 folder data set properties.
+ *ADLSGen2FolderProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
+ Kind Kind `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ADLSGen2FolderDataSet.
+func (ag2fds ADLSGen2FolderDataSet) MarshalJSON() ([]byte, error) {
+ ag2fds.Kind = KindAdlsGen2Folder
+ objectMap := make(map[string]interface{})
+ if ag2fds.ADLSGen2FolderProperties != nil {
+ objectMap["properties"] = ag2fds.ADLSGen2FolderProperties
+ }
+ if ag2fds.Kind != "" {
+ objectMap["kind"] = ag2fds.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSet is the BasicDataSet implementation for ADLSGen2FolderDataSet.
+func (ag2fds ADLSGen2FolderDataSet) AsBlobDataSet() (*BlobDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSet is the BasicDataSet implementation for ADLSGen2FolderDataSet.
+func (ag2fds ADLSGen2FolderDataSet) AsBlobFolderDataSet() (*BlobFolderDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSet is the BasicDataSet implementation for ADLSGen2FolderDataSet.
+func (ag2fds ADLSGen2FolderDataSet) AsBlobContainerDataSet() (*BlobContainerDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSet is the BasicDataSet implementation for ADLSGen2FolderDataSet.
+func (ag2fds ADLSGen2FolderDataSet) AsADLSGen2FileDataSet() (*ADLSGen2FileDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSet is the BasicDataSet implementation for ADLSGen2FolderDataSet.
+func (ag2fds ADLSGen2FolderDataSet) AsADLSGen2FolderDataSet() (*ADLSGen2FolderDataSet, bool) {
+ return &ag2fds, true
+}
+
+// AsADLSGen2FileSystemDataSet is the BasicDataSet implementation for ADLSGen2FolderDataSet.
+func (ag2fds ADLSGen2FolderDataSet) AsADLSGen2FileSystemDataSet() (*ADLSGen2FileSystemDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FolderDataSet is the BasicDataSet implementation for ADLSGen2FolderDataSet.
+func (ag2fds ADLSGen2FolderDataSet) AsADLSGen1FolderDataSet() (*ADLSGen1FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FileDataSet is the BasicDataSet implementation for ADLSGen2FolderDataSet.
+func (ag2fds ADLSGen2FolderDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSet is the BasicDataSet implementation for ADLSGen2FolderDataSet.
+func (ag2fds ADLSGen2FolderDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for ADLSGen2FolderDataSet.
+func (ag2fds ADLSGen2FolderDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSet is the BasicDataSet implementation for ADLSGen2FolderDataSet.
+func (ag2fds ADLSGen2FolderDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSet is the BasicDataSet implementation for ADLSGen2FolderDataSet.
+func (ag2fds ADLSGen2FolderDataSet) AsSQLDBTableDataSet() (*SQLDBTableDataSet, bool) {
+ return nil, false
+}
+
+// AsDataSet is the BasicDataSet implementation for ADLSGen2FolderDataSet.
+func (ag2fds ADLSGen2FolderDataSet) AsDataSet() (*DataSet, bool) {
+ return nil, false
+}
+
+// AsBasicDataSet is the BasicDataSet implementation for ADLSGen2FolderDataSet.
+func (ag2fds ADLSGen2FolderDataSet) AsBasicDataSet() (BasicDataSet, bool) {
+ return &ag2fds, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for ADLSGen2FolderDataSet struct.
+func (ag2fds *ADLSGen2FolderDataSet) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var aDLSGen2FolderProperties ADLSGen2FolderProperties
+ err = json.Unmarshal(*v, &aDLSGen2FolderProperties)
+ if err != nil {
+ return err
+ }
+ ag2fds.ADLSGen2FolderProperties = &aDLSGen2FolderProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind Kind
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ ag2fds.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ ag2fds.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ag2fds.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ ag2fds.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ADLSGen2FolderDataSetMapping an ADLS Gen2 folder data set mapping.
+type ADLSGen2FolderDataSetMapping struct {
+ // ADLSGen2FolderDataSetMappingProperties - ADLS Gen2 folder data set mapping properties.
+ *ADLSGen2FolderDataSetMappingProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ Kind KindBasicDataSetMapping `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ADLSGen2FolderDataSetMapping.
+func (ag2fdsm ADLSGen2FolderDataSetMapping) MarshalJSON() ([]byte, error) {
+ ag2fdsm.Kind = KindBasicDataSetMappingKindAdlsGen2Folder
+ objectMap := make(map[string]interface{})
+ if ag2fdsm.ADLSGen2FolderDataSetMappingProperties != nil {
+ objectMap["properties"] = ag2fdsm.ADLSGen2FolderDataSetMappingProperties
+ }
+ if ag2fdsm.Kind != "" {
+ objectMap["kind"] = ag2fdsm.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FolderDataSetMapping.
+func (ag2fdsm ADLSGen2FolderDataSetMapping) AsBlobDataSetMapping() (*BlobDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FolderDataSetMapping.
+func (ag2fdsm ADLSGen2FolderDataSetMapping) AsBlobFolderDataSetMapping() (*BlobFolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FolderDataSetMapping.
+func (ag2fdsm ADLSGen2FolderDataSetMapping) AsBlobContainerDataSetMapping() (*BlobContainerDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FolderDataSetMapping.
+func (ag2fdsm ADLSGen2FolderDataSetMapping) AsADLSGen2FileDataSetMapping() (*ADLSGen2FileDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FolderDataSetMapping.
+func (ag2fdsm ADLSGen2FolderDataSetMapping) AsADLSGen2FolderDataSetMapping() (*ADLSGen2FolderDataSetMapping, bool) {
+ return &ag2fdsm, true
+}
+
+// AsADLSGen2FileSystemDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FolderDataSetMapping.
+func (ag2fdsm ADLSGen2FolderDataSetMapping) AsADLSGen2FileSystemDataSetMapping() (*ADLSGen2FileSystemDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FolderDataSetMapping.
+func (ag2fdsm ADLSGen2FolderDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FolderDataSetMapping.
+func (ag2fdsm ADLSGen2FolderDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FolderDataSetMapping.
+func (ag2fdsm ADLSGen2FolderDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FolderDataSetMapping.
+func (ag2fdsm ADLSGen2FolderDataSetMapping) AsSQLDBTableDataSetMapping() (*SQLDBTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FolderDataSetMapping.
+func (ag2fdsm ADLSGen2FolderDataSetMapping) AsDataSetMapping() (*DataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBasicDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FolderDataSetMapping.
+func (ag2fdsm ADLSGen2FolderDataSetMapping) AsBasicDataSetMapping() (BasicDataSetMapping, bool) {
+ return &ag2fdsm, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for ADLSGen2FolderDataSetMapping struct.
+func (ag2fdsm *ADLSGen2FolderDataSetMapping) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var aDLSGen2FolderDataSetMappingProperties ADLSGen2FolderDataSetMappingProperties
+ err = json.Unmarshal(*v, &aDLSGen2FolderDataSetMappingProperties)
+ if err != nil {
+ return err
+ }
+ ag2fdsm.ADLSGen2FolderDataSetMappingProperties = &aDLSGen2FolderDataSetMappingProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind KindBasicDataSetMapping
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ ag2fdsm.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ ag2fdsm.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ag2fdsm.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ ag2fdsm.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ADLSGen2FolderDataSetMappingProperties ADLS Gen 2 folder data set mapping property bag.
+type ADLSGen2FolderDataSetMappingProperties struct {
+ // DataSetID - The id of the source data set.
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
+ DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
+ // FileSystem - File system to which the folder belongs.
+ FileSystem *string `json:"fileSystem,omitempty"`
+ // FolderPath - Folder path within the file system.
+ FolderPath *string `json:"folderPath,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+ // ResourceGroup - Resource group of storage account.
+ ResourceGroup *string `json:"resourceGroup,omitempty"`
+ // StorageAccountName - Storage account name of the source data set.
+ StorageAccountName *string `json:"storageAccountName,omitempty"`
+ // SubscriptionID - Subscription id of storage account.
+ SubscriptionID *string `json:"subscriptionId,omitempty"`
+}
+
+// ADLSGen2FolderProperties properties of the ADLS Gen2 folder data set.
+type ADLSGen2FolderProperties struct {
+ // DataSetID - READ-ONLY; Unique id for identifying a data set resource
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // FileSystem - File system to which the folder belongs.
+ FileSystem *string `json:"fileSystem,omitempty"`
+ // FolderPath - Folder path within the file system.
+ FolderPath *string `json:"folderPath,omitempty"`
+ // ResourceGroup - Resource group of storage account
+ ResourceGroup *string `json:"resourceGroup,omitempty"`
+ // StorageAccountName - Storage account name of the source data set
+ StorageAccountName *string `json:"storageAccountName,omitempty"`
+ // SubscriptionID - Subscription id of storage account
+ SubscriptionID *string `json:"subscriptionId,omitempty"`
+}
+
+// BlobContainerDataSet an Azure storage blob container data set.
+type BlobContainerDataSet struct {
+ // BlobContainerProperties - Blob container data set properties.
+ *BlobContainerProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
+ Kind Kind `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for BlobContainerDataSet.
+func (bcds BlobContainerDataSet) MarshalJSON() ([]byte, error) {
+ bcds.Kind = KindContainer
+ objectMap := make(map[string]interface{})
+ if bcds.BlobContainerProperties != nil {
+ objectMap["properties"] = bcds.BlobContainerProperties
+ }
+ if bcds.Kind != "" {
+ objectMap["kind"] = bcds.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSet is the BasicDataSet implementation for BlobContainerDataSet.
+func (bcds BlobContainerDataSet) AsBlobDataSet() (*BlobDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSet is the BasicDataSet implementation for BlobContainerDataSet.
+func (bcds BlobContainerDataSet) AsBlobFolderDataSet() (*BlobFolderDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSet is the BasicDataSet implementation for BlobContainerDataSet.
+func (bcds BlobContainerDataSet) AsBlobContainerDataSet() (*BlobContainerDataSet, bool) {
+ return &bcds, true
+}
+
+// AsADLSGen2FileDataSet is the BasicDataSet implementation for BlobContainerDataSet.
+func (bcds BlobContainerDataSet) AsADLSGen2FileDataSet() (*ADLSGen2FileDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSet is the BasicDataSet implementation for BlobContainerDataSet.
+func (bcds BlobContainerDataSet) AsADLSGen2FolderDataSet() (*ADLSGen2FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSet is the BasicDataSet implementation for BlobContainerDataSet.
+func (bcds BlobContainerDataSet) AsADLSGen2FileSystemDataSet() (*ADLSGen2FileSystemDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FolderDataSet is the BasicDataSet implementation for BlobContainerDataSet.
+func (bcds BlobContainerDataSet) AsADLSGen1FolderDataSet() (*ADLSGen1FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FileDataSet is the BasicDataSet implementation for BlobContainerDataSet.
+func (bcds BlobContainerDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSet is the BasicDataSet implementation for BlobContainerDataSet.
+func (bcds BlobContainerDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for BlobContainerDataSet.
+func (bcds BlobContainerDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSet is the BasicDataSet implementation for BlobContainerDataSet.
+func (bcds BlobContainerDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSet is the BasicDataSet implementation for BlobContainerDataSet.
+func (bcds BlobContainerDataSet) AsSQLDBTableDataSet() (*SQLDBTableDataSet, bool) {
+ return nil, false
+}
+
+// AsDataSet is the BasicDataSet implementation for BlobContainerDataSet.
+func (bcds BlobContainerDataSet) AsDataSet() (*DataSet, bool) {
+ return nil, false
+}
+
+// AsBasicDataSet is the BasicDataSet implementation for BlobContainerDataSet.
+func (bcds BlobContainerDataSet) AsBasicDataSet() (BasicDataSet, bool) {
+ return &bcds, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for BlobContainerDataSet struct.
+func (bcds *BlobContainerDataSet) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var blobContainerProperties BlobContainerProperties
+ err = json.Unmarshal(*v, &blobContainerProperties)
+ if err != nil {
+ return err
+ }
+ bcds.BlobContainerProperties = &blobContainerProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind Kind
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ bcds.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ bcds.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ bcds.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ bcds.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// BlobContainerDataSetMapping a Blob container data set mapping.
+type BlobContainerDataSetMapping struct {
+ // BlobContainerMappingProperties - Blob container data set mapping properties.
+ *BlobContainerMappingProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ Kind KindBasicDataSetMapping `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for BlobContainerDataSetMapping.
+func (bcdsm BlobContainerDataSetMapping) MarshalJSON() ([]byte, error) {
+ bcdsm.Kind = KindBasicDataSetMappingKindContainer
+ objectMap := make(map[string]interface{})
+ if bcdsm.BlobContainerMappingProperties != nil {
+ objectMap["properties"] = bcdsm.BlobContainerMappingProperties
+ }
+ if bcdsm.Kind != "" {
+ objectMap["kind"] = bcdsm.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSetMapping is the BasicDataSetMapping implementation for BlobContainerDataSetMapping.
+func (bcdsm BlobContainerDataSetMapping) AsBlobDataSetMapping() (*BlobDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSetMapping is the BasicDataSetMapping implementation for BlobContainerDataSetMapping.
+func (bcdsm BlobContainerDataSetMapping) AsBlobFolderDataSetMapping() (*BlobFolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSetMapping is the BasicDataSetMapping implementation for BlobContainerDataSetMapping.
+func (bcdsm BlobContainerDataSetMapping) AsBlobContainerDataSetMapping() (*BlobContainerDataSetMapping, bool) {
+ return &bcdsm, true
+}
+
+// AsADLSGen2FileDataSetMapping is the BasicDataSetMapping implementation for BlobContainerDataSetMapping.
+func (bcdsm BlobContainerDataSetMapping) AsADLSGen2FileDataSetMapping() (*ADLSGen2FileDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSetMapping is the BasicDataSetMapping implementation for BlobContainerDataSetMapping.
+func (bcdsm BlobContainerDataSetMapping) AsADLSGen2FolderDataSetMapping() (*ADLSGen2FolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSetMapping is the BasicDataSetMapping implementation for BlobContainerDataSetMapping.
+func (bcdsm BlobContainerDataSetMapping) AsADLSGen2FileSystemDataSetMapping() (*ADLSGen2FileSystemDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for BlobContainerDataSetMapping.
+func (bcdsm BlobContainerDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for BlobContainerDataSetMapping.
+func (bcdsm BlobContainerDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for BlobContainerDataSetMapping.
+func (bcdsm BlobContainerDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSetMapping is the BasicDataSetMapping implementation for BlobContainerDataSetMapping.
+func (bcdsm BlobContainerDataSetMapping) AsSQLDBTableDataSetMapping() (*SQLDBTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsDataSetMapping is the BasicDataSetMapping implementation for BlobContainerDataSetMapping.
+func (bcdsm BlobContainerDataSetMapping) AsDataSetMapping() (*DataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBasicDataSetMapping is the BasicDataSetMapping implementation for BlobContainerDataSetMapping.
+func (bcdsm BlobContainerDataSetMapping) AsBasicDataSetMapping() (BasicDataSetMapping, bool) {
+ return &bcdsm, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for BlobContainerDataSetMapping struct.
+func (bcdsm *BlobContainerDataSetMapping) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var blobContainerMappingProperties BlobContainerMappingProperties
+ err = json.Unmarshal(*v, &blobContainerMappingProperties)
+ if err != nil {
+ return err
+ }
+ bcdsm.BlobContainerMappingProperties = &blobContainerMappingProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind KindBasicDataSetMapping
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ bcdsm.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ bcdsm.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ bcdsm.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ bcdsm.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// BlobContainerMappingProperties azure storage Blob container data set mapping property bag.
+type BlobContainerMappingProperties struct {
+ // ContainerName - BLOB Container name.
+ ContainerName *string `json:"containerName,omitempty"`
+ // DataSetID - The id of the source data set.
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
+ DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+ // ResourceGroup - Resource group of storage account.
+ ResourceGroup *string `json:"resourceGroup,omitempty"`
+ // StorageAccountName - Storage account name of the source data set.
+ StorageAccountName *string `json:"storageAccountName,omitempty"`
+ // SubscriptionID - Subscription id of storage account.
+ SubscriptionID *string `json:"subscriptionId,omitempty"`
+}
+
+// BlobContainerProperties properties of the BLOB container data set.
+type BlobContainerProperties struct {
+ // ContainerName - BLOB Container name.
+ ContainerName *string `json:"containerName,omitempty"`
+ // DataSetID - READ-ONLY; Unique id for identifying a data set resource
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // ResourceGroup - Resource group of storage account
+ ResourceGroup *string `json:"resourceGroup,omitempty"`
+ // StorageAccountName - Storage account name of the source data set
+ StorageAccountName *string `json:"storageAccountName,omitempty"`
+ // SubscriptionID - Subscription id of storage account
+ SubscriptionID *string `json:"subscriptionId,omitempty"`
+}
+
+// BlobDataSet an Azure storage blob data set.
+type BlobDataSet struct {
+ // BlobProperties - Blob data set properties.
+ *BlobProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
+ Kind Kind `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for BlobDataSet.
+func (bds BlobDataSet) MarshalJSON() ([]byte, error) {
+ bds.Kind = KindBlob
+ objectMap := make(map[string]interface{})
+ if bds.BlobProperties != nil {
+ objectMap["properties"] = bds.BlobProperties
+ }
+ if bds.Kind != "" {
+ objectMap["kind"] = bds.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSet is the BasicDataSet implementation for BlobDataSet.
+func (bds BlobDataSet) AsBlobDataSet() (*BlobDataSet, bool) {
+ return &bds, true
+}
+
+// AsBlobFolderDataSet is the BasicDataSet implementation for BlobDataSet.
+func (bds BlobDataSet) AsBlobFolderDataSet() (*BlobFolderDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSet is the BasicDataSet implementation for BlobDataSet.
+func (bds BlobDataSet) AsBlobContainerDataSet() (*BlobContainerDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSet is the BasicDataSet implementation for BlobDataSet.
+func (bds BlobDataSet) AsADLSGen2FileDataSet() (*ADLSGen2FileDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSet is the BasicDataSet implementation for BlobDataSet.
+func (bds BlobDataSet) AsADLSGen2FolderDataSet() (*ADLSGen2FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSet is the BasicDataSet implementation for BlobDataSet.
+func (bds BlobDataSet) AsADLSGen2FileSystemDataSet() (*ADLSGen2FileSystemDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FolderDataSet is the BasicDataSet implementation for BlobDataSet.
+func (bds BlobDataSet) AsADLSGen1FolderDataSet() (*ADLSGen1FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FileDataSet is the BasicDataSet implementation for BlobDataSet.
+func (bds BlobDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSet is the BasicDataSet implementation for BlobDataSet.
+func (bds BlobDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for BlobDataSet.
+func (bds BlobDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSet is the BasicDataSet implementation for BlobDataSet.
+func (bds BlobDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSet is the BasicDataSet implementation for BlobDataSet.
+func (bds BlobDataSet) AsSQLDBTableDataSet() (*SQLDBTableDataSet, bool) {
+ return nil, false
+}
+
+// AsDataSet is the BasicDataSet implementation for BlobDataSet.
+func (bds BlobDataSet) AsDataSet() (*DataSet, bool) {
+ return nil, false
+}
+
+// AsBasicDataSet is the BasicDataSet implementation for BlobDataSet.
+func (bds BlobDataSet) AsBasicDataSet() (BasicDataSet, bool) {
+ return &bds, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for BlobDataSet struct.
+func (bds *BlobDataSet) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var blobProperties BlobProperties
+ err = json.Unmarshal(*v, &blobProperties)
+ if err != nil {
+ return err
+ }
+ bds.BlobProperties = &blobProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind Kind
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ bds.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ bds.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ bds.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ bds.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// BlobDataSetMapping a Blob data set mapping.
+type BlobDataSetMapping struct {
+ // BlobMappingProperties - Blob data set mapping properties.
+ *BlobMappingProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ Kind KindBasicDataSetMapping `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for BlobDataSetMapping.
+func (bdsm BlobDataSetMapping) MarshalJSON() ([]byte, error) {
+ bdsm.Kind = KindBasicDataSetMappingKindBlob
+ objectMap := make(map[string]interface{})
+ if bdsm.BlobMappingProperties != nil {
+ objectMap["properties"] = bdsm.BlobMappingProperties
+ }
+ if bdsm.Kind != "" {
+ objectMap["kind"] = bdsm.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSetMapping is the BasicDataSetMapping implementation for BlobDataSetMapping.
+func (bdsm BlobDataSetMapping) AsBlobDataSetMapping() (*BlobDataSetMapping, bool) {
+ return &bdsm, true
+}
+
+// AsBlobFolderDataSetMapping is the BasicDataSetMapping implementation for BlobDataSetMapping.
+func (bdsm BlobDataSetMapping) AsBlobFolderDataSetMapping() (*BlobFolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSetMapping is the BasicDataSetMapping implementation for BlobDataSetMapping.
+func (bdsm BlobDataSetMapping) AsBlobContainerDataSetMapping() (*BlobContainerDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSetMapping is the BasicDataSetMapping implementation for BlobDataSetMapping.
+func (bdsm BlobDataSetMapping) AsADLSGen2FileDataSetMapping() (*ADLSGen2FileDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSetMapping is the BasicDataSetMapping implementation for BlobDataSetMapping.
+func (bdsm BlobDataSetMapping) AsADLSGen2FolderDataSetMapping() (*ADLSGen2FolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSetMapping is the BasicDataSetMapping implementation for BlobDataSetMapping.
+func (bdsm BlobDataSetMapping) AsADLSGen2FileSystemDataSetMapping() (*ADLSGen2FileSystemDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for BlobDataSetMapping.
+func (bdsm BlobDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for BlobDataSetMapping.
+func (bdsm BlobDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for BlobDataSetMapping.
+func (bdsm BlobDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSetMapping is the BasicDataSetMapping implementation for BlobDataSetMapping.
+func (bdsm BlobDataSetMapping) AsSQLDBTableDataSetMapping() (*SQLDBTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsDataSetMapping is the BasicDataSetMapping implementation for BlobDataSetMapping.
+func (bdsm BlobDataSetMapping) AsDataSetMapping() (*DataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBasicDataSetMapping is the BasicDataSetMapping implementation for BlobDataSetMapping.
+func (bdsm BlobDataSetMapping) AsBasicDataSetMapping() (BasicDataSetMapping, bool) {
+ return &bdsm, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for BlobDataSetMapping struct.
+func (bdsm *BlobDataSetMapping) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var blobMappingProperties BlobMappingProperties
+ err = json.Unmarshal(*v, &blobMappingProperties)
+ if err != nil {
+ return err
+ }
+ bdsm.BlobMappingProperties = &blobMappingProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind KindBasicDataSetMapping
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ bdsm.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ bdsm.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ bdsm.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ bdsm.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// BlobFolderDataSet an Azure storage blob folder data set.
+type BlobFolderDataSet struct {
+ // BlobFolderProperties - Blob folder data set properties.
+ *BlobFolderProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
+ Kind Kind `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for BlobFolderDataSet.
+func (bfds BlobFolderDataSet) MarshalJSON() ([]byte, error) {
+ bfds.Kind = KindBlobFolder
+ objectMap := make(map[string]interface{})
+ if bfds.BlobFolderProperties != nil {
+ objectMap["properties"] = bfds.BlobFolderProperties
+ }
+ if bfds.Kind != "" {
+ objectMap["kind"] = bfds.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSet is the BasicDataSet implementation for BlobFolderDataSet.
+func (bfds BlobFolderDataSet) AsBlobDataSet() (*BlobDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSet is the BasicDataSet implementation for BlobFolderDataSet.
+func (bfds BlobFolderDataSet) AsBlobFolderDataSet() (*BlobFolderDataSet, bool) {
+ return &bfds, true
+}
+
+// AsBlobContainerDataSet is the BasicDataSet implementation for BlobFolderDataSet.
+func (bfds BlobFolderDataSet) AsBlobContainerDataSet() (*BlobContainerDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSet is the BasicDataSet implementation for BlobFolderDataSet.
+func (bfds BlobFolderDataSet) AsADLSGen2FileDataSet() (*ADLSGen2FileDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSet is the BasicDataSet implementation for BlobFolderDataSet.
+func (bfds BlobFolderDataSet) AsADLSGen2FolderDataSet() (*ADLSGen2FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSet is the BasicDataSet implementation for BlobFolderDataSet.
+func (bfds BlobFolderDataSet) AsADLSGen2FileSystemDataSet() (*ADLSGen2FileSystemDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FolderDataSet is the BasicDataSet implementation for BlobFolderDataSet.
+func (bfds BlobFolderDataSet) AsADLSGen1FolderDataSet() (*ADLSGen1FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FileDataSet is the BasicDataSet implementation for BlobFolderDataSet.
+func (bfds BlobFolderDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSet is the BasicDataSet implementation for BlobFolderDataSet.
+func (bfds BlobFolderDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for BlobFolderDataSet.
+func (bfds BlobFolderDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSet is the BasicDataSet implementation for BlobFolderDataSet.
+func (bfds BlobFolderDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSet is the BasicDataSet implementation for BlobFolderDataSet.
+func (bfds BlobFolderDataSet) AsSQLDBTableDataSet() (*SQLDBTableDataSet, bool) {
+ return nil, false
+}
+
+// AsDataSet is the BasicDataSet implementation for BlobFolderDataSet.
+func (bfds BlobFolderDataSet) AsDataSet() (*DataSet, bool) {
+ return nil, false
+}
+
+// AsBasicDataSet is the BasicDataSet implementation for BlobFolderDataSet.
+func (bfds BlobFolderDataSet) AsBasicDataSet() (BasicDataSet, bool) {
+ return &bfds, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for BlobFolderDataSet struct.
+func (bfds *BlobFolderDataSet) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var blobFolderProperties BlobFolderProperties
+ err = json.Unmarshal(*v, &blobFolderProperties)
+ if err != nil {
+ return err
+ }
+ bfds.BlobFolderProperties = &blobFolderProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind Kind
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ bfds.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ bfds.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ bfds.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ bfds.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// BlobFolderDataSetMapping a Blob folder data set mapping.
+type BlobFolderDataSetMapping struct {
+ // BlobFolderMappingProperties - Blob folder data set mapping properties.
+ *BlobFolderMappingProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ Kind KindBasicDataSetMapping `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for BlobFolderDataSetMapping.
+func (bfdsm BlobFolderDataSetMapping) MarshalJSON() ([]byte, error) {
+ bfdsm.Kind = KindBasicDataSetMappingKindBlobFolder
+ objectMap := make(map[string]interface{})
+ if bfdsm.BlobFolderMappingProperties != nil {
+ objectMap["properties"] = bfdsm.BlobFolderMappingProperties
+ }
+ if bfdsm.Kind != "" {
+ objectMap["kind"] = bfdsm.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSetMapping is the BasicDataSetMapping implementation for BlobFolderDataSetMapping.
+func (bfdsm BlobFolderDataSetMapping) AsBlobDataSetMapping() (*BlobDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSetMapping is the BasicDataSetMapping implementation for BlobFolderDataSetMapping.
+func (bfdsm BlobFolderDataSetMapping) AsBlobFolderDataSetMapping() (*BlobFolderDataSetMapping, bool) {
+ return &bfdsm, true
+}
+
+// AsBlobContainerDataSetMapping is the BasicDataSetMapping implementation for BlobFolderDataSetMapping.
+func (bfdsm BlobFolderDataSetMapping) AsBlobContainerDataSetMapping() (*BlobContainerDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSetMapping is the BasicDataSetMapping implementation for BlobFolderDataSetMapping.
+func (bfdsm BlobFolderDataSetMapping) AsADLSGen2FileDataSetMapping() (*ADLSGen2FileDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSetMapping is the BasicDataSetMapping implementation for BlobFolderDataSetMapping.
+func (bfdsm BlobFolderDataSetMapping) AsADLSGen2FolderDataSetMapping() (*ADLSGen2FolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSetMapping is the BasicDataSetMapping implementation for BlobFolderDataSetMapping.
+func (bfdsm BlobFolderDataSetMapping) AsADLSGen2FileSystemDataSetMapping() (*ADLSGen2FileSystemDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for BlobFolderDataSetMapping.
+func (bfdsm BlobFolderDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for BlobFolderDataSetMapping.
+func (bfdsm BlobFolderDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for BlobFolderDataSetMapping.
+func (bfdsm BlobFolderDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSetMapping is the BasicDataSetMapping implementation for BlobFolderDataSetMapping.
+func (bfdsm BlobFolderDataSetMapping) AsSQLDBTableDataSetMapping() (*SQLDBTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsDataSetMapping is the BasicDataSetMapping implementation for BlobFolderDataSetMapping.
+func (bfdsm BlobFolderDataSetMapping) AsDataSetMapping() (*DataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBasicDataSetMapping is the BasicDataSetMapping implementation for BlobFolderDataSetMapping.
+func (bfdsm BlobFolderDataSetMapping) AsBasicDataSetMapping() (BasicDataSetMapping, bool) {
+ return &bfdsm, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for BlobFolderDataSetMapping struct.
+func (bfdsm *BlobFolderDataSetMapping) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var blobFolderMappingProperties BlobFolderMappingProperties
+ err = json.Unmarshal(*v, &blobFolderMappingProperties)
+ if err != nil {
+ return err
+ }
+ bfdsm.BlobFolderMappingProperties = &blobFolderMappingProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind KindBasicDataSetMapping
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ bfdsm.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ bfdsm.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ bfdsm.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ bfdsm.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// BlobFolderMappingProperties azure storage Blob folder data set mapping property bag.
+type BlobFolderMappingProperties struct {
+ // ContainerName - Container that has the file path.
+ ContainerName *string `json:"containerName,omitempty"`
+ // DataSetID - The id of the source data set.
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
+ DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
+ // Prefix - Prefix for blob folder
+ Prefix *string `json:"prefix,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+ // ResourceGroup - Resource group of storage account.
+ ResourceGroup *string `json:"resourceGroup,omitempty"`
+ // StorageAccountName - Storage account name of the source data set.
+ StorageAccountName *string `json:"storageAccountName,omitempty"`
+ // SubscriptionID - Subscription id of storage account.
+ SubscriptionID *string `json:"subscriptionId,omitempty"`
+}
+
+// BlobFolderProperties properties of the blob folder data set.
+type BlobFolderProperties struct {
+ // ContainerName - Container that has the file path.
+ ContainerName *string `json:"containerName,omitempty"`
+ // DataSetID - READ-ONLY; Unique id for identifying a data set resource
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // Prefix - Prefix for blob folder
+ Prefix *string `json:"prefix,omitempty"`
+ // ResourceGroup - Resource group of storage account
+ ResourceGroup *string `json:"resourceGroup,omitempty"`
+ // StorageAccountName - Storage account name of the source data set
+ StorageAccountName *string `json:"storageAccountName,omitempty"`
+ // SubscriptionID - Subscription id of storage account
+ SubscriptionID *string `json:"subscriptionId,omitempty"`
+}
+
+// BlobMappingProperties azure storage Blob data set mapping property bag.
+type BlobMappingProperties struct {
+ // ContainerName - Container that has the file path.
+ ContainerName *string `json:"containerName,omitempty"`
+ // DataSetID - The id of the source data set.
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
+ DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
+ // FilePath - File path within the source data set
+ FilePath *string `json:"filePath,omitempty"`
+ // OutputType - File output type. Possible values include: 'Csv', 'Parquet'
+ OutputType OutputType `json:"outputType,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+ // ResourceGroup - Resource group of storage account.
+ ResourceGroup *string `json:"resourceGroup,omitempty"`
+ // StorageAccountName - Storage account name of the source data set.
+ StorageAccountName *string `json:"storageAccountName,omitempty"`
+ // SubscriptionID - Subscription id of storage account.
+ SubscriptionID *string `json:"subscriptionId,omitempty"`
+}
+
+// BlobProperties properties of the blob data set.
+type BlobProperties struct {
+ // ContainerName - Container that has the file path.
+ ContainerName *string `json:"containerName,omitempty"`
+ // DataSetID - READ-ONLY; Unique id for identifying a data set resource
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // FilePath - File path within the source data set
+ FilePath *string `json:"filePath,omitempty"`
+ // ResourceGroup - Resource group of storage account
+ ResourceGroup *string `json:"resourceGroup,omitempty"`
+ // StorageAccountName - Storage account name of the source data set
+ StorageAccountName *string `json:"storageAccountName,omitempty"`
+ // SubscriptionID - Subscription id of storage account
+ SubscriptionID *string `json:"subscriptionId,omitempty"`
+}
+
+// ConsumerInvitation a consumer Invitation data transfer object.
+type ConsumerInvitation struct {
+ autorest.Response `json:"-"`
+ // ConsumerInvitationProperties - Properties on the account
+ *ConsumerInvitationProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ConsumerInvitation.
+func (ci ConsumerInvitation) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if ci.ConsumerInvitationProperties != nil {
+ objectMap["properties"] = ci.ConsumerInvitationProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ConsumerInvitation struct.
+func (ci *ConsumerInvitation) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var consumerInvitationProperties ConsumerInvitationProperties
+ err = json.Unmarshal(*v, &consumerInvitationProperties)
+ if err != nil {
+ return err
+ }
+ ci.ConsumerInvitationProperties = &consumerInvitationProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ ci.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ci.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ ci.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ConsumerInvitationList list response for get InvitationList
+type ConsumerInvitationList struct {
+ autorest.Response `json:"-"`
+ // NextLink - The Url of next result page.
+ NextLink *string `json:"nextLink,omitempty"`
+ // Value - Collection of items of type DataTransferObjects.
+ Value *[]ConsumerInvitation `json:"value,omitempty"`
+}
+
+// ConsumerInvitationListIterator provides access to a complete listing of ConsumerInvitation values.
+type ConsumerInvitationListIterator struct {
+ i int
+ page ConsumerInvitationListPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *ConsumerInvitationListIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConsumerInvitationListIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *ConsumerInvitationListIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter ConsumerInvitationListIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter ConsumerInvitationListIterator) Response() ConsumerInvitationList {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter ConsumerInvitationListIterator) Value() ConsumerInvitation {
+ if !iter.page.NotDone() {
+ return ConsumerInvitation{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the ConsumerInvitationListIterator type.
+func NewConsumerInvitationListIterator(page ConsumerInvitationListPage) ConsumerInvitationListIterator {
+ return ConsumerInvitationListIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (cil ConsumerInvitationList) IsEmpty() bool {
+ return cil.Value == nil || len(*cil.Value) == 0
+}
+
+// consumerInvitationListPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (cil ConsumerInvitationList) consumerInvitationListPreparer(ctx context.Context) (*http.Request, error) {
+ if cil.NextLink == nil || len(to.String(cil.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(cil.NextLink)))
+}
+
+// ConsumerInvitationListPage contains a page of ConsumerInvitation values.
+type ConsumerInvitationListPage struct {
+ fn func(context.Context, ConsumerInvitationList) (ConsumerInvitationList, error)
+ cil ConsumerInvitationList
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *ConsumerInvitationListPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConsumerInvitationListPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.cil)
+ if err != nil {
+ return err
+ }
+ page.cil = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *ConsumerInvitationListPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page ConsumerInvitationListPage) NotDone() bool {
+ return !page.cil.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page ConsumerInvitationListPage) Response() ConsumerInvitationList {
+ return page.cil
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page ConsumerInvitationListPage) Values() []ConsumerInvitation {
+ if page.cil.IsEmpty() {
+ return nil
+ }
+ return *page.cil.Value
+}
+
+// Creates a new instance of the ConsumerInvitationListPage type.
+func NewConsumerInvitationListPage(getNextPage func(context.Context, ConsumerInvitationList) (ConsumerInvitationList, error)) ConsumerInvitationListPage {
+ return ConsumerInvitationListPage{fn: getNextPage}
+}
+
+// ConsumerInvitationProperties properties of consumer invitation
+type ConsumerInvitationProperties struct {
+ // DataSetCount - READ-ONLY; Number of data sets in a share
+ DataSetCount *int32 `json:"dataSetCount,omitempty"`
+ // Description - READ-ONLY; Description shared when the invitation was created
+ Description *string `json:"description,omitempty"`
+ // InvitationID - Unique id of the invitation.
+ InvitationID *string `json:"invitationId,omitempty"`
+ // InvitationStatus - READ-ONLY; The status of the invitation. Possible values include: 'Pending', 'Accepted', 'Rejected', 'Withdrawn'
+ InvitationStatus InvitationStatus `json:"invitationStatus,omitempty"`
+ // Location - READ-ONLY; invitation location
+ Location *string `json:"location,omitempty"`
+ // ProviderEmail - READ-ONLY; Email of the provider who created the resource
+ ProviderEmail *string `json:"providerEmail,omitempty"`
+ // ProviderName - READ-ONLY; Name of the provider who created the resource
+ ProviderName *string `json:"providerName,omitempty"`
+ // ProviderTenantName - READ-ONLY; Tenant name of the provider who created the resource
+ ProviderTenantName *string `json:"providerTenantName,omitempty"`
+ // RespondedAt - READ-ONLY; The time the recipient responded to the invitation.
+ RespondedAt *date.Time `json:"respondedAt,omitempty"`
+ // SentAt - READ-ONLY; Gets the time at which the invitation was sent.
+ SentAt *date.Time `json:"sentAt,omitempty"`
+ // ShareName - READ-ONLY; Gets the source share Name.
+ ShareName *string `json:"shareName,omitempty"`
+ // TermsOfUse - READ-ONLY; Terms of use shared when the invitation was created
+ TermsOfUse *string `json:"termsOfUse,omitempty"`
+ // UserEmail - READ-ONLY; Email of the user who created the resource
+ UserEmail *string `json:"userEmail,omitempty"`
+ // UserName - READ-ONLY; Name of the user who created the resource
+ UserName *string `json:"userName,omitempty"`
+}
+
+// ConsumerSourceDataSet a consumer side dataSet data transfer object.
+type ConsumerSourceDataSet struct {
+ // ConsumerSourceDataSetProperties - source dataSet properties
+ *ConsumerSourceDataSetProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ConsumerSourceDataSet.
+func (csds ConsumerSourceDataSet) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if csds.ConsumerSourceDataSetProperties != nil {
+ objectMap["properties"] = csds.ConsumerSourceDataSetProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ConsumerSourceDataSet struct.
+func (csds *ConsumerSourceDataSet) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var consumerSourceDataSetProperties ConsumerSourceDataSetProperties
+ err = json.Unmarshal(*v, &consumerSourceDataSetProperties)
+ if err != nil {
+ return err
+ }
+ csds.ConsumerSourceDataSetProperties = &consumerSourceDataSetProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ csds.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ csds.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ csds.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ConsumerSourceDataSetList a consumer side list of source dataSets
+type ConsumerSourceDataSetList struct {
+ autorest.Response `json:"-"`
+ // NextLink - The Url of next result page.
+ NextLink *string `json:"nextLink,omitempty"`
+ // Value - Collection of items of type DataTransferObjects.
+ Value *[]ConsumerSourceDataSet `json:"value,omitempty"`
+}
+
+// ConsumerSourceDataSetListIterator provides access to a complete listing of ConsumerSourceDataSet values.
+type ConsumerSourceDataSetListIterator struct {
+ i int
+ page ConsumerSourceDataSetListPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *ConsumerSourceDataSetListIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConsumerSourceDataSetListIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *ConsumerSourceDataSetListIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter ConsumerSourceDataSetListIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter ConsumerSourceDataSetListIterator) Response() ConsumerSourceDataSetList {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter ConsumerSourceDataSetListIterator) Value() ConsumerSourceDataSet {
+ if !iter.page.NotDone() {
+ return ConsumerSourceDataSet{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the ConsumerSourceDataSetListIterator type.
+func NewConsumerSourceDataSetListIterator(page ConsumerSourceDataSetListPage) ConsumerSourceDataSetListIterator {
+ return ConsumerSourceDataSetListIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (csdsl ConsumerSourceDataSetList) IsEmpty() bool {
+ return csdsl.Value == nil || len(*csdsl.Value) == 0
+}
+
+// consumerSourceDataSetListPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (csdsl ConsumerSourceDataSetList) consumerSourceDataSetListPreparer(ctx context.Context) (*http.Request, error) {
+ if csdsl.NextLink == nil || len(to.String(csdsl.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(csdsl.NextLink)))
+}
+
+// ConsumerSourceDataSetListPage contains a page of ConsumerSourceDataSet values.
+type ConsumerSourceDataSetListPage struct {
+ fn func(context.Context, ConsumerSourceDataSetList) (ConsumerSourceDataSetList, error)
+ csdsl ConsumerSourceDataSetList
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *ConsumerSourceDataSetListPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ConsumerSourceDataSetListPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.csdsl)
+ if err != nil {
+ return err
+ }
+ page.csdsl = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *ConsumerSourceDataSetListPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page ConsumerSourceDataSetListPage) NotDone() bool {
+ return !page.csdsl.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page ConsumerSourceDataSetListPage) Response() ConsumerSourceDataSetList {
+ return page.csdsl
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page ConsumerSourceDataSetListPage) Values() []ConsumerSourceDataSet {
+ if page.csdsl.IsEmpty() {
+ return nil
+ }
+ return *page.csdsl.Value
+}
+
+// Creates a new instance of the ConsumerSourceDataSetListPage type.
+func NewConsumerSourceDataSetListPage(getNextPage func(context.Context, ConsumerSourceDataSetList) (ConsumerSourceDataSetList, error)) ConsumerSourceDataSetListPage {
+ return ConsumerSourceDataSetListPage{fn: getNextPage}
+}
+
+// ConsumerSourceDataSetProperties properties of consumer source dataSet
+type ConsumerSourceDataSetProperties struct {
+ // DataSetID - READ-ONLY; DataSet Id
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // DataSetLocation - READ-ONLY; Location of the data set.
+ DataSetLocation *string `json:"dataSetLocation,omitempty"`
+ // DataSetName - READ-ONLY; DataSet name
+ DataSetName *string `json:"dataSetName,omitempty"`
+ // DataSetPath - READ-ONLY; DataSet path
+ DataSetPath *string `json:"dataSetPath,omitempty"`
+ // DataSetType - READ-ONLY; Type of data set. Possible values include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SQLDBTable', 'SQLDWTable'
+ DataSetType DataSetType `json:"dataSetType,omitempty"`
+}
+
+// BasicDataSet a DataSet data transfer object.
+type BasicDataSet interface {
+ AsBlobDataSet() (*BlobDataSet, bool)
+ AsBlobFolderDataSet() (*BlobFolderDataSet, bool)
+ AsBlobContainerDataSet() (*BlobContainerDataSet, bool)
+ AsADLSGen2FileDataSet() (*ADLSGen2FileDataSet, bool)
+ AsADLSGen2FolderDataSet() (*ADLSGen2FolderDataSet, bool)
+ AsADLSGen2FileSystemDataSet() (*ADLSGen2FileSystemDataSet, bool)
+ AsADLSGen1FolderDataSet() (*ADLSGen1FolderDataSet, bool)
+ AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool)
+ AsKustoClusterDataSet() (*KustoClusterDataSet, bool)
+ AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool)
+ AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool)
+ AsSQLDBTableDataSet() (*SQLDBTableDataSet, bool)
+ AsDataSet() (*DataSet, bool)
+}
+
+// DataSet a DataSet data transfer object.
+type DataSet struct {
+ autorest.Response `json:"-"`
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
+ Kind Kind `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+func unmarshalBasicDataSet(body []byte) (BasicDataSet, error) {
+ var m map[string]interface{}
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return nil, err
+ }
+
+ switch m["kind"] {
+ case string(KindBlob):
+ var bds BlobDataSet
+ err := json.Unmarshal(body, &bds)
+ return bds, err
+ case string(KindBlobFolder):
+ var bfds BlobFolderDataSet
+ err := json.Unmarshal(body, &bfds)
+ return bfds, err
+ case string(KindContainer):
+ var bcds BlobContainerDataSet
+ err := json.Unmarshal(body, &bcds)
+ return bcds, err
+ case string(KindAdlsGen2File):
+ var ag2fds ADLSGen2FileDataSet
+ err := json.Unmarshal(body, &ag2fds)
+ return ag2fds, err
+ case string(KindAdlsGen2Folder):
+ var ag2fds ADLSGen2FolderDataSet
+ err := json.Unmarshal(body, &ag2fds)
+ return ag2fds, err
+ case string(KindAdlsGen2FileSystem):
+ var ag2fsds ADLSGen2FileSystemDataSet
+ err := json.Unmarshal(body, &ag2fsds)
+ return ag2fsds, err
+ case string(KindAdlsGen1Folder):
+ var ag1fds ADLSGen1FolderDataSet
+ err := json.Unmarshal(body, &ag1fds)
+ return ag1fds, err
+ case string(KindAdlsGen1File):
+ var ag1fds ADLSGen1FileDataSet
+ err := json.Unmarshal(body, &ag1fds)
+ return ag1fds, err
+ case string(KindKustoCluster):
+ var kcds KustoClusterDataSet
+ err := json.Unmarshal(body, &kcds)
+ return kcds, err
+ case string(KindKustoDatabase):
+ var kdds KustoDatabaseDataSet
+ err := json.Unmarshal(body, &kdds)
+ return kdds, err
+ case string(KindSQLDWTable):
+ var sdtds SQLDWTableDataSet
+ err := json.Unmarshal(body, &sdtds)
+ return sdtds, err
+ case string(KindSQLDBTable):
+ var sdtds SQLDBTableDataSet
+ err := json.Unmarshal(body, &sdtds)
+ return sdtds, err
+ default:
+ var ds DataSet
+ err := json.Unmarshal(body, &ds)
+ return ds, err
+ }
+}
+func unmarshalBasicDataSetArray(body []byte) ([]BasicDataSet, error) {
+ var rawMessages []*json.RawMessage
+ err := json.Unmarshal(body, &rawMessages)
+ if err != nil {
+ return nil, err
+ }
+
+ dsArray := make([]BasicDataSet, len(rawMessages))
+
+ for index, rawMessage := range rawMessages {
+ ds, err := unmarshalBasicDataSet(*rawMessage)
+ if err != nil {
+ return nil, err
+ }
+ dsArray[index] = ds
+ }
+ return dsArray, nil
+}
+
+// MarshalJSON is the custom marshaler for DataSet.
+func (ds DataSet) MarshalJSON() ([]byte, error) {
+ ds.Kind = KindDataSet
+ objectMap := make(map[string]interface{})
+ if ds.Kind != "" {
+ objectMap["kind"] = ds.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSet is the BasicDataSet implementation for DataSet.
+func (ds DataSet) AsBlobDataSet() (*BlobDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSet is the BasicDataSet implementation for DataSet.
+func (ds DataSet) AsBlobFolderDataSet() (*BlobFolderDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSet is the BasicDataSet implementation for DataSet.
+func (ds DataSet) AsBlobContainerDataSet() (*BlobContainerDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSet is the BasicDataSet implementation for DataSet.
+func (ds DataSet) AsADLSGen2FileDataSet() (*ADLSGen2FileDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSet is the BasicDataSet implementation for DataSet.
+func (ds DataSet) AsADLSGen2FolderDataSet() (*ADLSGen2FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSet is the BasicDataSet implementation for DataSet.
+func (ds DataSet) AsADLSGen2FileSystemDataSet() (*ADLSGen2FileSystemDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FolderDataSet is the BasicDataSet implementation for DataSet.
+func (ds DataSet) AsADLSGen1FolderDataSet() (*ADLSGen1FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FileDataSet is the BasicDataSet implementation for DataSet.
+func (ds DataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSet is the BasicDataSet implementation for DataSet.
+func (ds DataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for DataSet.
+func (ds DataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSet is the BasicDataSet implementation for DataSet.
+func (ds DataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSet is the BasicDataSet implementation for DataSet.
+func (ds DataSet) AsSQLDBTableDataSet() (*SQLDBTableDataSet, bool) {
+ return nil, false
+}
+
+// AsDataSet is the BasicDataSet implementation for DataSet.
+func (ds DataSet) AsDataSet() (*DataSet, bool) {
+ return &ds, true
+}
+
+// AsBasicDataSet is the BasicDataSet implementation for DataSet.
+func (ds DataSet) AsBasicDataSet() (BasicDataSet, bool) {
+ return &ds, true
+}
+
+// DataSetList list response for get DataSets
+type DataSetList struct {
+ autorest.Response `json:"-"`
+ // NextLink - The Url of next result page.
+ NextLink *string `json:"nextLink,omitempty"`
+ // Value - Collection of items of type DataTransferObjects.
+ Value *[]BasicDataSet `json:"value,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for DataSetList struct.
+func (dsl *DataSetList) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "nextLink":
+ if v != nil {
+ var nextLink string
+ err = json.Unmarshal(*v, &nextLink)
+ if err != nil {
+ return err
+ }
+ dsl.NextLink = &nextLink
+ }
+ case "value":
+ if v != nil {
+ value, err := unmarshalBasicDataSetArray(*v)
+ if err != nil {
+ return err
+ }
+ dsl.Value = &value
+ }
+ }
+ }
+
+ return nil
+}
+
+// DataSetListIterator provides access to a complete listing of DataSet values.
+type DataSetListIterator struct {
+ i int
+ page DataSetListPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *DataSetListIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DataSetListIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *DataSetListIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter DataSetListIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter DataSetListIterator) Response() DataSetList {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter DataSetListIterator) Value() BasicDataSet {
+ if !iter.page.NotDone() {
+ return DataSet{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the DataSetListIterator type.
+func NewDataSetListIterator(page DataSetListPage) DataSetListIterator {
+ return DataSetListIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (dsl DataSetList) IsEmpty() bool {
+ return dsl.Value == nil || len(*dsl.Value) == 0
+}
+
+// dataSetListPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (dsl DataSetList) dataSetListPreparer(ctx context.Context) (*http.Request, error) {
+ if dsl.NextLink == nil || len(to.String(dsl.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(dsl.NextLink)))
+}
+
+// DataSetListPage contains a page of BasicDataSet values.
+type DataSetListPage struct {
+ fn func(context.Context, DataSetList) (DataSetList, error)
+ dsl DataSetList
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *DataSetListPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DataSetListPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.dsl)
+ if err != nil {
+ return err
+ }
+ page.dsl = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *DataSetListPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page DataSetListPage) NotDone() bool {
+ return !page.dsl.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page DataSetListPage) Response() DataSetList {
+ return page.dsl
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page DataSetListPage) Values() []BasicDataSet {
+ if page.dsl.IsEmpty() {
+ return nil
+ }
+ return *page.dsl.Value
+}
+
+// Creates a new instance of the DataSetListPage type.
+func NewDataSetListPage(getNextPage func(context.Context, DataSetList) (DataSetList, error)) DataSetListPage {
+ return DataSetListPage{fn: getNextPage}
+}
+
+// BasicDataSetMapping a data set mapping data transfer object.
+type BasicDataSetMapping interface {
+ AsBlobDataSetMapping() (*BlobDataSetMapping, bool)
+ AsBlobFolderDataSetMapping() (*BlobFolderDataSetMapping, bool)
+ AsBlobContainerDataSetMapping() (*BlobContainerDataSetMapping, bool)
+ AsADLSGen2FileDataSetMapping() (*ADLSGen2FileDataSetMapping, bool)
+ AsADLSGen2FolderDataSetMapping() (*ADLSGen2FolderDataSetMapping, bool)
+ AsADLSGen2FileSystemDataSetMapping() (*ADLSGen2FileSystemDataSetMapping, bool)
+ AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool)
+ AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool)
+ AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool)
+ AsSQLDBTableDataSetMapping() (*SQLDBTableDataSetMapping, bool)
+ AsDataSetMapping() (*DataSetMapping, bool)
+}
+
+// DataSetMapping a data set mapping data transfer object.
+type DataSetMapping struct {
+ autorest.Response `json:"-"`
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ Kind KindBasicDataSetMapping `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+func unmarshalBasicDataSetMapping(body []byte) (BasicDataSetMapping, error) {
+ var m map[string]interface{}
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return nil, err
+ }
+
+ switch m["kind"] {
+ case string(KindBasicDataSetMappingKindBlob):
+ var bdsm BlobDataSetMapping
+ err := json.Unmarshal(body, &bdsm)
+ return bdsm, err
+ case string(KindBasicDataSetMappingKindBlobFolder):
+ var bfdsm BlobFolderDataSetMapping
+ err := json.Unmarshal(body, &bfdsm)
+ return bfdsm, err
+ case string(KindBasicDataSetMappingKindContainer):
+ var bcdsm BlobContainerDataSetMapping
+ err := json.Unmarshal(body, &bcdsm)
+ return bcdsm, err
+ case string(KindBasicDataSetMappingKindAdlsGen2File):
+ var ag2fdsm ADLSGen2FileDataSetMapping
+ err := json.Unmarshal(body, &ag2fdsm)
+ return ag2fdsm, err
+ case string(KindBasicDataSetMappingKindAdlsGen2Folder):
+ var ag2fdsm ADLSGen2FolderDataSetMapping
+ err := json.Unmarshal(body, &ag2fdsm)
+ return ag2fdsm, err
+ case string(KindBasicDataSetMappingKindAdlsGen2FileSystem):
+ var ag2fsdsm ADLSGen2FileSystemDataSetMapping
+ err := json.Unmarshal(body, &ag2fsdsm)
+ return ag2fsdsm, err
+ case string(KindBasicDataSetMappingKindKustoCluster):
+ var kcdsm KustoClusterDataSetMapping
+ err := json.Unmarshal(body, &kcdsm)
+ return kcdsm, err
+ case string(KindBasicDataSetMappingKindKustoDatabase):
+ var kddsm KustoDatabaseDataSetMapping
+ err := json.Unmarshal(body, &kddsm)
+ return kddsm, err
+ case string(KindBasicDataSetMappingKindSQLDWTable):
+ var sdtdsm SQLDWTableDataSetMapping
+ err := json.Unmarshal(body, &sdtdsm)
+ return sdtdsm, err
+ case string(KindBasicDataSetMappingKindSQLDBTable):
+ var sdtdsm SQLDBTableDataSetMapping
+ err := json.Unmarshal(body, &sdtdsm)
+ return sdtdsm, err
+ default:
+ var dsm DataSetMapping
+ err := json.Unmarshal(body, &dsm)
+ return dsm, err
+ }
+}
+func unmarshalBasicDataSetMappingArray(body []byte) ([]BasicDataSetMapping, error) {
+ var rawMessages []*json.RawMessage
+ err := json.Unmarshal(body, &rawMessages)
+ if err != nil {
+ return nil, err
+ }
+
+ dsmArray := make([]BasicDataSetMapping, len(rawMessages))
+
+ for index, rawMessage := range rawMessages {
+ dsm, err := unmarshalBasicDataSetMapping(*rawMessage)
+ if err != nil {
+ return nil, err
+ }
+ dsmArray[index] = dsm
+ }
+ return dsmArray, nil
+}
+
+// MarshalJSON is the custom marshaler for DataSetMapping.
+func (dsm DataSetMapping) MarshalJSON() ([]byte, error) {
+ dsm.Kind = KindBasicDataSetMappingKindDataSetMapping
+ objectMap := make(map[string]interface{})
+ if dsm.Kind != "" {
+ objectMap["kind"] = dsm.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSetMapping is the BasicDataSetMapping implementation for DataSetMapping.
+func (dsm DataSetMapping) AsBlobDataSetMapping() (*BlobDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSetMapping is the BasicDataSetMapping implementation for DataSetMapping.
+func (dsm DataSetMapping) AsBlobFolderDataSetMapping() (*BlobFolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSetMapping is the BasicDataSetMapping implementation for DataSetMapping.
+func (dsm DataSetMapping) AsBlobContainerDataSetMapping() (*BlobContainerDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSetMapping is the BasicDataSetMapping implementation for DataSetMapping.
+func (dsm DataSetMapping) AsADLSGen2FileDataSetMapping() (*ADLSGen2FileDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSetMapping is the BasicDataSetMapping implementation for DataSetMapping.
+func (dsm DataSetMapping) AsADLSGen2FolderDataSetMapping() (*ADLSGen2FolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSetMapping is the BasicDataSetMapping implementation for DataSetMapping.
+func (dsm DataSetMapping) AsADLSGen2FileSystemDataSetMapping() (*ADLSGen2FileSystemDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for DataSetMapping.
+func (dsm DataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for DataSetMapping.
+func (dsm DataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for DataSetMapping.
+func (dsm DataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSetMapping is the BasicDataSetMapping implementation for DataSetMapping.
+func (dsm DataSetMapping) AsSQLDBTableDataSetMapping() (*SQLDBTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsDataSetMapping is the BasicDataSetMapping implementation for DataSetMapping.
+func (dsm DataSetMapping) AsDataSetMapping() (*DataSetMapping, bool) {
+ return &dsm, true
+}
+
+// AsBasicDataSetMapping is the BasicDataSetMapping implementation for DataSetMapping.
+func (dsm DataSetMapping) AsBasicDataSetMapping() (BasicDataSetMapping, bool) {
+ return &dsm, true
+}
+
+// DataSetMappingList list response for get DataSetMappings
+type DataSetMappingList struct {
+ autorest.Response `json:"-"`
+ // NextLink - The Url of next result page.
+ NextLink *string `json:"nextLink,omitempty"`
+ // Value - Collection of items of type DataTransferObjects.
+ Value *[]BasicDataSetMapping `json:"value,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for DataSetMappingList struct.
+func (dsml *DataSetMappingList) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "nextLink":
+ if v != nil {
+ var nextLink string
+ err = json.Unmarshal(*v, &nextLink)
+ if err != nil {
+ return err
+ }
+ dsml.NextLink = &nextLink
+ }
+ case "value":
+ if v != nil {
+ value, err := unmarshalBasicDataSetMappingArray(*v)
+ if err != nil {
+ return err
+ }
+ dsml.Value = &value
+ }
+ }
+ }
+
+ return nil
+}
+
+// DataSetMappingListIterator provides access to a complete listing of DataSetMapping values.
+type DataSetMappingListIterator struct {
+ i int
+ page DataSetMappingListPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *DataSetMappingListIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DataSetMappingListIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *DataSetMappingListIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter DataSetMappingListIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter DataSetMappingListIterator) Response() DataSetMappingList {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter DataSetMappingListIterator) Value() BasicDataSetMapping {
+ if !iter.page.NotDone() {
+ return DataSetMapping{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the DataSetMappingListIterator type.
+func NewDataSetMappingListIterator(page DataSetMappingListPage) DataSetMappingListIterator {
+ return DataSetMappingListIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (dsml DataSetMappingList) IsEmpty() bool {
+ return dsml.Value == nil || len(*dsml.Value) == 0
+}
+
+// dataSetMappingListPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (dsml DataSetMappingList) dataSetMappingListPreparer(ctx context.Context) (*http.Request, error) {
+ if dsml.NextLink == nil || len(to.String(dsml.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(dsml.NextLink)))
+}
+
+// DataSetMappingListPage contains a page of BasicDataSetMapping values.
+type DataSetMappingListPage struct {
+ fn func(context.Context, DataSetMappingList) (DataSetMappingList, error)
+ dsml DataSetMappingList
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *DataSetMappingListPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DataSetMappingListPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.dsml)
+ if err != nil {
+ return err
+ }
+ page.dsml = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *DataSetMappingListPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page DataSetMappingListPage) NotDone() bool {
+ return !page.dsml.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page DataSetMappingListPage) Response() DataSetMappingList {
+ return page.dsml
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page DataSetMappingListPage) Values() []BasicDataSetMapping {
+ if page.dsml.IsEmpty() {
+ return nil
+ }
+ return *page.dsml.Value
+}
+
+// Creates a new instance of the DataSetMappingListPage type.
+func NewDataSetMappingListPage(getNextPage func(context.Context, DataSetMappingList) (DataSetMappingList, error)) DataSetMappingListPage {
+ return DataSetMappingListPage{fn: getNextPage}
+}
+
+// DataSetMappingModel ...
+type DataSetMappingModel struct {
+ autorest.Response `json:"-"`
+ Value BasicDataSetMapping `json:"value,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for DataSetMappingModel struct.
+func (dsmm *DataSetMappingModel) UnmarshalJSON(body []byte) error {
+ dsm, err := unmarshalBasicDataSetMapping(body)
+ if err != nil {
+ return err
+ }
+ dsmm.Value = dsm
+
+ return nil
+}
+
+// DataSetModel ...
+type DataSetModel struct {
+ autorest.Response `json:"-"`
+ Value BasicDataSet `json:"value,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for DataSetModel struct.
+func (dsm *DataSetModel) UnmarshalJSON(body []byte) error {
+ ds, err := unmarshalBasicDataSet(body)
+ if err != nil {
+ return err
+ }
+ dsm.Value = ds
+
+ return nil
+}
+
+// DataSetsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type DataSetsDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *DataSetsDeleteFuture) Result(client DataSetsClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetsDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("datashare.DataSetsDeleteFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// DefaultDto base data transfer object implementation for default resources.
+type DefaultDto struct {
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Location - Location of the azure resource.
+ Location *string `json:"location,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Tags - Tags on the azure resource.
+ Tags map[string]*string `json:"tags"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for DefaultDto.
+func (dd DefaultDto) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if dd.Location != nil {
+ objectMap["location"] = dd.Location
+ }
+ if dd.Tags != nil {
+ objectMap["tags"] = dd.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// DimensionProperties properties for dimension
+type DimensionProperties struct {
+ // DisplayName - localized display name of the dimension to customer
+ DisplayName *string `json:"displayName,omitempty"`
+ // Name - dimension name
+ Name *string `json:"name,omitempty"`
+}
+
+// Error the data share error model.
+type Error struct {
+ // Error - The data share error body
+ Error *ErrorInfo `json:"error,omitempty"`
+}
+
+// ErrorInfo the data share error body model.
+type ErrorInfo struct {
+ // Code - Code of the error
+ Code *string `json:"code,omitempty"`
+ // Details - Nested details of the error model
+ Details *[]ErrorInfo `json:"details,omitempty"`
+ // Message - Message of the error
+ Message *string `json:"message,omitempty"`
+ // Target - Target of the error
+ Target *string `json:"target,omitempty"`
+}
+
+// Identity identity of resource
+type Identity struct {
+ // PrincipalID - READ-ONLY; service principal Id
+ PrincipalID *string `json:"principalId,omitempty"`
+ // TenantID - READ-ONLY; Tenant Id
+ TenantID *string `json:"tenantId,omitempty"`
+ // Type - Identity Type. Possible values include: 'SystemAssigned'
+ Type Type `json:"type,omitempty"`
+}
+
+// Invitation a Invitation data transfer object.
+type Invitation struct {
+ autorest.Response `json:"-"`
+ // InvitationProperties - Properties on the Invitation
+ *InvitationProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for Invitation.
+func (i Invitation) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if i.InvitationProperties != nil {
+ objectMap["properties"] = i.InvitationProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for Invitation struct.
+func (i *Invitation) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var invitationProperties InvitationProperties
+ err = json.Unmarshal(*v, &invitationProperties)
+ if err != nil {
+ return err
+ }
+ i.InvitationProperties = &invitationProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ i.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ i.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ i.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// InvitationList list response for get InvitationList
+type InvitationList struct {
+ autorest.Response `json:"-"`
+ // NextLink - The Url of next result page.
+ NextLink *string `json:"nextLink,omitempty"`
+ // Value - Collection of items of type DataTransferObjects.
+ Value *[]Invitation `json:"value,omitempty"`
+}
+
+// InvitationListIterator provides access to a complete listing of Invitation values.
+type InvitationListIterator struct {
+ i int
+ page InvitationListPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *InvitationListIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InvitationListIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *InvitationListIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter InvitationListIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter InvitationListIterator) Response() InvitationList {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter InvitationListIterator) Value() Invitation {
+ if !iter.page.NotDone() {
+ return Invitation{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the InvitationListIterator type.
+func NewInvitationListIterator(page InvitationListPage) InvitationListIterator {
+ return InvitationListIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (il InvitationList) IsEmpty() bool {
+ return il.Value == nil || len(*il.Value) == 0
+}
+
+// invitationListPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (il InvitationList) invitationListPreparer(ctx context.Context) (*http.Request, error) {
+ if il.NextLink == nil || len(to.String(il.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(il.NextLink)))
+}
+
+// InvitationListPage contains a page of Invitation values.
+type InvitationListPage struct {
+ fn func(context.Context, InvitationList) (InvitationList, error)
+ il InvitationList
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *InvitationListPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/InvitationListPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.il)
+ if err != nil {
+ return err
+ }
+ page.il = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *InvitationListPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page InvitationListPage) NotDone() bool {
+ return !page.il.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page InvitationListPage) Response() InvitationList {
+ return page.il
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page InvitationListPage) Values() []Invitation {
+ if page.il.IsEmpty() {
+ return nil
+ }
+ return *page.il.Value
+}
+
+// Creates a new instance of the InvitationListPage type.
+func NewInvitationListPage(getNextPage func(context.Context, InvitationList) (InvitationList, error)) InvitationListPage {
+ return InvitationListPage{fn: getNextPage}
+}
+
+// InvitationProperties invitation property bag.
+type InvitationProperties struct {
+ // InvitationID - READ-ONLY; unique invitation id
+ InvitationID *string `json:"invitationId,omitempty"`
+ // InvitationStatus - READ-ONLY; The status of the invitation. Possible values include: 'Pending', 'Accepted', 'Rejected', 'Withdrawn'
+ InvitationStatus InvitationStatus `json:"invitationStatus,omitempty"`
+ // RespondedAt - READ-ONLY; The time the recipient responded to the invitation.
+ RespondedAt *date.Time `json:"respondedAt,omitempty"`
+ // SentAt - READ-ONLY; Gets the time at which the invitation was sent.
+ SentAt *date.Time `json:"sentAt,omitempty"`
+ // TargetActiveDirectoryID - The target Azure AD Id. Can't be combined with email.
+ TargetActiveDirectoryID *string `json:"targetActiveDirectoryId,omitempty"`
+ // TargetEmail - The email the invitation is directed to.
+ TargetEmail *string `json:"targetEmail,omitempty"`
+ // TargetObjectID - The target user or application Id that invitation is being sent to.
+ // Must be specified along TargetActiveDirectoryId. This enables sending
+ // invitations to specific users or applications in an AD tenant.
+ TargetObjectID *string `json:"targetObjectId,omitempty"`
+ // UserEmail - READ-ONLY; Email of the user who created the resource
+ UserEmail *string `json:"userEmail,omitempty"`
+ // UserName - READ-ONLY; Name of the user who created the resource
+ UserName *string `json:"userName,omitempty"`
+}
+
+// KustoClusterDataSet a kusto cluster data set.
+type KustoClusterDataSet struct {
+ // KustoClusterDataSetProperties - Kusto cluster data set properties.
+ *KustoClusterDataSetProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
+ Kind Kind `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) MarshalJSON() ([]byte, error) {
+ kcds.Kind = KindKustoCluster
+ objectMap := make(map[string]interface{})
+ if kcds.KustoClusterDataSetProperties != nil {
+ objectMap["properties"] = kcds.KustoClusterDataSetProperties
+ }
+ if kcds.Kind != "" {
+ objectMap["kind"] = kcds.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsBlobDataSet() (*BlobDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsBlobFolderDataSet() (*BlobFolderDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsBlobContainerDataSet() (*BlobContainerDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsADLSGen2FileDataSet() (*ADLSGen2FileDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsADLSGen2FolderDataSet() (*ADLSGen2FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsADLSGen2FileSystemDataSet() (*ADLSGen2FileSystemDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FolderDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsADLSGen1FolderDataSet() (*ADLSGen1FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FileDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return &kcds, true
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsSQLDBTableDataSet() (*SQLDBTableDataSet, bool) {
+ return nil, false
+}
+
+// AsDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsDataSet() (*DataSet, bool) {
+ return nil, false
+}
+
+// AsBasicDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsBasicDataSet() (BasicDataSet, bool) {
+ return &kcds, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for KustoClusterDataSet struct.
+func (kcds *KustoClusterDataSet) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var kustoClusterDataSetProperties KustoClusterDataSetProperties
+ err = json.Unmarshal(*v, &kustoClusterDataSetProperties)
+ if err != nil {
+ return err
+ }
+ kcds.KustoClusterDataSetProperties = &kustoClusterDataSetProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind Kind
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ kcds.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ kcds.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ kcds.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ kcds.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// KustoClusterDataSetMapping a Kusto cluster data set mapping
+type KustoClusterDataSetMapping struct {
+ // KustoClusterDataSetMappingProperties - Kusto cluster data set mapping properties.
+ *KustoClusterDataSetMappingProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ Kind KindBasicDataSetMapping `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) MarshalJSON() ([]byte, error) {
+ kcdsm.Kind = KindBasicDataSetMappingKindKustoCluster
+ objectMap := make(map[string]interface{})
+ if kcdsm.KustoClusterDataSetMappingProperties != nil {
+ objectMap["properties"] = kcdsm.KustoClusterDataSetMappingProperties
+ }
+ if kcdsm.Kind != "" {
+ objectMap["kind"] = kcdsm.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsBlobDataSetMapping() (*BlobDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsBlobFolderDataSetMapping() (*BlobFolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsBlobContainerDataSetMapping() (*BlobContainerDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsADLSGen2FileDataSetMapping() (*ADLSGen2FileDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsADLSGen2FolderDataSetMapping() (*ADLSGen2FolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsADLSGen2FileSystemDataSetMapping() (*ADLSGen2FileSystemDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return &kcdsm, true
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsSQLDBTableDataSetMapping() (*SQLDBTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsDataSetMapping() (*DataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBasicDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsBasicDataSetMapping() (BasicDataSetMapping, bool) {
+ return &kcdsm, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for KustoClusterDataSetMapping struct.
+func (kcdsm *KustoClusterDataSetMapping) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var kustoClusterDataSetMappingProperties KustoClusterDataSetMappingProperties
+ err = json.Unmarshal(*v, &kustoClusterDataSetMappingProperties)
+ if err != nil {
+ return err
+ }
+ kcdsm.KustoClusterDataSetMappingProperties = &kustoClusterDataSetMappingProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind KindBasicDataSetMapping
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ kcdsm.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ kcdsm.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ kcdsm.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ kcdsm.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// KustoClusterDataSetMappingProperties properties of the Kusto cluster data set mapping
+type KustoClusterDataSetMappingProperties struct {
+ // DataSetID - The id of the source data set.
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
+ DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
+ // KustoClusterResourceID - Resource id of the sink kusto cluster.
+ KustoClusterResourceID *string `json:"kustoClusterResourceId,omitempty"`
+ // Location - READ-ONLY; Location of the sink kusto cluster.
+ Location *string `json:"location,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+}
+
+// KustoClusterDataSetProperties properties of the kusto cluster data set.
+type KustoClusterDataSetProperties struct {
+ // DataSetID - READ-ONLY; Unique id for identifying a data set resource
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // KustoClusterResourceID - Resource id of the kusto cluster.
+ KustoClusterResourceID *string `json:"kustoClusterResourceId,omitempty"`
+ // Location - READ-ONLY; Location of the kusto cluster.
+ Location *string `json:"location,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the kusto cluster data set. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+}
+
+// KustoDatabaseDataSet a kusto database data set.
+type KustoDatabaseDataSet struct {
+ // KustoDatabaseDataSetProperties - Kusto database data set properties.
+ *KustoDatabaseDataSetProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
+ Kind Kind `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) MarshalJSON() ([]byte, error) {
+ kdds.Kind = KindKustoDatabase
+ objectMap := make(map[string]interface{})
+ if kdds.KustoDatabaseDataSetProperties != nil {
+ objectMap["properties"] = kdds.KustoDatabaseDataSetProperties
+ }
+ if kdds.Kind != "" {
+ objectMap["kind"] = kdds.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsBlobDataSet() (*BlobDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsBlobFolderDataSet() (*BlobFolderDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsBlobContainerDataSet() (*BlobContainerDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsADLSGen2FileDataSet() (*ADLSGen2FileDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsADLSGen2FolderDataSet() (*ADLSGen2FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsADLSGen2FileSystemDataSet() (*ADLSGen2FileSystemDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FolderDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsADLSGen1FolderDataSet() (*ADLSGen1FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FileDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return &kdds, true
+}
+
+// AsSQLDWTableDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsSQLDBTableDataSet() (*SQLDBTableDataSet, bool) {
+ return nil, false
+}
+
+// AsDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsDataSet() (*DataSet, bool) {
+ return nil, false
+}
+
+// AsBasicDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsBasicDataSet() (BasicDataSet, bool) {
+ return &kdds, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for KustoDatabaseDataSet struct.
+func (kdds *KustoDatabaseDataSet) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var kustoDatabaseDataSetProperties KustoDatabaseDataSetProperties
+ err = json.Unmarshal(*v, &kustoDatabaseDataSetProperties)
+ if err != nil {
+ return err
+ }
+ kdds.KustoDatabaseDataSetProperties = &kustoDatabaseDataSetProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind Kind
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ kdds.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ kdds.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ kdds.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ kdds.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// KustoDatabaseDataSetMapping a Kusto database data set mapping
+type KustoDatabaseDataSetMapping struct {
+ // KustoDatabaseDataSetMappingProperties - Kusto database data set mapping properties.
+ *KustoDatabaseDataSetMappingProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ Kind KindBasicDataSetMapping `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) MarshalJSON() ([]byte, error) {
+ kddsm.Kind = KindBasicDataSetMappingKindKustoDatabase
+ objectMap := make(map[string]interface{})
+ if kddsm.KustoDatabaseDataSetMappingProperties != nil {
+ objectMap["properties"] = kddsm.KustoDatabaseDataSetMappingProperties
+ }
+ if kddsm.Kind != "" {
+ objectMap["kind"] = kddsm.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsBlobDataSetMapping() (*BlobDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsBlobFolderDataSetMapping() (*BlobFolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsBlobContainerDataSetMapping() (*BlobContainerDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsADLSGen2FileDataSetMapping() (*ADLSGen2FileDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsADLSGen2FolderDataSetMapping() (*ADLSGen2FolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsADLSGen2FileSystemDataSetMapping() (*ADLSGen2FileSystemDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return &kddsm, true
+}
+
+// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsSQLDBTableDataSetMapping() (*SQLDBTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsDataSetMapping() (*DataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBasicDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsBasicDataSetMapping() (BasicDataSetMapping, bool) {
+ return &kddsm, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for KustoDatabaseDataSetMapping struct.
+func (kddsm *KustoDatabaseDataSetMapping) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var kustoDatabaseDataSetMappingProperties KustoDatabaseDataSetMappingProperties
+ err = json.Unmarshal(*v, &kustoDatabaseDataSetMappingProperties)
+ if err != nil {
+ return err
+ }
+ kddsm.KustoDatabaseDataSetMappingProperties = &kustoDatabaseDataSetMappingProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind KindBasicDataSetMapping
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ kddsm.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ kddsm.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ kddsm.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ kddsm.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// KustoDatabaseDataSetMappingProperties properties of the Kusto database data set mapping
+type KustoDatabaseDataSetMappingProperties struct {
+ // DataSetID - The id of the source data set.
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
+ DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
+ // KustoClusterResourceID - Resource id of the sink kusto cluster.
+ KustoClusterResourceID *string `json:"kustoClusterResourceId,omitempty"`
+ // Location - READ-ONLY; Location of the sink kusto cluster.
+ Location *string `json:"location,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+}
+
+// KustoDatabaseDataSetProperties properties of the kusto database data set.
+type KustoDatabaseDataSetProperties struct {
+ // DataSetID - READ-ONLY; Unique id for identifying a data set resource
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // KustoDatabaseResourceID - Resource id of the kusto database.
+ KustoDatabaseResourceID *string `json:"kustoDatabaseResourceId,omitempty"`
+ // Location - READ-ONLY; Location of the kusto cluster.
+ Location *string `json:"location,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the kusto database data set. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+}
+
+// OperationList list response for get operations.
+type OperationList struct {
+ autorest.Response `json:"-"`
+ // NextLink - The Url of next result page.
+ NextLink *string `json:"nextLink,omitempty"`
+ // Value - Collection of items of type DataTransferObjects.
+ Value *[]OperationModel `json:"value,omitempty"`
+}
+
+// OperationListIterator provides access to a complete listing of OperationModel values.
+type OperationListIterator struct {
+ i int
+ page OperationListPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *OperationListIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationListIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *OperationListIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter OperationListIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter OperationListIterator) Response() OperationList {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter OperationListIterator) Value() OperationModel {
+ if !iter.page.NotDone() {
+ return OperationModel{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the OperationListIterator type.
+func NewOperationListIterator(page OperationListPage) OperationListIterator {
+ return OperationListIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (ol OperationList) IsEmpty() bool {
+ return ol.Value == nil || len(*ol.Value) == 0
+}
+
+// operationListPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (ol OperationList) operationListPreparer(ctx context.Context) (*http.Request, error) {
+ if ol.NextLink == nil || len(to.String(ol.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(ol.NextLink)))
+}
+
+// OperationListPage contains a page of OperationModel values.
+type OperationListPage struct {
+ fn func(context.Context, OperationList) (OperationList, error)
+ ol OperationList
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *OperationListPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationListPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.ol)
+ if err != nil {
+ return err
+ }
+ page.ol = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *OperationListPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page OperationListPage) NotDone() bool {
+ return !page.ol.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page OperationListPage) Response() OperationList {
+ return page.ol
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page OperationListPage) Values() []OperationModel {
+ if page.ol.IsEmpty() {
+ return nil
+ }
+ return *page.ol.Value
+}
+
+// Creates a new instance of the OperationListPage type.
+func NewOperationListPage(getNextPage func(context.Context, OperationList) (OperationList, error)) OperationListPage {
+ return OperationListPage{fn: getNextPage}
+}
+
+// OperationMetaLogSpecification log specifications for operation api
+type OperationMetaLogSpecification struct {
+ // BlobDuration - blob duration of the log
+ BlobDuration *string `json:"blobDuration,omitempty"`
+ // DisplayName - localized name of the log category
+ DisplayName *string `json:"displayName,omitempty"`
+ // Name - name of the log category
+ Name *string `json:"name,omitempty"`
+}
+
+// OperationMetaMetricSpecification metric specifications for the operation
+type OperationMetaMetricSpecification struct {
+ // AggregationType - aggregation type of metric
+ AggregationType *string `json:"aggregationType,omitempty"`
+ // Dimensions - properties for dimension
+ Dimensions *[]DimensionProperties `json:"dimensions,omitempty"`
+ // DisplayDescription - description of the metric
+ DisplayDescription *string `json:"displayDescription,omitempty"`
+ // DisplayName - localized name of the metric
+ DisplayName *string `json:"displayName,omitempty"`
+ // EnableRegionalMdmAccount - enable regional mdm account
+ EnableRegionalMdmAccount *string `json:"enableRegionalMdmAccount,omitempty"`
+ // InternalMetricName - internal metric name
+ InternalMetricName *string `json:"internalMetricName,omitempty"`
+ // Name - name of the metric
+ Name *string `json:"name,omitempty"`
+ // ResourceIDDimensionNameOverride - dimension name use to replace resource id if specified
+ ResourceIDDimensionNameOverride *string `json:"resourceIdDimensionNameOverride,omitempty"`
+ // SupportedAggregationTypes - supported aggregation types
+ SupportedAggregationTypes *[]string `json:"supportedAggregationTypes,omitempty"`
+ // SupportedTimeGrainTypes - supported time grain types
+ SupportedTimeGrainTypes *[]string `json:"supportedTimeGrainTypes,omitempty"`
+ // Unit - units for the metric
+ Unit *string `json:"unit,omitempty"`
+}
+
+// OperationMetaPropertyInfo properties on meta info
+type OperationMetaPropertyInfo struct {
+ // ServiceSpecification - meta service specification
+ ServiceSpecification *OperationMetaServiceSpecification `json:"serviceSpecification,omitempty"`
+}
+
+// OperationMetaServiceSpecification the operation meta service specification
+type OperationMetaServiceSpecification struct {
+ // LogSpecifications - log specifications for the operation
+ LogSpecifications *[]OperationMetaLogSpecification `json:"logSpecifications,omitempty"`
+ // MetricSpecifications - metric specifications for the operation
+ MetricSpecifications *[]OperationMetaMetricSpecification `json:"metricSpecifications,omitempty"`
+}
+
+// OperationModel the response model for get operations
+type OperationModel struct {
+ // Display - Properties on the operation
+ Display *OperationModelProperties `json:"display,omitempty"`
+ // Name - Operation name for display purposes
+ Name *string `json:"name,omitempty"`
+ // Origin - origin of the operation
+ Origin *string `json:"origin,omitempty"`
+ // OperationMetaPropertyInfo - properties for the operation meta info
+ *OperationMetaPropertyInfo `json:"properties,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for OperationModel.
+func (om OperationModel) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if om.Display != nil {
+ objectMap["display"] = om.Display
+ }
+ if om.Name != nil {
+ objectMap["name"] = om.Name
+ }
+ if om.Origin != nil {
+ objectMap["origin"] = om.Origin
+ }
+ if om.OperationMetaPropertyInfo != nil {
+ objectMap["properties"] = om.OperationMetaPropertyInfo
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for OperationModel struct.
+func (om *OperationModel) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "display":
+ if v != nil {
+ var display OperationModelProperties
+ err = json.Unmarshal(*v, &display)
+ if err != nil {
+ return err
+ }
+ om.Display = &display
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ om.Name = &name
+ }
+ case "origin":
+ if v != nil {
+ var origin string
+ err = json.Unmarshal(*v, &origin)
+ if err != nil {
+ return err
+ }
+ om.Origin = &origin
+ }
+ case "properties":
+ if v != nil {
+ var operationMetaPropertyInfo OperationMetaPropertyInfo
+ err = json.Unmarshal(*v, &operationMetaPropertyInfo)
+ if err != nil {
+ return err
+ }
+ om.OperationMetaPropertyInfo = &operationMetaPropertyInfo
+ }
+ }
+ }
+
+ return nil
+}
+
+// OperationModelProperties properties on operations
+type OperationModelProperties struct {
+ // Description - Description of the operation for display purposes
+ Description *string `json:"description,omitempty"`
+ // Operation - Name of the operation for display purposes
+ Operation *string `json:"operation,omitempty"`
+ // Provider - Name of the provider for display purposes
+ Provider *string `json:"provider,omitempty"`
+ // Resource - Name of the resource type for display purposes
+ Resource *string `json:"resource,omitempty"`
+}
+
+// OperationResponse response for long running operation
+type OperationResponse struct {
+ autorest.Response `json:"-"`
+ // EndTime - start time
+ EndTime *date.Time `json:"endTime,omitempty"`
+ // Error - The error property when status is failed.
+ Error *ErrorInfo `json:"error,omitempty"`
+ // StartTime - start time
+ StartTime *date.Time `json:"startTime,omitempty"`
+ // Status - Operation state of the long running operation. Possible values include: 'StatusAccepted', 'StatusInProgress', 'StatusTransientFailure', 'StatusSucceeded', 'StatusFailed', 'StatusCanceled'
+ Status Status `json:"status,omitempty"`
+}
+
+// ProviderShareSubscription a provider side share subscription data transfer object.
+type ProviderShareSubscription struct {
+ autorest.Response `json:"-"`
+ // ProviderShareSubscriptionProperties - properties of providerShareSubscription
+ *ProviderShareSubscriptionProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ProviderShareSubscription.
+func (pss ProviderShareSubscription) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if pss.ProviderShareSubscriptionProperties != nil {
+ objectMap["properties"] = pss.ProviderShareSubscriptionProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ProviderShareSubscription struct.
+func (pss *ProviderShareSubscription) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var providerShareSubscriptionProperties ProviderShareSubscriptionProperties
+ err = json.Unmarshal(*v, &providerShareSubscriptionProperties)
+ if err != nil {
+ return err
+ }
+ pss.ProviderShareSubscriptionProperties = &providerShareSubscriptionProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ pss.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ pss.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ pss.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ProviderShareSubscriptionList list response for get ShareSubscription.
+type ProviderShareSubscriptionList struct {
+ autorest.Response `json:"-"`
+ // NextLink - The Url of next result page.
+ NextLink *string `json:"nextLink,omitempty"`
+ // Value - Collection of items of type DataTransferObjects.
+ Value *[]ProviderShareSubscription `json:"value,omitempty"`
+}
+
+// ProviderShareSubscriptionListIterator provides access to a complete listing of ProviderShareSubscription
+// values.
+type ProviderShareSubscriptionListIterator struct {
+ i int
+ page ProviderShareSubscriptionListPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *ProviderShareSubscriptionListIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ProviderShareSubscriptionListIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *ProviderShareSubscriptionListIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter ProviderShareSubscriptionListIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter ProviderShareSubscriptionListIterator) Response() ProviderShareSubscriptionList {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter ProviderShareSubscriptionListIterator) Value() ProviderShareSubscription {
+ if !iter.page.NotDone() {
+ return ProviderShareSubscription{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the ProviderShareSubscriptionListIterator type.
+func NewProviderShareSubscriptionListIterator(page ProviderShareSubscriptionListPage) ProviderShareSubscriptionListIterator {
+ return ProviderShareSubscriptionListIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (pssl ProviderShareSubscriptionList) IsEmpty() bool {
+ return pssl.Value == nil || len(*pssl.Value) == 0
+}
+
+// providerShareSubscriptionListPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (pssl ProviderShareSubscriptionList) providerShareSubscriptionListPreparer(ctx context.Context) (*http.Request, error) {
+ if pssl.NextLink == nil || len(to.String(pssl.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(pssl.NextLink)))
+}
+
+// ProviderShareSubscriptionListPage contains a page of ProviderShareSubscription values.
+type ProviderShareSubscriptionListPage struct {
+ fn func(context.Context, ProviderShareSubscriptionList) (ProviderShareSubscriptionList, error)
+ pssl ProviderShareSubscriptionList
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *ProviderShareSubscriptionListPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ProviderShareSubscriptionListPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.pssl)
+ if err != nil {
+ return err
+ }
+ page.pssl = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *ProviderShareSubscriptionListPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page ProviderShareSubscriptionListPage) NotDone() bool {
+ return !page.pssl.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page ProviderShareSubscriptionListPage) Response() ProviderShareSubscriptionList {
+ return page.pssl
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page ProviderShareSubscriptionListPage) Values() []ProviderShareSubscription {
+ if page.pssl.IsEmpty() {
+ return nil
+ }
+ return *page.pssl.Value
+}
+
+// Creates a new instance of the ProviderShareSubscriptionListPage type.
+func NewProviderShareSubscriptionListPage(getNextPage func(context.Context, ProviderShareSubscriptionList) (ProviderShareSubscriptionList, error)) ProviderShareSubscriptionListPage {
+ return ProviderShareSubscriptionListPage{fn: getNextPage}
+}
+
+// ProviderShareSubscriptionProperties provider share subscription properties
+type ProviderShareSubscriptionProperties struct {
+ // ConsumerEmail - READ-ONLY; Email of the consumer who created the share subscription
+ ConsumerEmail *string `json:"consumerEmail,omitempty"`
+ // ConsumerName - READ-ONLY; Name of the consumer who created the share subscription
+ ConsumerName *string `json:"consumerName,omitempty"`
+ // ConsumerTenantName - READ-ONLY; Tenant name of the consumer who created the share subscription
+ ConsumerTenantName *string `json:"consumerTenantName,omitempty"`
+ // CreatedAt - READ-ONLY; created at
+ CreatedAt *date.Time `json:"createdAt,omitempty"`
+ // ProviderName - READ-ONLY; Name of the provider who created the share
+ ProviderName *string `json:"providerName,omitempty"`
+ // SharedAt - READ-ONLY; Shared at
+ SharedAt *date.Time `json:"sharedAt,omitempty"`
+ // ShareSubscriptionObjectID - READ-ONLY; share Subscription Object Id
+ ShareSubscriptionObjectID *string `json:"shareSubscriptionObjectId,omitempty"`
+ // ShareSubscriptionStatus - READ-ONLY; Gets the status of share subscription. Possible values include: 'Active', 'Revoked', 'SourceDeleted', 'Revoking'
+ ShareSubscriptionStatus ShareSubscriptionStatus `json:"shareSubscriptionStatus,omitempty"`
+}
+
+// ProviderShareSubscriptionsRevokeFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ProviderShareSubscriptionsRevokeFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ProviderShareSubscriptionsRevokeFuture) Result(client ProviderShareSubscriptionsClient) (pss ProviderShareSubscription, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsRevokeFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("datashare.ProviderShareSubscriptionsRevokeFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if pss.Response.Response, err = future.GetResult(sender); err == nil && pss.Response.Response.StatusCode != http.StatusNoContent {
+ pss, err = client.RevokeResponder(pss.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsRevokeFuture", "Result", pss.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// ProxyDto base data transfer object implementation for proxy resources.
+type ProxyDto struct {
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// ScheduledSourceShareSynchronizationSettingProperties a Scheduled source synchronization setting data
+// transfer object.
+type ScheduledSourceShareSynchronizationSettingProperties struct {
+ // RecurrenceInterval - Recurrence Interval. Possible values include: 'Hour', 'Day'
+ RecurrenceInterval RecurrenceInterval `json:"recurrenceInterval,omitempty"`
+ // SynchronizationTime - Synchronization time
+ SynchronizationTime *date.Time `json:"synchronizationTime,omitempty"`
+}
+
+// ScheduledSourceSynchronizationSetting a type of synchronization setting based on schedule
+type ScheduledSourceSynchronizationSetting struct {
+ // ScheduledSourceShareSynchronizationSettingProperties - Properties of scheduled synchronization
+ *ScheduledSourceShareSynchronizationSettingProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindSourceShareSynchronizationSetting', 'KindScheduleBased'
+ Kind KindBasicSourceShareSynchronizationSetting `json:"kind,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ScheduledSourceSynchronizationSetting.
+func (ssss ScheduledSourceSynchronizationSetting) MarshalJSON() ([]byte, error) {
+ ssss.Kind = KindScheduleBased
+ objectMap := make(map[string]interface{})
+ if ssss.ScheduledSourceShareSynchronizationSettingProperties != nil {
+ objectMap["properties"] = ssss.ScheduledSourceShareSynchronizationSettingProperties
+ }
+ if ssss.Kind != "" {
+ objectMap["kind"] = ssss.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsScheduledSourceSynchronizationSetting is the BasicSourceShareSynchronizationSetting implementation for ScheduledSourceSynchronizationSetting.
+func (ssss ScheduledSourceSynchronizationSetting) AsScheduledSourceSynchronizationSetting() (*ScheduledSourceSynchronizationSetting, bool) {
+ return &ssss, true
+}
+
+// AsSourceShareSynchronizationSetting is the BasicSourceShareSynchronizationSetting implementation for ScheduledSourceSynchronizationSetting.
+func (ssss ScheduledSourceSynchronizationSetting) AsSourceShareSynchronizationSetting() (*SourceShareSynchronizationSetting, bool) {
+ return nil, false
+}
+
+// AsBasicSourceShareSynchronizationSetting is the BasicSourceShareSynchronizationSetting implementation for ScheduledSourceSynchronizationSetting.
+func (ssss ScheduledSourceSynchronizationSetting) AsBasicSourceShareSynchronizationSetting() (BasicSourceShareSynchronizationSetting, bool) {
+ return &ssss, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for ScheduledSourceSynchronizationSetting struct.
+func (ssss *ScheduledSourceSynchronizationSetting) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var scheduledSourceShareSynchronizationSettingProperties ScheduledSourceShareSynchronizationSettingProperties
+ err = json.Unmarshal(*v, &scheduledSourceShareSynchronizationSettingProperties)
+ if err != nil {
+ return err
+ }
+ ssss.ScheduledSourceShareSynchronizationSettingProperties = &scheduledSourceShareSynchronizationSettingProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind KindBasicSourceShareSynchronizationSetting
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ ssss.Kind = kind
+ }
+ }
+ }
+
+ return nil
+}
+
+// ScheduledSynchronizationSetting a type of synchronization setting based on schedule
+type ScheduledSynchronizationSetting struct {
+ // ScheduledSynchronizationSettingProperties - Properties of scheduled synchronization
+ *ScheduledSynchronizationSettingProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+ // Kind - Possible values include: 'KindBasicSynchronizationSettingKindSynchronizationSetting', 'KindBasicSynchronizationSettingKindScheduleBased'
+ Kind KindBasicSynchronizationSetting `json:"kind,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ScheduledSynchronizationSetting.
+func (sss ScheduledSynchronizationSetting) MarshalJSON() ([]byte, error) {
+ sss.Kind = KindBasicSynchronizationSettingKindScheduleBased
+ objectMap := make(map[string]interface{})
+ if sss.ScheduledSynchronizationSettingProperties != nil {
+ objectMap["properties"] = sss.ScheduledSynchronizationSettingProperties
+ }
+ if sss.Kind != "" {
+ objectMap["kind"] = sss.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsScheduledSynchronizationSetting is the BasicSynchronizationSetting implementation for ScheduledSynchronizationSetting.
+func (sss ScheduledSynchronizationSetting) AsScheduledSynchronizationSetting() (*ScheduledSynchronizationSetting, bool) {
+ return &sss, true
+}
+
+// AsSynchronizationSetting is the BasicSynchronizationSetting implementation for ScheduledSynchronizationSetting.
+func (sss ScheduledSynchronizationSetting) AsSynchronizationSetting() (*SynchronizationSetting, bool) {
+ return nil, false
+}
+
+// AsBasicSynchronizationSetting is the BasicSynchronizationSetting implementation for ScheduledSynchronizationSetting.
+func (sss ScheduledSynchronizationSetting) AsBasicSynchronizationSetting() (BasicSynchronizationSetting, bool) {
+ return &sss, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for ScheduledSynchronizationSetting struct.
+func (sss *ScheduledSynchronizationSetting) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var scheduledSynchronizationSettingProperties ScheduledSynchronizationSettingProperties
+ err = json.Unmarshal(*v, &scheduledSynchronizationSettingProperties)
+ if err != nil {
+ return err
+ }
+ sss.ScheduledSynchronizationSettingProperties = &scheduledSynchronizationSettingProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind KindBasicSynchronizationSetting
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ sss.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ sss.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ sss.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ sss.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ScheduledSynchronizationSettingProperties a Scheduled synchronization setting data transfer object.
+type ScheduledSynchronizationSettingProperties struct {
+ // CreatedAt - READ-ONLY; Time at which the synchronization setting was created.
+ CreatedAt *date.Time `json:"createdAt,omitempty"`
+ // ProvisioningState - READ-ONLY; Gets or sets the provisioning state. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+ // RecurrenceInterval - Recurrence Interval. Possible values include: 'Hour', 'Day'
+ RecurrenceInterval RecurrenceInterval `json:"recurrenceInterval,omitempty"`
+ // SynchronizationTime - Synchronization time
+ SynchronizationTime *date.Time `json:"synchronizationTime,omitempty"`
+ // UserName - READ-ONLY; Name of the user who created the synchronization setting.
+ UserName *string `json:"userName,omitempty"`
+}
+
+// ScheduledTrigger a type of trigger based on schedule
+type ScheduledTrigger struct {
+ // ScheduledTriggerProperties - Properties of scheduled synchronization
+ *ScheduledTriggerProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+ // Kind - Possible values include: 'KindBasicTriggerKindTrigger', 'KindBasicTriggerKindScheduleBased'
+ Kind KindBasicTrigger `json:"kind,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ScheduledTrigger.
+func (st ScheduledTrigger) MarshalJSON() ([]byte, error) {
+ st.Kind = KindBasicTriggerKindScheduleBased
+ objectMap := make(map[string]interface{})
+ if st.ScheduledTriggerProperties != nil {
+ objectMap["properties"] = st.ScheduledTriggerProperties
+ }
+ if st.Kind != "" {
+ objectMap["kind"] = st.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsScheduledTrigger is the BasicTrigger implementation for ScheduledTrigger.
+func (st ScheduledTrigger) AsScheduledTrigger() (*ScheduledTrigger, bool) {
+ return &st, true
+}
+
+// AsTrigger is the BasicTrigger implementation for ScheduledTrigger.
+func (st ScheduledTrigger) AsTrigger() (*Trigger, bool) {
+ return nil, false
+}
+
+// AsBasicTrigger is the BasicTrigger implementation for ScheduledTrigger.
+func (st ScheduledTrigger) AsBasicTrigger() (BasicTrigger, bool) {
+ return &st, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for ScheduledTrigger struct.
+func (st *ScheduledTrigger) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var scheduledTriggerProperties ScheduledTriggerProperties
+ err = json.Unmarshal(*v, &scheduledTriggerProperties)
+ if err != nil {
+ return err
+ }
+ st.ScheduledTriggerProperties = &scheduledTriggerProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind KindBasicTrigger
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ st.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ st.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ st.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ st.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ScheduledTriggerProperties a Scheduled trigger data transfer object.
+type ScheduledTriggerProperties struct {
+ // CreatedAt - READ-ONLY; Time at which the trigger was created.
+ CreatedAt *date.Time `json:"createdAt,omitempty"`
+ // ProvisioningState - READ-ONLY; Gets the provisioning state. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+ // RecurrenceInterval - Recurrence Interval. Possible values include: 'Hour', 'Day'
+ RecurrenceInterval RecurrenceInterval `json:"recurrenceInterval,omitempty"`
+ // SynchronizationMode - Synchronization mode. Possible values include: 'Incremental', 'FullSync'
+ SynchronizationMode SynchronizationMode `json:"synchronizationMode,omitempty"`
+ // SynchronizationTime - Synchronization time
+ SynchronizationTime *date.Time `json:"synchronizationTime,omitempty"`
+ // TriggerStatus - READ-ONLY; Gets the trigger state. Possible values include: 'TriggerStatusActive', 'TriggerStatusInactive', 'TriggerStatusSourceSynchronizationSettingDeleted'
+ TriggerStatus TriggerStatus `json:"triggerStatus,omitempty"`
+ // UserName - READ-ONLY; Name of the user who created the trigger.
+ UserName *string `json:"userName,omitempty"`
+}
+
+// Share a share data transfer object.
+type Share struct {
+ autorest.Response `json:"-"`
+ // ShareProperties - Properties on the share
+ *ShareProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for Share.
+func (s Share) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if s.ShareProperties != nil {
+ objectMap["properties"] = s.ShareProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for Share struct.
+func (s *Share) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var shareProperties ShareProperties
+ err = json.Unmarshal(*v, &shareProperties)
+ if err != nil {
+ return err
+ }
+ s.ShareProperties = &shareProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ s.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ s.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ s.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ShareList list response for get Shares.
+type ShareList struct {
+ autorest.Response `json:"-"`
+ // NextLink - The Url of next result page.
+ NextLink *string `json:"nextLink,omitempty"`
+ // Value - Collection of items of type DataTransferObjects.
+ Value *[]Share `json:"value,omitempty"`
+}
+
+// ShareListIterator provides access to a complete listing of Share values.
+type ShareListIterator struct {
+ i int
+ page ShareListPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *ShareListIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareListIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *ShareListIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter ShareListIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter ShareListIterator) Response() ShareList {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter ShareListIterator) Value() Share {
+ if !iter.page.NotDone() {
+ return Share{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the ShareListIterator type.
+func NewShareListIterator(page ShareListPage) ShareListIterator {
+ return ShareListIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (sl ShareList) IsEmpty() bool {
+ return sl.Value == nil || len(*sl.Value) == 0
+}
+
+// shareListPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (sl ShareList) shareListPreparer(ctx context.Context) (*http.Request, error) {
+ if sl.NextLink == nil || len(to.String(sl.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(sl.NextLink)))
+}
+
+// ShareListPage contains a page of Share values.
+type ShareListPage struct {
+ fn func(context.Context, ShareList) (ShareList, error)
+ sl ShareList
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *ShareListPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareListPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.sl)
+ if err != nil {
+ return err
+ }
+ page.sl = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *ShareListPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page ShareListPage) NotDone() bool {
+ return !page.sl.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page ShareListPage) Response() ShareList {
+ return page.sl
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page ShareListPage) Values() []Share {
+ if page.sl.IsEmpty() {
+ return nil
+ }
+ return *page.sl.Value
+}
+
+// Creates a new instance of the ShareListPage type.
+func NewShareListPage(getNextPage func(context.Context, ShareList) (ShareList, error)) ShareListPage {
+ return ShareListPage{fn: getNextPage}
+}
+
+// ShareProperties share property bag.
+type ShareProperties struct {
+ // CreatedAt - READ-ONLY; Time at which the share was created.
+ CreatedAt *date.Time `json:"createdAt,omitempty"`
+ // Description - Share description.
+ Description *string `json:"description,omitempty"`
+ // ProvisioningState - READ-ONLY; Gets or sets the provisioning state. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+ // ShareKind - Share kind. Possible values include: 'CopyBased', 'InPlace'
+ ShareKind ShareKind `json:"shareKind,omitempty"`
+ // Terms - Share terms.
+ Terms *string `json:"terms,omitempty"`
+ // UserEmail - READ-ONLY; Email of the user who created the resource
+ UserEmail *string `json:"userEmail,omitempty"`
+ // UserName - READ-ONLY; Name of the user who created the resource
+ UserName *string `json:"userName,omitempty"`
+}
+
+// SharesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
+type SharesDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *SharesDeleteFuture) Result(client SharesClient) (or OperationResponse, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SharesDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("datashare.SharesDeleteFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if or.Response.Response, err = future.GetResult(sender); err == nil && or.Response.Response.StatusCode != http.StatusNoContent {
+ or, err = client.DeleteResponder(or.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SharesDeleteFuture", "Result", or.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// ShareSubscription a share subscription data transfer object.
+type ShareSubscription struct {
+ autorest.Response `json:"-"`
+ // ShareSubscriptionProperties - Properties on the share subscription
+ *ShareSubscriptionProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ShareSubscription.
+func (ss ShareSubscription) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if ss.ShareSubscriptionProperties != nil {
+ objectMap["properties"] = ss.ShareSubscriptionProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ShareSubscription struct.
+func (ss *ShareSubscription) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var shareSubscriptionProperties ShareSubscriptionProperties
+ err = json.Unmarshal(*v, &shareSubscriptionProperties)
+ if err != nil {
+ return err
+ }
+ ss.ShareSubscriptionProperties = &shareSubscriptionProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ ss.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ss.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ ss.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ShareSubscriptionList list response for get ShareSubscription.
+type ShareSubscriptionList struct {
+ autorest.Response `json:"-"`
+ // NextLink - The Url of next result page.
+ NextLink *string `json:"nextLink,omitempty"`
+ // Value - Collection of items of type DataTransferObjects.
+ Value *[]ShareSubscription `json:"value,omitempty"`
+}
+
+// ShareSubscriptionListIterator provides access to a complete listing of ShareSubscription values.
+type ShareSubscriptionListIterator struct {
+ i int
+ page ShareSubscriptionListPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *ShareSubscriptionListIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareSubscriptionListIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *ShareSubscriptionListIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter ShareSubscriptionListIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter ShareSubscriptionListIterator) Response() ShareSubscriptionList {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter ShareSubscriptionListIterator) Value() ShareSubscription {
+ if !iter.page.NotDone() {
+ return ShareSubscription{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the ShareSubscriptionListIterator type.
+func NewShareSubscriptionListIterator(page ShareSubscriptionListPage) ShareSubscriptionListIterator {
+ return ShareSubscriptionListIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (ssl ShareSubscriptionList) IsEmpty() bool {
+ return ssl.Value == nil || len(*ssl.Value) == 0
+}
+
+// shareSubscriptionListPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (ssl ShareSubscriptionList) shareSubscriptionListPreparer(ctx context.Context) (*http.Request, error) {
+ if ssl.NextLink == nil || len(to.String(ssl.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(ssl.NextLink)))
+}
+
+// ShareSubscriptionListPage contains a page of ShareSubscription values.
+type ShareSubscriptionListPage struct {
+ fn func(context.Context, ShareSubscriptionList) (ShareSubscriptionList, error)
+ ssl ShareSubscriptionList
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *ShareSubscriptionListPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareSubscriptionListPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.ssl)
+ if err != nil {
+ return err
+ }
+ page.ssl = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *ShareSubscriptionListPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page ShareSubscriptionListPage) NotDone() bool {
+ return !page.ssl.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page ShareSubscriptionListPage) Response() ShareSubscriptionList {
+ return page.ssl
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page ShareSubscriptionListPage) Values() []ShareSubscription {
+ if page.ssl.IsEmpty() {
+ return nil
+ }
+ return *page.ssl.Value
+}
+
+// Creates a new instance of the ShareSubscriptionListPage type.
+func NewShareSubscriptionListPage(getNextPage func(context.Context, ShareSubscriptionList) (ShareSubscriptionList, error)) ShareSubscriptionListPage {
+ return ShareSubscriptionListPage{fn: getNextPage}
+}
+
+// ShareSubscriptionProperties share subscription property bag.
+type ShareSubscriptionProperties struct {
+ // CreatedAt - READ-ONLY; Time at which the share subscription was created.
+ CreatedAt *date.Time `json:"createdAt,omitempty"`
+ // InvitationID - The invitation id.
+ InvitationID *string `json:"invitationId,omitempty"`
+ // ProviderEmail - READ-ONLY; Email of the provider who created the resource
+ ProviderEmail *string `json:"providerEmail,omitempty"`
+ // ProviderName - READ-ONLY; Name of the provider who created the resource
+ ProviderName *string `json:"providerName,omitempty"`
+ // ProviderTenantName - READ-ONLY; Tenant name of the provider who created the resource
+ ProviderTenantName *string `json:"providerTenantName,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the share subscription. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+ // ShareDescription - READ-ONLY; Description of share
+ ShareDescription *string `json:"shareDescription,omitempty"`
+ // ShareKind - READ-ONLY; Kind of share. Possible values include: 'CopyBased', 'InPlace'
+ ShareKind ShareKind `json:"shareKind,omitempty"`
+ // ShareName - READ-ONLY; Name of the share
+ ShareName *string `json:"shareName,omitempty"`
+ // ShareSubscriptionStatus - READ-ONLY; Gets the current status of share subscription. Possible values include: 'Active', 'Revoked', 'SourceDeleted', 'Revoking'
+ ShareSubscriptionStatus ShareSubscriptionStatus `json:"shareSubscriptionStatus,omitempty"`
+ // ShareTerms - READ-ONLY; Terms of a share
+ ShareTerms *string `json:"shareTerms,omitempty"`
+ // SourceShareLocation - Source share location.
+ SourceShareLocation *string `json:"sourceShareLocation,omitempty"`
+ // UserEmail - READ-ONLY; Email of the user who created the resource
+ UserEmail *string `json:"userEmail,omitempty"`
+ // UserName - READ-ONLY; Name of the user who created the resource
+ UserName *string `json:"userName,omitempty"`
+}
+
+// ShareSubscriptionsCancelSynchronizationFuture an abstraction for monitoring and retrieving the results
+// of a long-running operation.
+type ShareSubscriptionsCancelSynchronizationFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ShareSubscriptionsCancelSynchronizationFuture) Result(client ShareSubscriptionsClient) (sss ShareSubscriptionSynchronization, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsCancelSynchronizationFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("datashare.ShareSubscriptionsCancelSynchronizationFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if sss.Response.Response, err = future.GetResult(sender); err == nil && sss.Response.Response.StatusCode != http.StatusNoContent {
+ sss, err = client.CancelSynchronizationResponder(sss.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsCancelSynchronizationFuture", "Result", sss.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// ShareSubscriptionsDeleteFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ShareSubscriptionsDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ShareSubscriptionsDeleteFuture) Result(client ShareSubscriptionsClient) (or OperationResponse, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("datashare.ShareSubscriptionsDeleteFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if or.Response.Response, err = future.GetResult(sender); err == nil && or.Response.Response.StatusCode != http.StatusNoContent {
+ or, err = client.DeleteResponder(or.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsDeleteFuture", "Result", or.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// ShareSubscriptionsSynchronizeMethodFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ShareSubscriptionsSynchronizeMethodFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ShareSubscriptionsSynchronizeMethodFuture) Result(client ShareSubscriptionsClient) (sss ShareSubscriptionSynchronization, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsSynchronizeMethodFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("datashare.ShareSubscriptionsSynchronizeMethodFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if sss.Response.Response, err = future.GetResult(sender); err == nil && sss.Response.Response.StatusCode != http.StatusNoContent {
+ sss, err = client.SynchronizeMethodResponder(sss.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsSynchronizeMethodFuture", "Result", sss.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// ShareSubscriptionSynchronization a ShareSubscriptionSynchronization data transfer object.
+type ShareSubscriptionSynchronization struct {
+ autorest.Response `json:"-"`
+ // DurationMs - READ-ONLY; Synchronization duration
+ DurationMs *int32 `json:"durationMs,omitempty"`
+ // EndTime - READ-ONLY; End time of synchronization
+ EndTime *date.Time `json:"endTime,omitempty"`
+ // Message - READ-ONLY; message of Synchronization
+ Message *string `json:"message,omitempty"`
+ // StartTime - READ-ONLY; start time of synchronization
+ StartTime *date.Time `json:"startTime,omitempty"`
+ // Status - READ-ONLY; Raw Status
+ Status *string `json:"status,omitempty"`
+ // SynchronizationID - Synchronization id
+ SynchronizationID *string `json:"synchronizationId,omitempty"`
+ // SynchronizationMode - READ-ONLY; Synchronization Mode. Possible values include: 'Incremental', 'FullSync'
+ SynchronizationMode SynchronizationMode `json:"synchronizationMode,omitempty"`
+}
+
+// ShareSubscriptionSynchronizationList a consumer side list of share subscription synchronizations
+type ShareSubscriptionSynchronizationList struct {
+ autorest.Response `json:"-"`
+ // NextLink - The Url of next result page.
+ NextLink *string `json:"nextLink,omitempty"`
+ // Value - Collection of items of type DataTransferObjects.
+ Value *[]ShareSubscriptionSynchronization `json:"value,omitempty"`
+}
+
+// ShareSubscriptionSynchronizationListIterator provides access to a complete listing of
+// ShareSubscriptionSynchronization values.
+type ShareSubscriptionSynchronizationListIterator struct {
+ i int
+ page ShareSubscriptionSynchronizationListPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *ShareSubscriptionSynchronizationListIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareSubscriptionSynchronizationListIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *ShareSubscriptionSynchronizationListIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter ShareSubscriptionSynchronizationListIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter ShareSubscriptionSynchronizationListIterator) Response() ShareSubscriptionSynchronizationList {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter ShareSubscriptionSynchronizationListIterator) Value() ShareSubscriptionSynchronization {
+ if !iter.page.NotDone() {
+ return ShareSubscriptionSynchronization{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the ShareSubscriptionSynchronizationListIterator type.
+func NewShareSubscriptionSynchronizationListIterator(page ShareSubscriptionSynchronizationListPage) ShareSubscriptionSynchronizationListIterator {
+ return ShareSubscriptionSynchronizationListIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (sssl ShareSubscriptionSynchronizationList) IsEmpty() bool {
+ return sssl.Value == nil || len(*sssl.Value) == 0
+}
+
+// shareSubscriptionSynchronizationListPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (sssl ShareSubscriptionSynchronizationList) shareSubscriptionSynchronizationListPreparer(ctx context.Context) (*http.Request, error) {
+ if sssl.NextLink == nil || len(to.String(sssl.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(sssl.NextLink)))
+}
+
+// ShareSubscriptionSynchronizationListPage contains a page of ShareSubscriptionSynchronization values.
+type ShareSubscriptionSynchronizationListPage struct {
+ fn func(context.Context, ShareSubscriptionSynchronizationList) (ShareSubscriptionSynchronizationList, error)
+ sssl ShareSubscriptionSynchronizationList
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *ShareSubscriptionSynchronizationListPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareSubscriptionSynchronizationListPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.sssl)
+ if err != nil {
+ return err
+ }
+ page.sssl = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *ShareSubscriptionSynchronizationListPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page ShareSubscriptionSynchronizationListPage) NotDone() bool {
+ return !page.sssl.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page ShareSubscriptionSynchronizationListPage) Response() ShareSubscriptionSynchronizationList {
+ return page.sssl
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page ShareSubscriptionSynchronizationListPage) Values() []ShareSubscriptionSynchronization {
+ if page.sssl.IsEmpty() {
+ return nil
+ }
+ return *page.sssl.Value
+}
+
+// Creates a new instance of the ShareSubscriptionSynchronizationListPage type.
+func NewShareSubscriptionSynchronizationListPage(getNextPage func(context.Context, ShareSubscriptionSynchronizationList) (ShareSubscriptionSynchronizationList, error)) ShareSubscriptionSynchronizationListPage {
+ return ShareSubscriptionSynchronizationListPage{fn: getNextPage}
+}
+
+// ShareSynchronization a ShareSynchronization data transfer object.
+type ShareSynchronization struct {
+ // ConsumerEmail - Email of the user who created the synchronization
+ ConsumerEmail *string `json:"consumerEmail,omitempty"`
+ // ConsumerName - Name of the user who created the synchronization
+ ConsumerName *string `json:"consumerName,omitempty"`
+ // ConsumerTenantName - Tenant name of the consumer who created the synchronization
+ ConsumerTenantName *string `json:"consumerTenantName,omitempty"`
+ // DurationMs - synchronization duration
+ DurationMs *int32 `json:"durationMs,omitempty"`
+ // EndTime - End time of synchronization
+ EndTime *date.Time `json:"endTime,omitempty"`
+ // Message - message of synchronization
+ Message *string `json:"message,omitempty"`
+ // StartTime - start time of synchronization
+ StartTime *date.Time `json:"startTime,omitempty"`
+ // Status - Raw Status
+ Status *string `json:"status,omitempty"`
+ // SynchronizationID - Synchronization id
+ SynchronizationID *string `json:"synchronizationId,omitempty"`
+ // SynchronizationMode - READ-ONLY; Synchronization mode. Possible values include: 'Incremental', 'FullSync'
+ SynchronizationMode SynchronizationMode `json:"synchronizationMode,omitempty"`
+}
+
+// ShareSynchronizationList list response for get ShareSynchronization.
+type ShareSynchronizationList struct {
+ autorest.Response `json:"-"`
+ // NextLink - The Url of next result page.
+ NextLink *string `json:"nextLink,omitempty"`
+ // Value - Collection of items of type DataTransferObjects.
+ Value *[]ShareSynchronization `json:"value,omitempty"`
+}
+
+// ShareSynchronizationListIterator provides access to a complete listing of ShareSynchronization values.
+type ShareSynchronizationListIterator struct {
+ i int
+ page ShareSynchronizationListPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *ShareSynchronizationListIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareSynchronizationListIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *ShareSynchronizationListIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter ShareSynchronizationListIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter ShareSynchronizationListIterator) Response() ShareSynchronizationList {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter ShareSynchronizationListIterator) Value() ShareSynchronization {
+ if !iter.page.NotDone() {
+ return ShareSynchronization{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the ShareSynchronizationListIterator type.
+func NewShareSynchronizationListIterator(page ShareSynchronizationListPage) ShareSynchronizationListIterator {
+ return ShareSynchronizationListIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (ssl ShareSynchronizationList) IsEmpty() bool {
+ return ssl.Value == nil || len(*ssl.Value) == 0
+}
+
+// shareSynchronizationListPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (ssl ShareSynchronizationList) shareSynchronizationListPreparer(ctx context.Context) (*http.Request, error) {
+ if ssl.NextLink == nil || len(to.String(ssl.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(ssl.NextLink)))
+}
+
+// ShareSynchronizationListPage contains a page of ShareSynchronization values.
+type ShareSynchronizationListPage struct {
+ fn func(context.Context, ShareSynchronizationList) (ShareSynchronizationList, error)
+ ssl ShareSynchronizationList
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *ShareSynchronizationListPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareSynchronizationListPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.ssl)
+ if err != nil {
+ return err
+ }
+ page.ssl = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *ShareSynchronizationListPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page ShareSynchronizationListPage) NotDone() bool {
+ return !page.ssl.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page ShareSynchronizationListPage) Response() ShareSynchronizationList {
+ return page.ssl
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page ShareSynchronizationListPage) Values() []ShareSynchronization {
+ if page.ssl.IsEmpty() {
+ return nil
+ }
+ return *page.ssl.Value
+}
+
+// Creates a new instance of the ShareSynchronizationListPage type.
+func NewShareSynchronizationListPage(getNextPage func(context.Context, ShareSynchronizationList) (ShareSynchronizationList, error)) ShareSynchronizationListPage {
+ return ShareSynchronizationListPage{fn: getNextPage}
+}
+
+// BasicSourceShareSynchronizationSetting a view of synchronization setting added by the provider
+type BasicSourceShareSynchronizationSetting interface {
+ AsScheduledSourceSynchronizationSetting() (*ScheduledSourceSynchronizationSetting, bool)
+ AsSourceShareSynchronizationSetting() (*SourceShareSynchronizationSetting, bool)
+}
+
+// SourceShareSynchronizationSetting a view of synchronization setting added by the provider
+type SourceShareSynchronizationSetting struct {
+ // Kind - Possible values include: 'KindSourceShareSynchronizationSetting', 'KindScheduleBased'
+ Kind KindBasicSourceShareSynchronizationSetting `json:"kind,omitempty"`
+}
+
+func unmarshalBasicSourceShareSynchronizationSetting(body []byte) (BasicSourceShareSynchronizationSetting, error) {
+ var m map[string]interface{}
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return nil, err
+ }
+
+ switch m["kind"] {
+ case string(KindScheduleBased):
+ var ssss ScheduledSourceSynchronizationSetting
+ err := json.Unmarshal(body, &ssss)
+ return ssss, err
+ default:
+ var ssss SourceShareSynchronizationSetting
+ err := json.Unmarshal(body, &ssss)
+ return ssss, err
+ }
+}
+func unmarshalBasicSourceShareSynchronizationSettingArray(body []byte) ([]BasicSourceShareSynchronizationSetting, error) {
+ var rawMessages []*json.RawMessage
+ err := json.Unmarshal(body, &rawMessages)
+ if err != nil {
+ return nil, err
+ }
+
+ ssssArray := make([]BasicSourceShareSynchronizationSetting, len(rawMessages))
+
+ for index, rawMessage := range rawMessages {
+ ssss, err := unmarshalBasicSourceShareSynchronizationSetting(*rawMessage)
+ if err != nil {
+ return nil, err
+ }
+ ssssArray[index] = ssss
+ }
+ return ssssArray, nil
+}
+
+// MarshalJSON is the custom marshaler for SourceShareSynchronizationSetting.
+func (ssss SourceShareSynchronizationSetting) MarshalJSON() ([]byte, error) {
+ ssss.Kind = KindSourceShareSynchronizationSetting
+ objectMap := make(map[string]interface{})
+ if ssss.Kind != "" {
+ objectMap["kind"] = ssss.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsScheduledSourceSynchronizationSetting is the BasicSourceShareSynchronizationSetting implementation for SourceShareSynchronizationSetting.
+func (ssss SourceShareSynchronizationSetting) AsScheduledSourceSynchronizationSetting() (*ScheduledSourceSynchronizationSetting, bool) {
+ return nil, false
+}
+
+// AsSourceShareSynchronizationSetting is the BasicSourceShareSynchronizationSetting implementation for SourceShareSynchronizationSetting.
+func (ssss SourceShareSynchronizationSetting) AsSourceShareSynchronizationSetting() (*SourceShareSynchronizationSetting, bool) {
+ return &ssss, true
+}
+
+// AsBasicSourceShareSynchronizationSetting is the BasicSourceShareSynchronizationSetting implementation for SourceShareSynchronizationSetting.
+func (ssss SourceShareSynchronizationSetting) AsBasicSourceShareSynchronizationSetting() (BasicSourceShareSynchronizationSetting, bool) {
+ return &ssss, true
+}
+
+// SourceShareSynchronizationSettingList list response for get source share Synchronization settings
+type SourceShareSynchronizationSettingList struct {
+ autorest.Response `json:"-"`
+ // NextLink - The Url of next result page.
+ NextLink *string `json:"nextLink,omitempty"`
+ // Value - Collection of items of type DataTransferObjects.
+ Value *[]BasicSourceShareSynchronizationSetting `json:"value,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for SourceShareSynchronizationSettingList struct.
+func (ssssl *SourceShareSynchronizationSettingList) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "nextLink":
+ if v != nil {
+ var nextLink string
+ err = json.Unmarshal(*v, &nextLink)
+ if err != nil {
+ return err
+ }
+ ssssl.NextLink = &nextLink
+ }
+ case "value":
+ if v != nil {
+ value, err := unmarshalBasicSourceShareSynchronizationSettingArray(*v)
+ if err != nil {
+ return err
+ }
+ ssssl.Value = &value
+ }
+ }
+ }
+
+ return nil
+}
+
+// SourceShareSynchronizationSettingListIterator provides access to a complete listing of
+// SourceShareSynchronizationSetting values.
+type SourceShareSynchronizationSettingListIterator struct {
+ i int
+ page SourceShareSynchronizationSettingListPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *SourceShareSynchronizationSettingListIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SourceShareSynchronizationSettingListIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *SourceShareSynchronizationSettingListIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter SourceShareSynchronizationSettingListIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter SourceShareSynchronizationSettingListIterator) Response() SourceShareSynchronizationSettingList {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter SourceShareSynchronizationSettingListIterator) Value() BasicSourceShareSynchronizationSetting {
+ if !iter.page.NotDone() {
+ return SourceShareSynchronizationSetting{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the SourceShareSynchronizationSettingListIterator type.
+func NewSourceShareSynchronizationSettingListIterator(page SourceShareSynchronizationSettingListPage) SourceShareSynchronizationSettingListIterator {
+ return SourceShareSynchronizationSettingListIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (ssssl SourceShareSynchronizationSettingList) IsEmpty() bool {
+ return ssssl.Value == nil || len(*ssssl.Value) == 0
+}
+
+// sourceShareSynchronizationSettingListPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (ssssl SourceShareSynchronizationSettingList) sourceShareSynchronizationSettingListPreparer(ctx context.Context) (*http.Request, error) {
+ if ssssl.NextLink == nil || len(to.String(ssssl.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(ssssl.NextLink)))
+}
+
+// SourceShareSynchronizationSettingListPage contains a page of BasicSourceShareSynchronizationSetting
+// values.
+type SourceShareSynchronizationSettingListPage struct {
+ fn func(context.Context, SourceShareSynchronizationSettingList) (SourceShareSynchronizationSettingList, error)
+ ssssl SourceShareSynchronizationSettingList
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *SourceShareSynchronizationSettingListPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SourceShareSynchronizationSettingListPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.ssssl)
+ if err != nil {
+ return err
+ }
+ page.ssssl = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *SourceShareSynchronizationSettingListPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page SourceShareSynchronizationSettingListPage) NotDone() bool {
+ return !page.ssssl.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page SourceShareSynchronizationSettingListPage) Response() SourceShareSynchronizationSettingList {
+ return page.ssssl
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page SourceShareSynchronizationSettingListPage) Values() []BasicSourceShareSynchronizationSetting {
+ if page.ssssl.IsEmpty() {
+ return nil
+ }
+ return *page.ssssl.Value
+}
+
+// Creates a new instance of the SourceShareSynchronizationSettingListPage type.
+func NewSourceShareSynchronizationSettingListPage(getNextPage func(context.Context, SourceShareSynchronizationSettingList) (SourceShareSynchronizationSettingList, error)) SourceShareSynchronizationSettingListPage {
+ return SourceShareSynchronizationSettingListPage{fn: getNextPage}
+}
+
+// SQLDBTableDataSet a SQL DB table data set.
+type SQLDBTableDataSet struct {
+ // SQLDBTableProperties - SQL DB table data set properties.
+ *SQLDBTableProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
+ Kind Kind `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for SQLDBTableDataSet.
+func (sdtds SQLDBTableDataSet) MarshalJSON() ([]byte, error) {
+ sdtds.Kind = KindSQLDBTable
+ objectMap := make(map[string]interface{})
+ if sdtds.SQLDBTableProperties != nil {
+ objectMap["properties"] = sdtds.SQLDBTableProperties
+ }
+ if sdtds.Kind != "" {
+ objectMap["kind"] = sdtds.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSet is the BasicDataSet implementation for SQLDBTableDataSet.
+func (sdtds SQLDBTableDataSet) AsBlobDataSet() (*BlobDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSet is the BasicDataSet implementation for SQLDBTableDataSet.
+func (sdtds SQLDBTableDataSet) AsBlobFolderDataSet() (*BlobFolderDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSet is the BasicDataSet implementation for SQLDBTableDataSet.
+func (sdtds SQLDBTableDataSet) AsBlobContainerDataSet() (*BlobContainerDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSet is the BasicDataSet implementation for SQLDBTableDataSet.
+func (sdtds SQLDBTableDataSet) AsADLSGen2FileDataSet() (*ADLSGen2FileDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSet is the BasicDataSet implementation for SQLDBTableDataSet.
+func (sdtds SQLDBTableDataSet) AsADLSGen2FolderDataSet() (*ADLSGen2FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSet is the BasicDataSet implementation for SQLDBTableDataSet.
+func (sdtds SQLDBTableDataSet) AsADLSGen2FileSystemDataSet() (*ADLSGen2FileSystemDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FolderDataSet is the BasicDataSet implementation for SQLDBTableDataSet.
+func (sdtds SQLDBTableDataSet) AsADLSGen1FolderDataSet() (*ADLSGen1FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FileDataSet is the BasicDataSet implementation for SQLDBTableDataSet.
+func (sdtds SQLDBTableDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSet is the BasicDataSet implementation for SQLDBTableDataSet.
+func (sdtds SQLDBTableDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for SQLDBTableDataSet.
+func (sdtds SQLDBTableDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSet is the BasicDataSet implementation for SQLDBTableDataSet.
+func (sdtds SQLDBTableDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSet is the BasicDataSet implementation for SQLDBTableDataSet.
+func (sdtds SQLDBTableDataSet) AsSQLDBTableDataSet() (*SQLDBTableDataSet, bool) {
+ return &sdtds, true
+}
+
+// AsDataSet is the BasicDataSet implementation for SQLDBTableDataSet.
+func (sdtds SQLDBTableDataSet) AsDataSet() (*DataSet, bool) {
+ return nil, false
+}
+
+// AsBasicDataSet is the BasicDataSet implementation for SQLDBTableDataSet.
+func (sdtds SQLDBTableDataSet) AsBasicDataSet() (BasicDataSet, bool) {
+ return &sdtds, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for SQLDBTableDataSet struct.
+func (sdtds *SQLDBTableDataSet) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var sQLDBTableProperties SQLDBTableProperties
+ err = json.Unmarshal(*v, &sQLDBTableProperties)
+ if err != nil {
+ return err
+ }
+ sdtds.SQLDBTableProperties = &sQLDBTableProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind Kind
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ sdtds.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ sdtds.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ sdtds.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ sdtds.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// SQLDBTableDataSetMapping a SQL DB Table data set mapping.
+type SQLDBTableDataSetMapping struct {
+ // SQLDBTableDataSetMappingProperties - Sql DB data set mapping properties.
+ *SQLDBTableDataSetMappingProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ Kind KindBasicDataSetMapping `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for SQLDBTableDataSetMapping.
+func (sdtdsm SQLDBTableDataSetMapping) MarshalJSON() ([]byte, error) {
+ sdtdsm.Kind = KindBasicDataSetMappingKindSQLDBTable
+ objectMap := make(map[string]interface{})
+ if sdtdsm.SQLDBTableDataSetMappingProperties != nil {
+ objectMap["properties"] = sdtdsm.SQLDBTableDataSetMappingProperties
+ }
+ if sdtdsm.Kind != "" {
+ objectMap["kind"] = sdtdsm.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSetMapping is the BasicDataSetMapping implementation for SQLDBTableDataSetMapping.
+func (sdtdsm SQLDBTableDataSetMapping) AsBlobDataSetMapping() (*BlobDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSetMapping is the BasicDataSetMapping implementation for SQLDBTableDataSetMapping.
+func (sdtdsm SQLDBTableDataSetMapping) AsBlobFolderDataSetMapping() (*BlobFolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSetMapping is the BasicDataSetMapping implementation for SQLDBTableDataSetMapping.
+func (sdtdsm SQLDBTableDataSetMapping) AsBlobContainerDataSetMapping() (*BlobContainerDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSetMapping is the BasicDataSetMapping implementation for SQLDBTableDataSetMapping.
+func (sdtdsm SQLDBTableDataSetMapping) AsADLSGen2FileDataSetMapping() (*ADLSGen2FileDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSetMapping is the BasicDataSetMapping implementation for SQLDBTableDataSetMapping.
+func (sdtdsm SQLDBTableDataSetMapping) AsADLSGen2FolderDataSetMapping() (*ADLSGen2FolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSetMapping is the BasicDataSetMapping implementation for SQLDBTableDataSetMapping.
+func (sdtdsm SQLDBTableDataSetMapping) AsADLSGen2FileSystemDataSetMapping() (*ADLSGen2FileSystemDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for SQLDBTableDataSetMapping.
+func (sdtdsm SQLDBTableDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for SQLDBTableDataSetMapping.
+func (sdtdsm SQLDBTableDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for SQLDBTableDataSetMapping.
+func (sdtdsm SQLDBTableDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSetMapping is the BasicDataSetMapping implementation for SQLDBTableDataSetMapping.
+func (sdtdsm SQLDBTableDataSetMapping) AsSQLDBTableDataSetMapping() (*SQLDBTableDataSetMapping, bool) {
+ return &sdtdsm, true
+}
+
+// AsDataSetMapping is the BasicDataSetMapping implementation for SQLDBTableDataSetMapping.
+func (sdtdsm SQLDBTableDataSetMapping) AsDataSetMapping() (*DataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBasicDataSetMapping is the BasicDataSetMapping implementation for SQLDBTableDataSetMapping.
+func (sdtdsm SQLDBTableDataSetMapping) AsBasicDataSetMapping() (BasicDataSetMapping, bool) {
+ return &sdtdsm, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for SQLDBTableDataSetMapping struct.
+func (sdtdsm *SQLDBTableDataSetMapping) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var sQLDBTableDataSetMappingProperties SQLDBTableDataSetMappingProperties
+ err = json.Unmarshal(*v, &sQLDBTableDataSetMappingProperties)
+ if err != nil {
+ return err
+ }
+ sdtdsm.SQLDBTableDataSetMappingProperties = &sQLDBTableDataSetMappingProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind KindBasicDataSetMapping
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ sdtdsm.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ sdtdsm.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ sdtdsm.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ sdtdsm.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// SQLDBTableDataSetMappingProperties properties of the SQL DB table data set mapping.
+type SQLDBTableDataSetMappingProperties struct {
+ // DatabaseName - DatabaseName name of the sink data set
+ DatabaseName *string `json:"databaseName,omitempty"`
+ // DataSetID - The id of the source data set.
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
+ DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+ // SchemaName - Schema of the table. Default value is dbo.
+ SchemaName *string `json:"schemaName,omitempty"`
+ // SQLServerResourceID - Resource id of SQL server
+ SQLServerResourceID *string `json:"sqlServerResourceId,omitempty"`
+ // TableName - SQL DB table name.
+ TableName *string `json:"tableName,omitempty"`
+}
+
+// SQLDBTableProperties properties of the SQL DB table data set.
+type SQLDBTableProperties struct {
+ // DatabaseName - Database name of the source data set
+ DatabaseName *string `json:"databaseName,omitempty"`
+ // DataSetID - READ-ONLY; Unique id for identifying a data set resource
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // SchemaName - Schema of the table. Default value is dbo.
+ SchemaName *string `json:"schemaName,omitempty"`
+ // SQLServerResourceID - Resource id of SQL server
+ SQLServerResourceID *string `json:"sqlServerResourceId,omitempty"`
+ // TableName - SQL DB table name.
+ TableName *string `json:"tableName,omitempty"`
+}
+
+// SQLDWTableDataSet a SQL DW table data set.
+type SQLDWTableDataSet struct {
+ // SQLDWTableProperties - SQL DW table data set properties.
+ *SQLDWTableProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
+ Kind Kind `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for SQLDWTableDataSet.
+func (sdtds SQLDWTableDataSet) MarshalJSON() ([]byte, error) {
+ sdtds.Kind = KindSQLDWTable
+ objectMap := make(map[string]interface{})
+ if sdtds.SQLDWTableProperties != nil {
+ objectMap["properties"] = sdtds.SQLDWTableProperties
+ }
+ if sdtds.Kind != "" {
+ objectMap["kind"] = sdtds.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSet is the BasicDataSet implementation for SQLDWTableDataSet.
+func (sdtds SQLDWTableDataSet) AsBlobDataSet() (*BlobDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSet is the BasicDataSet implementation for SQLDWTableDataSet.
+func (sdtds SQLDWTableDataSet) AsBlobFolderDataSet() (*BlobFolderDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSet is the BasicDataSet implementation for SQLDWTableDataSet.
+func (sdtds SQLDWTableDataSet) AsBlobContainerDataSet() (*BlobContainerDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSet is the BasicDataSet implementation for SQLDWTableDataSet.
+func (sdtds SQLDWTableDataSet) AsADLSGen2FileDataSet() (*ADLSGen2FileDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSet is the BasicDataSet implementation for SQLDWTableDataSet.
+func (sdtds SQLDWTableDataSet) AsADLSGen2FolderDataSet() (*ADLSGen2FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSet is the BasicDataSet implementation for SQLDWTableDataSet.
+func (sdtds SQLDWTableDataSet) AsADLSGen2FileSystemDataSet() (*ADLSGen2FileSystemDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FolderDataSet is the BasicDataSet implementation for SQLDWTableDataSet.
+func (sdtds SQLDWTableDataSet) AsADLSGen1FolderDataSet() (*ADLSGen1FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FileDataSet is the BasicDataSet implementation for SQLDWTableDataSet.
+func (sdtds SQLDWTableDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSet is the BasicDataSet implementation for SQLDWTableDataSet.
+func (sdtds SQLDWTableDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for SQLDWTableDataSet.
+func (sdtds SQLDWTableDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSet is the BasicDataSet implementation for SQLDWTableDataSet.
+func (sdtds SQLDWTableDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
+ return &sdtds, true
+}
+
+// AsSQLDBTableDataSet is the BasicDataSet implementation for SQLDWTableDataSet.
+func (sdtds SQLDWTableDataSet) AsSQLDBTableDataSet() (*SQLDBTableDataSet, bool) {
+ return nil, false
+}
+
+// AsDataSet is the BasicDataSet implementation for SQLDWTableDataSet.
+func (sdtds SQLDWTableDataSet) AsDataSet() (*DataSet, bool) {
+ return nil, false
+}
+
+// AsBasicDataSet is the BasicDataSet implementation for SQLDWTableDataSet.
+func (sdtds SQLDWTableDataSet) AsBasicDataSet() (BasicDataSet, bool) {
+ return &sdtds, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for SQLDWTableDataSet struct.
+func (sdtds *SQLDWTableDataSet) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var sQLDWTableProperties SQLDWTableProperties
+ err = json.Unmarshal(*v, &sQLDWTableProperties)
+ if err != nil {
+ return err
+ }
+ sdtds.SQLDWTableProperties = &sQLDWTableProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind Kind
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ sdtds.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ sdtds.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ sdtds.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ sdtds.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// SQLDWTableDataSetMapping a SQL DW Table data set mapping.
+type SQLDWTableDataSetMapping struct {
+ // SQLDWTableDataSetMappingProperties - Sql DW data set mapping properties.
+ *SQLDWTableDataSetMappingProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ Kind KindBasicDataSetMapping `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for SQLDWTableDataSetMapping.
+func (sdtdsm SQLDWTableDataSetMapping) MarshalJSON() ([]byte, error) {
+ sdtdsm.Kind = KindBasicDataSetMappingKindSQLDWTable
+ objectMap := make(map[string]interface{})
+ if sdtdsm.SQLDWTableDataSetMappingProperties != nil {
+ objectMap["properties"] = sdtdsm.SQLDWTableDataSetMappingProperties
+ }
+ if sdtdsm.Kind != "" {
+ objectMap["kind"] = sdtdsm.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSetMapping is the BasicDataSetMapping implementation for SQLDWTableDataSetMapping.
+func (sdtdsm SQLDWTableDataSetMapping) AsBlobDataSetMapping() (*BlobDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSetMapping is the BasicDataSetMapping implementation for SQLDWTableDataSetMapping.
+func (sdtdsm SQLDWTableDataSetMapping) AsBlobFolderDataSetMapping() (*BlobFolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSetMapping is the BasicDataSetMapping implementation for SQLDWTableDataSetMapping.
+func (sdtdsm SQLDWTableDataSetMapping) AsBlobContainerDataSetMapping() (*BlobContainerDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSetMapping is the BasicDataSetMapping implementation for SQLDWTableDataSetMapping.
+func (sdtdsm SQLDWTableDataSetMapping) AsADLSGen2FileDataSetMapping() (*ADLSGen2FileDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSetMapping is the BasicDataSetMapping implementation for SQLDWTableDataSetMapping.
+func (sdtdsm SQLDWTableDataSetMapping) AsADLSGen2FolderDataSetMapping() (*ADLSGen2FolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSetMapping is the BasicDataSetMapping implementation for SQLDWTableDataSetMapping.
+func (sdtdsm SQLDWTableDataSetMapping) AsADLSGen2FileSystemDataSetMapping() (*ADLSGen2FileSystemDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for SQLDWTableDataSetMapping.
+func (sdtdsm SQLDWTableDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for SQLDWTableDataSetMapping.
+func (sdtdsm SQLDWTableDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for SQLDWTableDataSetMapping.
+func (sdtdsm SQLDWTableDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
+ return &sdtdsm, true
+}
+
+// AsSQLDBTableDataSetMapping is the BasicDataSetMapping implementation for SQLDWTableDataSetMapping.
+func (sdtdsm SQLDWTableDataSetMapping) AsSQLDBTableDataSetMapping() (*SQLDBTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsDataSetMapping is the BasicDataSetMapping implementation for SQLDWTableDataSetMapping.
+func (sdtdsm SQLDWTableDataSetMapping) AsDataSetMapping() (*DataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBasicDataSetMapping is the BasicDataSetMapping implementation for SQLDWTableDataSetMapping.
+func (sdtdsm SQLDWTableDataSetMapping) AsBasicDataSetMapping() (BasicDataSetMapping, bool) {
+ return &sdtdsm, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for SQLDWTableDataSetMapping struct.
+func (sdtdsm *SQLDWTableDataSetMapping) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var sQLDWTableDataSetMappingProperties SQLDWTableDataSetMappingProperties
+ err = json.Unmarshal(*v, &sQLDWTableDataSetMappingProperties)
+ if err != nil {
+ return err
+ }
+ sdtdsm.SQLDWTableDataSetMappingProperties = &sQLDWTableDataSetMappingProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind KindBasicDataSetMapping
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ sdtdsm.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ sdtdsm.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ sdtdsm.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ sdtdsm.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// SQLDWTableDataSetMappingProperties properties of the SQL DW table data set mapping.
+type SQLDWTableDataSetMappingProperties struct {
+ // DataSetID - The id of the source data set.
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
+ DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
+ // DataWarehouseName - DataWarehouse name of the source data set
+ DataWarehouseName *string `json:"dataWarehouseName,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+ // SchemaName - Schema of the table. Default value is dbo.
+ SchemaName *string `json:"schemaName,omitempty"`
+ // SQLServerResourceID - Resource id of SQL server
+ SQLServerResourceID *string `json:"sqlServerResourceId,omitempty"`
+ // TableName - SQL DW table name.
+ TableName *string `json:"tableName,omitempty"`
+}
+
+// SQLDWTableProperties properties of the SQL DW table data set.
+type SQLDWTableProperties struct {
+ // DataSetID - READ-ONLY; Unique id for identifying a data set resource
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // DataWarehouseName - DataWarehouse name of the source data set
+ DataWarehouseName *string `json:"dataWarehouseName,omitempty"`
+ // SchemaName - Schema of the table. Default value is dbo.
+ SchemaName *string `json:"schemaName,omitempty"`
+ // SQLServerResourceID - Resource id of SQL server
+ SQLServerResourceID *string `json:"sqlServerResourceId,omitempty"`
+ // TableName - SQL DW table name.
+ TableName *string `json:"tableName,omitempty"`
+}
+
+// SynchronizationDetails synchronization details at data set level
+type SynchronizationDetails struct {
+ // DataSetID - READ-ONLY; Id of data set
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // DataSetType - READ-ONLY; Type of the data set. Possible values include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SQLDBTable', 'SQLDWTable'
+ DataSetType DataSetType `json:"dataSetType,omitempty"`
+ // DurationMs - READ-ONLY; Duration of data set level copy
+ DurationMs *int32 `json:"durationMs,omitempty"`
+ // EndTime - READ-ONLY; End time of data set level copy
+ EndTime *date.Time `json:"endTime,omitempty"`
+ // FilesRead - READ-ONLY; The number of files read from the source data set
+ FilesRead *int64 `json:"filesRead,omitempty"`
+ // FilesWritten - READ-ONLY; The number of files written into the sink data set
+ FilesWritten *int64 `json:"filesWritten,omitempty"`
+ // Message - READ-ONLY; Error message if any
+ Message *string `json:"message,omitempty"`
+ // Name - READ-ONLY; Name of the data set
+ Name *string `json:"name,omitempty"`
+ // RowsCopied - READ-ONLY; The number of files copied into the sink data set
+ RowsCopied *int64 `json:"rowsCopied,omitempty"`
+ // RowsRead - READ-ONLY; The number of rows read from the source data set.
+ RowsRead *int64 `json:"rowsRead,omitempty"`
+ // SizeRead - READ-ONLY; The size of the data read from the source data set in bytes
+ SizeRead *int64 `json:"sizeRead,omitempty"`
+ // SizeWritten - READ-ONLY; The size of the data written into the sink data set in bytes
+ SizeWritten *int64 `json:"sizeWritten,omitempty"`
+ // StartTime - READ-ONLY; Start time of data set level copy
+ StartTime *date.Time `json:"startTime,omitempty"`
+ // Status - READ-ONLY; Raw Status
+ Status *string `json:"status,omitempty"`
+ // VCore - READ-ONLY; The vCore units consumed for the data set synchronization
+ VCore *int64 `json:"vCore,omitempty"`
+}
+
+// SynchronizationDetailsList details of synchronization
+type SynchronizationDetailsList struct {
+ autorest.Response `json:"-"`
+ // NextLink - The Url of next result page.
+ NextLink *string `json:"nextLink,omitempty"`
+ // Value - Collection of items of type DataTransferObjects.
+ Value *[]SynchronizationDetails `json:"value,omitempty"`
+}
+
+// SynchronizationDetailsListIterator provides access to a complete listing of SynchronizationDetails
+// values.
+type SynchronizationDetailsListIterator struct {
+ i int
+ page SynchronizationDetailsListPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *SynchronizationDetailsListIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SynchronizationDetailsListIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *SynchronizationDetailsListIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter SynchronizationDetailsListIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter SynchronizationDetailsListIterator) Response() SynchronizationDetailsList {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter SynchronizationDetailsListIterator) Value() SynchronizationDetails {
+ if !iter.page.NotDone() {
+ return SynchronizationDetails{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the SynchronizationDetailsListIterator type.
+func NewSynchronizationDetailsListIterator(page SynchronizationDetailsListPage) SynchronizationDetailsListIterator {
+ return SynchronizationDetailsListIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (sdl SynchronizationDetailsList) IsEmpty() bool {
+ return sdl.Value == nil || len(*sdl.Value) == 0
+}
+
+// synchronizationDetailsListPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (sdl SynchronizationDetailsList) synchronizationDetailsListPreparer(ctx context.Context) (*http.Request, error) {
+ if sdl.NextLink == nil || len(to.String(sdl.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(sdl.NextLink)))
+}
+
+// SynchronizationDetailsListPage contains a page of SynchronizationDetails values.
+type SynchronizationDetailsListPage struct {
+ fn func(context.Context, SynchronizationDetailsList) (SynchronizationDetailsList, error)
+ sdl SynchronizationDetailsList
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *SynchronizationDetailsListPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SynchronizationDetailsListPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.sdl)
+ if err != nil {
+ return err
+ }
+ page.sdl = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *SynchronizationDetailsListPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page SynchronizationDetailsListPage) NotDone() bool {
+ return !page.sdl.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page SynchronizationDetailsListPage) Response() SynchronizationDetailsList {
+ return page.sdl
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page SynchronizationDetailsListPage) Values() []SynchronizationDetails {
+ if page.sdl.IsEmpty() {
+ return nil
+ }
+ return *page.sdl.Value
+}
+
+// Creates a new instance of the SynchronizationDetailsListPage type.
+func NewSynchronizationDetailsListPage(getNextPage func(context.Context, SynchronizationDetailsList) (SynchronizationDetailsList, error)) SynchronizationDetailsListPage {
+ return SynchronizationDetailsListPage{fn: getNextPage}
+}
+
+// BasicSynchronizationSetting a Synchronization Setting data transfer object.
+type BasicSynchronizationSetting interface {
+ AsScheduledSynchronizationSetting() (*ScheduledSynchronizationSetting, bool)
+ AsSynchronizationSetting() (*SynchronizationSetting, bool)
+}
+
+// SynchronizationSetting a Synchronization Setting data transfer object.
+type SynchronizationSetting struct {
+ autorest.Response `json:"-"`
+ // Kind - Possible values include: 'KindBasicSynchronizationSettingKindSynchronizationSetting', 'KindBasicSynchronizationSettingKindScheduleBased'
+ Kind KindBasicSynchronizationSetting `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+func unmarshalBasicSynchronizationSetting(body []byte) (BasicSynchronizationSetting, error) {
+ var m map[string]interface{}
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return nil, err
+ }
+
+ switch m["kind"] {
+ case string(KindBasicSynchronizationSettingKindScheduleBased):
+ var sss ScheduledSynchronizationSetting
+ err := json.Unmarshal(body, &sss)
+ return sss, err
+ default:
+ var ss SynchronizationSetting
+ err := json.Unmarshal(body, &ss)
+ return ss, err
+ }
+}
+func unmarshalBasicSynchronizationSettingArray(body []byte) ([]BasicSynchronizationSetting, error) {
+ var rawMessages []*json.RawMessage
+ err := json.Unmarshal(body, &rawMessages)
+ if err != nil {
+ return nil, err
+ }
+
+ ssArray := make([]BasicSynchronizationSetting, len(rawMessages))
+
+ for index, rawMessage := range rawMessages {
+ ss, err := unmarshalBasicSynchronizationSetting(*rawMessage)
+ if err != nil {
+ return nil, err
+ }
+ ssArray[index] = ss
+ }
+ return ssArray, nil
+}
+
+// MarshalJSON is the custom marshaler for SynchronizationSetting.
+func (ss SynchronizationSetting) MarshalJSON() ([]byte, error) {
+ ss.Kind = KindBasicSynchronizationSettingKindSynchronizationSetting
+ objectMap := make(map[string]interface{})
+ if ss.Kind != "" {
+ objectMap["kind"] = ss.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsScheduledSynchronizationSetting is the BasicSynchronizationSetting implementation for SynchronizationSetting.
+func (ss SynchronizationSetting) AsScheduledSynchronizationSetting() (*ScheduledSynchronizationSetting, bool) {
+ return nil, false
+}
+
+// AsSynchronizationSetting is the BasicSynchronizationSetting implementation for SynchronizationSetting.
+func (ss SynchronizationSetting) AsSynchronizationSetting() (*SynchronizationSetting, bool) {
+ return &ss, true
+}
+
+// AsBasicSynchronizationSetting is the BasicSynchronizationSetting implementation for SynchronizationSetting.
+func (ss SynchronizationSetting) AsBasicSynchronizationSetting() (BasicSynchronizationSetting, bool) {
+ return &ss, true
+}
+
+// SynchronizationSettingList list response for get Synchronization settings
+type SynchronizationSettingList struct {
+ autorest.Response `json:"-"`
+ // NextLink - The Url of next result page.
+ NextLink *string `json:"nextLink,omitempty"`
+ // Value - Collection of items of type DataTransferObjects.
+ Value *[]BasicSynchronizationSetting `json:"value,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for SynchronizationSettingList struct.
+func (ssl *SynchronizationSettingList) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "nextLink":
+ if v != nil {
+ var nextLink string
+ err = json.Unmarshal(*v, &nextLink)
+ if err != nil {
+ return err
+ }
+ ssl.NextLink = &nextLink
+ }
+ case "value":
+ if v != nil {
+ value, err := unmarshalBasicSynchronizationSettingArray(*v)
+ if err != nil {
+ return err
+ }
+ ssl.Value = &value
+ }
+ }
+ }
+
+ return nil
+}
+
+// SynchronizationSettingListIterator provides access to a complete listing of SynchronizationSetting
+// values.
+type SynchronizationSettingListIterator struct {
+ i int
+ page SynchronizationSettingListPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *SynchronizationSettingListIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SynchronizationSettingListIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *SynchronizationSettingListIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter SynchronizationSettingListIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter SynchronizationSettingListIterator) Response() SynchronizationSettingList {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter SynchronizationSettingListIterator) Value() BasicSynchronizationSetting {
+ if !iter.page.NotDone() {
+ return SynchronizationSetting{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the SynchronizationSettingListIterator type.
+func NewSynchronizationSettingListIterator(page SynchronizationSettingListPage) SynchronizationSettingListIterator {
+ return SynchronizationSettingListIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (ssl SynchronizationSettingList) IsEmpty() bool {
+ return ssl.Value == nil || len(*ssl.Value) == 0
+}
+
+// synchronizationSettingListPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (ssl SynchronizationSettingList) synchronizationSettingListPreparer(ctx context.Context) (*http.Request, error) {
+ if ssl.NextLink == nil || len(to.String(ssl.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(ssl.NextLink)))
+}
+
+// SynchronizationSettingListPage contains a page of BasicSynchronizationSetting values.
+type SynchronizationSettingListPage struct {
+ fn func(context.Context, SynchronizationSettingList) (SynchronizationSettingList, error)
+ ssl SynchronizationSettingList
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *SynchronizationSettingListPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SynchronizationSettingListPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.ssl)
+ if err != nil {
+ return err
+ }
+ page.ssl = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *SynchronizationSettingListPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page SynchronizationSettingListPage) NotDone() bool {
+ return !page.ssl.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page SynchronizationSettingListPage) Response() SynchronizationSettingList {
+ return page.ssl
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page SynchronizationSettingListPage) Values() []BasicSynchronizationSetting {
+ if page.ssl.IsEmpty() {
+ return nil
+ }
+ return *page.ssl.Value
+}
+
+// Creates a new instance of the SynchronizationSettingListPage type.
+func NewSynchronizationSettingListPage(getNextPage func(context.Context, SynchronizationSettingList) (SynchronizationSettingList, error)) SynchronizationSettingListPage {
+ return SynchronizationSettingListPage{fn: getNextPage}
+}
+
+// SynchronizationSettingModel ...
+type SynchronizationSettingModel struct {
+ autorest.Response `json:"-"`
+ Value BasicSynchronizationSetting `json:"value,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for SynchronizationSettingModel struct.
+func (ssm *SynchronizationSettingModel) UnmarshalJSON(body []byte) error {
+ ss, err := unmarshalBasicSynchronizationSetting(body)
+ if err != nil {
+ return err
+ }
+ ssm.Value = ss
+
+ return nil
+}
+
+// SynchronizationSettingsDeleteFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type SynchronizationSettingsDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *SynchronizationSettingsDeleteFuture) Result(client SynchronizationSettingsClient) (or OperationResponse, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("datashare.SynchronizationSettingsDeleteFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if or.Response.Response, err = future.GetResult(sender); err == nil && or.Response.Response.StatusCode != http.StatusNoContent {
+ or, err = client.DeleteResponder(or.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsDeleteFuture", "Result", or.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// Synchronize payload for the synchronizing the data.
+type Synchronize struct {
+ // SynchronizationMode - Mode of synchronization used in triggers and snapshot sync. Incremental by default. Possible values include: 'Incremental', 'FullSync'
+ SynchronizationMode SynchronizationMode `json:"synchronizationMode,omitempty"`
+}
+
+// BasicTrigger a Trigger data transfer object.
+type BasicTrigger interface {
+ AsScheduledTrigger() (*ScheduledTrigger, bool)
+ AsTrigger() (*Trigger, bool)
+}
+
+// Trigger a Trigger data transfer object.
+type Trigger struct {
+ autorest.Response `json:"-"`
+ // Kind - Possible values include: 'KindBasicTriggerKindTrigger', 'KindBasicTriggerKindScheduleBased'
+ Kind KindBasicTrigger `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+func unmarshalBasicTrigger(body []byte) (BasicTrigger, error) {
+ var m map[string]interface{}
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return nil, err
+ }
+
+ switch m["kind"] {
+ case string(KindBasicTriggerKindScheduleBased):
+ var st ScheduledTrigger
+ err := json.Unmarshal(body, &st)
+ return st, err
+ default:
+ var t Trigger
+ err := json.Unmarshal(body, &t)
+ return t, err
+ }
+}
+func unmarshalBasicTriggerArray(body []byte) ([]BasicTrigger, error) {
+ var rawMessages []*json.RawMessage
+ err := json.Unmarshal(body, &rawMessages)
+ if err != nil {
+ return nil, err
+ }
+
+ tArray := make([]BasicTrigger, len(rawMessages))
+
+ for index, rawMessage := range rawMessages {
+ t, err := unmarshalBasicTrigger(*rawMessage)
+ if err != nil {
+ return nil, err
+ }
+ tArray[index] = t
+ }
+ return tArray, nil
+}
+
+// MarshalJSON is the custom marshaler for Trigger.
+func (t Trigger) MarshalJSON() ([]byte, error) {
+ t.Kind = KindBasicTriggerKindTrigger
+ objectMap := make(map[string]interface{})
+ if t.Kind != "" {
+ objectMap["kind"] = t.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsScheduledTrigger is the BasicTrigger implementation for Trigger.
+func (t Trigger) AsScheduledTrigger() (*ScheduledTrigger, bool) {
+ return nil, false
+}
+
+// AsTrigger is the BasicTrigger implementation for Trigger.
+func (t Trigger) AsTrigger() (*Trigger, bool) {
+ return &t, true
+}
+
+// AsBasicTrigger is the BasicTrigger implementation for Trigger.
+func (t Trigger) AsBasicTrigger() (BasicTrigger, bool) {
+ return &t, true
+}
+
+// TriggerList list response for get triggers
+type TriggerList struct {
+ autorest.Response `json:"-"`
+ // NextLink - The Url of next result page.
+ NextLink *string `json:"nextLink,omitempty"`
+ // Value - Collection of items of type DataTransferObjects.
+ Value *[]BasicTrigger `json:"value,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for TriggerList struct.
+func (tl *TriggerList) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "nextLink":
+ if v != nil {
+ var nextLink string
+ err = json.Unmarshal(*v, &nextLink)
+ if err != nil {
+ return err
+ }
+ tl.NextLink = &nextLink
+ }
+ case "value":
+ if v != nil {
+ value, err := unmarshalBasicTriggerArray(*v)
+ if err != nil {
+ return err
+ }
+ tl.Value = &value
+ }
+ }
+ }
+
+ return nil
+}
+
+// TriggerListIterator provides access to a complete listing of Trigger values.
+type TriggerListIterator struct {
+ i int
+ page TriggerListPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *TriggerListIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/TriggerListIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *TriggerListIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter TriggerListIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter TriggerListIterator) Response() TriggerList {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter TriggerListIterator) Value() BasicTrigger {
+ if !iter.page.NotDone() {
+ return Trigger{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the TriggerListIterator type.
+func NewTriggerListIterator(page TriggerListPage) TriggerListIterator {
+ return TriggerListIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (tl TriggerList) IsEmpty() bool {
+ return tl.Value == nil || len(*tl.Value) == 0
+}
+
+// triggerListPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (tl TriggerList) triggerListPreparer(ctx context.Context) (*http.Request, error) {
+ if tl.NextLink == nil || len(to.String(tl.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(tl.NextLink)))
+}
+
+// TriggerListPage contains a page of BasicTrigger values.
+type TriggerListPage struct {
+ fn func(context.Context, TriggerList) (TriggerList, error)
+ tl TriggerList
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *TriggerListPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/TriggerListPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.tl)
+ if err != nil {
+ return err
+ }
+ page.tl = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *TriggerListPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page TriggerListPage) NotDone() bool {
+ return !page.tl.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page TriggerListPage) Response() TriggerList {
+ return page.tl
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page TriggerListPage) Values() []BasicTrigger {
+ if page.tl.IsEmpty() {
+ return nil
+ }
+ return *page.tl.Value
+}
+
+// Creates a new instance of the TriggerListPage type.
+func NewTriggerListPage(getNextPage func(context.Context, TriggerList) (TriggerList, error)) TriggerListPage {
+ return TriggerListPage{fn: getNextPage}
+}
+
+// TriggerModel ...
+type TriggerModel struct {
+ autorest.Response `json:"-"`
+ Value BasicTrigger `json:"value,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for TriggerModel struct.
+func (tm *TriggerModel) UnmarshalJSON(body []byte) error {
+ t, err := unmarshalBasicTrigger(body)
+ if err != nil {
+ return err
+ }
+ tm.Value = t
+
+ return nil
+}
+
+// TriggersCreateFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type TriggersCreateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *TriggersCreateFuture) Result(client TriggersClient) (tm TriggerModel, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.TriggersCreateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("datashare.TriggersCreateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if tm.Response.Response, err = future.GetResult(sender); err == nil && tm.Response.Response.StatusCode != http.StatusNoContent {
+ tm, err = client.CreateResponder(tm.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.TriggersCreateFuture", "Result", tm.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// TriggersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type TriggersDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *TriggersDeleteFuture) Result(client TriggersClient) (or OperationResponse, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.TriggersDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("datashare.TriggersDeleteFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if or.Response.Response, err = future.GetResult(sender); err == nil && or.Response.Response.StatusCode != http.StatusNoContent {
+ or, err = client.DeleteResponder(or.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.TriggersDeleteFuture", "Result", or.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
diff --git a/services/datashare/mgmt/2019-11-01/datashare/operations.go b/services/datashare/mgmt/2019-11-01/datashare/operations.go
new file mode 100644
index 000000000000..ea17af90cb0d
--- /dev/null
+++ b/services/datashare/mgmt/2019-11-01/datashare/operations.go
@@ -0,0 +1,147 @@
+package datashare
+
+// 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/tracing"
+ "net/http"
+)
+
+// OperationsClient is the creates a Microsoft.DataShare management client.
+type OperationsClient struct {
+ BaseClient
+}
+
+// NewOperationsClient creates an instance of the OperationsClient client.
+func NewOperationsClient(subscriptionID string) OperationsClient {
+ return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
+ return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List list of available operations
+func (client OperationsClient) List(ctx context.Context) (result OperationListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List")
+ defer func() {
+ sc := -1
+ if result.ol.Response.Response != nil {
+ sc = result.ol.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.OperationsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.ol.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.OperationsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.ol, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.OperationsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPath("/providers/Microsoft.DataShare/operations"),
+ 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 OperationsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client OperationsClient) ListResponder(resp *http.Response) (result OperationList, 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 OperationsClient) listNextResults(ctx context.Context, lastResults OperationList) (result OperationList, err error) {
+ req, err := lastResults.operationListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "datashare.OperationsClient", "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, "datashare.OperationsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.OperationsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx)
+ return
+}
diff --git a/services/datashare/mgmt/2019-11-01/datashare/providersharesubscriptions.go b/services/datashare/mgmt/2019-11-01/datashare/providersharesubscriptions.go
new file mode 100644
index 000000000000..0eba20ca48b6
--- /dev/null
+++ b/services/datashare/mgmt/2019-11-01/datashare/providersharesubscriptions.go
@@ -0,0 +1,405 @@
+package datashare
+
+// 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/tracing"
+ "net/http"
+)
+
+// ProviderShareSubscriptionsClient is the creates a Microsoft.DataShare management client.
+type ProviderShareSubscriptionsClient struct {
+ BaseClient
+}
+
+// NewProviderShareSubscriptionsClient creates an instance of the ProviderShareSubscriptionsClient client.
+func NewProviderShareSubscriptionsClient(subscriptionID string) ProviderShareSubscriptionsClient {
+ return NewProviderShareSubscriptionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewProviderShareSubscriptionsClientWithBaseURI creates an instance of the ProviderShareSubscriptionsClient client.
+func NewProviderShareSubscriptionsClientWithBaseURI(baseURI string, subscriptionID string) ProviderShareSubscriptionsClient {
+ return ProviderShareSubscriptionsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// GetByShare get share subscription in a provider share
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share.
+// providerShareSubscriptionID - to locate shareSubscription
+func (client ProviderShareSubscriptionsClient) GetByShare(ctx context.Context, resourceGroupName string, accountName string, shareName string, providerShareSubscriptionID string) (result ProviderShareSubscription, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ProviderShareSubscriptionsClient.GetByShare")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetBySharePreparer(ctx, resourceGroupName, accountName, shareName, providerShareSubscriptionID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "GetByShare", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetByShareSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "GetByShare", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetByShareResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "GetByShare", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetBySharePreparer prepares the GetByShare request.
+func (client ProviderShareSubscriptionsClient) GetBySharePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, providerShareSubscriptionID string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "providerShareSubscriptionId": autorest.Encode("path", providerShareSubscriptionID),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetByShareSender sends the GetByShare request. The method will close the
+// http.Response Body if it receives an error.
+func (client ProviderShareSubscriptionsClient) GetByShareSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetByShareResponder handles the response to the GetByShare request. The method always
+// closes the http.Response Body.
+func (client ProviderShareSubscriptionsClient) GetByShareResponder(resp *http.Response) (result ProviderShareSubscription, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListByShare list share subscriptions in a provider share
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share.
+// skipToken - continuation Token
+func (client ProviderShareSubscriptionsClient) ListByShare(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (result ProviderShareSubscriptionListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ProviderShareSubscriptionsClient.ListByShare")
+ defer func() {
+ sc := -1
+ if result.pssl.Response.Response != nil {
+ sc = result.pssl.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByShareNextResults
+ req, err := client.ListBySharePreparer(ctx, resourceGroupName, accountName, shareName, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "ListByShare", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByShareSender(req)
+ if err != nil {
+ result.pssl.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "ListByShare", resp, "Failure sending request")
+ return
+ }
+
+ result.pssl, err = client.ListByShareResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "ListByShare", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListBySharePreparer prepares the ListByShare request.
+func (client ProviderShareSubscriptionsClient) ListBySharePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByShareSender sends the ListByShare request. The method will close the
+// http.Response Body if it receives an error.
+func (client ProviderShareSubscriptionsClient) ListByShareSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByShareResponder handles the response to the ListByShare request. The method always
+// closes the http.Response Body.
+func (client ProviderShareSubscriptionsClient) ListByShareResponder(resp *http.Response) (result ProviderShareSubscriptionList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByShareNextResults retrieves the next set of results, if any.
+func (client ProviderShareSubscriptionsClient) listByShareNextResults(ctx context.Context, lastResults ProviderShareSubscriptionList) (result ProviderShareSubscriptionList, err error) {
+ req, err := lastResults.providerShareSubscriptionListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "listByShareNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByShareSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "listByShareNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByShareResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "listByShareNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByShareComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ProviderShareSubscriptionsClient) ListByShareComplete(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (result ProviderShareSubscriptionListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ProviderShareSubscriptionsClient.ListByShare")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByShare(ctx, resourceGroupName, accountName, shareName, skipToken)
+ return
+}
+
+// Reinstate reinstate share subscription in a provider share
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share.
+// providerShareSubscriptionID - to locate shareSubscription
+func (client ProviderShareSubscriptionsClient) Reinstate(ctx context.Context, resourceGroupName string, accountName string, shareName string, providerShareSubscriptionID string) (result ProviderShareSubscription, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ProviderShareSubscriptionsClient.Reinstate")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ReinstatePreparer(ctx, resourceGroupName, accountName, shareName, providerShareSubscriptionID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "Reinstate", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ReinstateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "Reinstate", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ReinstateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "Reinstate", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ReinstatePreparer prepares the Reinstate request.
+func (client ProviderShareSubscriptionsClient) ReinstatePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, providerShareSubscriptionID string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "providerShareSubscriptionId": autorest.Encode("path", providerShareSubscriptionID),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}/reinstate", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ReinstateSender sends the Reinstate request. The method will close the
+// http.Response Body if it receives an error.
+func (client ProviderShareSubscriptionsClient) ReinstateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ReinstateResponder handles the response to the Reinstate request. The method always
+// closes the http.Response Body.
+func (client ProviderShareSubscriptionsClient) ReinstateResponder(resp *http.Response) (result ProviderShareSubscription, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Revoke revoke share subscription in a provider share
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share.
+// providerShareSubscriptionID - to locate shareSubscription
+func (client ProviderShareSubscriptionsClient) Revoke(ctx context.Context, resourceGroupName string, accountName string, shareName string, providerShareSubscriptionID string) (result ProviderShareSubscriptionsRevokeFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ProviderShareSubscriptionsClient.Revoke")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.RevokePreparer(ctx, resourceGroupName, accountName, shareName, providerShareSubscriptionID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "Revoke", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.RevokeSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ProviderShareSubscriptionsClient", "Revoke", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// RevokePreparer prepares the Revoke request.
+func (client ProviderShareSubscriptionsClient) RevokePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, providerShareSubscriptionID string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "providerShareSubscriptionId": autorest.Encode("path", providerShareSubscriptionID),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}/revoke", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// RevokeSender sends the Revoke request. The method will close the
+// http.Response Body if it receives an error.
+func (client ProviderShareSubscriptionsClient) RevokeSender(req *http.Request) (future ProviderShareSubscriptionsRevokeFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// RevokeResponder handles the response to the Revoke request. The method always
+// closes the http.Response Body.
+func (client ProviderShareSubscriptionsClient) RevokeResponder(resp *http.Response) (result ProviderShareSubscription, 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}
+ return
+}
diff --git a/services/datashare/mgmt/2019-11-01/datashare/shares.go b/services/datashare/mgmt/2019-11-01/datashare/shares.go
new file mode 100644
index 000000000000..124e0dc75a99
--- /dev/null
+++ b/services/datashare/mgmt/2019-11-01/datashare/shares.go
@@ -0,0 +1,646 @@
+package datashare
+
+// 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/tracing"
+ "net/http"
+)
+
+// SharesClient is the creates a Microsoft.DataShare management client.
+type SharesClient struct {
+ BaseClient
+}
+
+// NewSharesClient creates an instance of the SharesClient client.
+func NewSharesClient(subscriptionID string) SharesClient {
+ return NewSharesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewSharesClientWithBaseURI creates an instance of the SharesClient client.
+func NewSharesClientWithBaseURI(baseURI string, subscriptionID string) SharesClient {
+ return SharesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Create create a share
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share.
+// share - the share payload
+func (client SharesClient) Create(ctx context.Context, resourceGroupName string, accountName string, shareName string, share Share) (result Share, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SharesClient.Create")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, shareName, share)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "Create", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "Create", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "Create", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreatePreparer prepares the Create request.
+func (client SharesClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, share Share) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shares/{shareName}", pathParameters),
+ autorest.WithJSON(share),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateSender sends the Create request. The method will close the
+// http.Response Body if it receives an error.
+func (client SharesClient) CreateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateResponder handles the response to the Create request. The method always
+// closes the http.Response Body.
+func (client SharesClient) CreateResponder(resp *http.Response) (result Share, 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 share
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share.
+func (client SharesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string) (result SharesDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SharesClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, shareName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client SharesClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shares/{shareName}", 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 SharesClient) DeleteSender(req *http.Request) (future SharesDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client SharesClient) DeleteResponder(resp *http.Response) (result OperationResponse, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Get get a share
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share to retrieve.
+func (client SharesClient) Get(ctx context.Context, resourceGroupName string, accountName string, shareName string) (result Share, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SharesClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, accountName, shareName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client SharesClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shares/{shareName}", 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 SharesClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client SharesClient) GetResponder(resp *http.Response) (result Share, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListByAccount list shares in an account
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// skipToken - continuation Token
+func (client SharesClient) ListByAccount(ctx context.Context, resourceGroupName string, accountName string, skipToken string) (result ShareListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SharesClient.ListByAccount")
+ defer func() {
+ sc := -1
+ if result.sl.Response.Response != nil {
+ sc = result.sl.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByAccountNextResults
+ req, err := client.ListByAccountPreparer(ctx, resourceGroupName, accountName, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "ListByAccount", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByAccountSender(req)
+ if err != nil {
+ result.sl.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "ListByAccount", resp, "Failure sending request")
+ return
+ }
+
+ result.sl, err = client.ListByAccountResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "ListByAccount", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByAccountPreparer prepares the ListByAccount request.
+func (client SharesClient) ListByAccountPreparer(ctx context.Context, resourceGroupName string, accountName string, skipToken string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByAccountSender sends the ListByAccount request. The method will close the
+// http.Response Body if it receives an error.
+func (client SharesClient) ListByAccountSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByAccountResponder handles the response to the ListByAccount request. The method always
+// closes the http.Response Body.
+func (client SharesClient) ListByAccountResponder(resp *http.Response) (result ShareList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByAccountNextResults retrieves the next set of results, if any.
+func (client SharesClient) listByAccountNextResults(ctx context.Context, lastResults ShareList) (result ShareList, err error) {
+ req, err := lastResults.shareListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "datashare.SharesClient", "listByAccountNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByAccountSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "datashare.SharesClient", "listByAccountNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByAccountResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "listByAccountNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByAccountComplete enumerates all values, automatically crossing page boundaries as required.
+func (client SharesClient) ListByAccountComplete(ctx context.Context, resourceGroupName string, accountName string, skipToken string) (result ShareListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SharesClient.ListByAccount")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByAccount(ctx, resourceGroupName, accountName, skipToken)
+ return
+}
+
+// ListSynchronizationDetails list synchronization details
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share.
+// shareSynchronization - share Synchronization payload.
+// skipToken - continuation token
+func (client SharesClient) ListSynchronizationDetails(ctx context.Context, resourceGroupName string, accountName string, shareName string, shareSynchronization ShareSynchronization, skipToken string) (result SynchronizationDetailsListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SharesClient.ListSynchronizationDetails")
+ defer func() {
+ sc := -1
+ if result.sdl.Response.Response != nil {
+ sc = result.sdl.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listSynchronizationDetailsNextResults
+ req, err := client.ListSynchronizationDetailsPreparer(ctx, resourceGroupName, accountName, shareName, shareSynchronization, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "ListSynchronizationDetails", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSynchronizationDetailsSender(req)
+ if err != nil {
+ result.sdl.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "ListSynchronizationDetails", resp, "Failure sending request")
+ return
+ }
+
+ result.sdl, err = client.ListSynchronizationDetailsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "ListSynchronizationDetails", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListSynchronizationDetailsPreparer prepares the ListSynchronizationDetails request.
+func (client SharesClient) ListSynchronizationDetailsPreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, shareSynchronization ShareSynchronization, skipToken string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ shareSynchronization.SynchronizationMode = ""
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/listSynchronizationDetails", pathParameters),
+ autorest.WithJSON(shareSynchronization),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSynchronizationDetailsSender sends the ListSynchronizationDetails request. The method will close the
+// http.Response Body if it receives an error.
+func (client SharesClient) ListSynchronizationDetailsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListSynchronizationDetailsResponder handles the response to the ListSynchronizationDetails request. The method always
+// closes the http.Response Body.
+func (client SharesClient) ListSynchronizationDetailsResponder(resp *http.Response) (result SynchronizationDetailsList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listSynchronizationDetailsNextResults retrieves the next set of results, if any.
+func (client SharesClient) listSynchronizationDetailsNextResults(ctx context.Context, lastResults SynchronizationDetailsList) (result SynchronizationDetailsList, err error) {
+ req, err := lastResults.synchronizationDetailsListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "datashare.SharesClient", "listSynchronizationDetailsNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSynchronizationDetailsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "datashare.SharesClient", "listSynchronizationDetailsNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListSynchronizationDetailsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "listSynchronizationDetailsNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListSynchronizationDetailsComplete enumerates all values, automatically crossing page boundaries as required.
+func (client SharesClient) ListSynchronizationDetailsComplete(ctx context.Context, resourceGroupName string, accountName string, shareName string, shareSynchronization ShareSynchronization, skipToken string) (result SynchronizationDetailsListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SharesClient.ListSynchronizationDetails")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListSynchronizationDetails(ctx, resourceGroupName, accountName, shareName, shareSynchronization, skipToken)
+ return
+}
+
+// ListSynchronizations list synchronizations of a share
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share.
+// skipToken - continuation token
+func (client SharesClient) ListSynchronizations(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (result ShareSynchronizationListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SharesClient.ListSynchronizations")
+ defer func() {
+ sc := -1
+ if result.ssl.Response.Response != nil {
+ sc = result.ssl.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listSynchronizationsNextResults
+ req, err := client.ListSynchronizationsPreparer(ctx, resourceGroupName, accountName, shareName, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "ListSynchronizations", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSynchronizationsSender(req)
+ if err != nil {
+ result.ssl.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "ListSynchronizations", resp, "Failure sending request")
+ return
+ }
+
+ result.ssl, err = client.ListSynchronizationsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "ListSynchronizations", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListSynchronizationsPreparer prepares the ListSynchronizations request.
+func (client SharesClient) ListSynchronizationsPreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/listSynchronizations", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSynchronizationsSender sends the ListSynchronizations request. The method will close the
+// http.Response Body if it receives an error.
+func (client SharesClient) ListSynchronizationsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListSynchronizationsResponder handles the response to the ListSynchronizations request. The method always
+// closes the http.Response Body.
+func (client SharesClient) ListSynchronizationsResponder(resp *http.Response) (result ShareSynchronizationList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listSynchronizationsNextResults retrieves the next set of results, if any.
+func (client SharesClient) listSynchronizationsNextResults(ctx context.Context, lastResults ShareSynchronizationList) (result ShareSynchronizationList, err error) {
+ req, err := lastResults.shareSynchronizationListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "datashare.SharesClient", "listSynchronizationsNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSynchronizationsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "datashare.SharesClient", "listSynchronizationsNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListSynchronizationsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SharesClient", "listSynchronizationsNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListSynchronizationsComplete enumerates all values, automatically crossing page boundaries as required.
+func (client SharesClient) ListSynchronizationsComplete(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (result ShareSynchronizationListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SharesClient.ListSynchronizations")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListSynchronizations(ctx, resourceGroupName, accountName, shareName, skipToken)
+ return
+}
diff --git a/services/datashare/mgmt/2019-11-01/datashare/sharesubscriptions.go b/services/datashare/mgmt/2019-11-01/datashare/sharesubscriptions.go
new file mode 100644
index 000000000000..70ef3d859592
--- /dev/null
+++ b/services/datashare/mgmt/2019-11-01/datashare/sharesubscriptions.go
@@ -0,0 +1,964 @@
+package datashare
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ShareSubscriptionsClient is the creates a Microsoft.DataShare management client.
+type ShareSubscriptionsClient struct {
+ BaseClient
+}
+
+// NewShareSubscriptionsClient creates an instance of the ShareSubscriptionsClient client.
+func NewShareSubscriptionsClient(subscriptionID string) ShareSubscriptionsClient {
+ return NewShareSubscriptionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewShareSubscriptionsClientWithBaseURI creates an instance of the ShareSubscriptionsClient client.
+func NewShareSubscriptionsClientWithBaseURI(baseURI string, subscriptionID string) ShareSubscriptionsClient {
+ return ShareSubscriptionsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CancelSynchronization request to cancel a synchronization.
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareSubscriptionName - the name of the shareSubscription.
+// shareSubscriptionSynchronization - share Subscription Synchronization payload.
+func (client ShareSubscriptionsClient) CancelSynchronization(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, shareSubscriptionSynchronization ShareSubscriptionSynchronization) (result ShareSubscriptionsCancelSynchronizationFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareSubscriptionsClient.CancelSynchronization")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: shareSubscriptionSynchronization,
+ Constraints: []validation.Constraint{{Target: "shareSubscriptionSynchronization.SynchronizationID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("datashare.ShareSubscriptionsClient", "CancelSynchronization", err.Error())
+ }
+
+ req, err := client.CancelSynchronizationPreparer(ctx, resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "CancelSynchronization", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CancelSynchronizationSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "CancelSynchronization", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CancelSynchronizationPreparer prepares the CancelSynchronization request.
+func (client ShareSubscriptionsClient) CancelSynchronizationPreparer(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, shareSubscriptionSynchronization ShareSubscriptionSynchronization) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareSubscriptionName": autorest.Encode("path", shareSubscriptionName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ shareSubscriptionSynchronization.DurationMs = nil
+ shareSubscriptionSynchronization.EndTime = nil
+ shareSubscriptionSynchronization.Message = nil
+ shareSubscriptionSynchronization.StartTime = nil
+ shareSubscriptionSynchronization.Status = nil
+ shareSubscriptionSynchronization.SynchronizationMode = ""
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/cancelSynchronization", pathParameters),
+ autorest.WithJSON(shareSubscriptionSynchronization),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CancelSynchronizationSender sends the CancelSynchronization request. The method will close the
+// http.Response Body if it receives an error.
+func (client ShareSubscriptionsClient) CancelSynchronizationSender(req *http.Request) (future ShareSubscriptionsCancelSynchronizationFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CancelSynchronizationResponder handles the response to the CancelSynchronization request. The method always
+// closes the http.Response Body.
+func (client ShareSubscriptionsClient) CancelSynchronizationResponder(resp *http.Response) (result ShareSubscriptionSynchronization, 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}
+ return
+}
+
+// Create create a shareSubscription in an account
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareSubscriptionName - the name of the shareSubscription.
+// shareSubscription - create parameters for shareSubscription
+func (client ShareSubscriptionsClient) Create(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, shareSubscription ShareSubscription) (result ShareSubscription, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareSubscriptionsClient.Create")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: shareSubscription,
+ Constraints: []validation.Constraint{{Target: "shareSubscription.ShareSubscriptionProperties", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "shareSubscription.ShareSubscriptionProperties.InvitationID", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "shareSubscription.ShareSubscriptionProperties.SourceShareLocation", Name: validation.Null, Rule: true, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("datashare.ShareSubscriptionsClient", "Create", err.Error())
+ }
+
+ req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, shareSubscriptionName, shareSubscription)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "Create", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "Create", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "Create", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreatePreparer prepares the Create request.
+func (client ShareSubscriptionsClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, shareSubscription ShareSubscription) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareSubscriptionName": autorest.Encode("path", shareSubscriptionName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}", pathParameters),
+ autorest.WithJSON(shareSubscription),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateSender sends the Create request. The method will close the
+// http.Response Body if it receives an error.
+func (client ShareSubscriptionsClient) CreateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateResponder handles the response to the Create request. The method always
+// closes the http.Response Body.
+func (client ShareSubscriptionsClient) CreateResponder(resp *http.Response) (result ShareSubscription, 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 shareSubscription in an account
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareSubscriptionName - the name of the shareSubscription.
+func (client ShareSubscriptionsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string) (result ShareSubscriptionsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareSubscriptionsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, shareSubscriptionName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ShareSubscriptionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareSubscriptionName": autorest.Encode("path", shareSubscriptionName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}", 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 ShareSubscriptionsClient) DeleteSender(req *http.Request) (future ShareSubscriptionsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ShareSubscriptionsClient) DeleteResponder(resp *http.Response) (result OperationResponse, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Get get a shareSubscription in an account
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareSubscriptionName - the name of the shareSubscription.
+func (client ShareSubscriptionsClient) Get(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string) (result ShareSubscription, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareSubscriptionsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, accountName, shareSubscriptionName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ShareSubscriptionsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareSubscriptionName": autorest.Encode("path", shareSubscriptionName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}", 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 ShareSubscriptionsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ShareSubscriptionsClient) GetResponder(resp *http.Response) (result ShareSubscription, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListByAccount list share subscriptions in an account
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// skipToken - continuation Token
+func (client ShareSubscriptionsClient) ListByAccount(ctx context.Context, resourceGroupName string, accountName string, skipToken string) (result ShareSubscriptionListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareSubscriptionsClient.ListByAccount")
+ defer func() {
+ sc := -1
+ if result.ssl.Response.Response != nil {
+ sc = result.ssl.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByAccountNextResults
+ req, err := client.ListByAccountPreparer(ctx, resourceGroupName, accountName, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListByAccount", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByAccountSender(req)
+ if err != nil {
+ result.ssl.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListByAccount", resp, "Failure sending request")
+ return
+ }
+
+ result.ssl, err = client.ListByAccountResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListByAccount", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByAccountPreparer prepares the ListByAccount request.
+func (client ShareSubscriptionsClient) ListByAccountPreparer(ctx context.Context, resourceGroupName string, accountName string, skipToken string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByAccountSender sends the ListByAccount request. The method will close the
+// http.Response Body if it receives an error.
+func (client ShareSubscriptionsClient) ListByAccountSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByAccountResponder handles the response to the ListByAccount request. The method always
+// closes the http.Response Body.
+func (client ShareSubscriptionsClient) ListByAccountResponder(resp *http.Response) (result ShareSubscriptionList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByAccountNextResults retrieves the next set of results, if any.
+func (client ShareSubscriptionsClient) listByAccountNextResults(ctx context.Context, lastResults ShareSubscriptionList) (result ShareSubscriptionList, err error) {
+ req, err := lastResults.shareSubscriptionListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listByAccountNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByAccountSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listByAccountNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByAccountResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listByAccountNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByAccountComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ShareSubscriptionsClient) ListByAccountComplete(ctx context.Context, resourceGroupName string, accountName string, skipToken string) (result ShareSubscriptionListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareSubscriptionsClient.ListByAccount")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByAccount(ctx, resourceGroupName, accountName, skipToken)
+ return
+}
+
+// ListSourceShareSynchronizationSettings get synchronization settings set on a share
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareSubscriptionName - the name of the shareSubscription.
+// skipToken - continuation token
+func (client ShareSubscriptionsClient) ListSourceShareSynchronizationSettings(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (result SourceShareSynchronizationSettingListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareSubscriptionsClient.ListSourceShareSynchronizationSettings")
+ defer func() {
+ sc := -1
+ if result.ssssl.Response.Response != nil {
+ sc = result.ssssl.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listSourceShareSynchronizationSettingsNextResults
+ req, err := client.ListSourceShareSynchronizationSettingsPreparer(ctx, resourceGroupName, accountName, shareSubscriptionName, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListSourceShareSynchronizationSettings", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSourceShareSynchronizationSettingsSender(req)
+ if err != nil {
+ result.ssssl.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListSourceShareSynchronizationSettings", resp, "Failure sending request")
+ return
+ }
+
+ result.ssssl, err = client.ListSourceShareSynchronizationSettingsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListSourceShareSynchronizationSettings", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListSourceShareSynchronizationSettingsPreparer prepares the ListSourceShareSynchronizationSettings request.
+func (client ShareSubscriptionsClient) ListSourceShareSynchronizationSettingsPreparer(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareSubscriptionName": autorest.Encode("path", shareSubscriptionName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/listSourceShareSynchronizationSettings", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSourceShareSynchronizationSettingsSender sends the ListSourceShareSynchronizationSettings request. The method will close the
+// http.Response Body if it receives an error.
+func (client ShareSubscriptionsClient) ListSourceShareSynchronizationSettingsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListSourceShareSynchronizationSettingsResponder handles the response to the ListSourceShareSynchronizationSettings request. The method always
+// closes the http.Response Body.
+func (client ShareSubscriptionsClient) ListSourceShareSynchronizationSettingsResponder(resp *http.Response) (result SourceShareSynchronizationSettingList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listSourceShareSynchronizationSettingsNextResults retrieves the next set of results, if any.
+func (client ShareSubscriptionsClient) listSourceShareSynchronizationSettingsNextResults(ctx context.Context, lastResults SourceShareSynchronizationSettingList) (result SourceShareSynchronizationSettingList, err error) {
+ req, err := lastResults.sourceShareSynchronizationSettingListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listSourceShareSynchronizationSettingsNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSourceShareSynchronizationSettingsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listSourceShareSynchronizationSettingsNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListSourceShareSynchronizationSettingsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listSourceShareSynchronizationSettingsNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListSourceShareSynchronizationSettingsComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ShareSubscriptionsClient) ListSourceShareSynchronizationSettingsComplete(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (result SourceShareSynchronizationSettingListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareSubscriptionsClient.ListSourceShareSynchronizationSettings")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListSourceShareSynchronizationSettings(ctx, resourceGroupName, accountName, shareSubscriptionName, skipToken)
+ return
+}
+
+// ListSynchronizationDetails list synchronization details
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareSubscriptionName - the name of the share subscription.
+// shareSubscriptionSynchronization - share Subscription Synchronization payload.
+// skipToken - continuation token
+func (client ShareSubscriptionsClient) ListSynchronizationDetails(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, shareSubscriptionSynchronization ShareSubscriptionSynchronization, skipToken string) (result SynchronizationDetailsListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareSubscriptionsClient.ListSynchronizationDetails")
+ defer func() {
+ sc := -1
+ if result.sdl.Response.Response != nil {
+ sc = result.sdl.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: shareSubscriptionSynchronization,
+ Constraints: []validation.Constraint{{Target: "shareSubscriptionSynchronization.SynchronizationID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("datashare.ShareSubscriptionsClient", "ListSynchronizationDetails", err.Error())
+ }
+
+ result.fn = client.listSynchronizationDetailsNextResults
+ req, err := client.ListSynchronizationDetailsPreparer(ctx, resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListSynchronizationDetails", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSynchronizationDetailsSender(req)
+ if err != nil {
+ result.sdl.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListSynchronizationDetails", resp, "Failure sending request")
+ return
+ }
+
+ result.sdl, err = client.ListSynchronizationDetailsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListSynchronizationDetails", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListSynchronizationDetailsPreparer prepares the ListSynchronizationDetails request.
+func (client ShareSubscriptionsClient) ListSynchronizationDetailsPreparer(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, shareSubscriptionSynchronization ShareSubscriptionSynchronization, skipToken string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareSubscriptionName": autorest.Encode("path", shareSubscriptionName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ shareSubscriptionSynchronization.DurationMs = nil
+ shareSubscriptionSynchronization.EndTime = nil
+ shareSubscriptionSynchronization.Message = nil
+ shareSubscriptionSynchronization.StartTime = nil
+ shareSubscriptionSynchronization.Status = nil
+ shareSubscriptionSynchronization.SynchronizationMode = ""
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/listSynchronizationDetails", pathParameters),
+ autorest.WithJSON(shareSubscriptionSynchronization),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSynchronizationDetailsSender sends the ListSynchronizationDetails request. The method will close the
+// http.Response Body if it receives an error.
+func (client ShareSubscriptionsClient) ListSynchronizationDetailsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListSynchronizationDetailsResponder handles the response to the ListSynchronizationDetails request. The method always
+// closes the http.Response Body.
+func (client ShareSubscriptionsClient) ListSynchronizationDetailsResponder(resp *http.Response) (result SynchronizationDetailsList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listSynchronizationDetailsNextResults retrieves the next set of results, if any.
+func (client ShareSubscriptionsClient) listSynchronizationDetailsNextResults(ctx context.Context, lastResults SynchronizationDetailsList) (result SynchronizationDetailsList, err error) {
+ req, err := lastResults.synchronizationDetailsListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listSynchronizationDetailsNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSynchronizationDetailsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listSynchronizationDetailsNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListSynchronizationDetailsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listSynchronizationDetailsNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListSynchronizationDetailsComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ShareSubscriptionsClient) ListSynchronizationDetailsComplete(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, shareSubscriptionSynchronization ShareSubscriptionSynchronization, skipToken string) (result SynchronizationDetailsListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareSubscriptionsClient.ListSynchronizationDetails")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListSynchronizationDetails(ctx, resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization, skipToken)
+ return
+}
+
+// ListSynchronizations list synchronizations of a share subscription
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareSubscriptionName - the name of the share subscription.
+// skipToken - continuation token
+func (client ShareSubscriptionsClient) ListSynchronizations(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (result ShareSubscriptionSynchronizationListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareSubscriptionsClient.ListSynchronizations")
+ defer func() {
+ sc := -1
+ if result.sssl.Response.Response != nil {
+ sc = result.sssl.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listSynchronizationsNextResults
+ req, err := client.ListSynchronizationsPreparer(ctx, resourceGroupName, accountName, shareSubscriptionName, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListSynchronizations", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSynchronizationsSender(req)
+ if err != nil {
+ result.sssl.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListSynchronizations", resp, "Failure sending request")
+ return
+ }
+
+ result.sssl, err = client.ListSynchronizationsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "ListSynchronizations", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListSynchronizationsPreparer prepares the ListSynchronizations request.
+func (client ShareSubscriptionsClient) ListSynchronizationsPreparer(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareSubscriptionName": autorest.Encode("path", shareSubscriptionName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/listSynchronizations", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSynchronizationsSender sends the ListSynchronizations request. The method will close the
+// http.Response Body if it receives an error.
+func (client ShareSubscriptionsClient) ListSynchronizationsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListSynchronizationsResponder handles the response to the ListSynchronizations request. The method always
+// closes the http.Response Body.
+func (client ShareSubscriptionsClient) ListSynchronizationsResponder(resp *http.Response) (result ShareSubscriptionSynchronizationList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listSynchronizationsNextResults retrieves the next set of results, if any.
+func (client ShareSubscriptionsClient) listSynchronizationsNextResults(ctx context.Context, lastResults ShareSubscriptionSynchronizationList) (result ShareSubscriptionSynchronizationList, err error) {
+ req, err := lastResults.shareSubscriptionSynchronizationListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listSynchronizationsNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListSynchronizationsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listSynchronizationsNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListSynchronizationsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "listSynchronizationsNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListSynchronizationsComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ShareSubscriptionsClient) ListSynchronizationsComplete(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (result ShareSubscriptionSynchronizationListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareSubscriptionsClient.ListSynchronizations")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListSynchronizations(ctx, resourceGroupName, accountName, shareSubscriptionName, skipToken)
+ return
+}
+
+// SynchronizeMethod initiate a copy
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareSubscriptionName - the name of share subscription
+// synchronize - synchronize payload
+func (client ShareSubscriptionsClient) SynchronizeMethod(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, synchronize Synchronize) (result ShareSubscriptionsSynchronizeMethodFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ShareSubscriptionsClient.SynchronizeMethod")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.SynchronizeMethodPreparer(ctx, resourceGroupName, accountName, shareSubscriptionName, synchronize)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "SynchronizeMethod", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.SynchronizeMethodSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.ShareSubscriptionsClient", "SynchronizeMethod", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// SynchronizeMethodPreparer prepares the SynchronizeMethod request.
+func (client ShareSubscriptionsClient) SynchronizeMethodPreparer(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, synchronize Synchronize) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareSubscriptionName": autorest.Encode("path", shareSubscriptionName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-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("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/Synchronize", pathParameters),
+ autorest.WithJSON(synchronize),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// SynchronizeMethodSender sends the SynchronizeMethod request. The method will close the
+// http.Response Body if it receives an error.
+func (client ShareSubscriptionsClient) SynchronizeMethodSender(req *http.Request) (future ShareSubscriptionsSynchronizeMethodFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// SynchronizeMethodResponder handles the response to the SynchronizeMethod request. The method always
+// closes the http.Response Body.
+func (client ShareSubscriptionsClient) SynchronizeMethodResponder(resp *http.Response) (result ShareSubscriptionSynchronization, 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}
+ return
+}
diff --git a/services/datashare/mgmt/2019-11-01/datashare/synchronizationsettings.go b/services/datashare/mgmt/2019-11-01/datashare/synchronizationsettings.go
new file mode 100644
index 000000000000..c37c178511ac
--- /dev/null
+++ b/services/datashare/mgmt/2019-11-01/datashare/synchronizationsettings.go
@@ -0,0 +1,408 @@
+package datashare
+
+// 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/tracing"
+ "net/http"
+)
+
+// SynchronizationSettingsClient is the creates a Microsoft.DataShare management client.
+type SynchronizationSettingsClient struct {
+ BaseClient
+}
+
+// NewSynchronizationSettingsClient creates an instance of the SynchronizationSettingsClient client.
+func NewSynchronizationSettingsClient(subscriptionID string) SynchronizationSettingsClient {
+ return NewSynchronizationSettingsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewSynchronizationSettingsClientWithBaseURI creates an instance of the SynchronizationSettingsClient client.
+func NewSynchronizationSettingsClientWithBaseURI(baseURI string, subscriptionID string) SynchronizationSettingsClient {
+ return SynchronizationSettingsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Create create or update a synchronizationSetting
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share to add the synchronization setting to.
+// synchronizationSettingName - the name of the synchronizationSetting.
+// synchronizationSetting - the new synchronization setting information.
+func (client SynchronizationSettingsClient) Create(ctx context.Context, resourceGroupName string, accountName string, shareName string, synchronizationSettingName string, synchronizationSetting BasicSynchronizationSetting) (result SynchronizationSettingModel, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SynchronizationSettingsClient.Create")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, shareName, synchronizationSettingName, synchronizationSetting)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "Create", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "Create", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "Create", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreatePreparer prepares the Create request.
+func (client SynchronizationSettingsClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, synchronizationSettingName string, synchronizationSetting BasicSynchronizationSetting) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "synchronizationSettingName": autorest.Encode("path", synchronizationSettingName),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shares/{shareName}/synchronizationSettings/{synchronizationSettingName}", pathParameters),
+ autorest.WithJSON(synchronizationSetting),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateSender sends the Create request. The method will close the
+// http.Response Body if it receives an error.
+func (client SynchronizationSettingsClient) CreateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateResponder handles the response to the Create request. The method always
+// closes the http.Response Body.
+func (client SynchronizationSettingsClient) CreateResponder(resp *http.Response) (result SynchronizationSettingModel, 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 synchronizationSetting in a share
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share.
+// synchronizationSettingName - the name of the synchronizationSetting .
+func (client SynchronizationSettingsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string, synchronizationSettingName string) (result SynchronizationSettingsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SynchronizationSettingsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, shareName, synchronizationSettingName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client SynchronizationSettingsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, synchronizationSettingName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "synchronizationSettingName": autorest.Encode("path", synchronizationSettingName),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shares/{shareName}/synchronizationSettings/{synchronizationSettingName}", 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 SynchronizationSettingsClient) DeleteSender(req *http.Request) (future SynchronizationSettingsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client SynchronizationSettingsClient) DeleteResponder(resp *http.Response) (result OperationResponse, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Get get a synchronizationSetting in a share
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share.
+// synchronizationSettingName - the name of the synchronizationSetting.
+func (client SynchronizationSettingsClient) Get(ctx context.Context, resourceGroupName string, accountName string, shareName string, synchronizationSettingName string) (result SynchronizationSettingModel, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SynchronizationSettingsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, accountName, shareName, synchronizationSettingName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client SynchronizationSettingsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, synchronizationSettingName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "synchronizationSettingName": autorest.Encode("path", synchronizationSettingName),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shares/{shareName}/synchronizationSettings/{synchronizationSettingName}", 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 SynchronizationSettingsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client SynchronizationSettingsClient) GetResponder(resp *http.Response) (result SynchronizationSettingModel, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListByShare list synchronizationSettings in a share
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareName - the name of the share.
+// skipToken - continuation token
+func (client SynchronizationSettingsClient) ListByShare(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (result SynchronizationSettingListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SynchronizationSettingsClient.ListByShare")
+ defer func() {
+ sc := -1
+ if result.ssl.Response.Response != nil {
+ sc = result.ssl.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByShareNextResults
+ req, err := client.ListBySharePreparer(ctx, resourceGroupName, accountName, shareName, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "ListByShare", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByShareSender(req)
+ if err != nil {
+ result.ssl.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "ListByShare", resp, "Failure sending request")
+ return
+ }
+
+ result.ssl, err = client.ListByShareResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "ListByShare", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListBySharePreparer prepares the ListByShare request.
+func (client SynchronizationSettingsClient) ListBySharePreparer(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareName": autorest.Encode("path", shareName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/synchronizationSettings", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByShareSender sends the ListByShare request. The method will close the
+// http.Response Body if it receives an error.
+func (client SynchronizationSettingsClient) ListByShareSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByShareResponder handles the response to the ListByShare request. The method always
+// closes the http.Response Body.
+func (client SynchronizationSettingsClient) ListByShareResponder(resp *http.Response) (result SynchronizationSettingList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByShareNextResults retrieves the next set of results, if any.
+func (client SynchronizationSettingsClient) listByShareNextResults(ctx context.Context, lastResults SynchronizationSettingList) (result SynchronizationSettingList, err error) {
+ req, err := lastResults.synchronizationSettingListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "listByShareNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByShareSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "listByShareNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByShareResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.SynchronizationSettingsClient", "listByShareNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByShareComplete enumerates all values, automatically crossing page boundaries as required.
+func (client SynchronizationSettingsClient) ListByShareComplete(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (result SynchronizationSettingListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SynchronizationSettingsClient.ListByShare")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByShare(ctx, resourceGroupName, accountName, shareName, skipToken)
+ return
+}
diff --git a/services/datashare/mgmt/2019-11-01/datashare/triggers.go b/services/datashare/mgmt/2019-11-01/datashare/triggers.go
new file mode 100644
index 000000000000..966a9d8695f5
--- /dev/null
+++ b/services/datashare/mgmt/2019-11-01/datashare/triggers.go
@@ -0,0 +1,408 @@
+package datashare
+
+// 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/tracing"
+ "net/http"
+)
+
+// TriggersClient is the creates a Microsoft.DataShare management client.
+type TriggersClient struct {
+ BaseClient
+}
+
+// NewTriggersClient creates an instance of the TriggersClient client.
+func NewTriggersClient(subscriptionID string) TriggersClient {
+ return NewTriggersClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewTriggersClientWithBaseURI creates an instance of the TriggersClient client.
+func NewTriggersClientWithBaseURI(baseURI string, subscriptionID string) TriggersClient {
+ return TriggersClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// Create create a Trigger
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareSubscriptionName - the name of the share subscription which will hold the data set sink.
+// triggerName - the name of the trigger.
+// trigger - trigger details.
+func (client TriggersClient) Create(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, triggerName string, trigger BasicTrigger) (result TriggersCreateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/TriggersClient.Create")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreatePreparer(ctx, resourceGroupName, accountName, shareSubscriptionName, triggerName, trigger)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.TriggersClient", "Create", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.TriggersClient", "Create", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreatePreparer prepares the Create request.
+func (client TriggersClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, triggerName string, trigger BasicTrigger) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareSubscriptionName": autorest.Encode("path", shareSubscriptionName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "triggerName": autorest.Encode("path", triggerName),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers/{triggerName}", pathParameters),
+ autorest.WithJSON(trigger),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateSender sends the Create request. The method will close the
+// http.Response Body if it receives an error.
+func (client TriggersClient) CreateSender(req *http.Request) (future TriggersCreateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateResponder handles the response to the Create request. The method always
+// closes the http.Response Body.
+func (client TriggersClient) CreateResponder(resp *http.Response) (result TriggerModel, 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 Trigger in a shareSubscription
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareSubscriptionName - the name of the shareSubscription.
+// triggerName - the name of the trigger.
+func (client TriggersClient) Delete(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, triggerName string) (result TriggersDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/TriggersClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, accountName, shareSubscriptionName, triggerName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.TriggersClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.TriggersClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client TriggersClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, triggerName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareSubscriptionName": autorest.Encode("path", shareSubscriptionName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "triggerName": autorest.Encode("path", triggerName),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers/{triggerName}", 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 TriggersClient) DeleteSender(req *http.Request) (future TriggersDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client TriggersClient) DeleteResponder(resp *http.Response) (result OperationResponse, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Get get a Trigger in a shareSubscription
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareSubscriptionName - the name of the shareSubscription.
+// triggerName - the name of the trigger.
+func (client TriggersClient) Get(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, triggerName string) (result TriggerModel, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/TriggersClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, accountName, shareSubscriptionName, triggerName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.TriggersClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.TriggersClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.TriggersClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client TriggersClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, triggerName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareSubscriptionName": autorest.Encode("path", shareSubscriptionName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ "triggerName": autorest.Encode("path", triggerName),
+ }
+
+ const APIVersion = "2019-11-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.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers/{triggerName}", 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 TriggersClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client TriggersClient) GetResponder(resp *http.Response) (result TriggerModel, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListByShareSubscription list Triggers in a share subscription
+// Parameters:
+// resourceGroupName - the resource group name.
+// accountName - the name of the share account.
+// shareSubscriptionName - the name of the share subscription.
+// skipToken - continuation token
+func (client TriggersClient) ListByShareSubscription(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (result TriggerListPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/TriggersClient.ListByShareSubscription")
+ defer func() {
+ sc := -1
+ if result.tl.Response.Response != nil {
+ sc = result.tl.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByShareSubscriptionNextResults
+ req, err := client.ListByShareSubscriptionPreparer(ctx, resourceGroupName, accountName, shareSubscriptionName, skipToken)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.TriggersClient", "ListByShareSubscription", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByShareSubscriptionSender(req)
+ if err != nil {
+ result.tl.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "datashare.TriggersClient", "ListByShareSubscription", resp, "Failure sending request")
+ return
+ }
+
+ result.tl, err = client.ListByShareSubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.TriggersClient", "ListByShareSubscription", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByShareSubscriptionPreparer prepares the ListByShareSubscription request.
+func (client TriggersClient) ListByShareSubscriptionPreparer(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "accountName": autorest.Encode("path", accountName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "shareSubscriptionName": autorest.Encode("path", shareSubscriptionName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-11-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(skipToken) > 0 {
+ queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByShareSubscriptionSender sends the ListByShareSubscription request. The method will close the
+// http.Response Body if it receives an error.
+func (client TriggersClient) ListByShareSubscriptionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByShareSubscriptionResponder handles the response to the ListByShareSubscription request. The method always
+// closes the http.Response Body.
+func (client TriggersClient) ListByShareSubscriptionResponder(resp *http.Response) (result TriggerList, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByShareSubscriptionNextResults retrieves the next set of results, if any.
+func (client TriggersClient) listByShareSubscriptionNextResults(ctx context.Context, lastResults TriggerList) (result TriggerList, err error) {
+ req, err := lastResults.triggerListPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "datashare.TriggersClient", "listByShareSubscriptionNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByShareSubscriptionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "datashare.TriggersClient", "listByShareSubscriptionNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByShareSubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.TriggersClient", "listByShareSubscriptionNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByShareSubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
+func (client TriggersClient) ListByShareSubscriptionComplete(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, skipToken string) (result TriggerListIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/TriggersClient.ListByShareSubscription")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByShareSubscription(ctx, resourceGroupName, accountName, shareSubscriptionName, skipToken)
+ return
+}
diff --git a/services/datashare/mgmt/2019-11-01/datashare/version.go b/services/datashare/mgmt/2019-11-01/datashare/version.go
new file mode 100644
index 000000000000..5a612e2b6209
--- /dev/null
+++ b/services/datashare/mgmt/2019-11-01/datashare/version.go
@@ -0,0 +1,30 @@
+package datashare
+
+import "github.com/Azure/azure-sdk-for-go/version"
+
+// 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.
+
+// UserAgent returns the UserAgent string to use when sending http.Requests.
+func UserAgent() string {
+ return "Azure-SDK-For-Go/" + version.Number + " datashare/2019-11-01"
+}
+
+// Version returns the semantic version (see http://semver.org) of the client.
+func Version() string {
+ return version.Number
+}
diff --git a/services/domainservices/mgmt/2017-01-01/aad/domainservices.go b/services/domainservices/mgmt/2017-01-01/aad/domainservices.go
index dadaae920a30..3b19e52aad80 100644
--- a/services/domainservices/mgmt/2017-01-01/aad/domainservices.go
+++ b/services/domainservices/mgmt/2017-01-01/aad/domainservices.go
@@ -207,14 +207,13 @@ func (client DomainServicesClient) DeleteSender(req *http.Request) (future Domai
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
-func (client DomainServicesClient) DeleteResponder(resp *http.Response) (result DomainService, err error) {
+func (client DomainServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
- autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
+ result.Response = resp
return
}
diff --git a/services/domainservices/mgmt/2017-01-01/aad/models.go b/services/domainservices/mgmt/2017-01-01/aad/models.go
index 48023da54fae..e50192f57fb4 100644
--- a/services/domainservices/mgmt/2017-01-01/aad/models.go
+++ b/services/domainservices/mgmt/2017-01-01/aad/models.go
@@ -491,7 +491,7 @@ type DomainServicesDeleteFuture struct {
// Result returns the result of the asynchronous operation.
// If the operation has not completed it will return an error.
-func (future *DomainServicesDeleteFuture) Result(client DomainServicesClient) (ds DomainService, err error) {
+func (future *DomainServicesDeleteFuture) Result(client DomainServicesClient) (ar autorest.Response, err error) {
var done bool
done, err = future.DoneWithContext(context.Background(), client)
if err != nil {
@@ -502,13 +502,7 @@ func (future *DomainServicesDeleteFuture) Result(client DomainServicesClient) (d
err = azure.NewAsyncOpIncompleteError("aad.DomainServicesDeleteFuture")
return
}
- sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
- if ds.Response.Response, err = future.GetResult(sender); err == nil && ds.Response.Response.StatusCode != http.StatusNoContent {
- ds, err = client.DeleteResponder(ds.Response.Response)
- if err != nil {
- err = autorest.NewErrorWithError(err, "aad.DomainServicesDeleteFuture", "Result", ds.Response.Response, "Failure responding to request")
- }
- }
+ ar.Response = future.Response()
return
}
diff --git a/services/domainservices/mgmt/2017-06-01/aad/aadapi/interfaces.go b/services/domainservices/mgmt/2017-06-01/aad/aadapi/interfaces.go
index 196cfd7a44ed..2fa637e9d9a0 100644
--- a/services/domainservices/mgmt/2017-06-01/aad/aadapi/interfaces.go
+++ b/services/domainservices/mgmt/2017-06-01/aad/aadapi/interfaces.go
@@ -40,14 +40,3 @@ type DomainServicesClientAPI interface {
}
var _ DomainServicesClientAPI = (*aad.DomainServicesClient)(nil)
-
-// ReplicaSetsClientAPI contains the set of methods on the ReplicaSetsClient type.
-type ReplicaSetsClientAPI interface {
- CreateOrUpdate(ctx context.Context, resourceGroupName string, domainServiceName string, replicaSetName string, replicaSet aad.ReplicaSet) (result aad.ReplicaSetsCreateOrUpdateFuture, err error)
- Delete(ctx context.Context, resourceGroupName string, domainServiceName string, replicaSetName string) (result aad.ReplicaSetsDeleteFuture, err error)
- Get(ctx context.Context, resourceGroupName string, domainServiceName string, replicaSetName string) (result aad.ReplicaSet, err error)
- ListByResourceGroup(ctx context.Context, resourceGroupName string, domainServiceName string) (result aad.ReplicaSetListResultPage, err error)
- Update(ctx context.Context, resourceGroupName string, domainServiceName string, replicaSetName string, replicaSet aad.ReplicaSet) (result aad.ReplicaSetsUpdateFuture, err error)
-}
-
-var _ ReplicaSetsClientAPI = (*aad.ReplicaSetsClient)(nil)
diff --git a/services/domainservices/mgmt/2017-06-01/aad/domainservices.go b/services/domainservices/mgmt/2017-06-01/aad/domainservices.go
index 0587bb6f3ced..9c4e3fc68441 100644
--- a/services/domainservices/mgmt/2017-06-01/aad/domainservices.go
+++ b/services/domainservices/mgmt/2017-06-01/aad/domainservices.go
@@ -207,14 +207,13 @@ func (client DomainServicesClient) DeleteSender(req *http.Request) (future Domai
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
-func (client DomainServicesClient) DeleteResponder(resp *http.Response) (result DomainService, err error) {
+func (client DomainServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
- autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
+ result.Response = resp
return
}
diff --git a/services/domainservices/mgmt/2017-06-01/aad/models.go b/services/domainservices/mgmt/2017-06-01/aad/models.go
index 35ec375aaa13..16b51ed456d1 100644
--- a/services/domainservices/mgmt/2017-06-01/aad/models.go
+++ b/services/domainservices/mgmt/2017-06-01/aad/models.go
@@ -491,7 +491,7 @@ type DomainServicesDeleteFuture struct {
// Result returns the result of the asynchronous operation.
// If the operation has not completed it will return an error.
-func (future *DomainServicesDeleteFuture) Result(client DomainServicesClient) (ds DomainService, err error) {
+func (future *DomainServicesDeleteFuture) Result(client DomainServicesClient) (ar autorest.Response, err error) {
var done bool
done, err = future.DoneWithContext(context.Background(), client)
if err != nil {
@@ -502,13 +502,7 @@ func (future *DomainServicesDeleteFuture) Result(client DomainServicesClient) (d
err = azure.NewAsyncOpIncompleteError("aad.DomainServicesDeleteFuture")
return
}
- sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
- if ds.Response.Response, err = future.GetResult(sender); err == nil && ds.Response.Response.StatusCode != http.StatusNoContent {
- ds, err = client.DeleteResponder(ds.Response.Response)
- if err != nil {
- err = autorest.NewErrorWithError(err, "aad.DomainServicesDeleteFuture", "Result", ds.Response.Response, "Failure responding to request")
- }
- }
+ ar.Response = future.Response()
return
}
@@ -767,376 +761,6 @@ func NewOperationEntityListResultPage(getNextPage func(context.Context, Operatio
return OperationEntityListResultPage{fn: getNextPage}
}
-// ReplicaSet replica Set.
-type ReplicaSet struct {
- autorest.Response `json:"-"`
- // ReplicaSetProperties - ReplicaSet properties
- *ReplicaSetProperties `json:"properties,omitempty"`
- // ID - READ-ONLY; Resource Id
- ID *string `json:"id,omitempty"`
- // Name - READ-ONLY; Resource name
- Name *string `json:"name,omitempty"`
- // Type - READ-ONLY; Resource type
- Type *string `json:"type,omitempty"`
- // Location - Resource location
- Location *string `json:"location,omitempty"`
- // Tags - Resource tags
- Tags map[string]*string `json:"tags"`
- // Etag - Resource etag
- Etag *string `json:"etag,omitempty"`
-}
-
-// MarshalJSON is the custom marshaler for ReplicaSet.
-func (rs ReplicaSet) MarshalJSON() ([]byte, error) {
- objectMap := make(map[string]interface{})
- if rs.ReplicaSetProperties != nil {
- objectMap["properties"] = rs.ReplicaSetProperties
- }
- if rs.Location != nil {
- objectMap["location"] = rs.Location
- }
- if rs.Tags != nil {
- objectMap["tags"] = rs.Tags
- }
- if rs.Etag != nil {
- objectMap["etag"] = rs.Etag
- }
- return json.Marshal(objectMap)
-}
-
-// UnmarshalJSON is the custom unmarshaler for ReplicaSet struct.
-func (rs *ReplicaSet) UnmarshalJSON(body []byte) error {
- var m map[string]*json.RawMessage
- err := json.Unmarshal(body, &m)
- if err != nil {
- return err
- }
- for k, v := range m {
- switch k {
- case "properties":
- if v != nil {
- var replicaSetProperties ReplicaSetProperties
- err = json.Unmarshal(*v, &replicaSetProperties)
- if err != nil {
- return err
- }
- rs.ReplicaSetProperties = &replicaSetProperties
- }
- case "id":
- if v != nil {
- var ID string
- err = json.Unmarshal(*v, &ID)
- if err != nil {
- return err
- }
- rs.ID = &ID
- }
- case "name":
- if v != nil {
- var name string
- err = json.Unmarshal(*v, &name)
- if err != nil {
- return err
- }
- rs.Name = &name
- }
- case "type":
- if v != nil {
- var typeVar string
- err = json.Unmarshal(*v, &typeVar)
- if err != nil {
- return err
- }
- rs.Type = &typeVar
- }
- case "location":
- if v != nil {
- var location string
- err = json.Unmarshal(*v, &location)
- if err != nil {
- return err
- }
- rs.Location = &location
- }
- case "tags":
- if v != nil {
- var tags map[string]*string
- err = json.Unmarshal(*v, &tags)
- if err != nil {
- return err
- }
- rs.Tags = tags
- }
- case "etag":
- if v != nil {
- var etag string
- err = json.Unmarshal(*v, &etag)
- if err != nil {
- return err
- }
- rs.Etag = &etag
- }
- }
- }
-
- return nil
-}
-
-// ReplicaSetListResult the response from the List ReplicaSets operation.
-type ReplicaSetListResult struct {
- autorest.Response `json:"-"`
- // Value - the list of ReplicaSet.
- Value *[]ReplicaSet `json:"value,omitempty"`
- // NextLink - READ-ONLY; The continuation token for the next page of results.
- NextLink *string `json:"nextLink,omitempty"`
-}
-
-// ReplicaSetListResultIterator provides access to a complete listing of ReplicaSet values.
-type ReplicaSetListResultIterator struct {
- i int
- page ReplicaSetListResultPage
-}
-
-// NextWithContext advances to the next value. If there was an error making
-// the request the iterator does not advance and the error is returned.
-func (iter *ReplicaSetListResultIterator) NextWithContext(ctx context.Context) (err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ReplicaSetListResultIterator.NextWithContext")
- defer func() {
- sc := -1
- if iter.Response().Response.Response != nil {
- sc = iter.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- iter.i++
- if iter.i < len(iter.page.Values()) {
- return nil
- }
- err = iter.page.NextWithContext(ctx)
- if err != nil {
- iter.i--
- return err
- }
- iter.i = 0
- return nil
-}
-
-// Next advances to the next value. If there was an error making
-// the request the iterator does not advance and the error is returned.
-// Deprecated: Use NextWithContext() instead.
-func (iter *ReplicaSetListResultIterator) Next() error {
- return iter.NextWithContext(context.Background())
-}
-
-// NotDone returns true if the enumeration should be started or is not yet complete.
-func (iter ReplicaSetListResultIterator) NotDone() bool {
- return iter.page.NotDone() && iter.i < len(iter.page.Values())
-}
-
-// Response returns the raw server response from the last page request.
-func (iter ReplicaSetListResultIterator) Response() ReplicaSetListResult {
- return iter.page.Response()
-}
-
-// Value returns the current value or a zero-initialized value if the
-// iterator has advanced beyond the end of the collection.
-func (iter ReplicaSetListResultIterator) Value() ReplicaSet {
- if !iter.page.NotDone() {
- return ReplicaSet{}
- }
- return iter.page.Values()[iter.i]
-}
-
-// Creates a new instance of the ReplicaSetListResultIterator type.
-func NewReplicaSetListResultIterator(page ReplicaSetListResultPage) ReplicaSetListResultIterator {
- return ReplicaSetListResultIterator{page: page}
-}
-
-// IsEmpty returns true if the ListResult contains no values.
-func (rslr ReplicaSetListResult) IsEmpty() bool {
- return rslr.Value == nil || len(*rslr.Value) == 0
-}
-
-// replicaSetListResultPreparer prepares a request to retrieve the next set of results.
-// It returns nil if no more results exist.
-func (rslr ReplicaSetListResult) replicaSetListResultPreparer(ctx context.Context) (*http.Request, error) {
- if rslr.NextLink == nil || len(to.String(rslr.NextLink)) < 1 {
- return nil, nil
- }
- return autorest.Prepare((&http.Request{}).WithContext(ctx),
- autorest.AsJSON(),
- autorest.AsGet(),
- autorest.WithBaseURL(to.String(rslr.NextLink)))
-}
-
-// ReplicaSetListResultPage contains a page of ReplicaSet values.
-type ReplicaSetListResultPage struct {
- fn func(context.Context, ReplicaSetListResult) (ReplicaSetListResult, error)
- rslr ReplicaSetListResult
-}
-
-// NextWithContext advances to the next page of values. If there was an error making
-// the request the page does not advance and the error is returned.
-func (page *ReplicaSetListResultPage) NextWithContext(ctx context.Context) (err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ReplicaSetListResultPage.NextWithContext")
- defer func() {
- sc := -1
- if page.Response().Response.Response != nil {
- sc = page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- next, err := page.fn(ctx, page.rslr)
- if err != nil {
- return err
- }
- page.rslr = next
- return nil
-}
-
-// Next advances to the next page of values. If there was an error making
-// the request the page does not advance and the error is returned.
-// Deprecated: Use NextWithContext() instead.
-func (page *ReplicaSetListResultPage) Next() error {
- return page.NextWithContext(context.Background())
-}
-
-// NotDone returns true if the page enumeration should be started or is not yet complete.
-func (page ReplicaSetListResultPage) NotDone() bool {
- return !page.rslr.IsEmpty()
-}
-
-// Response returns the raw server response from the last page request.
-func (page ReplicaSetListResultPage) Response() ReplicaSetListResult {
- return page.rslr
-}
-
-// Values returns the slice of values for the current page or nil if there are no values.
-func (page ReplicaSetListResultPage) Values() []ReplicaSet {
- if page.rslr.IsEmpty() {
- return nil
- }
- return *page.rslr.Value
-}
-
-// Creates a new instance of the ReplicaSetListResultPage type.
-func NewReplicaSetListResultPage(getNextPage func(context.Context, ReplicaSetListResult) (ReplicaSetListResult, error)) ReplicaSetListResultPage {
- return ReplicaSetListResultPage{fn: getNextPage}
-}
-
-// ReplicaSetProperties properties of the ReplicaSet.
-type ReplicaSetProperties struct {
- // ReplicaSetID - READ-ONLY; ReplicaSet Id
- ReplicaSetID *string `json:"replicaSetId,omitempty"`
- // SubnetID - The name of the virtual network that ReplicaSets will be deployed on. /virtualNetwork/vnetName/subnets/subnetName.
- SubnetID *string `json:"subnetId,omitempty"`
- // HealthLastEvaluated - READ-ONLY; Last domain evaluation run DateTime
- HealthLastEvaluated *date.Time `json:"healthLastEvaluated,omitempty"`
- // HealthMonitors - READ-ONLY; List of Domain Health Monitors
- HealthMonitors *[]HealthMonitor `json:"healthMonitors,omitempty"`
- // HealthAlerts - READ-ONLY; List of Domain Health Alerts
- HealthAlerts *[]HealthAlert `json:"healthAlerts,omitempty"`
- // DomainControllerIPAddress - READ-ONLY; List of Domain Controller IP Address
- DomainControllerIPAddress *[]string `json:"domainControllerIpAddress,omitempty"`
- // ServiceStatus - READ-ONLY; Status of Domain Service instance
- ServiceStatus *string `json:"serviceStatus,omitempty"`
- // ProvisioningState - READ-ONLY; the current deployment or provisioning state, which only appears in the response.
- ProvisioningState *string `json:"provisioningState,omitempty"`
- // ExternalAccessIPAddress - READ-ONLY; External access ip address.
- ExternalAccessIPAddress *string `json:"externalAccessIpAddress,omitempty"`
-}
-
-// ReplicaSetsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a
-// long-running operation.
-type ReplicaSetsCreateOrUpdateFuture struct {
- azure.Future
-}
-
-// Result returns the result of the asynchronous operation.
-// If the operation has not completed it will return an error.
-func (future *ReplicaSetsCreateOrUpdateFuture) Result(client ReplicaSetsClient) (rs ReplicaSet, err error) {
- var done bool
- done, err = future.DoneWithContext(context.Background(), client)
- if err != nil {
- err = autorest.NewErrorWithError(err, "aad.ReplicaSetsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure")
- return
- }
- if !done {
- err = azure.NewAsyncOpIncompleteError("aad.ReplicaSetsCreateOrUpdateFuture")
- return
- }
- sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
- if rs.Response.Response, err = future.GetResult(sender); err == nil && rs.Response.Response.StatusCode != http.StatusNoContent {
- rs, err = client.CreateOrUpdateResponder(rs.Response.Response)
- if err != nil {
- err = autorest.NewErrorWithError(err, "aad.ReplicaSetsCreateOrUpdateFuture", "Result", rs.Response.Response, "Failure responding to request")
- }
- }
- return
-}
-
-// ReplicaSetsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running
-// operation.
-type ReplicaSetsDeleteFuture struct {
- azure.Future
-}
-
-// Result returns the result of the asynchronous operation.
-// If the operation has not completed it will return an error.
-func (future *ReplicaSetsDeleteFuture) Result(client ReplicaSetsClient) (rs ReplicaSet, err error) {
- var done bool
- done, err = future.DoneWithContext(context.Background(), client)
- if err != nil {
- err = autorest.NewErrorWithError(err, "aad.ReplicaSetsDeleteFuture", "Result", future.Response(), "Polling failure")
- return
- }
- if !done {
- err = azure.NewAsyncOpIncompleteError("aad.ReplicaSetsDeleteFuture")
- return
- }
- sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
- if rs.Response.Response, err = future.GetResult(sender); err == nil && rs.Response.Response.StatusCode != http.StatusNoContent {
- rs, err = client.DeleteResponder(rs.Response.Response)
- if err != nil {
- err = autorest.NewErrorWithError(err, "aad.ReplicaSetsDeleteFuture", "Result", rs.Response.Response, "Failure responding to request")
- }
- }
- return
-}
-
-// ReplicaSetsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running
-// operation.
-type ReplicaSetsUpdateFuture struct {
- azure.Future
-}
-
-// Result returns the result of the asynchronous operation.
-// If the operation has not completed it will return an error.
-func (future *ReplicaSetsUpdateFuture) Result(client ReplicaSetsClient) (rs ReplicaSet, err error) {
- var done bool
- done, err = future.DoneWithContext(context.Background(), client)
- if err != nil {
- err = autorest.NewErrorWithError(err, "aad.ReplicaSetsUpdateFuture", "Result", future.Response(), "Polling failure")
- return
- }
- if !done {
- err = azure.NewAsyncOpIncompleteError("aad.ReplicaSetsUpdateFuture")
- return
- }
- sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
- if rs.Response.Response, err = future.GetResult(sender); err == nil && rs.Response.Response.StatusCode != http.StatusNoContent {
- rs, err = client.UpdateResponder(rs.Response.Response)
- if err != nil {
- err = autorest.NewErrorWithError(err, "aad.ReplicaSetsUpdateFuture", "Result", rs.Response.Response, "Failure responding to request")
- }
- }
- return
-}
-
// Resource the Resource model definition.
type Resource struct {
// ID - READ-ONLY; Resource Id
diff --git a/services/domainservices/mgmt/2017-06-01/aad/replicasets.go b/services/domainservices/mgmt/2017-06-01/aad/replicasets.go
deleted file mode 100644
index 9e2b7b2a1074..000000000000
--- a/services/domainservices/mgmt/2017-06-01/aad/replicasets.go
+++ /dev/null
@@ -1,526 +0,0 @@
-package aad
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// ReplicaSetsClient is the the AAD Domain Services API.
-type ReplicaSetsClient struct {
- BaseClient
-}
-
-// NewReplicaSetsClient creates an instance of the ReplicaSetsClient client.
-func NewReplicaSetsClient(subscriptionID string) ReplicaSetsClient {
- return NewReplicaSetsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewReplicaSetsClientWithBaseURI creates an instance of the ReplicaSetsClient client.
-func NewReplicaSetsClientWithBaseURI(baseURI string, subscriptionID string) ReplicaSetsClient {
- return ReplicaSetsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate the Create ReplicaSet operation creates a new domain service with the specified parameters.
-// Parameters:
-// resourceGroupName - the name of the resource group within the user's subscription. The name is case
-// insensitive.
-// domainServiceName - the name of the domain service.
-// replicaSetName - the name of the replica set.
-// replicaSet - properties supplied to the Create ReplicaSet operation.
-func (client ReplicaSetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, domainServiceName string, replicaSetName string, replicaSet ReplicaSet) (result ReplicaSetsCreateOrUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ReplicaSetsClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: resourceGroupName,
- 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("aad.ReplicaSetsClient", "CreateOrUpdate", err.Error())
- }
-
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, domainServiceName, replicaSetName, replicaSet)
- if err != nil {
- err = autorest.NewErrorWithError(err, "aad.ReplicaSetsClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateOrUpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "aad.ReplicaSetsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client ReplicaSetsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, domainServiceName string, replicaSetName string, replicaSet ReplicaSet) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "domainServiceName": autorest.Encode("path", domainServiceName),
- "replicaSetName": autorest.Encode("path", replicaSetName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-06-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.AAD/domainServices/{domainServiceName}/replicaSets/{replicaSetName}", pathParameters),
- autorest.WithJSON(replicaSet),
- 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 ReplicaSetsClient) CreateOrUpdateSender(req *http.Request) (future ReplicaSetsCreateOrUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client ReplicaSetsClient) CreateOrUpdateResponder(resp *http.Response) (result ReplicaSet, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// Delete the Delete ReplicaSet operation deletes an existing ReplicaSet.
-// Parameters:
-// resourceGroupName - the name of the resource group within the user's subscription. The name is case
-// insensitive.
-// domainServiceName - the name of the domain service.
-// replicaSetName - the name of the replica set.
-func (client ReplicaSetsClient) Delete(ctx context.Context, resourceGroupName string, domainServiceName string, replicaSetName string) (result ReplicaSetsDeleteFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ReplicaSetsClient.Delete")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: resourceGroupName,
- 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("aad.ReplicaSetsClient", "Delete", err.Error())
- }
-
- req, err := client.DeletePreparer(ctx, resourceGroupName, domainServiceName, replicaSetName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "aad.ReplicaSetsClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- result, err = client.DeleteSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "aad.ReplicaSetsClient", "Delete", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client ReplicaSetsClient) DeletePreparer(ctx context.Context, resourceGroupName string, domainServiceName string, replicaSetName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "domainServiceName": autorest.Encode("path", domainServiceName),
- "replicaSetName": autorest.Encode("path", replicaSetName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-06-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.AAD/domainServices/{domainServiceName}/replicaSets/{replicaSetName}", 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 ReplicaSetsClient) DeleteSender(req *http.Request) (future ReplicaSetsDeleteFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client ReplicaSetsClient) DeleteResponder(resp *http.Response) (result ReplicaSet, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// Get the Get ReplicaSet operation retrieves a json representation of the ReplicaSet.
-// Parameters:
-// resourceGroupName - the name of the resource group within the user's subscription. The name is case
-// insensitive.
-// domainServiceName - the name of the domain service.
-// replicaSetName - the name of the replica set.
-func (client ReplicaSetsClient) Get(ctx context.Context, resourceGroupName string, domainServiceName string, replicaSetName string) (result ReplicaSet, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ReplicaSetsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: resourceGroupName,
- 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("aad.ReplicaSetsClient", "Get", err.Error())
- }
-
- req, err := client.GetPreparer(ctx, resourceGroupName, domainServiceName, replicaSetName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "aad.ReplicaSetsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "aad.ReplicaSetsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "aad.ReplicaSetsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client ReplicaSetsClient) GetPreparer(ctx context.Context, resourceGroupName string, domainServiceName string, replicaSetName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "domainServiceName": autorest.Encode("path", domainServiceName),
- "replicaSetName": autorest.Encode("path", replicaSetName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-06-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.AAD/domainServices/{domainServiceName}/replicaSets/{replicaSetName}", 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 ReplicaSetsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client ReplicaSetsClient) GetResponder(resp *http.Response) (result ReplicaSet, 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 the List ReplicaSets in Resource Group operation lists all the domain services available under
-// the given resource group.
-// Parameters:
-// resourceGroupName - the name of the resource group within the user's subscription. The name is case
-// insensitive.
-// domainServiceName - the name of the domain service.
-func (client ReplicaSetsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, domainServiceName string) (result ReplicaSetListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ReplicaSetsClient.ListByResourceGroup")
- defer func() {
- sc := -1
- if result.rslr.Response.Response != nil {
- sc = result.rslr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: resourceGroupName,
- 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("aad.ReplicaSetsClient", "ListByResourceGroup", err.Error())
- }
-
- result.fn = client.listByResourceGroupNextResults
- req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName, domainServiceName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "aad.ReplicaSetsClient", "ListByResourceGroup", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByResourceGroupSender(req)
- if err != nil {
- result.rslr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "aad.ReplicaSetsClient", "ListByResourceGroup", resp, "Failure sending request")
- return
- }
-
- result.rslr, err = client.ListByResourceGroupResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "aad.ReplicaSetsClient", "ListByResourceGroup", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
-func (client ReplicaSetsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, domainServiceName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "domainServiceName": autorest.Encode("path", domainServiceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-06-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.AAD/domainServices/{domainServiceName}/replicaSets", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
-// http.Response Body if it receives an error.
-func (client ReplicaSetsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
-// closes the http.Response Body.
-func (client ReplicaSetsClient) ListByResourceGroupResponder(resp *http.Response) (result ReplicaSetListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByResourceGroupNextResults retrieves the next set of results, if any.
-func (client ReplicaSetsClient) listByResourceGroupNextResults(ctx context.Context, lastResults ReplicaSetListResult) (result ReplicaSetListResult, err error) {
- req, err := lastResults.replicaSetListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "aad.ReplicaSetsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByResourceGroupSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "aad.ReplicaSetsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByResourceGroupResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "aad.ReplicaSetsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ReplicaSetsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, domainServiceName string) (result ReplicaSetListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ReplicaSetsClient.ListByResourceGroup")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByResourceGroup(ctx, resourceGroupName, domainServiceName)
- return
-}
-
-// Update the Update ReplicaSet operation can be used to update the existing deployment. The update call only supports
-// the properties listed in the PATCH body.
-// Parameters:
-// resourceGroupName - the name of the resource group within the user's subscription. The name is case
-// insensitive.
-// domainServiceName - the name of the domain service.
-// replicaSetName - the name of the replica set.
-// replicaSet - properties supplied to the Update a ReplicaSet operation.
-func (client ReplicaSetsClient) Update(ctx context.Context, resourceGroupName string, domainServiceName string, replicaSetName string, replicaSet ReplicaSet) (result ReplicaSetsUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ReplicaSetsClient.Update")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: resourceGroupName,
- 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("aad.ReplicaSetsClient", "Update", err.Error())
- }
-
- req, err := client.UpdatePreparer(ctx, resourceGroupName, domainServiceName, replicaSetName, replicaSet)
- if err != nil {
- err = autorest.NewErrorWithError(err, "aad.ReplicaSetsClient", "Update", nil, "Failure preparing request")
- return
- }
-
- result, err = client.UpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "aad.ReplicaSetsClient", "Update", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// UpdatePreparer prepares the Update request.
-func (client ReplicaSetsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, domainServiceName string, replicaSetName string, replicaSet ReplicaSet) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "domainServiceName": autorest.Encode("path", domainServiceName),
- "replicaSetName": autorest.Encode("path", replicaSetName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-06-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.AAD/domainServices/{domainServiceName}/replicaSets/{replicaSetName}", pathParameters),
- autorest.WithJSON(replicaSet),
- 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 ReplicaSetsClient) UpdateSender(req *http.Request) (future ReplicaSetsUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// UpdateResponder handles the response to the Update request. The method always
-// closes the http.Response Body.
-func (client ReplicaSetsClient) UpdateResponder(resp *http.Response) (result ReplicaSet, 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}
- return
-}
diff --git a/services/eventgrid/2018-01-01/eventgrid/models.go b/services/eventgrid/2018-01-01/eventgrid/models.go
index 22409444354c..2880fc15d397 100644
--- a/services/eventgrid/2018-01-01/eventgrid/models.go
+++ b/services/eventgrid/2018-01-01/eventgrid/models.go
@@ -721,6 +721,72 @@ type KeyVaultSecretNewVersionCreatedEventData struct {
Exp *float64 `json:"exp,omitempty"`
}
+// MachineLearningServicesDatasetDriftDetectedEventData schema of the Data property of an EventGridEvent
+// for an Microsoft.MachineLearningServices.DatasetDriftDetected event.
+type MachineLearningServicesDatasetDriftDetectedEventData struct {
+ // DataDriftID - The ID of the data drift monitor that triggered the event.
+ DataDriftID *string `json:"dataDriftId,omitempty"`
+ // DataDriftName - The name of the data drift monitor that triggered the event.
+ DataDriftName *string `json:"dataDriftName,omitempty"`
+ // RunID - The ID of the Run that detected data drift.
+ RunID *string `json:"runId,omitempty"`
+ // BaseDatasetID - The ID of the base Dataset used to detect drift.
+ BaseDatasetID *string `json:"baseDatasetId,omitempty"`
+ // TargetDatasetID - The ID of the target Dataset used to detect drift.
+ TargetDatasetID *string `json:"targetDatasetId,omitempty"`
+ // DriftCoefficient - The coefficient result that triggered the event.
+ DriftCoefficient *float64 `json:"driftCoefficient,omitempty"`
+ // StartTime - The start time of the target dataset time series that resulted in drift detection.
+ StartTime *date.Time `json:"startTime,omitempty"`
+ // EndTime - The end time of the target dataset time series that resulted in drift detection.
+ EndTime *date.Time `json:"endTime,omitempty"`
+}
+
+// MachineLearningServicesModelDeployedEventData schema of the Data property of an EventGridEvent for an
+// Microsoft.MachineLearningServices.ModelDeployed event.
+type MachineLearningServicesModelDeployedEventData struct {
+ // ServiceName - The name of the deployed service.
+ ServiceName *string `json:"serviceName,omitempty"`
+ // ServiceComputeType - The compute type (e.g. ACI, AKS) of the deployed service.
+ ServiceComputeType *string `json:"serviceComputeType,omitempty"`
+ // ModelIds - A common separated list of model IDs. The IDs of the models deployed in the service.
+ ModelIds *string `json:"modelIds,omitempty"`
+ // ServiceTags - The tags of the deployed service.
+ ServiceTags interface{} `json:"serviceTags,omitempty"`
+ // ServiceProperties - The properties of the deployed service.
+ ServiceProperties interface{} `json:"serviceProperties,omitempty"`
+}
+
+// MachineLearningServicesModelRegisteredEventData schema of the Data property of an EventGridEvent for an
+// Microsoft.MachineLearningServices.ModelRegistered event.
+type MachineLearningServicesModelRegisteredEventData struct {
+ // ModelName - The name of the model that was registered.
+ ModelName *string `json:"modelName,omitempty"`
+ // ModelVersion - The version of the model that was registered.
+ ModelVersion *int32 `json:"modelVersion,omitempty"`
+ // ModelTags - The tags of the model that was registered.
+ ModelTags interface{} `json:"modelTags,omitempty"`
+ // ModelProperties - The properties of the model that was registered.
+ ModelProperties interface{} `json:"modelProperties,omitempty"`
+}
+
+// MachineLearningServicesRunCompletedEventData schema of the Data property of an EventGridEvent for an
+// Microsoft.MachineLearningServices.RunCompleted event.
+type MachineLearningServicesRunCompletedEventData struct {
+ // ExperimentID - The ID of the experiment that the run belongs to.
+ ExperimentID *string `json:"experimentId,omitempty"`
+ // ExperimentName - The name of the experiment that the run belongs to.
+ ExperimentName *string `json:"experimentName,omitempty"`
+ // RunID - The ID of the Run that was completed.
+ RunID *string `json:"runId,omitempty"`
+ // RunType - The Run Type of the completed Run.
+ RunType *string `json:"runType,omitempty"`
+ // RunTags - The tags of the completed Run.
+ RunTags interface{} `json:"runTags,omitempty"`
+ // RunProperties - The properties of the completed Run.
+ RunProperties interface{} `json:"runProperties,omitempty"`
+}
+
// MapsGeofenceEnteredEventData schema of the Data property of an EventGridEvent for a
// Microsoft.Maps.GeofenceEntered event.
type MapsGeofenceEnteredEventData struct {
@@ -2188,18 +2254,22 @@ type StorageBlobCreatedEventData struct {
ClientRequestID *string `json:"clientRequestId,omitempty"`
// RequestID - The request id generated by the Storage service for the storage API operation that triggered this event.
RequestID *string `json:"requestId,omitempty"`
- // ETag - The etag of the object at the time this event was triggered.
+ // ETag - The etag of the blob at the time this event was triggered.
ETag *string `json:"eTag,omitempty"`
// ContentType - The content type of the blob. This is the same as what would be returned in the Content-Type header from the blob.
ContentType *string `json:"contentType,omitempty"`
// ContentLength - The size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob.
ContentLength *int64 `json:"contentLength,omitempty"`
+ // ContentOffset - The offset of the blob in bytes.
+ ContentOffset *int64 `json:"contentOffset,omitempty"`
// BlobType - The type of blob.
BlobType *string `json:"blobType,omitempty"`
// URL - The path to the blob.
URL *string `json:"url,omitempty"`
// Sequencer - An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name.
Sequencer *string `json:"sequencer,omitempty"`
+ // Identity - The identity of the requester that triggered this event.
+ Identity *string `json:"identity,omitempty"`
// StorageDiagnostics - For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.
StorageDiagnostics interface{} `json:"storageDiagnostics,omitempty"`
}
@@ -2221,6 +2291,92 @@ type StorageBlobDeletedEventData struct {
URL *string `json:"url,omitempty"`
// Sequencer - An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name.
Sequencer *string `json:"sequencer,omitempty"`
+ // Identity - The identity of the requester that triggered this event.
+ Identity *string `json:"identity,omitempty"`
+ // StorageDiagnostics - For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.
+ StorageDiagnostics interface{} `json:"storageDiagnostics,omitempty"`
+}
+
+// StorageBlobRenamedEventData schema of the Data property of an EventGridEvent for an
+// Microsoft.Storage.BlobRenamed event.
+type StorageBlobRenamedEventData struct {
+ // API - The name of the API/operation that triggered this event.
+ API *string `json:"api,omitempty"`
+ // ClientRequestID - A request id provided by the client of the storage API operation that triggered this event.
+ ClientRequestID *string `json:"clientRequestId,omitempty"`
+ // RequestID - The request id generated by the storage service for the storage API operation that triggered this event.
+ RequestID *string `json:"requestId,omitempty"`
+ // SourceURL - The path to the blob that was renamed.
+ SourceURL *string `json:"sourceUrl,omitempty"`
+ // DestinationURL - The new path to the blob after the rename operation.
+ DestinationURL *string `json:"destinationUrl,omitempty"`
+ // Sequencer - An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name.
+ Sequencer *string `json:"sequencer,omitempty"`
+ // Identity - The identity of the requester that triggered this event.
+ Identity *string `json:"identity,omitempty"`
+ // StorageDiagnostics - For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.
+ StorageDiagnostics interface{} `json:"storageDiagnostics,omitempty"`
+}
+
+// StorageDirectoryCreatedEventData schema of the Data property of an EventGridEvent for an
+// Microsoft.Storage.DirectoryCreated event.
+type StorageDirectoryCreatedEventData struct {
+ // API - The name of the API/operation that triggered this event.
+ API *string `json:"api,omitempty"`
+ // ClientRequestID - A request id provided by the client of the storage API operation that triggered this event.
+ ClientRequestID *string `json:"clientRequestId,omitempty"`
+ // RequestID - The request id generated by the storage service for the storage API operation that triggered this event.
+ RequestID *string `json:"requestId,omitempty"`
+ // ETag - The etag of the directory at the time this event was triggered.
+ ETag *string `json:"eTag,omitempty"`
+ // URL - The path to the directory.
+ URL *string `json:"url,omitempty"`
+ // Sequencer - An opaque string value representing the logical sequence of events for any particular directory name. Users can use standard string comparison to understand the relative sequence of two events on the same directory name.
+ Sequencer *string `json:"sequencer,omitempty"`
+ // Identity - The identity of the requester that triggered this event.
+ Identity *string `json:"identity,omitempty"`
+ // StorageDiagnostics - For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.
+ StorageDiagnostics interface{} `json:"storageDiagnostics,omitempty"`
+}
+
+// StorageDirectoryDeletedEventData schema of the Data property of an EventGridEvent for an
+// Microsoft.Storage.DirectoryDeleted event.
+type StorageDirectoryDeletedEventData struct {
+ // API - The name of the API/operation that triggered this event.
+ API *string `json:"api,omitempty"`
+ // ClientRequestID - A request id provided by the client of the storage API operation that triggered this event.
+ ClientRequestID *string `json:"clientRequestId,omitempty"`
+ // RequestID - The request id generated by the storage service for the storage API operation that triggered this event.
+ RequestID *string `json:"requestId,omitempty"`
+ // URL - The path to the deleted directory.
+ URL *string `json:"url,omitempty"`
+ // Recursive - Is this event for a recursive delete operation.
+ Recursive *bool `json:"recursive,omitempty"`
+ // Sequencer - An opaque string value representing the logical sequence of events for any particular directory name. Users can use standard string comparison to understand the relative sequence of two events on the same directory name.
+ Sequencer *string `json:"sequencer,omitempty"`
+ // Identity - The identity of the requester that triggered this event.
+ Identity *string `json:"identity,omitempty"`
+ // StorageDiagnostics - For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.
+ StorageDiagnostics interface{} `json:"storageDiagnostics,omitempty"`
+}
+
+// StorageDirectoryRenamedEventData schema of the Data property of an EventGridEvent for an
+// Microsoft.Storage.DirectoryRenamed event.
+type StorageDirectoryRenamedEventData struct {
+ // API - The name of the API/operation that triggered this event.
+ API *string `json:"api,omitempty"`
+ // ClientRequestID - A request id provided by the client of the storage API operation that triggered this event.
+ ClientRequestID *string `json:"clientRequestId,omitempty"`
+ // RequestID - The request id generated by the storage service for the storage API operation that triggered this event.
+ RequestID *string `json:"requestId,omitempty"`
+ // SourceURL - The path to the directory that was renamed.
+ SourceURL *string `json:"sourceUrl,omitempty"`
+ // DestinationURL - The new path to the directory after the rename operation.
+ DestinationURL *string `json:"destinationUrl,omitempty"`
+ // Sequencer - An opaque string value representing the logical sequence of events for any particular directory name. Users can use standard string comparison to understand the relative sequence of two events on the same directory name.
+ Sequencer *string `json:"sequencer,omitempty"`
+ // Identity - The identity of the requester that triggered this event.
+ Identity *string `json:"identity,omitempty"`
// StorageDiagnostics - For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.
StorageDiagnostics interface{} `json:"storageDiagnostics,omitempty"`
}
diff --git a/services/maps/mgmt/2017-01-01-preview/maps/models.go b/services/maps/mgmt/2017-01-01-preview/maps/models.go
index b498e124ed7d..626217a93580 100644
--- a/services/maps/mgmt/2017-01-01-preview/maps/models.go
+++ b/services/maps/mgmt/2017-01-01-preview/maps/models.go
@@ -49,6 +49,8 @@ type Account struct {
Tags map[string]*string `json:"tags"`
// Sku - READ-ONLY; The SKU of this account.
Sku *Sku `json:"sku,omitempty"`
+ // Properties - READ-ONLY; The map account properties.
+ Properties *AccountProperties `json:"properties,omitempty"`
// ID - READ-ONLY; The fully qualified Maps Account resource identifier.
ID *string `json:"id,omitempty"`
// Name - READ-ONLY; The name of the Maps Account, which is unique within a Resource Group.
@@ -100,6 +102,12 @@ type AccountKeys struct {
SecondaryKey *string `json:"secondaryKey,omitempty"`
}
+// AccountProperties additional Map account properties
+type AccountProperties struct {
+ // XMsClientID - A unique identifier for the maps account
+ XMsClientID *string `json:"x-ms-client-id,omitempty"`
+}
+
// Accounts a list of Maps Accounts.
type Accounts struct {
autorest.Response `json:"-"`
diff --git a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/models.go b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/models.go
index 53135ebcbfaa..1e5b422a5761 100644
--- a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/models.go
+++ b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/models.go
@@ -21,7 +21,6 @@ import (
"context"
"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/Azure/go-autorest/tracing"
@@ -264,7 +263,7 @@ func (ss *SavedSearch) UnmarshalJSON(body []byte) error {
// SavedSearchesListResult the saved search list operation response.
type SavedSearchesListResult struct {
autorest.Response `json:"-"`
- // Metadata - The metadata from search results.
+ // Metadata - Unused legacy property, kept here for backward compatibility.
Metadata *SearchMetadata `json:"__metadata,omitempty"`
// Value - The array of result values.
Value *[]SavedSearch `json:"value,omitempty"`
@@ -284,14 +283,6 @@ type SavedSearchProperties struct {
Tags *[]Tag `json:"tags,omitempty"`
}
-// SearchError details for a search error.
-type SearchError struct {
- // Type - The error type.
- Type *string `json:"type,omitempty"`
- // Message - The error message.
- Message *string `json:"message,omitempty"`
-}
-
// SearchGetSchemaResponse the get schema operation response.
type SearchGetSchemaResponse struct {
autorest.Response `json:"-"`
@@ -301,14 +292,6 @@ type SearchGetSchemaResponse struct {
Value *[]SearchSchemaValue `json:"value,omitempty"`
}
-// SearchHighlight highlight details.
-type SearchHighlight struct {
- // Pre - The string that is put before a matched result.
- Pre *string `json:"pre,omitempty"`
- // Post - The string that is put after a matched result.
- Post *string `json:"post,omitempty"`
-}
-
// SearchMetadata metadata for search results.
type SearchMetadata struct {
// SearchID - The request id of the search.
@@ -355,33 +338,6 @@ type SearchMetadataSchema struct {
Version *int32 `json:"version,omitempty"`
}
-// SearchParameters parameters specifying the search query and range.
-type SearchParameters struct {
- // Top - The number to get from the top.
- Top *int64 `json:"top,omitempty"`
- // Highlight - The highlight that looks for all occurrences of a string.
- Highlight *SearchHighlight `json:"highlight,omitempty"`
- // Query - The query to search.
- Query *string `json:"query,omitempty"`
- // Start - The start date filter, so the only query results returned are after this date.
- Start *date.Time `json:"start,omitempty"`
- // End - The end date filter, so the only query results returned are before this date.
- End *date.Time `json:"end,omitempty"`
-}
-
-// SearchResultsResponse the get search result operation response.
-type SearchResultsResponse struct {
- autorest.Response `json:"-"`
- // ID - READ-ONLY; The id of the search, which includes the full url.
- ID *string `json:"id,omitempty"`
- // Metadata - The metadata from search results.
- Metadata *SearchMetadata `json:"metaData,omitempty"`
- // Value - The array of result values.
- Value *[]interface{} `json:"value,omitempty"`
- // Error - The error.
- Error *SearchError `json:"error,omitempty"`
-}
-
// SearchSchemaValue value object for schema results.
type SearchSchemaValue struct {
// Name - The name of the schema.
@@ -733,32 +689,3 @@ type WorkspacePurgeStatusResponse struct {
// Status - Status of the operation represented by the requested Id. Possible values include: 'Pending', 'Completed'
Status PurgeState `json:"status,omitempty"`
}
-
-// WorkspacesGetSearchResultsFuture an abstraction for monitoring and retrieving the results of a
-// long-running operation.
-type WorkspacesGetSearchResultsFuture struct {
- azure.Future
-}
-
-// Result returns the result of the asynchronous operation.
-// If the operation has not completed it will return an error.
-func (future *WorkspacesGetSearchResultsFuture) Result(client WorkspacesClient) (srr SearchResultsResponse, err error) {
- var done bool
- done, err = future.DoneWithContext(context.Background(), client)
- if err != nil {
- err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesGetSearchResultsFuture", "Result", future.Response(), "Polling failure")
- return
- }
- if !done {
- err = azure.NewAsyncOpIncompleteError("operationalinsights.WorkspacesGetSearchResultsFuture")
- return
- }
- sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
- if srr.Response.Response, err = future.GetResult(sender); err == nil && srr.Response.Response.StatusCode != http.StatusNoContent {
- srr, err = client.GetSearchResultsResponder(srr.Response.Response)
- if err != nil {
- err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesGetSearchResultsFuture", "Result", srr.Response.Response, "Failure responding to request")
- }
- }
- return
-}
diff --git a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/operationalinsightsapi/interfaces.go b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/operationalinsightsapi/interfaces.go
index 659bb6cffd24..7db515a6cbbd 100644
--- a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/operationalinsightsapi/interfaces.go
+++ b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/operationalinsightsapi/interfaces.go
@@ -38,12 +38,10 @@ type WorkspacesClientAPI interface {
DeleteGateways(ctx context.Context, resourceGroupName string, workspaceName string, gatewayID string) (result autorest.Response, err error)
GetPurgeStatus(ctx context.Context, resourceGroupName string, workspaceName string) (result operationalinsights.WorkspacePurgeStatusResponse, err error)
GetSchema(ctx context.Context, resourceGroupName string, workspaceName string) (result operationalinsights.SearchGetSchemaResponse, err error)
- GetSearchResults(ctx context.Context, resourceGroupName string, workspaceName string, parameters operationalinsights.SearchParameters) (result operationalinsights.WorkspacesGetSearchResultsFuture, err error)
ListKeys(ctx context.Context, resourceGroupName string, workspaceName string) (result operationalinsights.SharedKeys, err error)
ListLinkTargets(ctx context.Context) (result operationalinsights.ListLinkTarget, err error)
Purge(ctx context.Context, resourceGroupName string, workspaceName string, body operationalinsights.WorkspacePurgeBody) (result operationalinsights.WorkspacePurgeResponse, err error)
RegenerateSharedKeys(ctx context.Context, resourceGroupName string, workspaceName string) (result operationalinsights.SharedKeys, err error)
- UpdateSearchResults(ctx context.Context, resourceGroupName string, workspaceName string, ID string) (result operationalinsights.SearchResultsResponse, err error)
}
var _ WorkspacesClientAPI = (*operationalinsights.WorkspacesClient)(nil)
@@ -53,7 +51,6 @@ type SavedSearchesClientAPI interface {
CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string, parameters operationalinsights.SavedSearch) (result operationalinsights.SavedSearch, err error)
Delete(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string) (result autorest.Response, err error)
Get(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string) (result operationalinsights.SavedSearch, err error)
- GetResults(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string) (result operationalinsights.SearchResultsResponse, err error)
ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string) (result operationalinsights.SavedSearchesListResult, err error)
}
diff --git a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/savedsearches.go b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/savedsearches.go
index 62b89f840ccc..c14989217454 100644
--- a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/savedsearches.go
+++ b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/savedsearches.go
@@ -317,93 +317,6 @@ func (client SavedSearchesClient) GetResponder(resp *http.Response) (result Save
return
}
-// GetResults gets the results from a saved search for a given workspace.
-// Parameters:
-// resourceGroupName - the Resource Group name.
-// workspaceName - the Log Analytics Workspace name.
-// savedSearchID - the id of the saved search.
-func (client SavedSearchesClient) GetResults(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string) (result SearchResultsResponse, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/SavedSearchesClient.GetResults")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: resourceGroupName,
- 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("operationalinsights.SavedSearchesClient", "GetResults", err.Error())
- }
-
- req, err := client.GetResultsPreparer(ctx, resourceGroupName, workspaceName, savedSearchID)
- if err != nil {
- err = autorest.NewErrorWithError(err, "operationalinsights.SavedSearchesClient", "GetResults", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetResultsSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "operationalinsights.SavedSearchesClient", "GetResults", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResultsResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "operationalinsights.SavedSearchesClient", "GetResults", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetResultsPreparer prepares the GetResults request.
-func (client SavedSearchesClient) GetResultsPreparer(ctx context.Context, resourceGroupName string, workspaceName string, savedSearchID string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "savedSearchId": autorest.Encode("path", savedSearchID),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "workspaceName": autorest.Encode("path", workspaceName),
- }
-
- const APIVersion = "2015-03-20"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}/results", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// GetResultsSender sends the GetResults request. The method will close the
-// http.Response Body if it receives an error.
-func (client SavedSearchesClient) GetResultsSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResultsResponder handles the response to the GetResults request. The method always
-// closes the http.Response Body.
-func (client SavedSearchesClient) GetResultsResponder(resp *http.Response) (result SearchResultsResponse, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
// ListByWorkspace gets the saved searches for a given Log Analytics Workspace
// Parameters:
// resourceGroupName - the Resource Group name.
diff --git a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/workspaces.go b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/workspaces.go
index 151d5fdd4ca0..26f9a8aa6db7 100644
--- a/services/operationalinsights/mgmt/2015-03-20/operationalinsights/workspaces.go
+++ b/services/operationalinsights/mgmt/2015-03-20/operationalinsights/workspaces.go
@@ -298,98 +298,6 @@ func (client WorkspacesClient) GetSchemaResponder(resp *http.Response) (result S
return
}
-// GetSearchResults submit a search for a given workspace. The response will contain an id to track the search. User
-// can use the id to poll the search status and get the full search result later if the search takes long time to
-// finish.
-// Parameters:
-// resourceGroupName - the Resource Group name.
-// workspaceName - the Log Analytics Workspace name.
-// parameters - the parameters required to execute a search query.
-func (client WorkspacesClient) GetSearchResults(ctx context.Context, resourceGroupName string, workspaceName string, parameters SearchParameters) (result WorkspacesGetSearchResultsFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/WorkspacesClient.GetSearchResults")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: resourceGroupName,
- 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.Query", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
- return result, validation.NewError("operationalinsights.WorkspacesClient", "GetSearchResults", err.Error())
- }
-
- req, err := client.GetSearchResultsPreparer(ctx, resourceGroupName, workspaceName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "GetSearchResults", nil, "Failure preparing request")
- return
- }
-
- result, err = client.GetSearchResultsSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "GetSearchResults", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// GetSearchResultsPreparer prepares the GetSearchResults request.
-func (client WorkspacesClient) GetSearchResultsPreparer(ctx context.Context, resourceGroupName string, workspaceName string, parameters SearchParameters) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "workspaceName": autorest.Encode("path", workspaceName),
- }
-
- const APIVersion = "2015-03-20"
- 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("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/search", pathParameters),
- autorest.WithJSON(parameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// GetSearchResultsSender sends the GetSearchResults request. The method will close the
-// http.Response Body if it receives an error.
-func (client WorkspacesClient) GetSearchResultsSender(req *http.Request) (future WorkspacesGetSearchResultsFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// GetSearchResultsResponder handles the response to the GetSearchResults request. The method always
-// closes the http.Response Body.
-func (client WorkspacesClient) GetSearchResultsResponder(resp *http.Response) (result SearchResultsResponse, 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}
- return
-}
-
// ListKeys gets the shared keys for a Log Analytics Workspace. These keys are used to connect Microsoft Operational
// Insights agents to the workspace.
// Parameters:
@@ -550,6 +458,11 @@ func (client WorkspacesClient) ListLinkTargetsResponder(resp *http.Response) (re
}
// Purge purges data in an Log Analytics workspace by a set of user-defined filters.
+//
+// In order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the
+// execution of purge requests by sending a single command whose predicate includes all user identities that require
+// purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge
+// request to verify that the results are expected.
// Parameters:
// resourceGroupName - the Resource Group name.
// workspaceName - the Log Analytics Workspace name.
@@ -725,91 +638,3 @@ func (client WorkspacesClient) RegenerateSharedKeysResponder(resp *http.Response
result.Response = autorest.Response{Response: resp}
return
}
-
-// UpdateSearchResults gets updated search results for a given search query.
-// Parameters:
-// resourceGroupName - the Resource Group name.
-// workspaceName - the Log Analytics Workspace name.
-// ID - the id of the search that will have results updated. You can get the id from the response of the
-// GetResults call.
-func (client WorkspacesClient) UpdateSearchResults(ctx context.Context, resourceGroupName string, workspaceName string, ID string) (result SearchResultsResponse, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/WorkspacesClient.UpdateSearchResults")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: resourceGroupName,
- 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("operationalinsights.WorkspacesClient", "UpdateSearchResults", err.Error())
- }
-
- req, err := client.UpdateSearchResultsPreparer(ctx, resourceGroupName, workspaceName, ID)
- if err != nil {
- err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "UpdateSearchResults", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.UpdateSearchResultsSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "UpdateSearchResults", resp, "Failure sending request")
- return
- }
-
- result, err = client.UpdateSearchResultsResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "operationalinsights.WorkspacesClient", "UpdateSearchResults", resp, "Failure responding to request")
- }
-
- return
-}
-
-// UpdateSearchResultsPreparer prepares the UpdateSearchResults request.
-func (client WorkspacesClient) UpdateSearchResultsPreparer(ctx context.Context, resourceGroupName string, workspaceName string, ID string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "id": autorest.Encode("path", ID),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "workspaceName": autorest.Encode("path", workspaceName),
- }
-
- const APIVersion = "2015-03-20"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/search/{id}", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// UpdateSearchResultsSender sends the UpdateSearchResults request. The method will close the
-// http.Response Body if it receives an error.
-func (client WorkspacesClient) UpdateSearchResultsSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// UpdateSearchResultsResponder handles the response to the UpdateSearchResults request. The method always
-// closes the http.Response Body.
-func (client WorkspacesClient) UpdateSearchResultsResponder(resp *http.Response) (result SearchResultsResponse, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
diff --git a/services/policyinsights/mgmt/2019-10-01/policyinsights/client.go b/services/policyinsights/mgmt/2019-10-01/policyinsights/client.go
new file mode 100644
index 000000000000..4687a8ef8675
--- /dev/null
+++ b/services/policyinsights/mgmt/2019-10-01/policyinsights/client.go
@@ -0,0 +1,49 @@
+// Package policyinsights implements the Azure ARM Policyinsights service API version .
+//
+//
+package policyinsights
+
+// 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 (
+ "github.com/Azure/go-autorest/autorest"
+)
+
+const (
+ // DefaultBaseURI is the default URI used for the service Policyinsights
+ DefaultBaseURI = "https://management.azure.com"
+)
+
+// BaseClient is the base client for Policyinsights.
+type BaseClient struct {
+ autorest.Client
+ BaseURI string
+}
+
+// New creates an instance of the BaseClient client.
+func New() BaseClient {
+ return NewWithBaseURI(DefaultBaseURI)
+}
+
+// NewWithBaseURI creates an instance of the BaseClient client.
+func NewWithBaseURI(baseURI string) BaseClient {
+ return BaseClient{
+ Client: autorest.NewClientWithUserAgent(UserAgent()),
+ BaseURI: baseURI,
+ }
+}
diff --git a/services/policyinsights/mgmt/2019-10-01/policyinsights/models.go b/services/policyinsights/mgmt/2019-10-01/policyinsights/models.go
new file mode 100644
index 000000000000..214dcc0b1605
--- /dev/null
+++ b/services/policyinsights/mgmt/2019-10-01/policyinsights/models.go
@@ -0,0 +1,1777 @@
+package policyinsights
+
+// 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"
+ "encoding/json"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/date"
+ "github.com/Azure/go-autorest/autorest/to"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// The package's fully qualified name.
+const fqdn = "github.com/Azure/azure-sdk-for-go/services/policyinsights/mgmt/2019-10-01/policyinsights"
+
+// PolicyStatesResource enumerates the values for policy states resource.
+type PolicyStatesResource string
+
+const (
+ // Default ...
+ Default PolicyStatesResource = "default"
+ // Latest ...
+ Latest PolicyStatesResource = "latest"
+)
+
+// PossiblePolicyStatesResourceValues returns an array of possible values for the PolicyStatesResource const type.
+func PossiblePolicyStatesResourceValues() []PolicyStatesResource {
+ return []PolicyStatesResource{Default, Latest}
+}
+
+// ComplianceDetail the compliance state rollup.
+type ComplianceDetail struct {
+ // ComplianceState - The compliance state.
+ ComplianceState *string `json:"complianceState,omitempty"`
+ // Count - Summarized count value for this compliance state.
+ Count *int32 `json:"count,omitempty"`
+}
+
+// ErrorDefinition error definition.
+type ErrorDefinition struct {
+ // Code - READ-ONLY; Service specific error code which serves as the substatus for the HTTP error code.
+ Code *string `json:"code,omitempty"`
+ // Message - READ-ONLY; Description of the error.
+ Message *string `json:"message,omitempty"`
+ // Target - READ-ONLY; The target of the error.
+ Target *string `json:"target,omitempty"`
+ // Details - READ-ONLY; Internal error details.
+ Details *[]ErrorDefinition `json:"details,omitempty"`
+ // AdditionalInfo - READ-ONLY; Additional scenario specific error details.
+ AdditionalInfo *[]TypedErrorInfo `json:"additionalInfo,omitempty"`
+}
+
+// ErrorResponse error response.
+type ErrorResponse struct {
+ // Error - The error details.
+ Error *ErrorDefinition `json:"error,omitempty"`
+}
+
+// ExpressionEvaluationDetails evaluation details of policy language expressions.
+type ExpressionEvaluationDetails struct {
+ // Result - Evaluation result.
+ Result *string `json:"result,omitempty"`
+ // Expression - Expression evaluated.
+ Expression *string `json:"expression,omitempty"`
+ // Path - Property path if the expression is a field or an alias.
+ Path *string `json:"path,omitempty"`
+ // ExpressionValue - Value of the expression.
+ ExpressionValue interface{} `json:"expressionValue,omitempty"`
+ // TargetValue - Target value to be compared with the expression value.
+ TargetValue interface{} `json:"targetValue,omitempty"`
+ // Operator - Operator to compare the expression value and the target value.
+ Operator *string `json:"operator,omitempty"`
+}
+
+// IfNotExistsEvaluationDetails evaluation details of IfNotExists effect.
+type IfNotExistsEvaluationDetails struct {
+ // ResourceID - ID of the last evaluated resource for IfNotExists effect.
+ ResourceID *string `json:"resourceId,omitempty"`
+ // TotalResources - Total number of resources to which the existence condition is applicable.
+ TotalResources *int32 `json:"totalResources,omitempty"`
+}
+
+// Operation operation definition.
+type Operation struct {
+ // Name - Operation name.
+ Name *string `json:"name,omitempty"`
+ // Display - Display metadata associated with the operation.
+ Display *OperationDisplay `json:"display,omitempty"`
+}
+
+// OperationDisplay display metadata associated with the operation.
+type OperationDisplay struct {
+ // Provider - Resource provider name.
+ Provider *string `json:"provider,omitempty"`
+ // Resource - Resource name on which the operation is performed.
+ Resource *string `json:"resource,omitempty"`
+ // Operation - Operation name.
+ Operation *string `json:"operation,omitempty"`
+ // Description - Operation description.
+ Description *string `json:"description,omitempty"`
+}
+
+// OperationsListResults list of available operations.
+type OperationsListResults struct {
+ autorest.Response `json:"-"`
+ // OdataCount - OData entity count; represents the number of operations returned.
+ OdataCount *int32 `json:"@odata.count,omitempty"`
+ // Value - List of available operations.
+ Value *[]Operation `json:"value,omitempty"`
+}
+
+// PolicyAssignmentSummary policy assignment summary.
+type PolicyAssignmentSummary struct {
+ // PolicyAssignmentID - Policy assignment ID.
+ PolicyAssignmentID *string `json:"policyAssignmentId,omitempty"`
+ // PolicySetDefinitionID - Policy set definition ID, if the policy assignment is for a policy set.
+ PolicySetDefinitionID *string `json:"policySetDefinitionId,omitempty"`
+ // Results - Compliance summary for the policy assignment.
+ Results *SummaryResults `json:"results,omitempty"`
+ // PolicyDefinitions - Policy definitions summary.
+ PolicyDefinitions *[]PolicyDefinitionSummary `json:"policyDefinitions,omitempty"`
+ // PolicyGroups - Policy definition group summary.
+ PolicyGroups *[]PolicyGroupSummary `json:"policyGroups,omitempty"`
+}
+
+// PolicyDefinitionSummary policy definition summary.
+type PolicyDefinitionSummary struct {
+ // PolicyDefinitionID - Policy definition ID.
+ PolicyDefinitionID *string `json:"policyDefinitionId,omitempty"`
+ // PolicyDefinitionReferenceID - Policy definition reference ID.
+ PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty"`
+ // PolicyDefinitionGroupNames - Policy definition group names.
+ PolicyDefinitionGroupNames *[]string `json:"policyDefinitionGroupNames,omitempty"`
+ // Effect - Policy effect, i.e. policy definition action.
+ Effect *string `json:"effect,omitempty"`
+ // Results - Compliance summary for the policy definition.
+ Results *SummaryResults `json:"results,omitempty"`
+}
+
+// PolicyDetails the policy details.
+type PolicyDetails struct {
+ // PolicyDefinitionID - READ-ONLY; The ID of the policy definition.
+ PolicyDefinitionID *string `json:"policyDefinitionId,omitempty"`
+ // PolicyAssignmentID - READ-ONLY; The ID of the policy assignment.
+ PolicyAssignmentID *string `json:"policyAssignmentId,omitempty"`
+ // PolicyAssignmentDisplayName - READ-ONLY; The display name of the policy assignment.
+ PolicyAssignmentDisplayName *string `json:"policyAssignmentDisplayName,omitempty"`
+ // PolicyAssignmentScope - READ-ONLY; The scope of the policy assignment.
+ PolicyAssignmentScope *string `json:"policyAssignmentScope,omitempty"`
+ // PolicySetDefinitionID - READ-ONLY; The ID of the policy set definition.
+ PolicySetDefinitionID *string `json:"policySetDefinitionId,omitempty"`
+ // PolicyDefinitionReferenceID - READ-ONLY; The policy definition reference ID within the policy set definition.
+ PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty"`
+}
+
+// PolicyEvaluationDetails policy evaluation details.
+type PolicyEvaluationDetails struct {
+ // EvaluatedExpressions - Details of the evaluated expressions.
+ EvaluatedExpressions *[]ExpressionEvaluationDetails `json:"evaluatedExpressions,omitempty"`
+ // IfNotExistsDetails - Evaluation details of IfNotExists effect.
+ IfNotExistsDetails *IfNotExistsEvaluationDetails `json:"ifNotExistsDetails,omitempty"`
+}
+
+// PolicyEvent policy event record.
+type PolicyEvent struct {
+ // AdditionalProperties - Unmatched properties from the message are deserialized this collection
+ AdditionalProperties map[string]interface{} `json:""`
+ // OdataID - OData entity ID; always set to null since policy event records do not have an entity ID.
+ OdataID *string `json:"@odata.id,omitempty"`
+ // OdataContext - OData context string; used by OData clients to resolve type information based on metadata.
+ OdataContext *string `json:"@odata.context,omitempty"`
+ // Timestamp - Timestamp for the policy event record.
+ Timestamp *date.Time `json:"timestamp,omitempty"`
+ // ResourceID - Resource ID.
+ ResourceID *string `json:"resourceId,omitempty"`
+ // PolicyAssignmentID - Policy assignment ID.
+ PolicyAssignmentID *string `json:"policyAssignmentId,omitempty"`
+ // PolicyDefinitionID - Policy definition ID.
+ PolicyDefinitionID *string `json:"policyDefinitionId,omitempty"`
+ // EffectiveParameters - Effective parameters for the policy assignment.
+ EffectiveParameters *string `json:"effectiveParameters,omitempty"`
+ // IsCompliant - Flag which states whether the resource is compliant against the policy assignment it was evaluated against.
+ IsCompliant *bool `json:"isCompliant,omitempty"`
+ // SubscriptionID - Subscription ID.
+ SubscriptionID *string `json:"subscriptionId,omitempty"`
+ // ResourceType - Resource type.
+ ResourceType *string `json:"resourceType,omitempty"`
+ // ResourceLocation - Resource location.
+ ResourceLocation *string `json:"resourceLocation,omitempty"`
+ // ResourceGroup - Resource group name.
+ ResourceGroup *string `json:"resourceGroup,omitempty"`
+ // ResourceTags - List of resource tags.
+ ResourceTags *string `json:"resourceTags,omitempty"`
+ // PolicyAssignmentName - Policy assignment name.
+ PolicyAssignmentName *string `json:"policyAssignmentName,omitempty"`
+ // PolicyAssignmentOwner - Policy assignment owner.
+ PolicyAssignmentOwner *string `json:"policyAssignmentOwner,omitempty"`
+ // PolicyAssignmentParameters - Policy assignment parameters.
+ PolicyAssignmentParameters *string `json:"policyAssignmentParameters,omitempty"`
+ // PolicyAssignmentScope - Policy assignment scope.
+ PolicyAssignmentScope *string `json:"policyAssignmentScope,omitempty"`
+ // PolicyDefinitionName - Policy definition name.
+ PolicyDefinitionName *string `json:"policyDefinitionName,omitempty"`
+ // PolicyDefinitionAction - Policy definition action, i.e. effect.
+ PolicyDefinitionAction *string `json:"policyDefinitionAction,omitempty"`
+ // PolicyDefinitionCategory - Policy definition category.
+ PolicyDefinitionCategory *string `json:"policyDefinitionCategory,omitempty"`
+ // PolicySetDefinitionID - Policy set definition ID, if the policy assignment is for a policy set.
+ PolicySetDefinitionID *string `json:"policySetDefinitionId,omitempty"`
+ // PolicySetDefinitionName - Policy set definition name, if the policy assignment is for a policy set.
+ PolicySetDefinitionName *string `json:"policySetDefinitionName,omitempty"`
+ // PolicySetDefinitionOwner - Policy set definition owner, if the policy assignment is for a policy set.
+ PolicySetDefinitionOwner *string `json:"policySetDefinitionOwner,omitempty"`
+ // PolicySetDefinitionCategory - Policy set definition category, if the policy assignment is for a policy set.
+ PolicySetDefinitionCategory *string `json:"policySetDefinitionCategory,omitempty"`
+ // PolicySetDefinitionParameters - Policy set definition parameters, if the policy assignment is for a policy set.
+ PolicySetDefinitionParameters *string `json:"policySetDefinitionParameters,omitempty"`
+ // ManagementGroupIds - Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under.
+ ManagementGroupIds *string `json:"managementGroupIds,omitempty"`
+ // PolicyDefinitionReferenceID - Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set.
+ PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty"`
+ // TenantID - Tenant ID for the policy event record.
+ TenantID *string `json:"tenantId,omitempty"`
+ // PrincipalOid - Principal object ID for the user who initiated the resource operation that triggered the policy event.
+ PrincipalOid *string `json:"principalOid,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for PolicyEvent.
+func (peVar PolicyEvent) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if peVar.OdataID != nil {
+ objectMap["@odata.id"] = peVar.OdataID
+ }
+ if peVar.OdataContext != nil {
+ objectMap["@odata.context"] = peVar.OdataContext
+ }
+ if peVar.Timestamp != nil {
+ objectMap["timestamp"] = peVar.Timestamp
+ }
+ if peVar.ResourceID != nil {
+ objectMap["resourceId"] = peVar.ResourceID
+ }
+ if peVar.PolicyAssignmentID != nil {
+ objectMap["policyAssignmentId"] = peVar.PolicyAssignmentID
+ }
+ if peVar.PolicyDefinitionID != nil {
+ objectMap["policyDefinitionId"] = peVar.PolicyDefinitionID
+ }
+ if peVar.EffectiveParameters != nil {
+ objectMap["effectiveParameters"] = peVar.EffectiveParameters
+ }
+ if peVar.IsCompliant != nil {
+ objectMap["isCompliant"] = peVar.IsCompliant
+ }
+ if peVar.SubscriptionID != nil {
+ objectMap["subscriptionId"] = peVar.SubscriptionID
+ }
+ if peVar.ResourceType != nil {
+ objectMap["resourceType"] = peVar.ResourceType
+ }
+ if peVar.ResourceLocation != nil {
+ objectMap["resourceLocation"] = peVar.ResourceLocation
+ }
+ if peVar.ResourceGroup != nil {
+ objectMap["resourceGroup"] = peVar.ResourceGroup
+ }
+ if peVar.ResourceTags != nil {
+ objectMap["resourceTags"] = peVar.ResourceTags
+ }
+ if peVar.PolicyAssignmentName != nil {
+ objectMap["policyAssignmentName"] = peVar.PolicyAssignmentName
+ }
+ if peVar.PolicyAssignmentOwner != nil {
+ objectMap["policyAssignmentOwner"] = peVar.PolicyAssignmentOwner
+ }
+ if peVar.PolicyAssignmentParameters != nil {
+ objectMap["policyAssignmentParameters"] = peVar.PolicyAssignmentParameters
+ }
+ if peVar.PolicyAssignmentScope != nil {
+ objectMap["policyAssignmentScope"] = peVar.PolicyAssignmentScope
+ }
+ if peVar.PolicyDefinitionName != nil {
+ objectMap["policyDefinitionName"] = peVar.PolicyDefinitionName
+ }
+ if peVar.PolicyDefinitionAction != nil {
+ objectMap["policyDefinitionAction"] = peVar.PolicyDefinitionAction
+ }
+ if peVar.PolicyDefinitionCategory != nil {
+ objectMap["policyDefinitionCategory"] = peVar.PolicyDefinitionCategory
+ }
+ if peVar.PolicySetDefinitionID != nil {
+ objectMap["policySetDefinitionId"] = peVar.PolicySetDefinitionID
+ }
+ if peVar.PolicySetDefinitionName != nil {
+ objectMap["policySetDefinitionName"] = peVar.PolicySetDefinitionName
+ }
+ if peVar.PolicySetDefinitionOwner != nil {
+ objectMap["policySetDefinitionOwner"] = peVar.PolicySetDefinitionOwner
+ }
+ if peVar.PolicySetDefinitionCategory != nil {
+ objectMap["policySetDefinitionCategory"] = peVar.PolicySetDefinitionCategory
+ }
+ if peVar.PolicySetDefinitionParameters != nil {
+ objectMap["policySetDefinitionParameters"] = peVar.PolicySetDefinitionParameters
+ }
+ if peVar.ManagementGroupIds != nil {
+ objectMap["managementGroupIds"] = peVar.ManagementGroupIds
+ }
+ if peVar.PolicyDefinitionReferenceID != nil {
+ objectMap["policyDefinitionReferenceId"] = peVar.PolicyDefinitionReferenceID
+ }
+ if peVar.TenantID != nil {
+ objectMap["tenantId"] = peVar.TenantID
+ }
+ if peVar.PrincipalOid != nil {
+ objectMap["principalOid"] = peVar.PrincipalOid
+ }
+ for k, v := range peVar.AdditionalProperties {
+ objectMap[k] = v
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for PolicyEvent struct.
+func (peVar *PolicyEvent) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ default:
+ if v != nil {
+ var additionalProperties interface{}
+ err = json.Unmarshal(*v, &additionalProperties)
+ if err != nil {
+ return err
+ }
+ if peVar.AdditionalProperties == nil {
+ peVar.AdditionalProperties = make(map[string]interface{})
+ }
+ peVar.AdditionalProperties[k] = additionalProperties
+ }
+ case "@odata.id":
+ if v != nil {
+ var odataID string
+ err = json.Unmarshal(*v, &odataID)
+ if err != nil {
+ return err
+ }
+ peVar.OdataID = &odataID
+ }
+ case "@odata.context":
+ if v != nil {
+ var odataContext string
+ err = json.Unmarshal(*v, &odataContext)
+ if err != nil {
+ return err
+ }
+ peVar.OdataContext = &odataContext
+ }
+ case "timestamp":
+ if v != nil {
+ var timestamp date.Time
+ err = json.Unmarshal(*v, ×tamp)
+ if err != nil {
+ return err
+ }
+ peVar.Timestamp = ×tamp
+ }
+ case "resourceId":
+ if v != nil {
+ var resourceID string
+ err = json.Unmarshal(*v, &resourceID)
+ if err != nil {
+ return err
+ }
+ peVar.ResourceID = &resourceID
+ }
+ case "policyAssignmentId":
+ if v != nil {
+ var policyAssignmentID string
+ err = json.Unmarshal(*v, &policyAssignmentID)
+ if err != nil {
+ return err
+ }
+ peVar.PolicyAssignmentID = &policyAssignmentID
+ }
+ case "policyDefinitionId":
+ if v != nil {
+ var policyDefinitionID string
+ err = json.Unmarshal(*v, &policyDefinitionID)
+ if err != nil {
+ return err
+ }
+ peVar.PolicyDefinitionID = &policyDefinitionID
+ }
+ case "effectiveParameters":
+ if v != nil {
+ var effectiveParameters string
+ err = json.Unmarshal(*v, &effectiveParameters)
+ if err != nil {
+ return err
+ }
+ peVar.EffectiveParameters = &effectiveParameters
+ }
+ case "isCompliant":
+ if v != nil {
+ var isCompliant bool
+ err = json.Unmarshal(*v, &isCompliant)
+ if err != nil {
+ return err
+ }
+ peVar.IsCompliant = &isCompliant
+ }
+ case "subscriptionId":
+ if v != nil {
+ var subscriptionID string
+ err = json.Unmarshal(*v, &subscriptionID)
+ if err != nil {
+ return err
+ }
+ peVar.SubscriptionID = &subscriptionID
+ }
+ case "resourceType":
+ if v != nil {
+ var resourceType string
+ err = json.Unmarshal(*v, &resourceType)
+ if err != nil {
+ return err
+ }
+ peVar.ResourceType = &resourceType
+ }
+ case "resourceLocation":
+ if v != nil {
+ var resourceLocation string
+ err = json.Unmarshal(*v, &resourceLocation)
+ if err != nil {
+ return err
+ }
+ peVar.ResourceLocation = &resourceLocation
+ }
+ case "resourceGroup":
+ if v != nil {
+ var resourceGroup string
+ err = json.Unmarshal(*v, &resourceGroup)
+ if err != nil {
+ return err
+ }
+ peVar.ResourceGroup = &resourceGroup
+ }
+ case "resourceTags":
+ if v != nil {
+ var resourceTags string
+ err = json.Unmarshal(*v, &resourceTags)
+ if err != nil {
+ return err
+ }
+ peVar.ResourceTags = &resourceTags
+ }
+ case "policyAssignmentName":
+ if v != nil {
+ var policyAssignmentName string
+ err = json.Unmarshal(*v, &policyAssignmentName)
+ if err != nil {
+ return err
+ }
+ peVar.PolicyAssignmentName = &policyAssignmentName
+ }
+ case "policyAssignmentOwner":
+ if v != nil {
+ var policyAssignmentOwner string
+ err = json.Unmarshal(*v, &policyAssignmentOwner)
+ if err != nil {
+ return err
+ }
+ peVar.PolicyAssignmentOwner = &policyAssignmentOwner
+ }
+ case "policyAssignmentParameters":
+ if v != nil {
+ var policyAssignmentParameters string
+ err = json.Unmarshal(*v, &policyAssignmentParameters)
+ if err != nil {
+ return err
+ }
+ peVar.PolicyAssignmentParameters = &policyAssignmentParameters
+ }
+ case "policyAssignmentScope":
+ if v != nil {
+ var policyAssignmentScope string
+ err = json.Unmarshal(*v, &policyAssignmentScope)
+ if err != nil {
+ return err
+ }
+ peVar.PolicyAssignmentScope = &policyAssignmentScope
+ }
+ case "policyDefinitionName":
+ if v != nil {
+ var policyDefinitionName string
+ err = json.Unmarshal(*v, &policyDefinitionName)
+ if err != nil {
+ return err
+ }
+ peVar.PolicyDefinitionName = &policyDefinitionName
+ }
+ case "policyDefinitionAction":
+ if v != nil {
+ var policyDefinitionAction string
+ err = json.Unmarshal(*v, &policyDefinitionAction)
+ if err != nil {
+ return err
+ }
+ peVar.PolicyDefinitionAction = &policyDefinitionAction
+ }
+ case "policyDefinitionCategory":
+ if v != nil {
+ var policyDefinitionCategory string
+ err = json.Unmarshal(*v, &policyDefinitionCategory)
+ if err != nil {
+ return err
+ }
+ peVar.PolicyDefinitionCategory = &policyDefinitionCategory
+ }
+ case "policySetDefinitionId":
+ if v != nil {
+ var policySetDefinitionID string
+ err = json.Unmarshal(*v, &policySetDefinitionID)
+ if err != nil {
+ return err
+ }
+ peVar.PolicySetDefinitionID = &policySetDefinitionID
+ }
+ case "policySetDefinitionName":
+ if v != nil {
+ var policySetDefinitionName string
+ err = json.Unmarshal(*v, &policySetDefinitionName)
+ if err != nil {
+ return err
+ }
+ peVar.PolicySetDefinitionName = &policySetDefinitionName
+ }
+ case "policySetDefinitionOwner":
+ if v != nil {
+ var policySetDefinitionOwner string
+ err = json.Unmarshal(*v, &policySetDefinitionOwner)
+ if err != nil {
+ return err
+ }
+ peVar.PolicySetDefinitionOwner = &policySetDefinitionOwner
+ }
+ case "policySetDefinitionCategory":
+ if v != nil {
+ var policySetDefinitionCategory string
+ err = json.Unmarshal(*v, &policySetDefinitionCategory)
+ if err != nil {
+ return err
+ }
+ peVar.PolicySetDefinitionCategory = &policySetDefinitionCategory
+ }
+ case "policySetDefinitionParameters":
+ if v != nil {
+ var policySetDefinitionParameters string
+ err = json.Unmarshal(*v, &policySetDefinitionParameters)
+ if err != nil {
+ return err
+ }
+ peVar.PolicySetDefinitionParameters = &policySetDefinitionParameters
+ }
+ case "managementGroupIds":
+ if v != nil {
+ var managementGroupIds string
+ err = json.Unmarshal(*v, &managementGroupIds)
+ if err != nil {
+ return err
+ }
+ peVar.ManagementGroupIds = &managementGroupIds
+ }
+ case "policyDefinitionReferenceId":
+ if v != nil {
+ var policyDefinitionReferenceID string
+ err = json.Unmarshal(*v, &policyDefinitionReferenceID)
+ if err != nil {
+ return err
+ }
+ peVar.PolicyDefinitionReferenceID = &policyDefinitionReferenceID
+ }
+ case "tenantId":
+ if v != nil {
+ var tenantID string
+ err = json.Unmarshal(*v, &tenantID)
+ if err != nil {
+ return err
+ }
+ peVar.TenantID = &tenantID
+ }
+ case "principalOid":
+ if v != nil {
+ var principalOid string
+ err = json.Unmarshal(*v, &principalOid)
+ if err != nil {
+ return err
+ }
+ peVar.PrincipalOid = &principalOid
+ }
+ }
+ }
+
+ return nil
+}
+
+// PolicyEventsQueryResults query results.
+type PolicyEventsQueryResults struct {
+ autorest.Response `json:"-"`
+ // OdataContext - OData context string; used by OData clients to resolve type information based on metadata.
+ OdataContext *string `json:"@odata.context,omitempty"`
+ // OdataCount - OData entity count; represents the number of policy event records returned.
+ OdataCount *int32 `json:"@odata.count,omitempty"`
+ // Value - Query results.
+ Value *[]PolicyEvent `json:"value,omitempty"`
+}
+
+// PolicyGroupSummary policy definition group summary.
+type PolicyGroupSummary struct {
+ // PolicyGroupName - Policy group name.
+ PolicyGroupName *string `json:"policyGroupName,omitempty"`
+ // Results - Compliance summary for the policy definition group.
+ Results *SummaryResults `json:"results,omitempty"`
+}
+
+// PolicyState policy state record.
+type PolicyState struct {
+ // AdditionalProperties - Unmatched properties from the message are deserialized this collection
+ AdditionalProperties map[string]interface{} `json:""`
+ // OdataID - OData entity ID; always set to null since policy state records do not have an entity ID.
+ OdataID *string `json:"@odata.id,omitempty"`
+ // OdataContext - OData context string; used by OData clients to resolve type information based on metadata.
+ OdataContext *string `json:"@odata.context,omitempty"`
+ // Timestamp - Timestamp for the policy state record.
+ Timestamp *date.Time `json:"timestamp,omitempty"`
+ // ResourceID - Resource ID.
+ ResourceID *string `json:"resourceId,omitempty"`
+ // PolicyAssignmentID - Policy assignment ID.
+ PolicyAssignmentID *string `json:"policyAssignmentId,omitempty"`
+ // PolicyDefinitionID - Policy definition ID.
+ PolicyDefinitionID *string `json:"policyDefinitionId,omitempty"`
+ // EffectiveParameters - Effective parameters for the policy assignment.
+ EffectiveParameters *string `json:"effectiveParameters,omitempty"`
+ // IsCompliant - Flag which states whether the resource is compliant against the policy assignment it was evaluated against. This property is deprecated; please use ComplianceState instead.
+ IsCompliant *bool `json:"isCompliant,omitempty"`
+ // SubscriptionID - Subscription ID.
+ SubscriptionID *string `json:"subscriptionId,omitempty"`
+ // ResourceType - Resource type.
+ ResourceType *string `json:"resourceType,omitempty"`
+ // ResourceLocation - Resource location.
+ ResourceLocation *string `json:"resourceLocation,omitempty"`
+ // ResourceGroup - Resource group name.
+ ResourceGroup *string `json:"resourceGroup,omitempty"`
+ // ResourceTags - List of resource tags.
+ ResourceTags *string `json:"resourceTags,omitempty"`
+ // PolicyAssignmentName - Policy assignment name.
+ PolicyAssignmentName *string `json:"policyAssignmentName,omitempty"`
+ // PolicyAssignmentOwner - Policy assignment owner.
+ PolicyAssignmentOwner *string `json:"policyAssignmentOwner,omitempty"`
+ // PolicyAssignmentParameters - Policy assignment parameters.
+ PolicyAssignmentParameters *string `json:"policyAssignmentParameters,omitempty"`
+ // PolicyAssignmentScope - Policy assignment scope.
+ PolicyAssignmentScope *string `json:"policyAssignmentScope,omitempty"`
+ // PolicyDefinitionName - Policy definition name.
+ PolicyDefinitionName *string `json:"policyDefinitionName,omitempty"`
+ // PolicyDefinitionAction - Policy definition action, i.e. effect.
+ PolicyDefinitionAction *string `json:"policyDefinitionAction,omitempty"`
+ // PolicyDefinitionCategory - Policy definition category.
+ PolicyDefinitionCategory *string `json:"policyDefinitionCategory,omitempty"`
+ // PolicySetDefinitionID - Policy set definition ID, if the policy assignment is for a policy set.
+ PolicySetDefinitionID *string `json:"policySetDefinitionId,omitempty"`
+ // PolicySetDefinitionName - Policy set definition name, if the policy assignment is for a policy set.
+ PolicySetDefinitionName *string `json:"policySetDefinitionName,omitempty"`
+ // PolicySetDefinitionOwner - Policy set definition owner, if the policy assignment is for a policy set.
+ PolicySetDefinitionOwner *string `json:"policySetDefinitionOwner,omitempty"`
+ // PolicySetDefinitionCategory - Policy set definition category, if the policy assignment is for a policy set.
+ PolicySetDefinitionCategory *string `json:"policySetDefinitionCategory,omitempty"`
+ // PolicySetDefinitionParameters - Policy set definition parameters, if the policy assignment is for a policy set.
+ PolicySetDefinitionParameters *string `json:"policySetDefinitionParameters,omitempty"`
+ // ManagementGroupIds - Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under.
+ ManagementGroupIds *string `json:"managementGroupIds,omitempty"`
+ // PolicyDefinitionReferenceID - Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set.
+ PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty"`
+ // ComplianceState - Compliance state of the resource.
+ ComplianceState *string `json:"complianceState,omitempty"`
+ // PolicyEvaluationDetails - Policy evaluation details.
+ PolicyEvaluationDetails *PolicyEvaluationDetails `json:"policyEvaluationDetails,omitempty"`
+ // PolicyDefinitionGroupNames - Policy definition group names.
+ PolicyDefinitionGroupNames *[]string `json:"policyDefinitionGroupNames,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for PolicyState.
+func (ps PolicyState) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if ps.OdataID != nil {
+ objectMap["@odata.id"] = ps.OdataID
+ }
+ if ps.OdataContext != nil {
+ objectMap["@odata.context"] = ps.OdataContext
+ }
+ if ps.Timestamp != nil {
+ objectMap["timestamp"] = ps.Timestamp
+ }
+ if ps.ResourceID != nil {
+ objectMap["resourceId"] = ps.ResourceID
+ }
+ if ps.PolicyAssignmentID != nil {
+ objectMap["policyAssignmentId"] = ps.PolicyAssignmentID
+ }
+ if ps.PolicyDefinitionID != nil {
+ objectMap["policyDefinitionId"] = ps.PolicyDefinitionID
+ }
+ if ps.EffectiveParameters != nil {
+ objectMap["effectiveParameters"] = ps.EffectiveParameters
+ }
+ if ps.IsCompliant != nil {
+ objectMap["isCompliant"] = ps.IsCompliant
+ }
+ if ps.SubscriptionID != nil {
+ objectMap["subscriptionId"] = ps.SubscriptionID
+ }
+ if ps.ResourceType != nil {
+ objectMap["resourceType"] = ps.ResourceType
+ }
+ if ps.ResourceLocation != nil {
+ objectMap["resourceLocation"] = ps.ResourceLocation
+ }
+ if ps.ResourceGroup != nil {
+ objectMap["resourceGroup"] = ps.ResourceGroup
+ }
+ if ps.ResourceTags != nil {
+ objectMap["resourceTags"] = ps.ResourceTags
+ }
+ if ps.PolicyAssignmentName != nil {
+ objectMap["policyAssignmentName"] = ps.PolicyAssignmentName
+ }
+ if ps.PolicyAssignmentOwner != nil {
+ objectMap["policyAssignmentOwner"] = ps.PolicyAssignmentOwner
+ }
+ if ps.PolicyAssignmentParameters != nil {
+ objectMap["policyAssignmentParameters"] = ps.PolicyAssignmentParameters
+ }
+ if ps.PolicyAssignmentScope != nil {
+ objectMap["policyAssignmentScope"] = ps.PolicyAssignmentScope
+ }
+ if ps.PolicyDefinitionName != nil {
+ objectMap["policyDefinitionName"] = ps.PolicyDefinitionName
+ }
+ if ps.PolicyDefinitionAction != nil {
+ objectMap["policyDefinitionAction"] = ps.PolicyDefinitionAction
+ }
+ if ps.PolicyDefinitionCategory != nil {
+ objectMap["policyDefinitionCategory"] = ps.PolicyDefinitionCategory
+ }
+ if ps.PolicySetDefinitionID != nil {
+ objectMap["policySetDefinitionId"] = ps.PolicySetDefinitionID
+ }
+ if ps.PolicySetDefinitionName != nil {
+ objectMap["policySetDefinitionName"] = ps.PolicySetDefinitionName
+ }
+ if ps.PolicySetDefinitionOwner != nil {
+ objectMap["policySetDefinitionOwner"] = ps.PolicySetDefinitionOwner
+ }
+ if ps.PolicySetDefinitionCategory != nil {
+ objectMap["policySetDefinitionCategory"] = ps.PolicySetDefinitionCategory
+ }
+ if ps.PolicySetDefinitionParameters != nil {
+ objectMap["policySetDefinitionParameters"] = ps.PolicySetDefinitionParameters
+ }
+ if ps.ManagementGroupIds != nil {
+ objectMap["managementGroupIds"] = ps.ManagementGroupIds
+ }
+ if ps.PolicyDefinitionReferenceID != nil {
+ objectMap["policyDefinitionReferenceId"] = ps.PolicyDefinitionReferenceID
+ }
+ if ps.ComplianceState != nil {
+ objectMap["complianceState"] = ps.ComplianceState
+ }
+ if ps.PolicyEvaluationDetails != nil {
+ objectMap["policyEvaluationDetails"] = ps.PolicyEvaluationDetails
+ }
+ if ps.PolicyDefinitionGroupNames != nil {
+ objectMap["policyDefinitionGroupNames"] = ps.PolicyDefinitionGroupNames
+ }
+ for k, v := range ps.AdditionalProperties {
+ objectMap[k] = v
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for PolicyState struct.
+func (ps *PolicyState) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ default:
+ if v != nil {
+ var additionalProperties interface{}
+ err = json.Unmarshal(*v, &additionalProperties)
+ if err != nil {
+ return err
+ }
+ if ps.AdditionalProperties == nil {
+ ps.AdditionalProperties = make(map[string]interface{})
+ }
+ ps.AdditionalProperties[k] = additionalProperties
+ }
+ case "@odata.id":
+ if v != nil {
+ var odataID string
+ err = json.Unmarshal(*v, &odataID)
+ if err != nil {
+ return err
+ }
+ ps.OdataID = &odataID
+ }
+ case "@odata.context":
+ if v != nil {
+ var odataContext string
+ err = json.Unmarshal(*v, &odataContext)
+ if err != nil {
+ return err
+ }
+ ps.OdataContext = &odataContext
+ }
+ case "timestamp":
+ if v != nil {
+ var timestamp date.Time
+ err = json.Unmarshal(*v, ×tamp)
+ if err != nil {
+ return err
+ }
+ ps.Timestamp = ×tamp
+ }
+ case "resourceId":
+ if v != nil {
+ var resourceID string
+ err = json.Unmarshal(*v, &resourceID)
+ if err != nil {
+ return err
+ }
+ ps.ResourceID = &resourceID
+ }
+ case "policyAssignmentId":
+ if v != nil {
+ var policyAssignmentID string
+ err = json.Unmarshal(*v, &policyAssignmentID)
+ if err != nil {
+ return err
+ }
+ ps.PolicyAssignmentID = &policyAssignmentID
+ }
+ case "policyDefinitionId":
+ if v != nil {
+ var policyDefinitionID string
+ err = json.Unmarshal(*v, &policyDefinitionID)
+ if err != nil {
+ return err
+ }
+ ps.PolicyDefinitionID = &policyDefinitionID
+ }
+ case "effectiveParameters":
+ if v != nil {
+ var effectiveParameters string
+ err = json.Unmarshal(*v, &effectiveParameters)
+ if err != nil {
+ return err
+ }
+ ps.EffectiveParameters = &effectiveParameters
+ }
+ case "isCompliant":
+ if v != nil {
+ var isCompliant bool
+ err = json.Unmarshal(*v, &isCompliant)
+ if err != nil {
+ return err
+ }
+ ps.IsCompliant = &isCompliant
+ }
+ case "subscriptionId":
+ if v != nil {
+ var subscriptionID string
+ err = json.Unmarshal(*v, &subscriptionID)
+ if err != nil {
+ return err
+ }
+ ps.SubscriptionID = &subscriptionID
+ }
+ case "resourceType":
+ if v != nil {
+ var resourceType string
+ err = json.Unmarshal(*v, &resourceType)
+ if err != nil {
+ return err
+ }
+ ps.ResourceType = &resourceType
+ }
+ case "resourceLocation":
+ if v != nil {
+ var resourceLocation string
+ err = json.Unmarshal(*v, &resourceLocation)
+ if err != nil {
+ return err
+ }
+ ps.ResourceLocation = &resourceLocation
+ }
+ case "resourceGroup":
+ if v != nil {
+ var resourceGroup string
+ err = json.Unmarshal(*v, &resourceGroup)
+ if err != nil {
+ return err
+ }
+ ps.ResourceGroup = &resourceGroup
+ }
+ case "resourceTags":
+ if v != nil {
+ var resourceTags string
+ err = json.Unmarshal(*v, &resourceTags)
+ if err != nil {
+ return err
+ }
+ ps.ResourceTags = &resourceTags
+ }
+ case "policyAssignmentName":
+ if v != nil {
+ var policyAssignmentName string
+ err = json.Unmarshal(*v, &policyAssignmentName)
+ if err != nil {
+ return err
+ }
+ ps.PolicyAssignmentName = &policyAssignmentName
+ }
+ case "policyAssignmentOwner":
+ if v != nil {
+ var policyAssignmentOwner string
+ err = json.Unmarshal(*v, &policyAssignmentOwner)
+ if err != nil {
+ return err
+ }
+ ps.PolicyAssignmentOwner = &policyAssignmentOwner
+ }
+ case "policyAssignmentParameters":
+ if v != nil {
+ var policyAssignmentParameters string
+ err = json.Unmarshal(*v, &policyAssignmentParameters)
+ if err != nil {
+ return err
+ }
+ ps.PolicyAssignmentParameters = &policyAssignmentParameters
+ }
+ case "policyAssignmentScope":
+ if v != nil {
+ var policyAssignmentScope string
+ err = json.Unmarshal(*v, &policyAssignmentScope)
+ if err != nil {
+ return err
+ }
+ ps.PolicyAssignmentScope = &policyAssignmentScope
+ }
+ case "policyDefinitionName":
+ if v != nil {
+ var policyDefinitionName string
+ err = json.Unmarshal(*v, &policyDefinitionName)
+ if err != nil {
+ return err
+ }
+ ps.PolicyDefinitionName = &policyDefinitionName
+ }
+ case "policyDefinitionAction":
+ if v != nil {
+ var policyDefinitionAction string
+ err = json.Unmarshal(*v, &policyDefinitionAction)
+ if err != nil {
+ return err
+ }
+ ps.PolicyDefinitionAction = &policyDefinitionAction
+ }
+ case "policyDefinitionCategory":
+ if v != nil {
+ var policyDefinitionCategory string
+ err = json.Unmarshal(*v, &policyDefinitionCategory)
+ if err != nil {
+ return err
+ }
+ ps.PolicyDefinitionCategory = &policyDefinitionCategory
+ }
+ case "policySetDefinitionId":
+ if v != nil {
+ var policySetDefinitionID string
+ err = json.Unmarshal(*v, &policySetDefinitionID)
+ if err != nil {
+ return err
+ }
+ ps.PolicySetDefinitionID = &policySetDefinitionID
+ }
+ case "policySetDefinitionName":
+ if v != nil {
+ var policySetDefinitionName string
+ err = json.Unmarshal(*v, &policySetDefinitionName)
+ if err != nil {
+ return err
+ }
+ ps.PolicySetDefinitionName = &policySetDefinitionName
+ }
+ case "policySetDefinitionOwner":
+ if v != nil {
+ var policySetDefinitionOwner string
+ err = json.Unmarshal(*v, &policySetDefinitionOwner)
+ if err != nil {
+ return err
+ }
+ ps.PolicySetDefinitionOwner = &policySetDefinitionOwner
+ }
+ case "policySetDefinitionCategory":
+ if v != nil {
+ var policySetDefinitionCategory string
+ err = json.Unmarshal(*v, &policySetDefinitionCategory)
+ if err != nil {
+ return err
+ }
+ ps.PolicySetDefinitionCategory = &policySetDefinitionCategory
+ }
+ case "policySetDefinitionParameters":
+ if v != nil {
+ var policySetDefinitionParameters string
+ err = json.Unmarshal(*v, &policySetDefinitionParameters)
+ if err != nil {
+ return err
+ }
+ ps.PolicySetDefinitionParameters = &policySetDefinitionParameters
+ }
+ case "managementGroupIds":
+ if v != nil {
+ var managementGroupIds string
+ err = json.Unmarshal(*v, &managementGroupIds)
+ if err != nil {
+ return err
+ }
+ ps.ManagementGroupIds = &managementGroupIds
+ }
+ case "policyDefinitionReferenceId":
+ if v != nil {
+ var policyDefinitionReferenceID string
+ err = json.Unmarshal(*v, &policyDefinitionReferenceID)
+ if err != nil {
+ return err
+ }
+ ps.PolicyDefinitionReferenceID = &policyDefinitionReferenceID
+ }
+ case "complianceState":
+ if v != nil {
+ var complianceState string
+ err = json.Unmarshal(*v, &complianceState)
+ if err != nil {
+ return err
+ }
+ ps.ComplianceState = &complianceState
+ }
+ case "policyEvaluationDetails":
+ if v != nil {
+ var policyEvaluationDetails PolicyEvaluationDetails
+ err = json.Unmarshal(*v, &policyEvaluationDetails)
+ if err != nil {
+ return err
+ }
+ ps.PolicyEvaluationDetails = &policyEvaluationDetails
+ }
+ case "policyDefinitionGroupNames":
+ if v != nil {
+ var policyDefinitionGroupNames []string
+ err = json.Unmarshal(*v, &policyDefinitionGroupNames)
+ if err != nil {
+ return err
+ }
+ ps.PolicyDefinitionGroupNames = &policyDefinitionGroupNames
+ }
+ }
+ }
+
+ return nil
+}
+
+// PolicyStatesQueryResults query results.
+type PolicyStatesQueryResults struct {
+ autorest.Response `json:"-"`
+ // OdataContext - OData context string; used by OData clients to resolve type information based on metadata.
+ OdataContext *string `json:"@odata.context,omitempty"`
+ // OdataCount - OData entity count; represents the number of policy state records returned.
+ OdataCount *int32 `json:"@odata.count,omitempty"`
+ // Value - Query results.
+ Value *[]PolicyState `json:"value,omitempty"`
+}
+
+// PolicyTrackedResource policy tracked resource record.
+type PolicyTrackedResource struct {
+ // TrackedResourceID - READ-ONLY; The ID of the policy tracked resource.
+ TrackedResourceID *string `json:"trackedResourceId,omitempty"`
+ // PolicyDetails - READ-ONLY; The details of the policy that require the tracked resource.
+ PolicyDetails *PolicyDetails `json:"policyDetails,omitempty"`
+ // CreatedBy - READ-ONLY; The details of the policy triggered deployment that created the tracked resource.
+ CreatedBy *TrackedResourceModificationDetails `json:"createdBy,omitempty"`
+ // LastModifiedBy - READ-ONLY; The details of the policy triggered deployment that modified the tracked resource.
+ LastModifiedBy *TrackedResourceModificationDetails `json:"lastModifiedBy,omitempty"`
+ // LastUpdateUtc - READ-ONLY; Timestamp of the last update to the tracked resource.
+ LastUpdateUtc *date.Time `json:"lastUpdateUtc,omitempty"`
+}
+
+// PolicyTrackedResourcesQueryResults query results.
+type PolicyTrackedResourcesQueryResults struct {
+ autorest.Response `json:"-"`
+ // Value - READ-ONLY; Query results.
+ Value *[]PolicyTrackedResource `json:"value,omitempty"`
+ // NextLink - READ-ONLY; The URL to get the next set of results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// PolicyTrackedResourcesQueryResultsIterator provides access to a complete listing of
+// PolicyTrackedResource values.
+type PolicyTrackedResourcesQueryResultsIterator struct {
+ i int
+ page PolicyTrackedResourcesQueryResultsPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *PolicyTrackedResourcesQueryResultsIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyTrackedResourcesQueryResultsIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *PolicyTrackedResourcesQueryResultsIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter PolicyTrackedResourcesQueryResultsIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter PolicyTrackedResourcesQueryResultsIterator) Response() PolicyTrackedResourcesQueryResults {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter PolicyTrackedResourcesQueryResultsIterator) Value() PolicyTrackedResource {
+ if !iter.page.NotDone() {
+ return PolicyTrackedResource{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the PolicyTrackedResourcesQueryResultsIterator type.
+func NewPolicyTrackedResourcesQueryResultsIterator(page PolicyTrackedResourcesQueryResultsPage) PolicyTrackedResourcesQueryResultsIterator {
+ return PolicyTrackedResourcesQueryResultsIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (ptrqr PolicyTrackedResourcesQueryResults) IsEmpty() bool {
+ return ptrqr.Value == nil || len(*ptrqr.Value) == 0
+}
+
+// policyTrackedResourcesQueryResultsPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (ptrqr PolicyTrackedResourcesQueryResults) policyTrackedResourcesQueryResultsPreparer(ctx context.Context) (*http.Request, error) {
+ if ptrqr.NextLink == nil || len(to.String(ptrqr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(ptrqr.NextLink)))
+}
+
+// PolicyTrackedResourcesQueryResultsPage contains a page of PolicyTrackedResource values.
+type PolicyTrackedResourcesQueryResultsPage struct {
+ fn func(context.Context, PolicyTrackedResourcesQueryResults) (PolicyTrackedResourcesQueryResults, error)
+ ptrqr PolicyTrackedResourcesQueryResults
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *PolicyTrackedResourcesQueryResultsPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyTrackedResourcesQueryResultsPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.ptrqr)
+ if err != nil {
+ return err
+ }
+ page.ptrqr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *PolicyTrackedResourcesQueryResultsPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page PolicyTrackedResourcesQueryResultsPage) NotDone() bool {
+ return !page.ptrqr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page PolicyTrackedResourcesQueryResultsPage) Response() PolicyTrackedResourcesQueryResults {
+ return page.ptrqr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page PolicyTrackedResourcesQueryResultsPage) Values() []PolicyTrackedResource {
+ if page.ptrqr.IsEmpty() {
+ return nil
+ }
+ return *page.ptrqr.Value
+}
+
+// Creates a new instance of the PolicyTrackedResourcesQueryResultsPage type.
+func NewPolicyTrackedResourcesQueryResultsPage(getNextPage func(context.Context, PolicyTrackedResourcesQueryResults) (PolicyTrackedResourcesQueryResults, error)) PolicyTrackedResourcesQueryResultsPage {
+ return PolicyTrackedResourcesQueryResultsPage{fn: getNextPage}
+}
+
+// QueryFailure error response.
+type QueryFailure struct {
+ // Error - Error definition.
+ Error *QueryFailureError `json:"error,omitempty"`
+}
+
+// QueryFailureError error definition.
+type QueryFailureError struct {
+ // Code - READ-ONLY; Service specific error code which serves as the substatus for the HTTP error code.
+ Code *string `json:"code,omitempty"`
+ // Message - READ-ONLY; Description of the error.
+ Message *string `json:"message,omitempty"`
+}
+
+// Remediation the remediation definition.
+type Remediation struct {
+ autorest.Response `json:"-"`
+ // RemediationProperties - Properties for the remediation.
+ *RemediationProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; The ID of the remediation.
+ ID *string `json:"id,omitempty"`
+ // Type - READ-ONLY; The type of the remediation.
+ Type *string `json:"type,omitempty"`
+ // Name - READ-ONLY; The name of the remediation.
+ Name *string `json:"name,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for Remediation.
+func (r Remediation) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if r.RemediationProperties != nil {
+ objectMap["properties"] = r.RemediationProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for Remediation struct.
+func (r *Remediation) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var remediationProperties RemediationProperties
+ err = json.Unmarshal(*v, &remediationProperties)
+ if err != nil {
+ return err
+ }
+ r.RemediationProperties = &remediationProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ r.ID = &ID
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ r.Type = &typeVar
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ r.Name = &name
+ }
+ }
+ }
+
+ return nil
+}
+
+// RemediationDeployment details of a single deployment created by the remediation.
+type RemediationDeployment struct {
+ // RemediatedResourceID - READ-ONLY; Resource ID of the resource that is being remediated by the deployment.
+ RemediatedResourceID *string `json:"remediatedResourceId,omitempty"`
+ // DeploymentID - READ-ONLY; Resource ID of the template deployment that will remediate the resource.
+ DeploymentID *string `json:"deploymentId,omitempty"`
+ // Status - READ-ONLY; Status of the remediation deployment.
+ Status *string `json:"status,omitempty"`
+ // ResourceLocation - READ-ONLY; Location of the resource that is being remediated.
+ ResourceLocation *string `json:"resourceLocation,omitempty"`
+ // Error - READ-ONLY; Error encountered while remediated the resource.
+ Error *ErrorDefinition `json:"error,omitempty"`
+ // CreatedOn - READ-ONLY; The time at which the remediation was created.
+ CreatedOn *date.Time `json:"createdOn,omitempty"`
+ // LastUpdatedOn - READ-ONLY; The time at which the remediation deployment was last updated.
+ LastUpdatedOn *date.Time `json:"lastUpdatedOn,omitempty"`
+}
+
+// RemediationDeploymentsListResult list of deployments for a remediation.
+type RemediationDeploymentsListResult struct {
+ autorest.Response `json:"-"`
+ // Value - READ-ONLY; Array of deployments for the remediation.
+ Value *[]RemediationDeployment `json:"value,omitempty"`
+ // NextLink - READ-ONLY; The URL to get the next set of results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// RemediationDeploymentsListResultIterator provides access to a complete listing of RemediationDeployment
+// values.
+type RemediationDeploymentsListResultIterator struct {
+ i int
+ page RemediationDeploymentsListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *RemediationDeploymentsListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationDeploymentsListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *RemediationDeploymentsListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter RemediationDeploymentsListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter RemediationDeploymentsListResultIterator) Response() RemediationDeploymentsListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter RemediationDeploymentsListResultIterator) Value() RemediationDeployment {
+ if !iter.page.NotDone() {
+ return RemediationDeployment{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the RemediationDeploymentsListResultIterator type.
+func NewRemediationDeploymentsListResultIterator(page RemediationDeploymentsListResultPage) RemediationDeploymentsListResultIterator {
+ return RemediationDeploymentsListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (rdlr RemediationDeploymentsListResult) IsEmpty() bool {
+ return rdlr.Value == nil || len(*rdlr.Value) == 0
+}
+
+// remediationDeploymentsListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (rdlr RemediationDeploymentsListResult) remediationDeploymentsListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if rdlr.NextLink == nil || len(to.String(rdlr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(rdlr.NextLink)))
+}
+
+// RemediationDeploymentsListResultPage contains a page of RemediationDeployment values.
+type RemediationDeploymentsListResultPage struct {
+ fn func(context.Context, RemediationDeploymentsListResult) (RemediationDeploymentsListResult, error)
+ rdlr RemediationDeploymentsListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *RemediationDeploymentsListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationDeploymentsListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.rdlr)
+ if err != nil {
+ return err
+ }
+ page.rdlr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *RemediationDeploymentsListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page RemediationDeploymentsListResultPage) NotDone() bool {
+ return !page.rdlr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page RemediationDeploymentsListResultPage) Response() RemediationDeploymentsListResult {
+ return page.rdlr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page RemediationDeploymentsListResultPage) Values() []RemediationDeployment {
+ if page.rdlr.IsEmpty() {
+ return nil
+ }
+ return *page.rdlr.Value
+}
+
+// Creates a new instance of the RemediationDeploymentsListResultPage type.
+func NewRemediationDeploymentsListResultPage(getNextPage func(context.Context, RemediationDeploymentsListResult) (RemediationDeploymentsListResult, error)) RemediationDeploymentsListResultPage {
+ return RemediationDeploymentsListResultPage{fn: getNextPage}
+}
+
+// RemediationDeploymentSummary the deployment status summary for all deployments created by the
+// remediation.
+type RemediationDeploymentSummary struct {
+ // TotalDeployments - The number of deployments required by the remediation.
+ TotalDeployments *int32 `json:"totalDeployments,omitempty"`
+ // SuccessfulDeployments - The number of deployments required by the remediation that have succeeded.
+ SuccessfulDeployments *int32 `json:"successfulDeployments,omitempty"`
+ // FailedDeployments - The number of deployments required by the remediation that have failed.
+ FailedDeployments *int32 `json:"failedDeployments,omitempty"`
+}
+
+// RemediationFilters the filters that will be applied to determine which resources to remediate.
+type RemediationFilters struct {
+ // Locations - The resource locations that will be remediated.
+ Locations *[]string `json:"locations,omitempty"`
+}
+
+// RemediationListResult list of remediations.
+type RemediationListResult struct {
+ autorest.Response `json:"-"`
+ // Value - READ-ONLY; Array of remediation definitions.
+ Value *[]Remediation `json:"value,omitempty"`
+ // NextLink - READ-ONLY; The URL to get the next set of results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// RemediationListResultIterator provides access to a complete listing of Remediation values.
+type RemediationListResultIterator struct {
+ i int
+ page RemediationListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *RemediationListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *RemediationListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter RemediationListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter RemediationListResultIterator) Response() RemediationListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter RemediationListResultIterator) Value() Remediation {
+ if !iter.page.NotDone() {
+ return Remediation{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the RemediationListResultIterator type.
+func NewRemediationListResultIterator(page RemediationListResultPage) RemediationListResultIterator {
+ return RemediationListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (rlr RemediationListResult) IsEmpty() bool {
+ return rlr.Value == nil || len(*rlr.Value) == 0
+}
+
+// remediationListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (rlr RemediationListResult) remediationListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if rlr.NextLink == nil || len(to.String(rlr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(rlr.NextLink)))
+}
+
+// RemediationListResultPage contains a page of Remediation values.
+type RemediationListResultPage struct {
+ fn func(context.Context, RemediationListResult) (RemediationListResult, error)
+ rlr RemediationListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *RemediationListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.rlr)
+ if err != nil {
+ return err
+ }
+ page.rlr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *RemediationListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page RemediationListResultPage) NotDone() bool {
+ return !page.rlr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page RemediationListResultPage) Response() RemediationListResult {
+ return page.rlr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page RemediationListResultPage) Values() []Remediation {
+ if page.rlr.IsEmpty() {
+ return nil
+ }
+ return *page.rlr.Value
+}
+
+// Creates a new instance of the RemediationListResultPage type.
+func NewRemediationListResultPage(getNextPage func(context.Context, RemediationListResult) (RemediationListResult, error)) RemediationListResultPage {
+ return RemediationListResultPage{fn: getNextPage}
+}
+
+// RemediationProperties the remediation properties.
+type RemediationProperties struct {
+ // PolicyAssignmentID - The resource ID of the policy assignment that should be remediated.
+ PolicyAssignmentID *string `json:"policyAssignmentId,omitempty"`
+ // PolicyDefinitionReferenceID - The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
+ PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty"`
+ // ProvisioningState - READ-ONLY; The status of the remediation.
+ ProvisioningState *string `json:"provisioningState,omitempty"`
+ // CreatedOn - READ-ONLY; The time at which the remediation was created.
+ CreatedOn *date.Time `json:"createdOn,omitempty"`
+ // LastUpdatedOn - READ-ONLY; The time at which the remediation was last updated.
+ LastUpdatedOn *date.Time `json:"lastUpdatedOn,omitempty"`
+ // Filters - The filters that will be applied to determine which resources to remediate.
+ Filters *RemediationFilters `json:"filters,omitempty"`
+ // DeploymentStatus - The deployment status summary for all deployments created by the remediation.
+ DeploymentStatus *RemediationDeploymentSummary `json:"deploymentStatus,omitempty"`
+}
+
+// String ...
+type String struct {
+ autorest.Response `json:"-"`
+ Value *string `json:"value,omitempty"`
+}
+
+// SummarizeResults summarize action results.
+type SummarizeResults struct {
+ autorest.Response `json:"-"`
+ // OdataContext - OData context string; used by OData clients to resolve type information based on metadata.
+ OdataContext *string `json:"@odata.context,omitempty"`
+ // OdataCount - OData entity count; represents the number of summaries returned; always set to 1.
+ OdataCount *int32 `json:"@odata.count,omitempty"`
+ // Value - Summarize action results.
+ Value *[]Summary `json:"value,omitempty"`
+}
+
+// Summary summary results.
+type Summary struct {
+ // OdataID - OData entity ID; always set to null since summaries do not have an entity ID.
+ OdataID *string `json:"@odata.id,omitempty"`
+ // OdataContext - OData context string; used by OData clients to resolve type information based on metadata.
+ OdataContext *string `json:"@odata.context,omitempty"`
+ // Results - Compliance summary for all policy assignments.
+ Results *SummaryResults `json:"results,omitempty"`
+ // PolicyAssignments - Policy assignments summary.
+ PolicyAssignments *[]PolicyAssignmentSummary `json:"policyAssignments,omitempty"`
+}
+
+// SummaryResults compliance summary on a particular summary level.
+type SummaryResults struct {
+ // QueryResultsURI - HTTP POST URI for queryResults action on Microsoft.PolicyInsights to retrieve raw results for the compliance summary. This property will not be available by default in future API versions, but could be queried explicitly.
+ QueryResultsURI *string `json:"queryResultsUri,omitempty"`
+ // NonCompliantResources - Number of non-compliant resources.
+ NonCompliantResources *int32 `json:"nonCompliantResources,omitempty"`
+ // NonCompliantPolicies - Number of non-compliant policies.
+ NonCompliantPolicies *int32 `json:"nonCompliantPolicies,omitempty"`
+ // ResourceDetails - The resources summary at this level.
+ ResourceDetails *[]ComplianceDetail `json:"resourceDetails,omitempty"`
+ // PolicyDetails - The policy artifact summary at this level. For query scope level, it represents policy assignment summary. For policy assignment level, it represents policy definitions summary.
+ PolicyDetails *[]ComplianceDetail `json:"policyDetails,omitempty"`
+ // PolicyGroupDetails - The policy definition group summary at this level.
+ PolicyGroupDetails *[]ComplianceDetail `json:"policyGroupDetails,omitempty"`
+}
+
+// TrackedResourceModificationDetails the details of the policy triggered deployment that created or
+// modified the tracked resource.
+type TrackedResourceModificationDetails struct {
+ // PolicyDetails - READ-ONLY; The details of the policy that created or modified the tracked resource.
+ PolicyDetails *PolicyDetails `json:"policyDetails,omitempty"`
+ // DeploymentID - READ-ONLY; The ID of the deployment that created or modified the tracked resource.
+ DeploymentID *string `json:"deploymentId,omitempty"`
+ // DeploymentTime - READ-ONLY; Timestamp of the deployment that created or modified the tracked resource.
+ DeploymentTime *date.Time `json:"deploymentTime,omitempty"`
+}
+
+// TypedErrorInfo scenario specific error details.
+type TypedErrorInfo struct {
+ // Type - READ-ONLY; The type of included error details.
+ Type *string `json:"type,omitempty"`
+ // Info - READ-ONLY; The scenario specific error details.
+ Info interface{} `json:"info,omitempty"`
+}
diff --git a/services/policyinsights/mgmt/2019-10-01/policyinsights/operations.go b/services/policyinsights/mgmt/2019-10-01/policyinsights/operations.go
new file mode 100644
index 000000000000..3b7784383db2
--- /dev/null
+++ b/services/policyinsights/mgmt/2019-10-01/policyinsights/operations.go
@@ -0,0 +1,109 @@
+package policyinsights
+
+// 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/tracing"
+ "net/http"
+)
+
+// OperationsClient is the client for the Operations methods of the Policyinsights service.
+type OperationsClient struct {
+ BaseClient
+}
+
+// NewOperationsClient creates an instance of the OperationsClient client.
+func NewOperationsClient() OperationsClient {
+ return NewOperationsClientWithBaseURI(DefaultBaseURI)
+}
+
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+func NewOperationsClientWithBaseURI(baseURI string) OperationsClient {
+ return OperationsClient{NewWithBaseURI(baseURI)}
+}
+
+// List lists available operations.
+func (client OperationsClient) List(ctx context.Context) (result OperationsListResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.OperationsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.OperationsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.OperationsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPath("/providers/Microsoft.PolicyInsights/operations"),
+ 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 OperationsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client OperationsClient) ListResponder(resp *http.Response) (result OperationsListResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/policyinsights/mgmt/2019-10-01/policyinsights/policyevents.go b/services/policyinsights/mgmt/2019-10-01/policyinsights/policyevents.go
new file mode 100644
index 000000000000..d4c4421f66e2
--- /dev/null
+++ b/services/policyinsights/mgmt/2019-10-01/policyinsights/policyevents.go
@@ -0,0 +1,1049 @@
+package policyinsights
+
+// 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"
+ "github.com/Azure/go-autorest/autorest/validation"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// PolicyEventsClient is the client for the PolicyEvents methods of the Policyinsights service.
+type PolicyEventsClient struct {
+ BaseClient
+}
+
+// NewPolicyEventsClient creates an instance of the PolicyEventsClient client.
+func NewPolicyEventsClient() PolicyEventsClient {
+ return NewPolicyEventsClientWithBaseURI(DefaultBaseURI)
+}
+
+// NewPolicyEventsClientWithBaseURI creates an instance of the PolicyEventsClient client.
+func NewPolicyEventsClientWithBaseURI(baseURI string) PolicyEventsClient {
+ return PolicyEventsClient{NewWithBaseURI(baseURI)}
+}
+
+// GetMetadata gets OData metadata XML document.
+// Parameters:
+// scope - a valid scope, i.e. management group, subscription, resource group, or resource ID. Scope used has
+// no effect on metadata returned.
+func (client PolicyEventsClient) GetMetadata(ctx context.Context, scope string) (result String, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyEventsClient.GetMetadata")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetMetadataPreparer(ctx, scope)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "GetMetadata", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetMetadataSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "GetMetadata", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetMetadataResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "GetMetadata", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetMetadataPreparer prepares the GetMetadata request.
+func (client PolicyEventsClient) GetMetadataPreparer(ctx context.Context, scope string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "scope": scope,
+ }
+
+ const APIVersion = "2018-04-04"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{scope}/providers/Microsoft.PolicyInsights/policyEvents/$metadata", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ 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 PolicyEventsClient) GetMetadataSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetMetadataResponder handles the response to the GetMetadata request. The method always
+// closes the http.Response Body.
+func (client PolicyEventsClient) GetMetadataResponder(resp *http.Response) (result String, 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
+}
+
+// ListQueryResultsForManagementGroup queries policy events for the resources under the management group.
+// Parameters:
+// managementGroupName - management group name.
+// top - maximum number of records to return.
+// orderBy - ordering expression using OData notation. One or more comma-separated column names with an
+// optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
+// selectParameter - select expression using OData notation. Limits the columns on each record to just those
+// requested, e.g. "$select=PolicyAssignmentId, ResourceId".
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+// apply - oData apply expression for aggregations.
+func (client PolicyEventsClient) ListQueryResultsForManagementGroup(ctx context.Context, managementGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyEventsQueryResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyEventsClient.ListQueryResultsForManagementGroup")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyEventsClient", "ListQueryResultsForManagementGroup", err.Error())
+ }
+
+ req, err := client.ListQueryResultsForManagementGroupPreparer(ctx, managementGroupName, top, orderBy, selectParameter, from, toParameter, filter, apply)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForManagementGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForManagementGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForManagementGroup", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListQueryResultsForManagementGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForManagementGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForManagementGroupPreparer prepares the ListQueryResultsForManagementGroup request.
+func (client PolicyEventsClient) ListQueryResultsForManagementGroupPreparer(ctx context.Context, managementGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "managementGroupName": autorest.Encode("path", managementGroupName),
+ "managementGroupsNamespace": autorest.Encode("path", "Microsoft.Management"),
+ "policyEventsResource": autorest.Encode("path", "default"),
+ }
+
+ const APIVersion = "2018-04-04"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(orderBy) > 0 {
+ queryParameters["$orderby"] = autorest.Encode("query", orderBy)
+ }
+ if len(selectParameter) > 0 {
+ queryParameters["$select"] = autorest.Encode("query", selectParameter)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+ if len(apply) > 0 {
+ queryParameters["$apply"] = autorest.Encode("query", apply)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForManagementGroupSender sends the ListQueryResultsForManagementGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyEventsClient) ListQueryResultsForManagementGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForManagementGroupResponder handles the response to the ListQueryResultsForManagementGroup request. The method always
+// closes the http.Response Body.
+func (client PolicyEventsClient) ListQueryResultsForManagementGroupResponder(resp *http.Response) (result PolicyEventsQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListQueryResultsForPolicyDefinition queries policy events for the subscription level policy definition.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// policyDefinitionName - policy definition name.
+// top - maximum number of records to return.
+// orderBy - ordering expression using OData notation. One or more comma-separated column names with an
+// optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
+// selectParameter - select expression using OData notation. Limits the columns on each record to just those
+// requested, e.g. "$select=PolicyAssignmentId, ResourceId".
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+// apply - oData apply expression for aggregations.
+func (client PolicyEventsClient) ListQueryResultsForPolicyDefinition(ctx context.Context, subscriptionID string, policyDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyEventsQueryResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyEventsClient.ListQueryResultsForPolicyDefinition")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyEventsClient", "ListQueryResultsForPolicyDefinition", err.Error())
+ }
+
+ req, err := client.ListQueryResultsForPolicyDefinitionPreparer(ctx, subscriptionID, policyDefinitionName, top, orderBy, selectParameter, from, toParameter, filter, apply)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForPolicyDefinition", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForPolicyDefinitionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForPolicyDefinition", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListQueryResultsForPolicyDefinitionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForPolicyDefinition", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForPolicyDefinitionPreparer prepares the ListQueryResultsForPolicyDefinition request.
+func (client PolicyEventsClient) ListQueryResultsForPolicyDefinitionPreparer(ctx context.Context, subscriptionID string, policyDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "authorizationNamespace": autorest.Encode("path", "Microsoft.Authorization"),
+ "policyDefinitionName": autorest.Encode("path", policyDefinitionName),
+ "policyEventsResource": autorest.Encode("path", "default"),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-04-04"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(orderBy) > 0 {
+ queryParameters["$orderby"] = autorest.Encode("query", orderBy)
+ }
+ if len(selectParameter) > 0 {
+ queryParameters["$select"] = autorest.Encode("query", selectParameter)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+ if len(apply) > 0 {
+ queryParameters["$apply"] = autorest.Encode("query", apply)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForPolicyDefinitionSender sends the ListQueryResultsForPolicyDefinition request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyEventsClient) ListQueryResultsForPolicyDefinitionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForPolicyDefinitionResponder handles the response to the ListQueryResultsForPolicyDefinition request. The method always
+// closes the http.Response Body.
+func (client PolicyEventsClient) ListQueryResultsForPolicyDefinitionResponder(resp *http.Response) (result PolicyEventsQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListQueryResultsForPolicySetDefinition queries policy events for the subscription level policy set definition.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// policySetDefinitionName - policy set definition name.
+// top - maximum number of records to return.
+// orderBy - ordering expression using OData notation. One or more comma-separated column names with an
+// optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
+// selectParameter - select expression using OData notation. Limits the columns on each record to just those
+// requested, e.g. "$select=PolicyAssignmentId, ResourceId".
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+// apply - oData apply expression for aggregations.
+func (client PolicyEventsClient) ListQueryResultsForPolicySetDefinition(ctx context.Context, subscriptionID string, policySetDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyEventsQueryResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyEventsClient.ListQueryResultsForPolicySetDefinition")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyEventsClient", "ListQueryResultsForPolicySetDefinition", err.Error())
+ }
+
+ req, err := client.ListQueryResultsForPolicySetDefinitionPreparer(ctx, subscriptionID, policySetDefinitionName, top, orderBy, selectParameter, from, toParameter, filter, apply)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForPolicySetDefinition", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForPolicySetDefinitionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForPolicySetDefinition", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListQueryResultsForPolicySetDefinitionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForPolicySetDefinition", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForPolicySetDefinitionPreparer prepares the ListQueryResultsForPolicySetDefinition request.
+func (client PolicyEventsClient) ListQueryResultsForPolicySetDefinitionPreparer(ctx context.Context, subscriptionID string, policySetDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "authorizationNamespace": autorest.Encode("path", "Microsoft.Authorization"),
+ "policyEventsResource": autorest.Encode("path", "default"),
+ "policySetDefinitionName": autorest.Encode("path", policySetDefinitionName),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-04-04"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(orderBy) > 0 {
+ queryParameters["$orderby"] = autorest.Encode("query", orderBy)
+ }
+ if len(selectParameter) > 0 {
+ queryParameters["$select"] = autorest.Encode("query", selectParameter)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+ if len(apply) > 0 {
+ queryParameters["$apply"] = autorest.Encode("query", apply)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForPolicySetDefinitionSender sends the ListQueryResultsForPolicySetDefinition request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyEventsClient) ListQueryResultsForPolicySetDefinitionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForPolicySetDefinitionResponder handles the response to the ListQueryResultsForPolicySetDefinition request. The method always
+// closes the http.Response Body.
+func (client PolicyEventsClient) ListQueryResultsForPolicySetDefinitionResponder(resp *http.Response) (result PolicyEventsQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListQueryResultsForResource queries policy events for the resource.
+// Parameters:
+// resourceID - resource ID.
+// top - maximum number of records to return.
+// orderBy - ordering expression using OData notation. One or more comma-separated column names with an
+// optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
+// selectParameter - select expression using OData notation. Limits the columns on each record to just those
+// requested, e.g. "$select=PolicyAssignmentId, ResourceId".
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+// apply - oData apply expression for aggregations.
+func (client PolicyEventsClient) ListQueryResultsForResource(ctx context.Context, resourceID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyEventsQueryResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyEventsClient.ListQueryResultsForResource")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyEventsClient", "ListQueryResultsForResource", err.Error())
+ }
+
+ req, err := client.ListQueryResultsForResourcePreparer(ctx, resourceID, top, orderBy, selectParameter, from, toParameter, filter, apply)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResource", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForResourceSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResource", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListQueryResultsForResourceResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResource", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForResourcePreparer prepares the ListQueryResultsForResource request.
+func (client PolicyEventsClient) ListQueryResultsForResourcePreparer(ctx context.Context, resourceID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "policyEventsResource": autorest.Encode("path", "default"),
+ "resourceId": resourceID,
+ }
+
+ const APIVersion = "2018-04-04"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(orderBy) > 0 {
+ queryParameters["$orderby"] = autorest.Encode("query", orderBy)
+ }
+ if len(selectParameter) > 0 {
+ queryParameters["$select"] = autorest.Encode("query", selectParameter)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+ if len(apply) > 0 {
+ queryParameters["$apply"] = autorest.Encode("query", apply)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{resourceId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForResourceSender sends the ListQueryResultsForResource request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyEventsClient) ListQueryResultsForResourceSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForResourceResponder handles the response to the ListQueryResultsForResource request. The method always
+// closes the http.Response Body.
+func (client PolicyEventsClient) ListQueryResultsForResourceResponder(resp *http.Response) (result PolicyEventsQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListQueryResultsForResourceGroup queries policy events for the resources under the resource group.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// resourceGroupName - resource group name.
+// top - maximum number of records to return.
+// orderBy - ordering expression using OData notation. One or more comma-separated column names with an
+// optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
+// selectParameter - select expression using OData notation. Limits the columns on each record to just those
+// requested, e.g. "$select=PolicyAssignmentId, ResourceId".
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+// apply - oData apply expression for aggregations.
+func (client PolicyEventsClient) ListQueryResultsForResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyEventsQueryResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyEventsClient.ListQueryResultsForResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyEventsClient", "ListQueryResultsForResourceGroup", err.Error())
+ }
+
+ req, err := client.ListQueryResultsForResourceGroupPreparer(ctx, subscriptionID, resourceGroupName, top, orderBy, selectParameter, from, toParameter, filter, apply)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListQueryResultsForResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForResourceGroupPreparer prepares the ListQueryResultsForResourceGroup request.
+func (client PolicyEventsClient) ListQueryResultsForResourceGroupPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "policyEventsResource": autorest.Encode("path", "default"),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-04-04"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(orderBy) > 0 {
+ queryParameters["$orderby"] = autorest.Encode("query", orderBy)
+ }
+ if len(selectParameter) > 0 {
+ queryParameters["$select"] = autorest.Encode("query", selectParameter)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+ if len(apply) > 0 {
+ queryParameters["$apply"] = autorest.Encode("query", apply)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForResourceGroupSender sends the ListQueryResultsForResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyEventsClient) ListQueryResultsForResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForResourceGroupResponder handles the response to the ListQueryResultsForResourceGroup request. The method always
+// closes the http.Response Body.
+func (client PolicyEventsClient) ListQueryResultsForResourceGroupResponder(resp *http.Response) (result PolicyEventsQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListQueryResultsForResourceGroupLevelPolicyAssignment queries policy events for the resource group level policy
+// assignment.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// resourceGroupName - resource group name.
+// policyAssignmentName - policy assignment name.
+// top - maximum number of records to return.
+// orderBy - ordering expression using OData notation. One or more comma-separated column names with an
+// optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
+// selectParameter - select expression using OData notation. Limits the columns on each record to just those
+// requested, e.g. "$select=PolicyAssignmentId, ResourceId".
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+// apply - oData apply expression for aggregations.
+func (client PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignment(ctx context.Context, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyEventsQueryResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyEventsClient.ListQueryResultsForResourceGroupLevelPolicyAssignment")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyEventsClient", "ListQueryResultsForResourceGroupLevelPolicyAssignment", err.Error())
+ }
+
+ req, err := client.ListQueryResultsForResourceGroupLevelPolicyAssignmentPreparer(ctx, subscriptionID, resourceGroupName, policyAssignmentName, top, orderBy, selectParameter, from, toParameter, filter, apply)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResourceGroupLevelPolicyAssignment", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForResourceGroupLevelPolicyAssignmentSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResourceGroupLevelPolicyAssignment", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForResourceGroupLevelPolicyAssignment", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForResourceGroupLevelPolicyAssignmentPreparer prepares the ListQueryResultsForResourceGroupLevelPolicyAssignment request.
+func (client PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "authorizationNamespace": autorest.Encode("path", "Microsoft.Authorization"),
+ "policyAssignmentName": autorest.Encode("path", policyAssignmentName),
+ "policyEventsResource": autorest.Encode("path", "default"),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-04-04"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(orderBy) > 0 {
+ queryParameters["$orderby"] = autorest.Encode("query", orderBy)
+ }
+ if len(selectParameter) > 0 {
+ queryParameters["$select"] = autorest.Encode("query", selectParameter)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+ if len(apply) > 0 {
+ queryParameters["$apply"] = autorest.Encode("query", apply)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForResourceGroupLevelPolicyAssignmentSender sends the ListQueryResultsForResourceGroupLevelPolicyAssignment request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder handles the response to the ListQueryResultsForResourceGroupLevelPolicyAssignment request. The method always
+// closes the http.Response Body.
+func (client PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp *http.Response) (result PolicyEventsQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListQueryResultsForSubscription queries policy events for the resources under the subscription.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// top - maximum number of records to return.
+// orderBy - ordering expression using OData notation. One or more comma-separated column names with an
+// optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
+// selectParameter - select expression using OData notation. Limits the columns on each record to just those
+// requested, e.g. "$select=PolicyAssignmentId, ResourceId".
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+// apply - oData apply expression for aggregations.
+func (client PolicyEventsClient) ListQueryResultsForSubscription(ctx context.Context, subscriptionID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyEventsQueryResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyEventsClient.ListQueryResultsForSubscription")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyEventsClient", "ListQueryResultsForSubscription", err.Error())
+ }
+
+ req, err := client.ListQueryResultsForSubscriptionPreparer(ctx, subscriptionID, top, orderBy, selectParameter, from, toParameter, filter, apply)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForSubscription", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForSubscriptionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForSubscription", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListQueryResultsForSubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForSubscription", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForSubscriptionPreparer prepares the ListQueryResultsForSubscription request.
+func (client PolicyEventsClient) ListQueryResultsForSubscriptionPreparer(ctx context.Context, subscriptionID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "policyEventsResource": autorest.Encode("path", "default"),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-04-04"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(orderBy) > 0 {
+ queryParameters["$orderby"] = autorest.Encode("query", orderBy)
+ }
+ if len(selectParameter) > 0 {
+ queryParameters["$select"] = autorest.Encode("query", selectParameter)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+ if len(apply) > 0 {
+ queryParameters["$apply"] = autorest.Encode("query", apply)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForSubscriptionSender sends the ListQueryResultsForSubscription request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyEventsClient) ListQueryResultsForSubscriptionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForSubscriptionResponder handles the response to the ListQueryResultsForSubscription request. The method always
+// closes the http.Response Body.
+func (client PolicyEventsClient) ListQueryResultsForSubscriptionResponder(resp *http.Response) (result PolicyEventsQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListQueryResultsForSubscriptionLevelPolicyAssignment queries policy events for the subscription level policy
+// assignment.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// policyAssignmentName - policy assignment name.
+// top - maximum number of records to return.
+// orderBy - ordering expression using OData notation. One or more comma-separated column names with an
+// optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
+// selectParameter - select expression using OData notation. Limits the columns on each record to just those
+// requested, e.g. "$select=PolicyAssignmentId, ResourceId".
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+// apply - oData apply expression for aggregations.
+func (client PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignment(ctx context.Context, subscriptionID string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyEventsQueryResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyEventsClient.ListQueryResultsForSubscriptionLevelPolicyAssignment")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyEventsClient", "ListQueryResultsForSubscriptionLevelPolicyAssignment", err.Error())
+ }
+
+ req, err := client.ListQueryResultsForSubscriptionLevelPolicyAssignmentPreparer(ctx, subscriptionID, policyAssignmentName, top, orderBy, selectParameter, from, toParameter, filter, apply)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForSubscriptionLevelPolicyAssignment", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForSubscriptionLevelPolicyAssignmentSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForSubscriptionLevelPolicyAssignment", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyEventsClient", "ListQueryResultsForSubscriptionLevelPolicyAssignment", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForSubscriptionLevelPolicyAssignmentPreparer prepares the ListQueryResultsForSubscriptionLevelPolicyAssignment request.
+func (client PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentPreparer(ctx context.Context, subscriptionID string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "authorizationNamespace": autorest.Encode("path", "Microsoft.Authorization"),
+ "policyAssignmentName": autorest.Encode("path", policyAssignmentName),
+ "policyEventsResource": autorest.Encode("path", "default"),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-04-04"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(orderBy) > 0 {
+ queryParameters["$orderby"] = autorest.Encode("query", orderBy)
+ }
+ if len(selectParameter) > 0 {
+ queryParameters["$select"] = autorest.Encode("query", selectParameter)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+ if len(apply) > 0 {
+ queryParameters["$apply"] = autorest.Encode("query", apply)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForSubscriptionLevelPolicyAssignmentSender sends the ListQueryResultsForSubscriptionLevelPolicyAssignment request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder handles the response to the ListQueryResultsForSubscriptionLevelPolicyAssignment request. The method always
+// closes the http.Response Body.
+func (client PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp *http.Response) (result PolicyEventsQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/policyinsights/mgmt/2019-10-01/policyinsights/policyinsightsapi/interfaces.go b/services/policyinsights/mgmt/2019-10-01/policyinsights/policyinsightsapi/interfaces.go
new file mode 100644
index 000000000000..aeb5b3244156
--- /dev/null
+++ b/services/policyinsights/mgmt/2019-10-01/policyinsights/policyinsightsapi/interfaces.go
@@ -0,0 +1,108 @@
+package policyinsightsapi
+
+// 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/azure-sdk-for-go/services/policyinsights/mgmt/2019-10-01/policyinsights"
+ "github.com/Azure/go-autorest/autorest/date"
+)
+
+// PolicyTrackedResourcesClientAPI contains the set of methods on the PolicyTrackedResourcesClient type.
+type PolicyTrackedResourcesClientAPI interface {
+ ListQueryResultsForManagementGroup(ctx context.Context, managementGroupName string, top *int32, filter string) (result policyinsights.PolicyTrackedResourcesQueryResultsPage, err error)
+ ListQueryResultsForResource(ctx context.Context, resourceID string, top *int32, filter string) (result policyinsights.PolicyTrackedResourcesQueryResultsPage, err error)
+ ListQueryResultsForResourceGroup(ctx context.Context, resourceGroupName string, subscriptionID string, top *int32, filter string) (result policyinsights.PolicyTrackedResourcesQueryResultsPage, err error)
+ ListQueryResultsForSubscription(ctx context.Context, subscriptionID string, top *int32, filter string) (result policyinsights.PolicyTrackedResourcesQueryResultsPage, err error)
+}
+
+var _ PolicyTrackedResourcesClientAPI = (*policyinsights.PolicyTrackedResourcesClient)(nil)
+
+// RemediationsClientAPI contains the set of methods on the RemediationsClient type.
+type RemediationsClientAPI interface {
+ CancelAtManagementGroup(ctx context.Context, managementGroupID string, remediationName string) (result policyinsights.Remediation, err error)
+ CancelAtResource(ctx context.Context, resourceID string, remediationName string) (result policyinsights.Remediation, err error)
+ CancelAtResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string) (result policyinsights.Remediation, err error)
+ CancelAtSubscription(ctx context.Context, subscriptionID string, remediationName string) (result policyinsights.Remediation, err error)
+ CreateOrUpdateAtManagementGroup(ctx context.Context, managementGroupID string, remediationName string, parameters policyinsights.Remediation) (result policyinsights.Remediation, err error)
+ CreateOrUpdateAtResource(ctx context.Context, resourceID string, remediationName string, parameters policyinsights.Remediation) (result policyinsights.Remediation, err error)
+ CreateOrUpdateAtResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string, parameters policyinsights.Remediation) (result policyinsights.Remediation, err error)
+ CreateOrUpdateAtSubscription(ctx context.Context, subscriptionID string, remediationName string, parameters policyinsights.Remediation) (result policyinsights.Remediation, err error)
+ DeleteAtManagementGroup(ctx context.Context, managementGroupID string, remediationName string) (result policyinsights.Remediation, err error)
+ DeleteAtResource(ctx context.Context, resourceID string, remediationName string) (result policyinsights.Remediation, err error)
+ DeleteAtResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string) (result policyinsights.Remediation, err error)
+ DeleteAtSubscription(ctx context.Context, subscriptionID string, remediationName string) (result policyinsights.Remediation, err error)
+ GetAtManagementGroup(ctx context.Context, managementGroupID string, remediationName string) (result policyinsights.Remediation, err error)
+ GetAtResource(ctx context.Context, resourceID string, remediationName string) (result policyinsights.Remediation, err error)
+ GetAtResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string) (result policyinsights.Remediation, err error)
+ GetAtSubscription(ctx context.Context, subscriptionID string, remediationName string) (result policyinsights.Remediation, err error)
+ ListDeploymentsAtManagementGroup(ctx context.Context, managementGroupID string, remediationName string, top *int32) (result policyinsights.RemediationDeploymentsListResultPage, err error)
+ ListDeploymentsAtResource(ctx context.Context, resourceID string, remediationName string, top *int32) (result policyinsights.RemediationDeploymentsListResultPage, err error)
+ ListDeploymentsAtResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string, top *int32) (result policyinsights.RemediationDeploymentsListResultPage, err error)
+ ListDeploymentsAtSubscription(ctx context.Context, subscriptionID string, remediationName string, top *int32) (result policyinsights.RemediationDeploymentsListResultPage, err error)
+ ListForManagementGroup(ctx context.Context, managementGroupID string, top *int32, filter string) (result policyinsights.RemediationListResultPage, err error)
+ ListForResource(ctx context.Context, resourceID string, top *int32, filter string) (result policyinsights.RemediationListResultPage, err error)
+ ListForResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, filter string) (result policyinsights.RemediationListResultPage, err error)
+ ListForSubscription(ctx context.Context, subscriptionID string, top *int32, filter string) (result policyinsights.RemediationListResultPage, err error)
+}
+
+var _ RemediationsClientAPI = (*policyinsights.RemediationsClient)(nil)
+
+// PolicyEventsClientAPI contains the set of methods on the PolicyEventsClient type.
+type PolicyEventsClientAPI interface {
+ GetMetadata(ctx context.Context, scope string) (result policyinsights.String, err error)
+ ListQueryResultsForManagementGroup(ctx context.Context, managementGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result policyinsights.PolicyEventsQueryResults, err error)
+ ListQueryResultsForPolicyDefinition(ctx context.Context, subscriptionID string, policyDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result policyinsights.PolicyEventsQueryResults, err error)
+ ListQueryResultsForPolicySetDefinition(ctx context.Context, subscriptionID string, policySetDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result policyinsights.PolicyEventsQueryResults, err error)
+ ListQueryResultsForResource(ctx context.Context, resourceID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result policyinsights.PolicyEventsQueryResults, err error)
+ ListQueryResultsForResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result policyinsights.PolicyEventsQueryResults, err error)
+ ListQueryResultsForResourceGroupLevelPolicyAssignment(ctx context.Context, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result policyinsights.PolicyEventsQueryResults, err error)
+ ListQueryResultsForSubscription(ctx context.Context, subscriptionID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result policyinsights.PolicyEventsQueryResults, err error)
+ ListQueryResultsForSubscriptionLevelPolicyAssignment(ctx context.Context, subscriptionID string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result policyinsights.PolicyEventsQueryResults, err error)
+}
+
+var _ PolicyEventsClientAPI = (*policyinsights.PolicyEventsClient)(nil)
+
+// PolicyStatesClientAPI contains the set of methods on the PolicyStatesClient type.
+type PolicyStatesClientAPI interface {
+ ListQueryResultsForManagementGroup(ctx context.Context, policyStatesResource policyinsights.PolicyStatesResource, managementGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result policyinsights.PolicyStatesQueryResults, err error)
+ ListQueryResultsForPolicyDefinition(ctx context.Context, policyStatesResource policyinsights.PolicyStatesResource, subscriptionID string, policyDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result policyinsights.PolicyStatesQueryResults, err error)
+ ListQueryResultsForPolicySetDefinition(ctx context.Context, policyStatesResource policyinsights.PolicyStatesResource, subscriptionID string, policySetDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result policyinsights.PolicyStatesQueryResults, err error)
+ ListQueryResultsForResource(ctx context.Context, policyStatesResource policyinsights.PolicyStatesResource, resourceID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, expand string) (result policyinsights.PolicyStatesQueryResults, err error)
+ ListQueryResultsForResourceGroup(ctx context.Context, policyStatesResource policyinsights.PolicyStatesResource, subscriptionID string, resourceGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result policyinsights.PolicyStatesQueryResults, err error)
+ ListQueryResultsForResourceGroupLevelPolicyAssignment(ctx context.Context, policyStatesResource policyinsights.PolicyStatesResource, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result policyinsights.PolicyStatesQueryResults, err error)
+ ListQueryResultsForSubscription(ctx context.Context, policyStatesResource policyinsights.PolicyStatesResource, subscriptionID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result policyinsights.PolicyStatesQueryResults, err error)
+ ListQueryResultsForSubscriptionLevelPolicyAssignment(ctx context.Context, policyStatesResource policyinsights.PolicyStatesResource, subscriptionID string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result policyinsights.PolicyStatesQueryResults, err error)
+ SummarizeForManagementGroup(ctx context.Context, managementGroupName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result policyinsights.SummarizeResults, err error)
+ SummarizeForPolicyDefinition(ctx context.Context, subscriptionID string, policyDefinitionName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result policyinsights.SummarizeResults, err error)
+ SummarizeForPolicySetDefinition(ctx context.Context, subscriptionID string, policySetDefinitionName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result policyinsights.SummarizeResults, err error)
+ SummarizeForResource(ctx context.Context, resourceID string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result policyinsights.SummarizeResults, err error)
+ SummarizeForResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result policyinsights.SummarizeResults, err error)
+ SummarizeForResourceGroupLevelPolicyAssignment(ctx context.Context, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result policyinsights.SummarizeResults, err error)
+ SummarizeForSubscription(ctx context.Context, subscriptionID string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result policyinsights.SummarizeResults, err error)
+ SummarizeForSubscriptionLevelPolicyAssignment(ctx context.Context, subscriptionID string, policyAssignmentName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result policyinsights.SummarizeResults, err error)
+}
+
+var _ PolicyStatesClientAPI = (*policyinsights.PolicyStatesClient)(nil)
+
+// OperationsClientAPI contains the set of methods on the OperationsClient type.
+type OperationsClientAPI interface {
+ List(ctx context.Context) (result policyinsights.OperationsListResults, err error)
+}
+
+var _ OperationsClientAPI = (*policyinsights.OperationsClient)(nil)
diff --git a/services/policyinsights/mgmt/2019-10-01/policyinsights/policystates.go b/services/policyinsights/mgmt/2019-10-01/policyinsights/policystates.go
new file mode 100644
index 000000000000..3ddb69eb24dc
--- /dev/null
+++ b/services/policyinsights/mgmt/2019-10-01/policyinsights/policystates.go
@@ -0,0 +1,1813 @@
+package policyinsights
+
+// 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"
+ "github.com/Azure/go-autorest/autorest/validation"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// PolicyStatesClient is the client for the PolicyStates methods of the Policyinsights service.
+type PolicyStatesClient struct {
+ BaseClient
+}
+
+// NewPolicyStatesClient creates an instance of the PolicyStatesClient client.
+func NewPolicyStatesClient() PolicyStatesClient {
+ return NewPolicyStatesClientWithBaseURI(DefaultBaseURI)
+}
+
+// NewPolicyStatesClientWithBaseURI creates an instance of the PolicyStatesClient client.
+func NewPolicyStatesClientWithBaseURI(baseURI string) PolicyStatesClient {
+ return PolicyStatesClient{NewWithBaseURI(baseURI)}
+}
+
+// ListQueryResultsForManagementGroup queries policy states for the resources under the management group.
+// Parameters:
+// policyStatesResource - the virtual resource under PolicyStates resource type. In a given time range,
+// 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s).
+// managementGroupName - management group name.
+// top - maximum number of records to return.
+// orderBy - ordering expression using OData notation. One or more comma-separated column names with an
+// optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
+// selectParameter - select expression using OData notation. Limits the columns on each record to just those
+// requested, e.g. "$select=PolicyAssignmentId, ResourceId".
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+// apply - oData apply expression for aggregations.
+func (client PolicyStatesClient) ListQueryResultsForManagementGroup(ctx context.Context, policyStatesResource PolicyStatesResource, managementGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyStatesQueryResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyStatesClient.ListQueryResultsForManagementGroup")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyStatesClient", "ListQueryResultsForManagementGroup", err.Error())
+ }
+
+ req, err := client.ListQueryResultsForManagementGroupPreparer(ctx, policyStatesResource, managementGroupName, top, orderBy, selectParameter, from, toParameter, filter, apply)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForManagementGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForManagementGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForManagementGroup", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListQueryResultsForManagementGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForManagementGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForManagementGroupPreparer prepares the ListQueryResultsForManagementGroup request.
+func (client PolicyStatesClient) ListQueryResultsForManagementGroupPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, managementGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "managementGroupName": autorest.Encode("path", managementGroupName),
+ "managementGroupsNamespace": autorest.Encode("path", "Microsoft.Management"),
+ "policyStatesResource": autorest.Encode("path", policyStatesResource),
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(orderBy) > 0 {
+ queryParameters["$orderby"] = autorest.Encode("query", orderBy)
+ }
+ if len(selectParameter) > 0 {
+ queryParameters["$select"] = autorest.Encode("query", selectParameter)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+ if len(apply) > 0 {
+ queryParameters["$apply"] = autorest.Encode("query", apply)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForManagementGroupSender sends the ListQueryResultsForManagementGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyStatesClient) ListQueryResultsForManagementGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForManagementGroupResponder handles the response to the ListQueryResultsForManagementGroup request. The method always
+// closes the http.Response Body.
+func (client PolicyStatesClient) ListQueryResultsForManagementGroupResponder(resp *http.Response) (result PolicyStatesQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListQueryResultsForPolicyDefinition queries policy states for the subscription level policy definition.
+// Parameters:
+// policyStatesResource - the virtual resource under PolicyStates resource type. In a given time range,
+// 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s).
+// subscriptionID - microsoft Azure subscription ID.
+// policyDefinitionName - policy definition name.
+// top - maximum number of records to return.
+// orderBy - ordering expression using OData notation. One or more comma-separated column names with an
+// optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
+// selectParameter - select expression using OData notation. Limits the columns on each record to just those
+// requested, e.g. "$select=PolicyAssignmentId, ResourceId".
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+// apply - oData apply expression for aggregations.
+func (client PolicyStatesClient) ListQueryResultsForPolicyDefinition(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policyDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyStatesQueryResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyStatesClient.ListQueryResultsForPolicyDefinition")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyStatesClient", "ListQueryResultsForPolicyDefinition", err.Error())
+ }
+
+ req, err := client.ListQueryResultsForPolicyDefinitionPreparer(ctx, policyStatesResource, subscriptionID, policyDefinitionName, top, orderBy, selectParameter, from, toParameter, filter, apply)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForPolicyDefinition", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForPolicyDefinitionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForPolicyDefinition", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListQueryResultsForPolicyDefinitionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForPolicyDefinition", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForPolicyDefinitionPreparer prepares the ListQueryResultsForPolicyDefinition request.
+func (client PolicyStatesClient) ListQueryResultsForPolicyDefinitionPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policyDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "authorizationNamespace": autorest.Encode("path", "Microsoft.Authorization"),
+ "policyDefinitionName": autorest.Encode("path", policyDefinitionName),
+ "policyStatesResource": autorest.Encode("path", policyStatesResource),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(orderBy) > 0 {
+ queryParameters["$orderby"] = autorest.Encode("query", orderBy)
+ }
+ if len(selectParameter) > 0 {
+ queryParameters["$select"] = autorest.Encode("query", selectParameter)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+ if len(apply) > 0 {
+ queryParameters["$apply"] = autorest.Encode("query", apply)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForPolicyDefinitionSender sends the ListQueryResultsForPolicyDefinition request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyStatesClient) ListQueryResultsForPolicyDefinitionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForPolicyDefinitionResponder handles the response to the ListQueryResultsForPolicyDefinition request. The method always
+// closes the http.Response Body.
+func (client PolicyStatesClient) ListQueryResultsForPolicyDefinitionResponder(resp *http.Response) (result PolicyStatesQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListQueryResultsForPolicySetDefinition queries policy states for the subscription level policy set definition.
+// Parameters:
+// policyStatesResource - the virtual resource under PolicyStates resource type. In a given time range,
+// 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s).
+// subscriptionID - microsoft Azure subscription ID.
+// policySetDefinitionName - policy set definition name.
+// top - maximum number of records to return.
+// orderBy - ordering expression using OData notation. One or more comma-separated column names with an
+// optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
+// selectParameter - select expression using OData notation. Limits the columns on each record to just those
+// requested, e.g. "$select=PolicyAssignmentId, ResourceId".
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+// apply - oData apply expression for aggregations.
+func (client PolicyStatesClient) ListQueryResultsForPolicySetDefinition(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policySetDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyStatesQueryResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyStatesClient.ListQueryResultsForPolicySetDefinition")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyStatesClient", "ListQueryResultsForPolicySetDefinition", err.Error())
+ }
+
+ req, err := client.ListQueryResultsForPolicySetDefinitionPreparer(ctx, policyStatesResource, subscriptionID, policySetDefinitionName, top, orderBy, selectParameter, from, toParameter, filter, apply)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForPolicySetDefinition", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForPolicySetDefinitionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForPolicySetDefinition", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListQueryResultsForPolicySetDefinitionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForPolicySetDefinition", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForPolicySetDefinitionPreparer prepares the ListQueryResultsForPolicySetDefinition request.
+func (client PolicyStatesClient) ListQueryResultsForPolicySetDefinitionPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policySetDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "authorizationNamespace": autorest.Encode("path", "Microsoft.Authorization"),
+ "policySetDefinitionName": autorest.Encode("path", policySetDefinitionName),
+ "policyStatesResource": autorest.Encode("path", policyStatesResource),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(orderBy) > 0 {
+ queryParameters["$orderby"] = autorest.Encode("query", orderBy)
+ }
+ if len(selectParameter) > 0 {
+ queryParameters["$select"] = autorest.Encode("query", selectParameter)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+ if len(apply) > 0 {
+ queryParameters["$apply"] = autorest.Encode("query", apply)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForPolicySetDefinitionSender sends the ListQueryResultsForPolicySetDefinition request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyStatesClient) ListQueryResultsForPolicySetDefinitionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForPolicySetDefinitionResponder handles the response to the ListQueryResultsForPolicySetDefinition request. The method always
+// closes the http.Response Body.
+func (client PolicyStatesClient) ListQueryResultsForPolicySetDefinitionResponder(resp *http.Response) (result PolicyStatesQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListQueryResultsForResource queries policy states for the resource.
+// Parameters:
+// policyStatesResource - the virtual resource under PolicyStates resource type. In a given time range,
+// 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s).
+// resourceID - resource ID.
+// top - maximum number of records to return.
+// orderBy - ordering expression using OData notation. One or more comma-separated column names with an
+// optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
+// selectParameter - select expression using OData notation. Limits the columns on each record to just those
+// requested, e.g. "$select=PolicyAssignmentId, ResourceId".
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+// apply - oData apply expression for aggregations.
+// expand - the $expand query parameter. For example, to expand policyEvaluationDetails, use
+// $expand=policyEvaluationDetails
+func (client PolicyStatesClient) ListQueryResultsForResource(ctx context.Context, policyStatesResource PolicyStatesResource, resourceID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, expand string) (result PolicyStatesQueryResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyStatesClient.ListQueryResultsForResource")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyStatesClient", "ListQueryResultsForResource", err.Error())
+ }
+
+ req, err := client.ListQueryResultsForResourcePreparer(ctx, policyStatesResource, resourceID, top, orderBy, selectParameter, from, toParameter, filter, apply, expand)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResource", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForResourceSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResource", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListQueryResultsForResourceResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResource", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForResourcePreparer prepares the ListQueryResultsForResource request.
+func (client PolicyStatesClient) ListQueryResultsForResourcePreparer(ctx context.Context, policyStatesResource PolicyStatesResource, resourceID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string, expand string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "policyStatesResource": autorest.Encode("path", policyStatesResource),
+ "resourceId": resourceID,
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(orderBy) > 0 {
+ queryParameters["$orderby"] = autorest.Encode("query", orderBy)
+ }
+ if len(selectParameter) > 0 {
+ queryParameters["$select"] = autorest.Encode("query", selectParameter)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+ if len(apply) > 0 {
+ queryParameters["$apply"] = autorest.Encode("query", apply)
+ }
+ if len(expand) > 0 {
+ queryParameters["$expand"] = autorest.Encode("query", expand)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForResourceSender sends the ListQueryResultsForResource request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyStatesClient) ListQueryResultsForResourceSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForResourceResponder handles the response to the ListQueryResultsForResource request. The method always
+// closes the http.Response Body.
+func (client PolicyStatesClient) ListQueryResultsForResourceResponder(resp *http.Response) (result PolicyStatesQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListQueryResultsForResourceGroup queries policy states for the resources under the resource group.
+// Parameters:
+// policyStatesResource - the virtual resource under PolicyStates resource type. In a given time range,
+// 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s).
+// subscriptionID - microsoft Azure subscription ID.
+// resourceGroupName - resource group name.
+// top - maximum number of records to return.
+// orderBy - ordering expression using OData notation. One or more comma-separated column names with an
+// optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
+// selectParameter - select expression using OData notation. Limits the columns on each record to just those
+// requested, e.g. "$select=PolicyAssignmentId, ResourceId".
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+// apply - oData apply expression for aggregations.
+func (client PolicyStatesClient) ListQueryResultsForResourceGroup(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, resourceGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyStatesQueryResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyStatesClient.ListQueryResultsForResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyStatesClient", "ListQueryResultsForResourceGroup", err.Error())
+ }
+
+ req, err := client.ListQueryResultsForResourceGroupPreparer(ctx, policyStatesResource, subscriptionID, resourceGroupName, top, orderBy, selectParameter, from, toParameter, filter, apply)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListQueryResultsForResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForResourceGroupPreparer prepares the ListQueryResultsForResourceGroup request.
+func (client PolicyStatesClient) ListQueryResultsForResourceGroupPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, resourceGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "policyStatesResource": autorest.Encode("path", policyStatesResource),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(orderBy) > 0 {
+ queryParameters["$orderby"] = autorest.Encode("query", orderBy)
+ }
+ if len(selectParameter) > 0 {
+ queryParameters["$select"] = autorest.Encode("query", selectParameter)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+ if len(apply) > 0 {
+ queryParameters["$apply"] = autorest.Encode("query", apply)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForResourceGroupSender sends the ListQueryResultsForResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyStatesClient) ListQueryResultsForResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForResourceGroupResponder handles the response to the ListQueryResultsForResourceGroup request. The method always
+// closes the http.Response Body.
+func (client PolicyStatesClient) ListQueryResultsForResourceGroupResponder(resp *http.Response) (result PolicyStatesQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListQueryResultsForResourceGroupLevelPolicyAssignment queries policy states for the resource group level policy
+// assignment.
+// Parameters:
+// policyStatesResource - the virtual resource under PolicyStates resource type. In a given time range,
+// 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s).
+// subscriptionID - microsoft Azure subscription ID.
+// resourceGroupName - resource group name.
+// policyAssignmentName - policy assignment name.
+// top - maximum number of records to return.
+// orderBy - ordering expression using OData notation. One or more comma-separated column names with an
+// optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
+// selectParameter - select expression using OData notation. Limits the columns on each record to just those
+// requested, e.g. "$select=PolicyAssignmentId, ResourceId".
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+// apply - oData apply expression for aggregations.
+func (client PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignment(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyStatesQueryResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyStatesClient.ListQueryResultsForResourceGroupLevelPolicyAssignment")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyStatesClient", "ListQueryResultsForResourceGroupLevelPolicyAssignment", err.Error())
+ }
+
+ req, err := client.ListQueryResultsForResourceGroupLevelPolicyAssignmentPreparer(ctx, policyStatesResource, subscriptionID, resourceGroupName, policyAssignmentName, top, orderBy, selectParameter, from, toParameter, filter, apply)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResourceGroupLevelPolicyAssignment", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForResourceGroupLevelPolicyAssignmentSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResourceGroupLevelPolicyAssignment", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForResourceGroupLevelPolicyAssignment", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForResourceGroupLevelPolicyAssignmentPreparer prepares the ListQueryResultsForResourceGroupLevelPolicyAssignment request.
+func (client PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "authorizationNamespace": autorest.Encode("path", "Microsoft.Authorization"),
+ "policyAssignmentName": autorest.Encode("path", policyAssignmentName),
+ "policyStatesResource": autorest.Encode("path", policyStatesResource),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(orderBy) > 0 {
+ queryParameters["$orderby"] = autorest.Encode("query", orderBy)
+ }
+ if len(selectParameter) > 0 {
+ queryParameters["$select"] = autorest.Encode("query", selectParameter)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+ if len(apply) > 0 {
+ queryParameters["$apply"] = autorest.Encode("query", apply)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForResourceGroupLevelPolicyAssignmentSender sends the ListQueryResultsForResourceGroupLevelPolicyAssignment request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder handles the response to the ListQueryResultsForResourceGroupLevelPolicyAssignment request. The method always
+// closes the http.Response Body.
+func (client PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp *http.Response) (result PolicyStatesQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListQueryResultsForSubscription queries policy states for the resources under the subscription.
+// Parameters:
+// policyStatesResource - the virtual resource under PolicyStates resource type. In a given time range,
+// 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s).
+// subscriptionID - microsoft Azure subscription ID.
+// top - maximum number of records to return.
+// orderBy - ordering expression using OData notation. One or more comma-separated column names with an
+// optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
+// selectParameter - select expression using OData notation. Limits the columns on each record to just those
+// requested, e.g. "$select=PolicyAssignmentId, ResourceId".
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+// apply - oData apply expression for aggregations.
+func (client PolicyStatesClient) ListQueryResultsForSubscription(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyStatesQueryResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyStatesClient.ListQueryResultsForSubscription")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyStatesClient", "ListQueryResultsForSubscription", err.Error())
+ }
+
+ req, err := client.ListQueryResultsForSubscriptionPreparer(ctx, policyStatesResource, subscriptionID, top, orderBy, selectParameter, from, toParameter, filter, apply)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForSubscription", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForSubscriptionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForSubscription", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListQueryResultsForSubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForSubscription", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForSubscriptionPreparer prepares the ListQueryResultsForSubscription request.
+func (client PolicyStatesClient) ListQueryResultsForSubscriptionPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "policyStatesResource": autorest.Encode("path", policyStatesResource),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(orderBy) > 0 {
+ queryParameters["$orderby"] = autorest.Encode("query", orderBy)
+ }
+ if len(selectParameter) > 0 {
+ queryParameters["$select"] = autorest.Encode("query", selectParameter)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+ if len(apply) > 0 {
+ queryParameters["$apply"] = autorest.Encode("query", apply)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForSubscriptionSender sends the ListQueryResultsForSubscription request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyStatesClient) ListQueryResultsForSubscriptionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForSubscriptionResponder handles the response to the ListQueryResultsForSubscription request. The method always
+// closes the http.Response Body.
+func (client PolicyStatesClient) ListQueryResultsForSubscriptionResponder(resp *http.Response) (result PolicyStatesQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListQueryResultsForSubscriptionLevelPolicyAssignment queries policy states for the subscription level policy
+// assignment.
+// Parameters:
+// policyStatesResource - the virtual resource under PolicyStates resource type. In a given time range,
+// 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s).
+// subscriptionID - microsoft Azure subscription ID.
+// policyAssignmentName - policy assignment name.
+// top - maximum number of records to return.
+// orderBy - ordering expression using OData notation. One or more comma-separated column names with an
+// optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
+// selectParameter - select expression using OData notation. Limits the columns on each record to just those
+// requested, e.g. "$select=PolicyAssignmentId, ResourceId".
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+// apply - oData apply expression for aggregations.
+func (client PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignment(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyStatesQueryResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyStatesClient.ListQueryResultsForSubscriptionLevelPolicyAssignment")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyStatesClient", "ListQueryResultsForSubscriptionLevelPolicyAssignment", err.Error())
+ }
+
+ req, err := client.ListQueryResultsForSubscriptionLevelPolicyAssignmentPreparer(ctx, policyStatesResource, subscriptionID, policyAssignmentName, top, orderBy, selectParameter, from, toParameter, filter, apply)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForSubscriptionLevelPolicyAssignment", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForSubscriptionLevelPolicyAssignmentSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForSubscriptionLevelPolicyAssignment", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "ListQueryResultsForSubscriptionLevelPolicyAssignment", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForSubscriptionLevelPolicyAssignmentPreparer prepares the ListQueryResultsForSubscriptionLevelPolicyAssignment request.
+func (client PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "authorizationNamespace": autorest.Encode("path", "Microsoft.Authorization"),
+ "policyAssignmentName": autorest.Encode("path", policyAssignmentName),
+ "policyStatesResource": autorest.Encode("path", policyStatesResource),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(orderBy) > 0 {
+ queryParameters["$orderby"] = autorest.Encode("query", orderBy)
+ }
+ if len(selectParameter) > 0 {
+ queryParameters["$select"] = autorest.Encode("query", selectParameter)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+ if len(apply) > 0 {
+ queryParameters["$apply"] = autorest.Encode("query", apply)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForSubscriptionLevelPolicyAssignmentSender sends the ListQueryResultsForSubscriptionLevelPolicyAssignment request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder handles the response to the ListQueryResultsForSubscriptionLevelPolicyAssignment request. The method always
+// closes the http.Response Body.
+func (client PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp *http.Response) (result PolicyStatesQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// SummarizeForManagementGroup summarizes policy states for the resources under the management group.
+// Parameters:
+// managementGroupName - management group name.
+// top - maximum number of records to return.
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+func (client PolicyStatesClient) SummarizeForManagementGroup(ctx context.Context, managementGroupName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyStatesClient.SummarizeForManagementGroup")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyStatesClient", "SummarizeForManagementGroup", err.Error())
+ }
+
+ req, err := client.SummarizeForManagementGroupPreparer(ctx, managementGroupName, top, from, toParameter, filter)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForManagementGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.SummarizeForManagementGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForManagementGroup", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.SummarizeForManagementGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForManagementGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// SummarizeForManagementGroupPreparer prepares the SummarizeForManagementGroup request.
+func (client PolicyStatesClient) SummarizeForManagementGroupPreparer(ctx context.Context, managementGroupName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "managementGroupName": autorest.Encode("path", managementGroupName),
+ "managementGroupsNamespace": autorest.Encode("path", "Microsoft.Management"),
+ "policyStatesSummaryResource": autorest.Encode("path", "latest"),
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// SummarizeForManagementGroupSender sends the SummarizeForManagementGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyStatesClient) SummarizeForManagementGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// SummarizeForManagementGroupResponder handles the response to the SummarizeForManagementGroup request. The method always
+// closes the http.Response Body.
+func (client PolicyStatesClient) SummarizeForManagementGroupResponder(resp *http.Response) (result SummarizeResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// SummarizeForPolicyDefinition summarizes policy states for the subscription level policy definition.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// policyDefinitionName - policy definition name.
+// top - maximum number of records to return.
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+func (client PolicyStatesClient) SummarizeForPolicyDefinition(ctx context.Context, subscriptionID string, policyDefinitionName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyStatesClient.SummarizeForPolicyDefinition")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyStatesClient", "SummarizeForPolicyDefinition", err.Error())
+ }
+
+ req, err := client.SummarizeForPolicyDefinitionPreparer(ctx, subscriptionID, policyDefinitionName, top, from, toParameter, filter)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForPolicyDefinition", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.SummarizeForPolicyDefinitionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForPolicyDefinition", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.SummarizeForPolicyDefinitionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForPolicyDefinition", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// SummarizeForPolicyDefinitionPreparer prepares the SummarizeForPolicyDefinition request.
+func (client PolicyStatesClient) SummarizeForPolicyDefinitionPreparer(ctx context.Context, subscriptionID string, policyDefinitionName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "authorizationNamespace": autorest.Encode("path", "Microsoft.Authorization"),
+ "policyDefinitionName": autorest.Encode("path", policyDefinitionName),
+ "policyStatesSummaryResource": autorest.Encode("path", "latest"),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// SummarizeForPolicyDefinitionSender sends the SummarizeForPolicyDefinition request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyStatesClient) SummarizeForPolicyDefinitionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// SummarizeForPolicyDefinitionResponder handles the response to the SummarizeForPolicyDefinition request. The method always
+// closes the http.Response Body.
+func (client PolicyStatesClient) SummarizeForPolicyDefinitionResponder(resp *http.Response) (result SummarizeResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// SummarizeForPolicySetDefinition summarizes policy states for the subscription level policy set definition.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// policySetDefinitionName - policy set definition name.
+// top - maximum number of records to return.
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+func (client PolicyStatesClient) SummarizeForPolicySetDefinition(ctx context.Context, subscriptionID string, policySetDefinitionName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyStatesClient.SummarizeForPolicySetDefinition")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyStatesClient", "SummarizeForPolicySetDefinition", err.Error())
+ }
+
+ req, err := client.SummarizeForPolicySetDefinitionPreparer(ctx, subscriptionID, policySetDefinitionName, top, from, toParameter, filter)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForPolicySetDefinition", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.SummarizeForPolicySetDefinitionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForPolicySetDefinition", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.SummarizeForPolicySetDefinitionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForPolicySetDefinition", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// SummarizeForPolicySetDefinitionPreparer prepares the SummarizeForPolicySetDefinition request.
+func (client PolicyStatesClient) SummarizeForPolicySetDefinitionPreparer(ctx context.Context, subscriptionID string, policySetDefinitionName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "authorizationNamespace": autorest.Encode("path", "Microsoft.Authorization"),
+ "policySetDefinitionName": autorest.Encode("path", policySetDefinitionName),
+ "policyStatesSummaryResource": autorest.Encode("path", "latest"),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// SummarizeForPolicySetDefinitionSender sends the SummarizeForPolicySetDefinition request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyStatesClient) SummarizeForPolicySetDefinitionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// SummarizeForPolicySetDefinitionResponder handles the response to the SummarizeForPolicySetDefinition request. The method always
+// closes the http.Response Body.
+func (client PolicyStatesClient) SummarizeForPolicySetDefinitionResponder(resp *http.Response) (result SummarizeResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// SummarizeForResource summarizes policy states for the resource.
+// Parameters:
+// resourceID - resource ID.
+// top - maximum number of records to return.
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+func (client PolicyStatesClient) SummarizeForResource(ctx context.Context, resourceID string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyStatesClient.SummarizeForResource")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyStatesClient", "SummarizeForResource", err.Error())
+ }
+
+ req, err := client.SummarizeForResourcePreparer(ctx, resourceID, top, from, toParameter, filter)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResource", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.SummarizeForResourceSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResource", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.SummarizeForResourceResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResource", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// SummarizeForResourcePreparer prepares the SummarizeForResource request.
+func (client PolicyStatesClient) SummarizeForResourcePreparer(ctx context.Context, resourceID string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "policyStatesSummaryResource": autorest.Encode("path", "latest"),
+ "resourceId": resourceID,
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// SummarizeForResourceSender sends the SummarizeForResource request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyStatesClient) SummarizeForResourceSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// SummarizeForResourceResponder handles the response to the SummarizeForResource request. The method always
+// closes the http.Response Body.
+func (client PolicyStatesClient) SummarizeForResourceResponder(resp *http.Response) (result SummarizeResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// SummarizeForResourceGroup summarizes policy states for the resources under the resource group.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// resourceGroupName - resource group name.
+// top - maximum number of records to return.
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+func (client PolicyStatesClient) SummarizeForResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyStatesClient.SummarizeForResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyStatesClient", "SummarizeForResourceGroup", err.Error())
+ }
+
+ req, err := client.SummarizeForResourceGroupPreparer(ctx, subscriptionID, resourceGroupName, top, from, toParameter, filter)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.SummarizeForResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.SummarizeForResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// SummarizeForResourceGroupPreparer prepares the SummarizeForResourceGroup request.
+func (client PolicyStatesClient) SummarizeForResourceGroupPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "policyStatesSummaryResource": autorest.Encode("path", "latest"),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// SummarizeForResourceGroupSender sends the SummarizeForResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyStatesClient) SummarizeForResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// SummarizeForResourceGroupResponder handles the response to the SummarizeForResourceGroup request. The method always
+// closes the http.Response Body.
+func (client PolicyStatesClient) SummarizeForResourceGroupResponder(resp *http.Response) (result SummarizeResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// SummarizeForResourceGroupLevelPolicyAssignment summarizes policy states for the resource group level policy
+// assignment.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// resourceGroupName - resource group name.
+// policyAssignmentName - policy assignment name.
+// top - maximum number of records to return.
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+func (client PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignment(ctx context.Context, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyStatesClient.SummarizeForResourceGroupLevelPolicyAssignment")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyStatesClient", "SummarizeForResourceGroupLevelPolicyAssignment", err.Error())
+ }
+
+ req, err := client.SummarizeForResourceGroupLevelPolicyAssignmentPreparer(ctx, subscriptionID, resourceGroupName, policyAssignmentName, top, from, toParameter, filter)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResourceGroupLevelPolicyAssignment", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.SummarizeForResourceGroupLevelPolicyAssignmentSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResourceGroupLevelPolicyAssignment", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.SummarizeForResourceGroupLevelPolicyAssignmentResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForResourceGroupLevelPolicyAssignment", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// SummarizeForResourceGroupLevelPolicyAssignmentPreparer prepares the SummarizeForResourceGroupLevelPolicyAssignment request.
+func (client PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignmentPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "authorizationNamespace": autorest.Encode("path", "Microsoft.Authorization"),
+ "policyAssignmentName": autorest.Encode("path", policyAssignmentName),
+ "policyStatesSummaryResource": autorest.Encode("path", "latest"),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// SummarizeForResourceGroupLevelPolicyAssignmentSender sends the SummarizeForResourceGroupLevelPolicyAssignment request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignmentSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// SummarizeForResourceGroupLevelPolicyAssignmentResponder handles the response to the SummarizeForResourceGroupLevelPolicyAssignment request. The method always
+// closes the http.Response Body.
+func (client PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignmentResponder(resp *http.Response) (result SummarizeResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// SummarizeForSubscription summarizes policy states for the resources under the subscription.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// top - maximum number of records to return.
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+func (client PolicyStatesClient) SummarizeForSubscription(ctx context.Context, subscriptionID string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyStatesClient.SummarizeForSubscription")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyStatesClient", "SummarizeForSubscription", err.Error())
+ }
+
+ req, err := client.SummarizeForSubscriptionPreparer(ctx, subscriptionID, top, from, toParameter, filter)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForSubscription", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.SummarizeForSubscriptionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForSubscription", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.SummarizeForSubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForSubscription", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// SummarizeForSubscriptionPreparer prepares the SummarizeForSubscription request.
+func (client PolicyStatesClient) SummarizeForSubscriptionPreparer(ctx context.Context, subscriptionID string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "policyStatesSummaryResource": autorest.Encode("path", "latest"),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// SummarizeForSubscriptionSender sends the SummarizeForSubscription request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyStatesClient) SummarizeForSubscriptionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// SummarizeForSubscriptionResponder handles the response to the SummarizeForSubscription request. The method always
+// closes the http.Response Body.
+func (client PolicyStatesClient) SummarizeForSubscriptionResponder(resp *http.Response) (result SummarizeResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// SummarizeForSubscriptionLevelPolicyAssignment summarizes policy states for the subscription level policy assignment.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// policyAssignmentName - policy assignment name.
+// top - maximum number of records to return.
+// from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
+// the service uses ($to - 1-day).
+// toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not
+// specified, the service uses request time.
+// filter - oData filter expression.
+func (client PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignment(ctx context.Context, subscriptionID string, policyAssignmentName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyStatesClient.SummarizeForSubscriptionLevelPolicyAssignment")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyStatesClient", "SummarizeForSubscriptionLevelPolicyAssignment", err.Error())
+ }
+
+ req, err := client.SummarizeForSubscriptionLevelPolicyAssignmentPreparer(ctx, subscriptionID, policyAssignmentName, top, from, toParameter, filter)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForSubscriptionLevelPolicyAssignment", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.SummarizeForSubscriptionLevelPolicyAssignmentSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForSubscriptionLevelPolicyAssignment", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.SummarizeForSubscriptionLevelPolicyAssignmentResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyStatesClient", "SummarizeForSubscriptionLevelPolicyAssignment", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// SummarizeForSubscriptionLevelPolicyAssignmentPreparer prepares the SummarizeForSubscriptionLevelPolicyAssignment request.
+func (client PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignmentPreparer(ctx context.Context, subscriptionID string, policyAssignmentName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "authorizationNamespace": autorest.Encode("path", "Microsoft.Authorization"),
+ "policyAssignmentName": autorest.Encode("path", policyAssignmentName),
+ "policyStatesSummaryResource": autorest.Encode("path", "latest"),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if from != nil {
+ queryParameters["$from"] = autorest.Encode("query", *from)
+ }
+ if toParameter != nil {
+ queryParameters["$to"] = autorest.Encode("query", *toParameter)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// SummarizeForSubscriptionLevelPolicyAssignmentSender sends the SummarizeForSubscriptionLevelPolicyAssignment request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignmentSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// SummarizeForSubscriptionLevelPolicyAssignmentResponder handles the response to the SummarizeForSubscriptionLevelPolicyAssignment request. The method always
+// closes the http.Response Body.
+func (client PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignmentResponder(resp *http.Response) (result SummarizeResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/policyinsights/mgmt/2019-10-01/policyinsights/policytrackedresources.go b/services/policyinsights/mgmt/2019-10-01/policyinsights/policytrackedresources.go
new file mode 100644
index 000000000000..cfcb71c32715
--- /dev/null
+++ b/services/policyinsights/mgmt/2019-10-01/policyinsights/policytrackedresources.go
@@ -0,0 +1,557 @@
+package policyinsights
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// PolicyTrackedResourcesClient is the client for the PolicyTrackedResources methods of the Policyinsights service.
+type PolicyTrackedResourcesClient struct {
+ BaseClient
+}
+
+// NewPolicyTrackedResourcesClient creates an instance of the PolicyTrackedResourcesClient client.
+func NewPolicyTrackedResourcesClient() PolicyTrackedResourcesClient {
+ return NewPolicyTrackedResourcesClientWithBaseURI(DefaultBaseURI)
+}
+
+// NewPolicyTrackedResourcesClientWithBaseURI creates an instance of the PolicyTrackedResourcesClient client.
+func NewPolicyTrackedResourcesClientWithBaseURI(baseURI string) PolicyTrackedResourcesClient {
+ return PolicyTrackedResourcesClient{NewWithBaseURI(baseURI)}
+}
+
+// ListQueryResultsForManagementGroup queries policy tracked resources under the management group.
+// Parameters:
+// managementGroupName - management group name.
+// top - maximum number of records to return.
+// filter - oData filter expression.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForManagementGroup(ctx context.Context, managementGroupName string, top *int32, filter string) (result PolicyTrackedResourcesQueryResultsPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyTrackedResourcesClient.ListQueryResultsForManagementGroup")
+ defer func() {
+ sc := -1
+ if result.ptrqr.Response.Response != nil {
+ sc = result.ptrqr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForManagementGroup", err.Error())
+ }
+
+ result.fn = client.listQueryResultsForManagementGroupNextResults
+ req, err := client.ListQueryResultsForManagementGroupPreparer(ctx, managementGroupName, top, filter)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForManagementGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForManagementGroupSender(req)
+ if err != nil {
+ result.ptrqr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForManagementGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.ptrqr, err = client.ListQueryResultsForManagementGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForManagementGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForManagementGroupPreparer prepares the ListQueryResultsForManagementGroup request.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForManagementGroupPreparer(ctx context.Context, managementGroupName string, top *int32, filter string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "managementGroupName": autorest.Encode("path", managementGroupName),
+ "managementGroupsNamespace": autorest.Encode("path", "Microsoft.Management"),
+ "policyTrackedResourcesResource": autorest.Encode("path", "default"),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForManagementGroupSender sends the ListQueryResultsForManagementGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForManagementGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForManagementGroupResponder handles the response to the ListQueryResultsForManagementGroup request. The method always
+// closes the http.Response Body.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForManagementGroupResponder(resp *http.Response) (result PolicyTrackedResourcesQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listQueryResultsForManagementGroupNextResults retrieves the next set of results, if any.
+func (client PolicyTrackedResourcesClient) listQueryResultsForManagementGroupNextResults(ctx context.Context, lastResults PolicyTrackedResourcesQueryResults) (result PolicyTrackedResourcesQueryResults, err error) {
+ req, err := lastResults.policyTrackedResourcesQueryResultsPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForManagementGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListQueryResultsForManagementGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForManagementGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListQueryResultsForManagementGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForManagementGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListQueryResultsForManagementGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForManagementGroupComplete(ctx context.Context, managementGroupName string, top *int32, filter string) (result PolicyTrackedResourcesQueryResultsIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyTrackedResourcesClient.ListQueryResultsForManagementGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListQueryResultsForManagementGroup(ctx, managementGroupName, top, filter)
+ return
+}
+
+// ListQueryResultsForResource queries policy tracked resources under the resource.
+// Parameters:
+// resourceID - resource ID.
+// top - maximum number of records to return.
+// filter - oData filter expression.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForResource(ctx context.Context, resourceID string, top *int32, filter string) (result PolicyTrackedResourcesQueryResultsPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyTrackedResourcesClient.ListQueryResultsForResource")
+ defer func() {
+ sc := -1
+ if result.ptrqr.Response.Response != nil {
+ sc = result.ptrqr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForResource", err.Error())
+ }
+
+ result.fn = client.listQueryResultsForResourceNextResults
+ req, err := client.ListQueryResultsForResourcePreparer(ctx, resourceID, top, filter)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForResource", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForResourceSender(req)
+ if err != nil {
+ result.ptrqr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForResource", resp, "Failure sending request")
+ return
+ }
+
+ result.ptrqr, err = client.ListQueryResultsForResourceResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForResource", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForResourcePreparer prepares the ListQueryResultsForResource request.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForResourcePreparer(ctx context.Context, resourceID string, top *int32, filter string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "policyTrackedResourcesResource": autorest.Encode("path", "default"),
+ "resourceId": resourceID,
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{resourceId}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForResourceSender sends the ListQueryResultsForResource request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForResourceSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForResourceResponder handles the response to the ListQueryResultsForResource request. The method always
+// closes the http.Response Body.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForResourceResponder(resp *http.Response) (result PolicyTrackedResourcesQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listQueryResultsForResourceNextResults retrieves the next set of results, if any.
+func (client PolicyTrackedResourcesClient) listQueryResultsForResourceNextResults(ctx context.Context, lastResults PolicyTrackedResourcesQueryResults) (result PolicyTrackedResourcesQueryResults, err error) {
+ req, err := lastResults.policyTrackedResourcesQueryResultsPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForResourceNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListQueryResultsForResourceSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForResourceNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListQueryResultsForResourceResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForResourceNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListQueryResultsForResourceComplete enumerates all values, automatically crossing page boundaries as required.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForResourceComplete(ctx context.Context, resourceID string, top *int32, filter string) (result PolicyTrackedResourcesQueryResultsIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyTrackedResourcesClient.ListQueryResultsForResource")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListQueryResultsForResource(ctx, resourceID, top, filter)
+ return
+}
+
+// ListQueryResultsForResourceGroup queries policy tracked resources under the resource group.
+// Parameters:
+// resourceGroupName - resource group name.
+// subscriptionID - microsoft Azure subscription ID.
+// top - maximum number of records to return.
+// filter - oData filter expression.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForResourceGroup(ctx context.Context, resourceGroupName string, subscriptionID string, top *int32, filter string) (result PolicyTrackedResourcesQueryResultsPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyTrackedResourcesClient.ListQueryResultsForResourceGroup")
+ defer func() {
+ sc := -1
+ if result.ptrqr.Response.Response != nil {
+ sc = result.ptrqr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForResourceGroup", err.Error())
+ }
+
+ result.fn = client.listQueryResultsForResourceGroupNextResults
+ req, err := client.ListQueryResultsForResourceGroupPreparer(ctx, resourceGroupName, subscriptionID, top, filter)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForResourceGroupSender(req)
+ if err != nil {
+ result.ptrqr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.ptrqr, err = client.ListQueryResultsForResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForResourceGroupPreparer prepares the ListQueryResultsForResourceGroup request.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForResourceGroupPreparer(ctx context.Context, resourceGroupName string, subscriptionID string, top *int32, filter string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "policyTrackedResourcesResource": autorest.Encode("path", "default"),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForResourceGroupSender sends the ListQueryResultsForResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForResourceGroupResponder handles the response to the ListQueryResultsForResourceGroup request. The method always
+// closes the http.Response Body.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForResourceGroupResponder(resp *http.Response) (result PolicyTrackedResourcesQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listQueryResultsForResourceGroupNextResults retrieves the next set of results, if any.
+func (client PolicyTrackedResourcesClient) listQueryResultsForResourceGroupNextResults(ctx context.Context, lastResults PolicyTrackedResourcesQueryResults) (result PolicyTrackedResourcesQueryResults, err error) {
+ req, err := lastResults.policyTrackedResourcesQueryResultsPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListQueryResultsForResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListQueryResultsForResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListQueryResultsForResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForResourceGroupComplete(ctx context.Context, resourceGroupName string, subscriptionID string, top *int32, filter string) (result PolicyTrackedResourcesQueryResultsIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyTrackedResourcesClient.ListQueryResultsForResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListQueryResultsForResourceGroup(ctx, resourceGroupName, subscriptionID, top, filter)
+ return
+}
+
+// ListQueryResultsForSubscription queries policy tracked resources under the subscription.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// top - maximum number of records to return.
+// filter - oData filter expression.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForSubscription(ctx context.Context, subscriptionID string, top *int32, filter string) (result PolicyTrackedResourcesQueryResultsPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyTrackedResourcesClient.ListQueryResultsForSubscription")
+ defer func() {
+ sc := -1
+ if result.ptrqr.Response.Response != nil {
+ sc = result.ptrqr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForSubscription", err.Error())
+ }
+
+ result.fn = client.listQueryResultsForSubscriptionNextResults
+ req, err := client.ListQueryResultsForSubscriptionPreparer(ctx, subscriptionID, top, filter)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForSubscription", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListQueryResultsForSubscriptionSender(req)
+ if err != nil {
+ result.ptrqr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForSubscription", resp, "Failure sending request")
+ return
+ }
+
+ result.ptrqr, err = client.ListQueryResultsForSubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "ListQueryResultsForSubscription", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListQueryResultsForSubscriptionPreparer prepares the ListQueryResultsForSubscription request.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForSubscriptionPreparer(ctx context.Context, subscriptionID string, top *int32, filter string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "policyTrackedResourcesResource": autorest.Encode("path", "default"),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListQueryResultsForSubscriptionSender sends the ListQueryResultsForSubscription request. The method will close the
+// http.Response Body if it receives an error.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForSubscriptionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListQueryResultsForSubscriptionResponder handles the response to the ListQueryResultsForSubscription request. The method always
+// closes the http.Response Body.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForSubscriptionResponder(resp *http.Response) (result PolicyTrackedResourcesQueryResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listQueryResultsForSubscriptionNextResults retrieves the next set of results, if any.
+func (client PolicyTrackedResourcesClient) listQueryResultsForSubscriptionNextResults(ctx context.Context, lastResults PolicyTrackedResourcesQueryResults) (result PolicyTrackedResourcesQueryResults, err error) {
+ req, err := lastResults.policyTrackedResourcesQueryResultsPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForSubscriptionNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListQueryResultsForSubscriptionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForSubscriptionNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListQueryResultsForSubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.PolicyTrackedResourcesClient", "listQueryResultsForSubscriptionNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListQueryResultsForSubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
+func (client PolicyTrackedResourcesClient) ListQueryResultsForSubscriptionComplete(ctx context.Context, subscriptionID string, top *int32, filter string) (result PolicyTrackedResourcesQueryResultsIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PolicyTrackedResourcesClient.ListQueryResultsForSubscription")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListQueryResultsForSubscription(ctx, subscriptionID, top, filter)
+ return
+}
diff --git a/services/policyinsights/mgmt/2019-10-01/policyinsights/remediations.go b/services/policyinsights/mgmt/2019-10-01/policyinsights/remediations.go
new file mode 100644
index 000000000000..84f777ab2c87
--- /dev/null
+++ b/services/policyinsights/mgmt/2019-10-01/policyinsights/remediations.go
@@ -0,0 +1,2308 @@
+package policyinsights
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// RemediationsClient is the client for the Remediations methods of the Policyinsights service.
+type RemediationsClient struct {
+ BaseClient
+}
+
+// NewRemediationsClient creates an instance of the RemediationsClient client.
+func NewRemediationsClient() RemediationsClient {
+ return NewRemediationsClientWithBaseURI(DefaultBaseURI)
+}
+
+// NewRemediationsClientWithBaseURI creates an instance of the RemediationsClient client.
+func NewRemediationsClientWithBaseURI(baseURI string) RemediationsClient {
+ return RemediationsClient{NewWithBaseURI(baseURI)}
+}
+
+// CancelAtManagementGroup cancels a remediation at management group scope.
+// Parameters:
+// managementGroupID - management group ID.
+// remediationName - the name of the remediation.
+func (client RemediationsClient) CancelAtManagementGroup(ctx context.Context, managementGroupID string, remediationName string) (result Remediation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.CancelAtManagementGroup")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CancelAtManagementGroupPreparer(ctx, managementGroupID, remediationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtManagementGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CancelAtManagementGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtManagementGroup", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CancelAtManagementGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtManagementGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CancelAtManagementGroupPreparer prepares the CancelAtManagementGroup request.
+func (client RemediationsClient) CancelAtManagementGroupPreparer(ctx context.Context, managementGroupID string, remediationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "managementGroupId": autorest.Encode("path", managementGroupID),
+ "managementGroupsNamespace": autorest.Encode("path", "Microsoft.Management"),
+ "remediationName": autorest.Encode("path", remediationName),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CancelAtManagementGroupSender sends the CancelAtManagementGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) CancelAtManagementGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CancelAtManagementGroupResponder handles the response to the CancelAtManagementGroup request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) CancelAtManagementGroupResponder(resp *http.Response) (result Remediation, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CancelAtResource cancel a remediation at resource scope.
+// Parameters:
+// resourceID - resource ID.
+// remediationName - the name of the remediation.
+func (client RemediationsClient) CancelAtResource(ctx context.Context, resourceID string, remediationName string) (result Remediation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.CancelAtResource")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CancelAtResourcePreparer(ctx, resourceID, remediationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtResource", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CancelAtResourceSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtResource", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CancelAtResourceResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtResource", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CancelAtResourcePreparer prepares the CancelAtResource request.
+func (client RemediationsClient) CancelAtResourcePreparer(ctx context.Context, resourceID string, remediationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "remediationName": autorest.Encode("path", remediationName),
+ "resourceId": resourceID,
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CancelAtResourceSender sends the CancelAtResource request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) CancelAtResourceSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CancelAtResourceResponder handles the response to the CancelAtResource request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) CancelAtResourceResponder(resp *http.Response) (result Remediation, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CancelAtResourceGroup cancels a remediation at resource group scope.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// resourceGroupName - resource group name.
+// remediationName - the name of the remediation.
+func (client RemediationsClient) CancelAtResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string) (result Remediation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.CancelAtResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CancelAtResourceGroupPreparer(ctx, subscriptionID, resourceGroupName, remediationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CancelAtResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CancelAtResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CancelAtResourceGroupPreparer prepares the CancelAtResourceGroup request.
+func (client RemediationsClient) CancelAtResourceGroupPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "remediationName": autorest.Encode("path", remediationName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CancelAtResourceGroupSender sends the CancelAtResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) CancelAtResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CancelAtResourceGroupResponder handles the response to the CancelAtResourceGroup request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) CancelAtResourceGroupResponder(resp *http.Response) (result Remediation, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CancelAtSubscription cancels a remediation at subscription scope.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// remediationName - the name of the remediation.
+func (client RemediationsClient) CancelAtSubscription(ctx context.Context, subscriptionID string, remediationName string) (result Remediation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.CancelAtSubscription")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CancelAtSubscriptionPreparer(ctx, subscriptionID, remediationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtSubscription", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CancelAtSubscriptionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtSubscription", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CancelAtSubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CancelAtSubscription", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CancelAtSubscriptionPreparer prepares the CancelAtSubscription request.
+func (client RemediationsClient) CancelAtSubscriptionPreparer(ctx context.Context, subscriptionID string, remediationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "remediationName": autorest.Encode("path", remediationName),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/cancel", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CancelAtSubscriptionSender sends the CancelAtSubscription request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) CancelAtSubscriptionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CancelAtSubscriptionResponder handles the response to the CancelAtSubscription request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) CancelAtSubscriptionResponder(resp *http.Response) (result Remediation, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreateOrUpdateAtManagementGroup creates or updates a remediation at management group scope.
+// Parameters:
+// managementGroupID - management group ID.
+// remediationName - the name of the remediation.
+// parameters - the remediation parameters.
+func (client RemediationsClient) CreateOrUpdateAtManagementGroup(ctx context.Context, managementGroupID string, remediationName string, parameters Remediation) (result Remediation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.CreateOrUpdateAtManagementGroup")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdateAtManagementGroupPreparer(ctx, managementGroupID, remediationName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtManagementGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateOrUpdateAtManagementGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateAtManagementGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtManagementGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateOrUpdateAtManagementGroupPreparer prepares the CreateOrUpdateAtManagementGroup request.
+func (client RemediationsClient) CreateOrUpdateAtManagementGroupPreparer(ctx context.Context, managementGroupID string, remediationName string, parameters Remediation) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "managementGroupId": autorest.Encode("path", managementGroupID),
+ "managementGroupsNamespace": autorest.Encode("path", "Microsoft.Management"),
+ "remediationName": autorest.Encode("path", remediationName),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.ID = nil
+ parameters.Type = nil
+ parameters.Name = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateAtManagementGroupSender sends the CreateOrUpdateAtManagementGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) CreateOrUpdateAtManagementGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateOrUpdateAtManagementGroupResponder handles the response to the CreateOrUpdateAtManagementGroup request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) CreateOrUpdateAtManagementGroupResponder(resp *http.Response) (result Remediation, 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
+}
+
+// CreateOrUpdateAtResource creates or updates a remediation at resource scope.
+// Parameters:
+// resourceID - resource ID.
+// remediationName - the name of the remediation.
+// parameters - the remediation parameters.
+func (client RemediationsClient) CreateOrUpdateAtResource(ctx context.Context, resourceID string, remediationName string, parameters Remediation) (result Remediation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.CreateOrUpdateAtResource")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdateAtResourcePreparer(ctx, resourceID, remediationName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtResource", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateOrUpdateAtResourceSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtResource", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateAtResourceResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtResource", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateOrUpdateAtResourcePreparer prepares the CreateOrUpdateAtResource request.
+func (client RemediationsClient) CreateOrUpdateAtResourcePreparer(ctx context.Context, resourceID string, remediationName string, parameters Remediation) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "remediationName": autorest.Encode("path", remediationName),
+ "resourceId": resourceID,
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.ID = nil
+ parameters.Type = nil
+ parameters.Name = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateAtResourceSender sends the CreateOrUpdateAtResource request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) CreateOrUpdateAtResourceSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateOrUpdateAtResourceResponder handles the response to the CreateOrUpdateAtResource request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) CreateOrUpdateAtResourceResponder(resp *http.Response) (result Remediation, 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
+}
+
+// CreateOrUpdateAtResourceGroup creates or updates a remediation at resource group scope.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// resourceGroupName - resource group name.
+// remediationName - the name of the remediation.
+// parameters - the remediation parameters.
+func (client RemediationsClient) CreateOrUpdateAtResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string, parameters Remediation) (result Remediation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.CreateOrUpdateAtResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdateAtResourceGroupPreparer(ctx, subscriptionID, resourceGroupName, remediationName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateOrUpdateAtResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateAtResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateOrUpdateAtResourceGroupPreparer prepares the CreateOrUpdateAtResourceGroup request.
+func (client RemediationsClient) CreateOrUpdateAtResourceGroupPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string, parameters Remediation) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "remediationName": autorest.Encode("path", remediationName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.ID = nil
+ parameters.Type = nil
+ parameters.Name = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateAtResourceGroupSender sends the CreateOrUpdateAtResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) CreateOrUpdateAtResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateOrUpdateAtResourceGroupResponder handles the response to the CreateOrUpdateAtResourceGroup request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) CreateOrUpdateAtResourceGroupResponder(resp *http.Response) (result Remediation, 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
+}
+
+// CreateOrUpdateAtSubscription creates or updates a remediation at subscription scope.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// remediationName - the name of the remediation.
+// parameters - the remediation parameters.
+func (client RemediationsClient) CreateOrUpdateAtSubscription(ctx context.Context, subscriptionID string, remediationName string, parameters Remediation) (result Remediation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.CreateOrUpdateAtSubscription")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdateAtSubscriptionPreparer(ctx, subscriptionID, remediationName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtSubscription", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateOrUpdateAtSubscriptionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtSubscription", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateAtSubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "CreateOrUpdateAtSubscription", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateOrUpdateAtSubscriptionPreparer prepares the CreateOrUpdateAtSubscription request.
+func (client RemediationsClient) CreateOrUpdateAtSubscriptionPreparer(ctx context.Context, subscriptionID string, remediationName string, parameters Remediation) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "remediationName": autorest.Encode("path", remediationName),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ parameters.ID = nil
+ parameters.Type = nil
+ parameters.Name = nil
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateOrUpdateAtSubscriptionSender sends the CreateOrUpdateAtSubscription request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) CreateOrUpdateAtSubscriptionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateOrUpdateAtSubscriptionResponder handles the response to the CreateOrUpdateAtSubscription request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) CreateOrUpdateAtSubscriptionResponder(resp *http.Response) (result Remediation, 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
+}
+
+// DeleteAtManagementGroup deletes an existing remediation at management group scope.
+// Parameters:
+// managementGroupID - management group ID.
+// remediationName - the name of the remediation.
+func (client RemediationsClient) DeleteAtManagementGroup(ctx context.Context, managementGroupID string, remediationName string) (result Remediation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.DeleteAtManagementGroup")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteAtManagementGroupPreparer(ctx, managementGroupID, remediationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtManagementGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteAtManagementGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtManagementGroup", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteAtManagementGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtManagementGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteAtManagementGroupPreparer prepares the DeleteAtManagementGroup request.
+func (client RemediationsClient) DeleteAtManagementGroupPreparer(ctx context.Context, managementGroupID string, remediationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "managementGroupId": autorest.Encode("path", managementGroupID),
+ "managementGroupsNamespace": autorest.Encode("path", "Microsoft.Management"),
+ "remediationName": autorest.Encode("path", remediationName),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteAtManagementGroupSender sends the DeleteAtManagementGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) DeleteAtManagementGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteAtManagementGroupResponder handles the response to the DeleteAtManagementGroup request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) DeleteAtManagementGroupResponder(resp *http.Response) (result Remediation, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteAtResource deletes an existing remediation at individual resource scope.
+// Parameters:
+// resourceID - resource ID.
+// remediationName - the name of the remediation.
+func (client RemediationsClient) DeleteAtResource(ctx context.Context, resourceID string, remediationName string) (result Remediation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.DeleteAtResource")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteAtResourcePreparer(ctx, resourceID, remediationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtResource", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteAtResourceSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtResource", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteAtResourceResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtResource", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteAtResourcePreparer prepares the DeleteAtResource request.
+func (client RemediationsClient) DeleteAtResourcePreparer(ctx context.Context, resourceID string, remediationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "remediationName": autorest.Encode("path", remediationName),
+ "resourceId": resourceID,
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteAtResourceSender sends the DeleteAtResource request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) DeleteAtResourceSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteAtResourceResponder handles the response to the DeleteAtResource request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) DeleteAtResourceResponder(resp *http.Response) (result Remediation, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteAtResourceGroup deletes an existing remediation at resource group scope.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// resourceGroupName - resource group name.
+// remediationName - the name of the remediation.
+func (client RemediationsClient) DeleteAtResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string) (result Remediation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.DeleteAtResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteAtResourceGroupPreparer(ctx, subscriptionID, resourceGroupName, remediationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteAtResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteAtResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteAtResourceGroupPreparer prepares the DeleteAtResourceGroup request.
+func (client RemediationsClient) DeleteAtResourceGroupPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "remediationName": autorest.Encode("path", remediationName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteAtResourceGroupSender sends the DeleteAtResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) DeleteAtResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteAtResourceGroupResponder handles the response to the DeleteAtResourceGroup request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) DeleteAtResourceGroupResponder(resp *http.Response) (result Remediation, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteAtSubscription deletes an existing remediation at subscription scope.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// remediationName - the name of the remediation.
+func (client RemediationsClient) DeleteAtSubscription(ctx context.Context, subscriptionID string, remediationName string) (result Remediation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.DeleteAtSubscription")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteAtSubscriptionPreparer(ctx, subscriptionID, remediationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtSubscription", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteAtSubscriptionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtSubscription", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteAtSubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "DeleteAtSubscription", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteAtSubscriptionPreparer prepares the DeleteAtSubscription request.
+func (client RemediationsClient) DeleteAtSubscriptionPreparer(ctx context.Context, subscriptionID string, remediationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "remediationName": autorest.Encode("path", remediationName),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteAtSubscriptionSender sends the DeleteAtSubscription request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) DeleteAtSubscriptionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteAtSubscriptionResponder handles the response to the DeleteAtSubscription request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) DeleteAtSubscriptionResponder(resp *http.Response) (result Remediation, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetAtManagementGroup gets an existing remediation at management group scope.
+// Parameters:
+// managementGroupID - management group ID.
+// remediationName - the name of the remediation.
+func (client RemediationsClient) GetAtManagementGroup(ctx context.Context, managementGroupID string, remediationName string) (result Remediation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.GetAtManagementGroup")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetAtManagementGroupPreparer(ctx, managementGroupID, remediationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtManagementGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetAtManagementGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtManagementGroup", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetAtManagementGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtManagementGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetAtManagementGroupPreparer prepares the GetAtManagementGroup request.
+func (client RemediationsClient) GetAtManagementGroupPreparer(ctx context.Context, managementGroupID string, remediationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "managementGroupId": autorest.Encode("path", managementGroupID),
+ "managementGroupsNamespace": autorest.Encode("path", "Microsoft.Management"),
+ "remediationName": autorest.Encode("path", remediationName),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetAtManagementGroupSender sends the GetAtManagementGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) GetAtManagementGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetAtManagementGroupResponder handles the response to the GetAtManagementGroup request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) GetAtManagementGroupResponder(resp *http.Response) (result Remediation, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetAtResource gets an existing remediation at resource scope.
+// Parameters:
+// resourceID - resource ID.
+// remediationName - the name of the remediation.
+func (client RemediationsClient) GetAtResource(ctx context.Context, resourceID string, remediationName string) (result Remediation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.GetAtResource")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetAtResourcePreparer(ctx, resourceID, remediationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtResource", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetAtResourceSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtResource", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetAtResourceResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtResource", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetAtResourcePreparer prepares the GetAtResource request.
+func (client RemediationsClient) GetAtResourcePreparer(ctx context.Context, resourceID string, remediationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "remediationName": autorest.Encode("path", remediationName),
+ "resourceId": resourceID,
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetAtResourceSender sends the GetAtResource request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) GetAtResourceSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetAtResourceResponder handles the response to the GetAtResource request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) GetAtResourceResponder(resp *http.Response) (result Remediation, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetAtResourceGroup gets an existing remediation at resource group scope.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// resourceGroupName - resource group name.
+// remediationName - the name of the remediation.
+func (client RemediationsClient) GetAtResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string) (result Remediation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.GetAtResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetAtResourceGroupPreparer(ctx, subscriptionID, resourceGroupName, remediationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetAtResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetAtResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetAtResourceGroupPreparer prepares the GetAtResourceGroup request.
+func (client RemediationsClient) GetAtResourceGroupPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "remediationName": autorest.Encode("path", remediationName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetAtResourceGroupSender sends the GetAtResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) GetAtResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetAtResourceGroupResponder handles the response to the GetAtResourceGroup request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) GetAtResourceGroupResponder(resp *http.Response) (result Remediation, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetAtSubscription gets an existing remediation at subscription scope.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// remediationName - the name of the remediation.
+func (client RemediationsClient) GetAtSubscription(ctx context.Context, subscriptionID string, remediationName string) (result Remediation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.GetAtSubscription")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetAtSubscriptionPreparer(ctx, subscriptionID, remediationName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtSubscription", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetAtSubscriptionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtSubscription", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetAtSubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "GetAtSubscription", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetAtSubscriptionPreparer prepares the GetAtSubscription request.
+func (client RemediationsClient) GetAtSubscriptionPreparer(ctx context.Context, subscriptionID string, remediationName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "remediationName": autorest.Encode("path", remediationName),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetAtSubscriptionSender sends the GetAtSubscription request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) GetAtSubscriptionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetAtSubscriptionResponder handles the response to the GetAtSubscription request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) GetAtSubscriptionResponder(resp *http.Response) (result Remediation, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListDeploymentsAtManagementGroup gets all deployments for a remediation at management group scope.
+// Parameters:
+// managementGroupID - management group ID.
+// remediationName - the name of the remediation.
+// top - maximum number of records to return.
+func (client RemediationsClient) ListDeploymentsAtManagementGroup(ctx context.Context, managementGroupID string, remediationName string, top *int32) (result RemediationDeploymentsListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.ListDeploymentsAtManagementGroup")
+ defer func() {
+ sc := -1
+ if result.rdlr.Response.Response != nil {
+ sc = result.rdlr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.RemediationsClient", "ListDeploymentsAtManagementGroup", err.Error())
+ }
+
+ result.fn = client.listDeploymentsAtManagementGroupNextResults
+ req, err := client.ListDeploymentsAtManagementGroupPreparer(ctx, managementGroupID, remediationName, top)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtManagementGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListDeploymentsAtManagementGroupSender(req)
+ if err != nil {
+ result.rdlr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtManagementGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.rdlr, err = client.ListDeploymentsAtManagementGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtManagementGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListDeploymentsAtManagementGroupPreparer prepares the ListDeploymentsAtManagementGroup request.
+func (client RemediationsClient) ListDeploymentsAtManagementGroupPreparer(ctx context.Context, managementGroupID string, remediationName string, top *int32) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "managementGroupId": autorest.Encode("path", managementGroupID),
+ "managementGroupsNamespace": autorest.Encode("path", "Microsoft.Management"),
+ "remediationName": autorest.Encode("path", remediationName),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListDeploymentsAtManagementGroupSender sends the ListDeploymentsAtManagementGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) ListDeploymentsAtManagementGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListDeploymentsAtManagementGroupResponder handles the response to the ListDeploymentsAtManagementGroup request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) ListDeploymentsAtManagementGroupResponder(resp *http.Response) (result RemediationDeploymentsListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listDeploymentsAtManagementGroupNextResults retrieves the next set of results, if any.
+func (client RemediationsClient) listDeploymentsAtManagementGroupNextResults(ctx context.Context, lastResults RemediationDeploymentsListResult) (result RemediationDeploymentsListResult, err error) {
+ req, err := lastResults.remediationDeploymentsListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtManagementGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListDeploymentsAtManagementGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtManagementGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListDeploymentsAtManagementGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtManagementGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListDeploymentsAtManagementGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client RemediationsClient) ListDeploymentsAtManagementGroupComplete(ctx context.Context, managementGroupID string, remediationName string, top *int32) (result RemediationDeploymentsListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.ListDeploymentsAtManagementGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListDeploymentsAtManagementGroup(ctx, managementGroupID, remediationName, top)
+ return
+}
+
+// ListDeploymentsAtResource gets all deployments for a remediation at resource scope.
+// Parameters:
+// resourceID - resource ID.
+// remediationName - the name of the remediation.
+// top - maximum number of records to return.
+func (client RemediationsClient) ListDeploymentsAtResource(ctx context.Context, resourceID string, remediationName string, top *int32) (result RemediationDeploymentsListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.ListDeploymentsAtResource")
+ defer func() {
+ sc := -1
+ if result.rdlr.Response.Response != nil {
+ sc = result.rdlr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.RemediationsClient", "ListDeploymentsAtResource", err.Error())
+ }
+
+ result.fn = client.listDeploymentsAtResourceNextResults
+ req, err := client.ListDeploymentsAtResourcePreparer(ctx, resourceID, remediationName, top)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtResource", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListDeploymentsAtResourceSender(req)
+ if err != nil {
+ result.rdlr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtResource", resp, "Failure sending request")
+ return
+ }
+
+ result.rdlr, err = client.ListDeploymentsAtResourceResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtResource", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListDeploymentsAtResourcePreparer prepares the ListDeploymentsAtResource request.
+func (client RemediationsClient) ListDeploymentsAtResourcePreparer(ctx context.Context, resourceID string, remediationName string, top *int32) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "remediationName": autorest.Encode("path", remediationName),
+ "resourceId": resourceID,
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListDeploymentsAtResourceSender sends the ListDeploymentsAtResource request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) ListDeploymentsAtResourceSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListDeploymentsAtResourceResponder handles the response to the ListDeploymentsAtResource request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) ListDeploymentsAtResourceResponder(resp *http.Response) (result RemediationDeploymentsListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listDeploymentsAtResourceNextResults retrieves the next set of results, if any.
+func (client RemediationsClient) listDeploymentsAtResourceNextResults(ctx context.Context, lastResults RemediationDeploymentsListResult) (result RemediationDeploymentsListResult, err error) {
+ req, err := lastResults.remediationDeploymentsListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtResourceNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListDeploymentsAtResourceSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtResourceNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListDeploymentsAtResourceResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtResourceNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListDeploymentsAtResourceComplete enumerates all values, automatically crossing page boundaries as required.
+func (client RemediationsClient) ListDeploymentsAtResourceComplete(ctx context.Context, resourceID string, remediationName string, top *int32) (result RemediationDeploymentsListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.ListDeploymentsAtResource")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListDeploymentsAtResource(ctx, resourceID, remediationName, top)
+ return
+}
+
+// ListDeploymentsAtResourceGroup gets all deployments for a remediation at resource group scope.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// resourceGroupName - resource group name.
+// remediationName - the name of the remediation.
+// top - maximum number of records to return.
+func (client RemediationsClient) ListDeploymentsAtResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string, top *int32) (result RemediationDeploymentsListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.ListDeploymentsAtResourceGroup")
+ defer func() {
+ sc := -1
+ if result.rdlr.Response.Response != nil {
+ sc = result.rdlr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.RemediationsClient", "ListDeploymentsAtResourceGroup", err.Error())
+ }
+
+ result.fn = client.listDeploymentsAtResourceGroupNextResults
+ req, err := client.ListDeploymentsAtResourceGroupPreparer(ctx, subscriptionID, resourceGroupName, remediationName, top)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListDeploymentsAtResourceGroupSender(req)
+ if err != nil {
+ result.rdlr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.rdlr, err = client.ListDeploymentsAtResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListDeploymentsAtResourceGroupPreparer prepares the ListDeploymentsAtResourceGroup request.
+func (client RemediationsClient) ListDeploymentsAtResourceGroupPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string, top *int32) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "remediationName": autorest.Encode("path", remediationName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListDeploymentsAtResourceGroupSender sends the ListDeploymentsAtResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) ListDeploymentsAtResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListDeploymentsAtResourceGroupResponder handles the response to the ListDeploymentsAtResourceGroup request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) ListDeploymentsAtResourceGroupResponder(resp *http.Response) (result RemediationDeploymentsListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listDeploymentsAtResourceGroupNextResults retrieves the next set of results, if any.
+func (client RemediationsClient) listDeploymentsAtResourceGroupNextResults(ctx context.Context, lastResults RemediationDeploymentsListResult) (result RemediationDeploymentsListResult, err error) {
+ req, err := lastResults.remediationDeploymentsListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListDeploymentsAtResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListDeploymentsAtResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListDeploymentsAtResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client RemediationsClient) ListDeploymentsAtResourceGroupComplete(ctx context.Context, subscriptionID string, resourceGroupName string, remediationName string, top *int32) (result RemediationDeploymentsListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.ListDeploymentsAtResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListDeploymentsAtResourceGroup(ctx, subscriptionID, resourceGroupName, remediationName, top)
+ return
+}
+
+// ListDeploymentsAtSubscription gets all deployments for a remediation at subscription scope.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// remediationName - the name of the remediation.
+// top - maximum number of records to return.
+func (client RemediationsClient) ListDeploymentsAtSubscription(ctx context.Context, subscriptionID string, remediationName string, top *int32) (result RemediationDeploymentsListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.ListDeploymentsAtSubscription")
+ defer func() {
+ sc := -1
+ if result.rdlr.Response.Response != nil {
+ sc = result.rdlr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.RemediationsClient", "ListDeploymentsAtSubscription", err.Error())
+ }
+
+ result.fn = client.listDeploymentsAtSubscriptionNextResults
+ req, err := client.ListDeploymentsAtSubscriptionPreparer(ctx, subscriptionID, remediationName, top)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtSubscription", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListDeploymentsAtSubscriptionSender(req)
+ if err != nil {
+ result.rdlr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtSubscription", resp, "Failure sending request")
+ return
+ }
+
+ result.rdlr, err = client.ListDeploymentsAtSubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListDeploymentsAtSubscription", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListDeploymentsAtSubscriptionPreparer prepares the ListDeploymentsAtSubscription request.
+func (client RemediationsClient) ListDeploymentsAtSubscriptionPreparer(ctx context.Context, subscriptionID string, remediationName string, top *int32) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "remediationName": autorest.Encode("path", remediationName),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}/listDeployments", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListDeploymentsAtSubscriptionSender sends the ListDeploymentsAtSubscription request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) ListDeploymentsAtSubscriptionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListDeploymentsAtSubscriptionResponder handles the response to the ListDeploymentsAtSubscription request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) ListDeploymentsAtSubscriptionResponder(resp *http.Response) (result RemediationDeploymentsListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listDeploymentsAtSubscriptionNextResults retrieves the next set of results, if any.
+func (client RemediationsClient) listDeploymentsAtSubscriptionNextResults(ctx context.Context, lastResults RemediationDeploymentsListResult) (result RemediationDeploymentsListResult, err error) {
+ req, err := lastResults.remediationDeploymentsListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtSubscriptionNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListDeploymentsAtSubscriptionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtSubscriptionNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListDeploymentsAtSubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listDeploymentsAtSubscriptionNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListDeploymentsAtSubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
+func (client RemediationsClient) ListDeploymentsAtSubscriptionComplete(ctx context.Context, subscriptionID string, remediationName string, top *int32) (result RemediationDeploymentsListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.ListDeploymentsAtSubscription")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListDeploymentsAtSubscription(ctx, subscriptionID, remediationName, top)
+ return
+}
+
+// ListForManagementGroup gets all remediations for the management group.
+// Parameters:
+// managementGroupID - management group ID.
+// top - maximum number of records to return.
+// filter - oData filter expression.
+func (client RemediationsClient) ListForManagementGroup(ctx context.Context, managementGroupID string, top *int32, filter string) (result RemediationListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.ListForManagementGroup")
+ defer func() {
+ sc := -1
+ if result.rlr.Response.Response != nil {
+ sc = result.rlr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.RemediationsClient", "ListForManagementGroup", err.Error())
+ }
+
+ result.fn = client.listForManagementGroupNextResults
+ req, err := client.ListForManagementGroupPreparer(ctx, managementGroupID, top, filter)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForManagementGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListForManagementGroupSender(req)
+ if err != nil {
+ result.rlr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForManagementGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.rlr, err = client.ListForManagementGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForManagementGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListForManagementGroupPreparer prepares the ListForManagementGroup request.
+func (client RemediationsClient) ListForManagementGroupPreparer(ctx context.Context, managementGroupID string, top *int32, filter string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "managementGroupId": autorest.Encode("path", managementGroupID),
+ "managementGroupsNamespace": autorest.Encode("path", "Microsoft.Management"),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/remediations", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListForManagementGroupSender sends the ListForManagementGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) ListForManagementGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListForManagementGroupResponder handles the response to the ListForManagementGroup request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) ListForManagementGroupResponder(resp *http.Response) (result RemediationListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listForManagementGroupNextResults retrieves the next set of results, if any.
+func (client RemediationsClient) listForManagementGroupNextResults(ctx context.Context, lastResults RemediationListResult) (result RemediationListResult, err error) {
+ req, err := lastResults.remediationListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForManagementGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListForManagementGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForManagementGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListForManagementGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForManagementGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListForManagementGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client RemediationsClient) ListForManagementGroupComplete(ctx context.Context, managementGroupID string, top *int32, filter string) (result RemediationListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.ListForManagementGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListForManagementGroup(ctx, managementGroupID, top, filter)
+ return
+}
+
+// ListForResource gets all remediations for a resource.
+// Parameters:
+// resourceID - resource ID.
+// top - maximum number of records to return.
+// filter - oData filter expression.
+func (client RemediationsClient) ListForResource(ctx context.Context, resourceID string, top *int32, filter string) (result RemediationListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.ListForResource")
+ defer func() {
+ sc := -1
+ if result.rlr.Response.Response != nil {
+ sc = result.rlr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.RemediationsClient", "ListForResource", err.Error())
+ }
+
+ result.fn = client.listForResourceNextResults
+ req, err := client.ListForResourcePreparer(ctx, resourceID, top, filter)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForResource", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListForResourceSender(req)
+ if err != nil {
+ result.rlr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForResource", resp, "Failure sending request")
+ return
+ }
+
+ result.rlr, err = client.ListForResourceResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForResource", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListForResourcePreparer prepares the ListForResource request.
+func (client RemediationsClient) ListForResourcePreparer(ctx context.Context, resourceID string, top *int32, filter string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceId": resourceID,
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{resourceId}/providers/Microsoft.PolicyInsights/remediations", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListForResourceSender sends the ListForResource request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) ListForResourceSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListForResourceResponder handles the response to the ListForResource request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) ListForResourceResponder(resp *http.Response) (result RemediationListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listForResourceNextResults retrieves the next set of results, if any.
+func (client RemediationsClient) listForResourceNextResults(ctx context.Context, lastResults RemediationListResult) (result RemediationListResult, err error) {
+ req, err := lastResults.remediationListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForResourceNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListForResourceSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForResourceNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListForResourceResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForResourceNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListForResourceComplete enumerates all values, automatically crossing page boundaries as required.
+func (client RemediationsClient) ListForResourceComplete(ctx context.Context, resourceID string, top *int32, filter string) (result RemediationListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.ListForResource")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListForResource(ctx, resourceID, top, filter)
+ return
+}
+
+// ListForResourceGroup gets all remediations for the subscription.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// resourceGroupName - resource group name.
+// top - maximum number of records to return.
+// filter - oData filter expression.
+func (client RemediationsClient) ListForResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, filter string) (result RemediationListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.ListForResourceGroup")
+ defer func() {
+ sc := -1
+ if result.rlr.Response.Response != nil {
+ sc = result.rlr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.RemediationsClient", "ListForResourceGroup", err.Error())
+ }
+
+ result.fn = client.listForResourceGroupNextResults
+ req, err := client.ListForResourceGroupPreparer(ctx, subscriptionID, resourceGroupName, top, filter)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListForResourceGroupSender(req)
+ if err != nil {
+ result.rlr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.rlr, err = client.ListForResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListForResourceGroupPreparer prepares the ListForResourceGroup request.
+func (client RemediationsClient) ListForResourceGroupPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, filter string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/remediations", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListForResourceGroupSender sends the ListForResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) ListForResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListForResourceGroupResponder handles the response to the ListForResourceGroup request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) ListForResourceGroupResponder(resp *http.Response) (result RemediationListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listForResourceGroupNextResults retrieves the next set of results, if any.
+func (client RemediationsClient) listForResourceGroupNextResults(ctx context.Context, lastResults RemediationListResult) (result RemediationListResult, err error) {
+ req, err := lastResults.remediationListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListForResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListForResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListForResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client RemediationsClient) ListForResourceGroupComplete(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, filter string) (result RemediationListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.ListForResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListForResourceGroup(ctx, subscriptionID, resourceGroupName, top, filter)
+ return
+}
+
+// ListForSubscription gets all remediations for the subscription.
+// Parameters:
+// subscriptionID - microsoft Azure subscription ID.
+// top - maximum number of records to return.
+// filter - oData filter expression.
+func (client RemediationsClient) ListForSubscription(ctx context.Context, subscriptionID string, top *int32, filter string) (result RemediationListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.ListForSubscription")
+ defer func() {
+ sc := -1
+ if result.rlr.Response.Response != nil {
+ sc = result.rlr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}}}); err != nil {
+ return result, validation.NewError("policyinsights.RemediationsClient", "ListForSubscription", err.Error())
+ }
+
+ result.fn = client.listForSubscriptionNextResults
+ req, err := client.ListForSubscriptionPreparer(ctx, subscriptionID, top, filter)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForSubscription", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListForSubscriptionSender(req)
+ if err != nil {
+ result.rlr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForSubscription", resp, "Failure sending request")
+ return
+ }
+
+ result.rlr, err = client.ListForSubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "ListForSubscription", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListForSubscriptionPreparer prepares the ListForSubscription request.
+func (client RemediationsClient) ListForSubscriptionPreparer(ctx context.Context, subscriptionID string, top *int32, filter string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", subscriptionID),
+ }
+
+ const APIVersion = "2018-07-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/remediations", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListForSubscriptionSender sends the ListForSubscription request. The method will close the
+// http.Response Body if it receives an error.
+func (client RemediationsClient) ListForSubscriptionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListForSubscriptionResponder handles the response to the ListForSubscription request. The method always
+// closes the http.Response Body.
+func (client RemediationsClient) ListForSubscriptionResponder(resp *http.Response) (result RemediationListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listForSubscriptionNextResults retrieves the next set of results, if any.
+func (client RemediationsClient) listForSubscriptionNextResults(ctx context.Context, lastResults RemediationListResult) (result RemediationListResult, err error) {
+ req, err := lastResults.remediationListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForSubscriptionNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListForSubscriptionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForSubscriptionNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListForSubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "policyinsights.RemediationsClient", "listForSubscriptionNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListForSubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
+func (client RemediationsClient) ListForSubscriptionComplete(ctx context.Context, subscriptionID string, top *int32, filter string) (result RemediationListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/RemediationsClient.ListForSubscription")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListForSubscription(ctx, subscriptionID, top, filter)
+ return
+}
diff --git a/services/policyinsights/mgmt/2019-10-01/policyinsights/version.go b/services/policyinsights/mgmt/2019-10-01/policyinsights/version.go
new file mode 100644
index 000000000000..18cce08f4d74
--- /dev/null
+++ b/services/policyinsights/mgmt/2019-10-01/policyinsights/version.go
@@ -0,0 +1,30 @@
+package policyinsights
+
+import "github.com/Azure/azure-sdk-for-go/version"
+
+// 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.
+
+// UserAgent returns the UserAgent string to use when sending http.Requests.
+func UserAgent() string {
+ return "Azure-SDK-For-Go/" + version.Number + " policyinsights/2019-10-01"
+}
+
+// Version returns the semantic version (see http://semver.org) of the client.
+func Version() string {
+ return version.Number
+}
diff --git a/services/preview/appinsights/v1/insights/version.go b/services/preview/appinsights/v1/insights/version.go
index 83744b85fd40..2123a7972af4 100644
--- a/services/preview/appinsights/v1/insights/version.go
+++ b/services/preview/appinsights/v1/insights/version.go
@@ -18,13 +18,12 @@ import "github.com/Azure/azure-sdk-for-go/version"
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
-// Deprecated: Please use github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights instead.
+
// UserAgent returns the UserAgent string to use when sending http.Requests.
func UserAgent() string {
return "Azure-SDK-For-Go/" + version.Number + " insights/v1"
}
-// Deprecated: Please use github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights instead.
// Version returns the semantic version (see http://semver.org) of the client.
func Version() string {
return version.Number
diff --git a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/appplatformapi/interfaces.go b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/appplatformapi/interfaces.go
index 3c3a7feb6811..db69e51e29ce 100644
--- a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/appplatformapi/interfaces.go
+++ b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/appplatformapi/interfaces.go
@@ -42,12 +42,12 @@ var _ ServicesClientAPI = (*appplatform.ServicesClient)(nil)
// AppsClientAPI contains the set of methods on the AppsClient type.
type AppsClientAPI interface {
- CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, appName string, appResource *appplatform.AppResource) (result appplatform.AppResource, err error)
+ CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, appName string, appResource *appplatform.AppResource) (result appplatform.AppsCreateOrUpdateFuture, err error)
Delete(ctx context.Context, resourceGroupName string, serviceName string, appName string) (result autorest.Response, err error)
Get(ctx context.Context, resourceGroupName string, serviceName string, appName string, syncStatus string) (result appplatform.AppResource, err error)
GetResourceUploadURL(ctx context.Context, resourceGroupName string, serviceName string, appName string) (result appplatform.ResourceUploadDefinition, err error)
List(ctx context.Context, resourceGroupName string, serviceName string) (result appplatform.AppResourceCollectionPage, err error)
- Update(ctx context.Context, resourceGroupName string, serviceName string, appName string, appResource *appplatform.AppResource) (result appplatform.AppResource, err error)
+ Update(ctx context.Context, resourceGroupName string, serviceName string, appName string, appResource *appplatform.AppResource) (result appplatform.AppsUpdateFuture, err error)
}
var _ AppsClientAPI = (*appplatform.AppsClient)(nil)
diff --git a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/apps.go b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/apps.go
index 69d6141f9fb0..decc2c25efcc 100644
--- a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/apps.go
+++ b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/apps.go
@@ -48,13 +48,13 @@ func NewAppsClientWithBaseURI(baseURI string, subscriptionID string) AppsClient
// serviceName - the name of the Service resource.
// appName - the name of the App resource.
// appResource - parameters for the create or update operation
-func (client AppsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, appName string, appResource *AppResource) (result AppResource, err error) {
+func (client AppsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serviceName string, appName string, appResource *AppResource) (result AppsCreateOrUpdateFuture, err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.CreateOrUpdate")
defer func() {
sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
}
tracing.EndSpan(ctx, sc, err)
}()
@@ -90,18 +90,12 @@ func (client AppsClient) CreateOrUpdate(ctx context.Context, resourceGroupName s
return
}
- resp, err := client.CreateOrUpdateSender(req)
+ result, err = client.CreateOrUpdateSender(req)
if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "appplatform.AppsClient", "CreateOrUpdate", resp, "Failure sending request")
+ err = autorest.NewErrorWithError(err, "appplatform.AppsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
return
}
- result, err = client.CreateOrUpdateResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "appplatform.AppsClient", "CreateOrUpdate", resp, "Failure responding to request")
- }
-
return
}
@@ -134,9 +128,15 @@ func (client AppsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGro
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
-func (client AppsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
+func (client AppsClient) CreateOrUpdateSender(req *http.Request) (future AppsCreateOrUpdateFuture, err error) {
sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
}
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
@@ -145,7 +145,7 @@ func (client AppsClient) CreateOrUpdateResponder(resp *http.Response) (result Ap
err = autorest.Respond(
resp,
client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
@@ -518,13 +518,13 @@ func (client AppsClient) ListComplete(ctx context.Context, resourceGroupName str
// serviceName - the name of the Service resource.
// appName - the name of the App resource.
// appResource - parameters for the update operation
-func (client AppsClient) Update(ctx context.Context, resourceGroupName string, serviceName string, appName string, appResource *AppResource) (result AppResource, err error) {
+func (client AppsClient) Update(ctx context.Context, resourceGroupName string, serviceName string, appName string, appResource *AppResource) (result AppsUpdateFuture, err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.Update")
defer func() {
sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
}
tracing.EndSpan(ctx, sc, err)
}()
@@ -535,18 +535,12 @@ func (client AppsClient) Update(ctx context.Context, resourceGroupName string, s
return
}
- resp, err := client.UpdateSender(req)
+ result, err = client.UpdateSender(req)
if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "appplatform.AppsClient", "Update", resp, "Failure sending request")
+ err = autorest.NewErrorWithError(err, "appplatform.AppsClient", "Update", result.Response(), "Failure sending request")
return
}
- result, err = client.UpdateResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "appplatform.AppsClient", "Update", resp, "Failure responding to request")
- }
-
return
}
@@ -579,9 +573,15 @@ func (client AppsClient) UpdatePreparer(ctx context.Context, resourceGroupName s
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
-func (client AppsClient) UpdateSender(req *http.Request) (*http.Response, error) {
+func (client AppsClient) UpdateSender(req *http.Request) (future AppsUpdateFuture, err error) {
sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
}
// UpdateResponder handles the response to the Update request. The method always
@@ -590,7 +590,7 @@ func (client AppsClient) UpdateResponder(resp *http.Response) (result AppResourc
err = autorest.Respond(
resp,
client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
diff --git a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/models.go b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/models.go
index 5a94eb8e7f3b..cf8d8d68fd8a 100644
--- a/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/models.go
+++ b/services/preview/appplatform/mgmt/2019-05-01-preview/appplatform/models.go
@@ -35,15 +35,19 @@ const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/appplatform/mgm
type AppResourceProvisioningState string
const (
+ // Creating ...
+ Creating AppResourceProvisioningState = "Creating"
// Failed ...
Failed AppResourceProvisioningState = "Failed"
// Succeeded ...
Succeeded AppResourceProvisioningState = "Succeeded"
+ // Updating ...
+ Updating AppResourceProvisioningState = "Updating"
)
// PossibleAppResourceProvisioningStateValues returns an array of possible values for the AppResourceProvisioningState const type.
func PossibleAppResourceProvisioningStateValues() []AppResourceProvisioningState {
- return []AppResourceProvisioningState{Failed, Succeeded}
+ return []AppResourceProvisioningState{Creating, Failed, Succeeded, Updating}
}
// ConfigServerState enumerates the values for config server state.
@@ -75,15 +79,15 @@ const (
DeploymentResourceProvisioningStateCreating DeploymentResourceProvisioningState = "Creating"
// DeploymentResourceProvisioningStateFailed ...
DeploymentResourceProvisioningStateFailed DeploymentResourceProvisioningState = "Failed"
- // DeploymentResourceProvisioningStateProcessing ...
- DeploymentResourceProvisioningStateProcessing DeploymentResourceProvisioningState = "Processing"
// DeploymentResourceProvisioningStateSucceeded ...
DeploymentResourceProvisioningStateSucceeded DeploymentResourceProvisioningState = "Succeeded"
+ // DeploymentResourceProvisioningStateUpdating ...
+ DeploymentResourceProvisioningStateUpdating DeploymentResourceProvisioningState = "Updating"
)
// PossibleDeploymentResourceProvisioningStateValues returns an array of possible values for the DeploymentResourceProvisioningState const type.
func PossibleDeploymentResourceProvisioningStateValues() []DeploymentResourceProvisioningState {
- return []DeploymentResourceProvisioningState{DeploymentResourceProvisioningStateCreating, DeploymentResourceProvisioningStateFailed, DeploymentResourceProvisioningStateProcessing, DeploymentResourceProvisioningStateSucceeded}
+ return []DeploymentResourceProvisioningState{DeploymentResourceProvisioningStateCreating, DeploymentResourceProvisioningStateFailed, DeploymentResourceProvisioningStateSucceeded, DeploymentResourceProvisioningStateUpdating}
}
// DeploymentResourceStatus enumerates the values for deployment resource status.
@@ -96,8 +100,6 @@ const (
DeploymentResourceStatusCompiling DeploymentResourceStatus = "Compiling"
// DeploymentResourceStatusFailed ...
DeploymentResourceStatusFailed DeploymentResourceStatus = "Failed"
- // DeploymentResourceStatusProcessing ...
- DeploymentResourceStatusProcessing DeploymentResourceStatus = "Processing"
// DeploymentResourceStatusRunning ...
DeploymentResourceStatusRunning DeploymentResourceStatus = "Running"
// DeploymentResourceStatusStopped ...
@@ -110,7 +112,7 @@ const (
// PossibleDeploymentResourceStatusValues returns an array of possible values for the DeploymentResourceStatus const type.
func PossibleDeploymentResourceStatusValues() []DeploymentResourceStatus {
- return []DeploymentResourceStatus{DeploymentResourceStatusAllocating, DeploymentResourceStatusCompiling, DeploymentResourceStatusFailed, DeploymentResourceStatusProcessing, DeploymentResourceStatusRunning, DeploymentResourceStatusStopped, DeploymentResourceStatusUnknown, DeploymentResourceStatusUpgrading}
+ return []DeploymentResourceStatus{DeploymentResourceStatusAllocating, DeploymentResourceStatusCompiling, DeploymentResourceStatusFailed, DeploymentResourceStatusRunning, DeploymentResourceStatusStopped, DeploymentResourceStatusUnknown, DeploymentResourceStatusUpgrading}
}
// ProvisioningState enumerates the values for provisioning state.
@@ -372,7 +374,7 @@ type AppResourceProperties struct {
Public *bool `json:"public,omitempty"`
// URL - READ-ONLY; URL of the App
URL *string `json:"url,omitempty"`
- // ProvisioningState - READ-ONLY; Provisioning state of the App. Possible values include: 'Succeeded', 'Failed'
+ // ProvisioningState - READ-ONLY; Provisioning state of the App. Possible values include: 'Succeeded', 'Failed', 'Creating', 'Updating'
ProvisioningState AppResourceProvisioningState `json:"provisioningState,omitempty"`
// ActiveDeploymentName - Name of the active deployment of the App
ActiveDeploymentName *string `json:"activeDeploymentName,omitempty"`
@@ -384,6 +386,63 @@ type AppResourceProperties struct {
PersistentDisk *PersistentDisk `json:"persistentDisk,omitempty"`
}
+// AppsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type AppsCreateOrUpdateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *AppsCreateOrUpdateFuture) Result(client AppsClient) (ar AppResource, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appplatform.AppsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("appplatform.AppsCreateOrUpdateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if ar.Response.Response, err = future.GetResult(sender); err == nil && ar.Response.Response.StatusCode != http.StatusNoContent {
+ ar, err = client.CreateOrUpdateResponder(ar.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appplatform.AppsCreateOrUpdateFuture", "Result", ar.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// AppsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
+type AppsUpdateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *AppsUpdateFuture) Result(client AppsClient) (ar AppResource, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appplatform.AppsUpdateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("appplatform.AppsUpdateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if ar.Response.Response, err = future.GetResult(sender); err == nil && ar.Response.Response.StatusCode != http.StatusNoContent {
+ ar, err = client.UpdateResponder(ar.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "appplatform.AppsUpdateFuture", "Result", ar.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
// AvailableOperations available operations of the service
type AvailableOperations struct {
autorest.Response `json:"-"`
@@ -983,11 +1042,11 @@ type DeploymentResourceProperties struct {
Source *UserSourceInfo `json:"source,omitempty"`
// AppName - READ-ONLY; App name of the deployment
AppName *string `json:"appName,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the Deployment. Possible values include: 'DeploymentResourceProvisioningStateCreating', 'DeploymentResourceProvisioningStateUpdating', 'DeploymentResourceProvisioningStateSucceeded', 'DeploymentResourceProvisioningStateFailed'
+ ProvisioningState DeploymentResourceProvisioningState `json:"provisioningState,omitempty"`
// DeploymentSettings - Deployment settings of the Deployment
DeploymentSettings *DeploymentSettings `json:"deploymentSettings,omitempty"`
- // ProvisioningState - READ-ONLY; Provisioning state of the Deployment. Possible values include: 'DeploymentResourceProvisioningStateCreating', 'DeploymentResourceProvisioningStateProcessing', 'DeploymentResourceProvisioningStateSucceeded', 'DeploymentResourceProvisioningStateFailed'
- ProvisioningState DeploymentResourceProvisioningState `json:"provisioningState,omitempty"`
- // Status - READ-ONLY; Status of the Deployment. Possible values include: 'DeploymentResourceStatusUnknown', 'DeploymentResourceStatusStopped', 'DeploymentResourceStatusRunning', 'DeploymentResourceStatusFailed', 'DeploymentResourceStatusProcessing', 'DeploymentResourceStatusAllocating', 'DeploymentResourceStatusUpgrading', 'DeploymentResourceStatusCompiling'
+ // Status - READ-ONLY; Status of the Deployment. Possible values include: 'DeploymentResourceStatusUnknown', 'DeploymentResourceStatusStopped', 'DeploymentResourceStatusRunning', 'DeploymentResourceStatusFailed', 'DeploymentResourceStatusAllocating', 'DeploymentResourceStatusUpgrading', 'DeploymentResourceStatusCompiling'
Status DeploymentResourceStatus `json:"status,omitempty"`
// Active - READ-ONLY; Indicates whether the Deployment is active
Active *bool `json:"active,omitempty"`
diff --git a/services/preview/cognitiveservices/v1.0/visualsearch/client.go b/services/preview/cognitiveservices/v1.0/visualsearch/client.go
index 2cc469810959..b966e318fad9 100644
--- a/services/preview/cognitiveservices/v1.0/visualsearch/client.go
+++ b/services/preview/cognitiveservices/v1.0/visualsearch/client.go
@@ -3,7 +3,11 @@
// Visual Search API lets you discover insights about an image such as visually similar images, shopping sources, and
// related searches. The API can also perform text recognition, identify entities (people, places, things), return
// other topical content for the user to explore, and more. For more information, see [Visual Search
-// Overview](https://docs.microsoft.com/azure/cognitive-services/bing-visual-search/overview).
+// Overview](https://docs.microsoft.com/azure/cognitive-services/bing-visual-search/overview). **NOTE:** To comply
+// with the new EU Copyright Directive in France, the Bing Visual Search API must omit some content from certain EU
+// News sources for French users. The removed content may include thumbnail images and videos, video previews, and
+// snippets which accompany search results from these sources. As a consequence, the Bing APIs may serve fewer results
+// with thumbnail images and videos, video previews, and snippets to French users.
package visualsearch
// Copyright (c) Microsoft and contributors. All rights reserved.
diff --git a/services/preview/cognitiveservices/v1.0/visualsearch/images.go b/services/preview/cognitiveservices/v1.0/visualsearch/images.go
index 6fa85f62882e..321798492946 100644
--- a/services/preview/cognitiveservices/v1.0/visualsearch/images.go
+++ b/services/preview/cognitiveservices/v1.0/visualsearch/images.go
@@ -29,7 +29,11 @@ import (
// ImagesClient is the visual Search API lets you discover insights about an image such as visually similar images,
// shopping sources, and related searches. The API can also perform text recognition, identify entities (people,
// places, things), return other topical content for the user to explore, and more. For more information, see [Visual
-// Search Overview](https://docs.microsoft.com/azure/cognitive-services/bing-visual-search/overview).
+// Search Overview](https://docs.microsoft.com/azure/cognitive-services/bing-visual-search/overview). **NOTE:** To
+// comply with the new EU Copyright Directive in France, the Bing Visual Search API must omit some content from certain
+// EU News sources for French users. The removed content may include thumbnail images and videos, video previews, and
+// snippets which accompany search results from these sources. As a consequence, the Bing APIs may serve fewer results
+// with thumbnail images and videos, video previews, and snippets to French users.
type ImagesClient struct {
BaseClient
}
diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/apps.go b/services/preview/cognitiveservices/v3.0/luis/authoring/apps.go
new file mode 100644
index 000000000000..13de58e56cf0
--- /dev/null
+++ b/services/preview/cognitiveservices/v3.0/luis/authoring/apps.go
@@ -0,0 +1,1650 @@
+package authoring
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "github.com/satori/go.uuid"
+ "net/http"
+)
+
+// AppsClient is the client for the Apps methods of the Authoring service.
+type AppsClient struct {
+ BaseClient
+}
+
+// NewAppsClient creates an instance of the AppsClient client.
+func NewAppsClient(endpoint string) AppsClient {
+ return AppsClient{New(endpoint)}
+}
+
+// Add creates a new LUIS app.
+// Parameters:
+// applicationCreateObject - an application containing Name, Description (optional), Culture, Usage Scenario
+// (optional), Domain (optional) and initial version ID (optional) of the application. Default value for the
+// version ID is "0.1". Note: the culture cannot be changed after the app is created.
+func (client AppsClient) Add(ctx context.Context, applicationCreateObject ApplicationCreateObject) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.Add")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: applicationCreateObject,
+ Constraints: []validation.Constraint{{Target: "applicationCreateObject.Culture", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "applicationCreateObject.Name", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("authoring.AppsClient", "Add", err.Error())
+ }
+
+ req, err := client.AddPreparer(ctx, applicationCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Add", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AddSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Add", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AddResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Add", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AddPreparer prepares the Add request.
+func (client AppsClient) AddPreparer(ctx context.Context, applicationCreateObject ApplicationCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPath("/apps/"),
+ autorest.WithJSON(applicationCreateObject))
+ 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 AppsClient) AddSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AddResponder handles the response to the Add request. The method always
+// closes the http.Response Body.
+func (client AppsClient) AddResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// AddCustomPrebuiltDomain adds a prebuilt domain along with its intent and entity models as a new application.
+// Parameters:
+// prebuiltDomainCreateObject - a prebuilt domain create object containing the name and culture of the domain.
+func (client AppsClient) AddCustomPrebuiltDomain(ctx context.Context, prebuiltDomainCreateObject PrebuiltDomainCreateObject) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.AddCustomPrebuiltDomain")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.AddCustomPrebuiltDomainPreparer(ctx, prebuiltDomainCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "AddCustomPrebuiltDomain", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AddCustomPrebuiltDomainSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "AddCustomPrebuiltDomain", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AddCustomPrebuiltDomainResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "AddCustomPrebuiltDomain", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AddCustomPrebuiltDomainPreparer prepares the AddCustomPrebuiltDomain request.
+func (client AppsClient) AddCustomPrebuiltDomainPreparer(ctx context.Context, prebuiltDomainCreateObject PrebuiltDomainCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPath("/apps/customprebuiltdomains"),
+ autorest.WithJSON(prebuiltDomainCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// AddCustomPrebuiltDomainSender sends the AddCustomPrebuiltDomain request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) AddCustomPrebuiltDomainSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AddCustomPrebuiltDomainResponder handles the response to the AddCustomPrebuiltDomain request. The method always
+// closes the http.Response Body.
+func (client AppsClient) AddCustomPrebuiltDomainResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes an application.
+// Parameters:
+// appID - the application ID.
+// force - a flag to indicate whether to force an operation.
+func (client AppsClient) Delete(ctx context.Context, appID uuid.UUID, force *bool) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, appID, force)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Delete", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Delete", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client AppsClient) DeletePreparer(ctx context.Context, appID uuid.UUID, force *bool) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if force != nil {
+ queryParameters["force"] = autorest.Encode("query", *force)
+ } else {
+ queryParameters["force"] = autorest.Encode("query", false)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}", 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 AppsClient) DeleteSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client AppsClient) DeleteResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DownloadQueryLogs gets the logs of the past month's endpoint queries for the application.
+// Parameters:
+// appID - the application ID.
+func (client AppsClient) DownloadQueryLogs(ctx context.Context, appID uuid.UUID) (result ReadCloser, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.DownloadQueryLogs")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DownloadQueryLogsPreparer(ctx, appID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "DownloadQueryLogs", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DownloadQueryLogsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "DownloadQueryLogs", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DownloadQueryLogsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "DownloadQueryLogs", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DownloadQueryLogsPreparer prepares the DownloadQueryLogs request.
+func (client AppsClient) DownloadQueryLogsPreparer(ctx context.Context, appID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/querylogs", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DownloadQueryLogsSender sends the DownloadQueryLogs request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) DownloadQueryLogsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DownloadQueryLogsResponder handles the response to the DownloadQueryLogs request. The method always
+// closes the http.Response Body.
+func (client AppsClient) DownloadQueryLogsResponder(resp *http.Response) (result ReadCloser, err error) {
+ result.Value = &resp.Body
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK))
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Get gets the application info.
+// Parameters:
+// appID - the application ID.
+func (client AppsClient) Get(ctx context.Context, appID uuid.UUID) (result ApplicationInfoResponse, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, appID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client AppsClient) GetPreparer(ctx context.Context, appID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}", pathParameters))
+ 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 AppsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client AppsClient) GetResponder(resp *http.Response) (result ApplicationInfoResponse, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetPublishSettings get the application publish settings including 'UseAllTrainingData'.
+// Parameters:
+// appID - the application ID.
+func (client AppsClient) GetPublishSettings(ctx context.Context, appID uuid.UUID) (result PublishSettings, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.GetPublishSettings")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPublishSettingsPreparer(ctx, appID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "GetPublishSettings", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetPublishSettingsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "GetPublishSettings", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetPublishSettingsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "GetPublishSettings", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPublishSettingsPreparer prepares the GetPublishSettings request.
+func (client AppsClient) GetPublishSettingsPreparer(ctx context.Context, appID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/publishsettings", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetPublishSettingsSender sends the GetPublishSettings request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) GetPublishSettingsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetPublishSettingsResponder handles the response to the GetPublishSettings request. The method always
+// closes the http.Response Body.
+func (client AppsClient) GetPublishSettingsResponder(resp *http.Response) (result PublishSettings, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetSettings get the application settings including 'UseAllTrainingData'.
+// Parameters:
+// appID - the application ID.
+func (client AppsClient) GetSettings(ctx context.Context, appID uuid.UUID) (result ApplicationSettings, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.GetSettings")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetSettingsPreparer(ctx, appID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "GetSettings", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSettingsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "GetSettings", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetSettingsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "GetSettings", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetSettingsPreparer prepares the GetSettings request.
+func (client AppsClient) GetSettingsPreparer(ctx context.Context, appID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/settings", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetSettingsSender sends the GetSettings request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) GetSettingsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetSettingsResponder handles the response to the GetSettings request. The method always
+// closes the http.Response Body.
+func (client AppsClient) GetSettingsResponder(resp *http.Response) (result ApplicationSettings, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Import imports an application to LUIS, the application's structure is included in the request body.
+// Parameters:
+// luisApp - a LUIS application structure.
+// appName - the application name to create. If not specified, the application name will be read from the
+// imported object. If the application name already exists, an error is returned.
+func (client AppsClient) Import(ctx context.Context, luisApp LuisApp, appName string) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.Import")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ImportPreparer(ctx, luisApp, appName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Import", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ImportSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Import", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ImportResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Import", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ImportPreparer prepares the Import request.
+func (client AppsClient) ImportPreparer(ctx context.Context, luisApp LuisApp, appName string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ queryParameters := map[string]interface{}{}
+ if len(appName) > 0 {
+ queryParameters["appName"] = autorest.Encode("query", appName)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPath("/apps/import"),
+ autorest.WithJSON(luisApp),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ImportSender sends the Import request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) ImportSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ImportResponder handles the response to the Import request. The method always
+// closes the http.Response Body.
+func (client AppsClient) ImportResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List lists all of the user's applications.
+// Parameters:
+// skip - the number of entries to skip. Default value is 0.
+// take - the number of entries to return. Maximum page size is 500. Default is 100.
+func (client AppsClient) List(ctx context.Context, skip *int32, take *int32) (result ListApplicationInfoResponse, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: skip,
+ Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}},
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(500), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.AppsClient", "List", err.Error())
+ }
+
+ req, err := client.ListPreparer(ctx, skip, take)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client AppsClient) ListPreparer(ctx context.Context, skip *int32, take *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ queryParameters := map[string]interface{}{}
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 100)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPath("/apps/"),
+ 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 AppsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client AppsClient) ListResponder(resp *http.Response) (result ListApplicationInfoResponse, 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
+}
+
+// ListAvailableCustomPrebuiltDomains gets all the available custom prebuilt domains for all cultures.
+func (client AppsClient) ListAvailableCustomPrebuiltDomains(ctx context.Context) (result ListPrebuiltDomain, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListAvailableCustomPrebuiltDomains")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListAvailableCustomPrebuiltDomainsPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListAvailableCustomPrebuiltDomains", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListAvailableCustomPrebuiltDomainsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListAvailableCustomPrebuiltDomains", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListAvailableCustomPrebuiltDomainsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListAvailableCustomPrebuiltDomains", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListAvailableCustomPrebuiltDomainsPreparer prepares the ListAvailableCustomPrebuiltDomains request.
+func (client AppsClient) ListAvailableCustomPrebuiltDomainsPreparer(ctx context.Context) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPath("/apps/customprebuiltdomains"))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListAvailableCustomPrebuiltDomainsSender sends the ListAvailableCustomPrebuiltDomains request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) ListAvailableCustomPrebuiltDomainsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListAvailableCustomPrebuiltDomainsResponder handles the response to the ListAvailableCustomPrebuiltDomains request. The method always
+// closes the http.Response Body.
+func (client AppsClient) ListAvailableCustomPrebuiltDomainsResponder(resp *http.Response) (result ListPrebuiltDomain, 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
+}
+
+// ListAvailableCustomPrebuiltDomainsForCulture gets all the available prebuilt domains for a specific culture.
+// Parameters:
+// culture - culture.
+func (client AppsClient) ListAvailableCustomPrebuiltDomainsForCulture(ctx context.Context, culture string) (result ListPrebuiltDomain, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListAvailableCustomPrebuiltDomainsForCulture")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListAvailableCustomPrebuiltDomainsForCulturePreparer(ctx, culture)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListAvailableCustomPrebuiltDomainsForCulture", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListAvailableCustomPrebuiltDomainsForCultureSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListAvailableCustomPrebuiltDomainsForCulture", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListAvailableCustomPrebuiltDomainsForCultureResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListAvailableCustomPrebuiltDomainsForCulture", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListAvailableCustomPrebuiltDomainsForCulturePreparer prepares the ListAvailableCustomPrebuiltDomainsForCulture request.
+func (client AppsClient) ListAvailableCustomPrebuiltDomainsForCulturePreparer(ctx context.Context, culture string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "culture": autorest.Encode("path", culture),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/customprebuiltdomains/{culture}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListAvailableCustomPrebuiltDomainsForCultureSender sends the ListAvailableCustomPrebuiltDomainsForCulture request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) ListAvailableCustomPrebuiltDomainsForCultureSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListAvailableCustomPrebuiltDomainsForCultureResponder handles the response to the ListAvailableCustomPrebuiltDomainsForCulture request. The method always
+// closes the http.Response Body.
+func (client AppsClient) ListAvailableCustomPrebuiltDomainsForCultureResponder(resp *http.Response) (result ListPrebuiltDomain, 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
+}
+
+// ListCortanaEndpoints gets the endpoint URLs for the prebuilt Cortana applications.
+func (client AppsClient) ListCortanaEndpoints(ctx context.Context) (result PersonalAssistantsResponse, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListCortanaEndpoints")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListCortanaEndpointsPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListCortanaEndpoints", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListCortanaEndpointsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListCortanaEndpoints", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListCortanaEndpointsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListCortanaEndpoints", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListCortanaEndpointsPreparer prepares the ListCortanaEndpoints request.
+func (client AppsClient) ListCortanaEndpointsPreparer(ctx context.Context) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPath("/apps/assistants"))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListCortanaEndpointsSender sends the ListCortanaEndpoints request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) ListCortanaEndpointsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListCortanaEndpointsResponder handles the response to the ListCortanaEndpoints request. The method always
+// closes the http.Response Body.
+func (client AppsClient) ListCortanaEndpointsResponder(resp *http.Response) (result PersonalAssistantsResponse, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListDomains gets the available application domains.
+func (client AppsClient) ListDomains(ctx context.Context) (result ListString, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListDomains")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListDomainsPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListDomains", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListDomainsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListDomains", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListDomainsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListDomains", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListDomainsPreparer prepares the ListDomains request.
+func (client AppsClient) ListDomainsPreparer(ctx context.Context) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPath("/apps/domains"))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListDomainsSender sends the ListDomains request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) ListDomainsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListDomainsResponder handles the response to the ListDomains request. The method always
+// closes the http.Response Body.
+func (client AppsClient) ListDomainsResponder(resp *http.Response) (result ListString, 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
+}
+
+// ListEndpoints returns the available endpoint deployment regions and URLs.
+// Parameters:
+// appID - the application ID.
+func (client AppsClient) ListEndpoints(ctx context.Context, appID uuid.UUID) (result SetString, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListEndpoints")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListEndpointsPreparer(ctx, appID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListEndpoints", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListEndpointsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListEndpoints", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListEndpointsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListEndpoints", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListEndpointsPreparer prepares the ListEndpoints request.
+func (client AppsClient) ListEndpointsPreparer(ctx context.Context, appID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/endpoints", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListEndpointsSender sends the ListEndpoints request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) ListEndpointsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListEndpointsResponder handles the response to the ListEndpoints request. The method always
+// closes the http.Response Body.
+func (client AppsClient) ListEndpointsResponder(resp *http.Response) (result SetString, 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
+}
+
+// ListSupportedCultures gets a list of supported cultures. Cultures are equivalent to the written language and locale.
+// For example,"en-us" represents the U.S. variation of English.
+func (client AppsClient) ListSupportedCultures(ctx context.Context) (result ListAvailableCulture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListSupportedCultures")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListSupportedCulturesPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListSupportedCultures", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSupportedCulturesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListSupportedCultures", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListSupportedCulturesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListSupportedCultures", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListSupportedCulturesPreparer prepares the ListSupportedCultures request.
+func (client AppsClient) ListSupportedCulturesPreparer(ctx context.Context) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPath("/apps/cultures"))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListSupportedCulturesSender sends the ListSupportedCultures request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) ListSupportedCulturesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListSupportedCulturesResponder handles the response to the ListSupportedCultures request. The method always
+// closes the http.Response Body.
+func (client AppsClient) ListSupportedCulturesResponder(resp *http.Response) (result ListAvailableCulture, 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
+}
+
+// ListUsageScenarios gets the application available usage scenarios.
+func (client AppsClient) ListUsageScenarios(ctx context.Context) (result ListString, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.ListUsageScenarios")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListUsageScenariosPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListUsageScenarios", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListUsageScenariosSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListUsageScenarios", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListUsageScenariosResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "ListUsageScenarios", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListUsageScenariosPreparer prepares the ListUsageScenarios request.
+func (client AppsClient) ListUsageScenariosPreparer(ctx context.Context) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPath("/apps/usagescenarios"))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListUsageScenariosSender sends the ListUsageScenarios request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) ListUsageScenariosSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListUsageScenariosResponder handles the response to the ListUsageScenarios request. The method always
+// closes the http.Response Body.
+func (client AppsClient) ListUsageScenariosResponder(resp *http.Response) (result ListString, 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
+}
+
+// PackagePublishedApplicationAsGzip packages a published LUIS application as a GZip file to be used in the LUIS
+// container.
+// Parameters:
+// appID - the application ID.
+// slotName - the publishing slot name.
+func (client AppsClient) PackagePublishedApplicationAsGzip(ctx context.Context, appID uuid.UUID, slotName string) (result ReadCloser, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.PackagePublishedApplicationAsGzip")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.PackagePublishedApplicationAsGzipPreparer(ctx, appID, slotName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "PackagePublishedApplicationAsGzip", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.PackagePublishedApplicationAsGzipSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "PackagePublishedApplicationAsGzip", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.PackagePublishedApplicationAsGzipResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "PackagePublishedApplicationAsGzip", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// PackagePublishedApplicationAsGzipPreparer prepares the PackagePublishedApplicationAsGzip request.
+func (client AppsClient) PackagePublishedApplicationAsGzipPreparer(ctx context.Context, appID uuid.UUID, slotName string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "slotName": autorest.Encode("path", slotName),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/package/{appId}/slot/{slotName}/gzip", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// PackagePublishedApplicationAsGzipSender sends the PackagePublishedApplicationAsGzip request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) PackagePublishedApplicationAsGzipSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// PackagePublishedApplicationAsGzipResponder handles the response to the PackagePublishedApplicationAsGzip request. The method always
+// closes the http.Response Body.
+func (client AppsClient) PackagePublishedApplicationAsGzipResponder(resp *http.Response) (result ReadCloser, err error) {
+ result.Value = &resp.Body
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK))
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// PackageTrainedApplicationAsGzip packages trained LUIS application as GZip file to be used in the LUIS container.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+func (client AppsClient) PackageTrainedApplicationAsGzip(ctx context.Context, appID uuid.UUID, versionID string) (result ReadCloser, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.PackageTrainedApplicationAsGzip")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.PackageTrainedApplicationAsGzipPreparer(ctx, appID, versionID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "PackageTrainedApplicationAsGzip", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.PackageTrainedApplicationAsGzipSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "PackageTrainedApplicationAsGzip", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.PackageTrainedApplicationAsGzipResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "PackageTrainedApplicationAsGzip", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// PackageTrainedApplicationAsGzipPreparer prepares the PackageTrainedApplicationAsGzip request.
+func (client AppsClient) PackageTrainedApplicationAsGzipPreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/package/{appId}/versions/{versionId}/gzip", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// PackageTrainedApplicationAsGzipSender sends the PackageTrainedApplicationAsGzip request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) PackageTrainedApplicationAsGzipSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// PackageTrainedApplicationAsGzipResponder handles the response to the PackageTrainedApplicationAsGzip request. The method always
+// closes the http.Response Body.
+func (client AppsClient) PackageTrainedApplicationAsGzipResponder(resp *http.Response) (result ReadCloser, err error) {
+ result.Value = &resp.Body
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK))
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Publish publishes a specific version of the application.
+// Parameters:
+// appID - the application ID.
+// applicationPublishObject - the application publish object. The region is the target region that the
+// application is published to.
+func (client AppsClient) Publish(ctx context.Context, appID uuid.UUID, applicationPublishObject ApplicationPublishObject) (result ProductionOrStagingEndpointInfo, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.Publish")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.PublishPreparer(ctx, appID, applicationPublishObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Publish", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.PublishSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Publish", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.PublishResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Publish", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// PublishPreparer prepares the Publish request.
+func (client AppsClient) PublishPreparer(ctx context.Context, appID uuid.UUID, applicationPublishObject ApplicationPublishObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/publish", pathParameters),
+ autorest.WithJSON(applicationPublishObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// PublishSender sends the Publish request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) PublishSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// PublishResponder handles the response to the Publish request. The method always
+// closes the http.Response Body.
+func (client AppsClient) PublishResponder(resp *http.Response) (result ProductionOrStagingEndpointInfo, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusMultiStatus),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Update updates the name or description of the application.
+// Parameters:
+// appID - the application ID.
+// applicationUpdateObject - a model containing Name and Description of the application.
+func (client AppsClient) Update(ctx context.Context, appID uuid.UUID, applicationUpdateObject ApplicationUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.Update")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdatePreparer(ctx, appID, applicationUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Update", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Update", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "Update", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdatePreparer prepares the Update request.
+func (client AppsClient) UpdatePreparer(ctx context.Context, appID uuid.UUID, applicationUpdateObject ApplicationUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}", pathParameters),
+ autorest.WithJSON(applicationUpdateObject))
+ 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 AppsClient) UpdateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateResponder handles the response to the Update request. The method always
+// closes the http.Response Body.
+func (client AppsClient) UpdateResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdatePublishSettings updates the application publish settings including 'UseAllTrainingData'.
+// Parameters:
+// appID - the application ID.
+// publishSettingUpdateObject - an object containing the new publish application settings.
+func (client AppsClient) UpdatePublishSettings(ctx context.Context, appID uuid.UUID, publishSettingUpdateObject PublishSettingUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.UpdatePublishSettings")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdatePublishSettingsPreparer(ctx, appID, publishSettingUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "UpdatePublishSettings", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdatePublishSettingsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "UpdatePublishSettings", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdatePublishSettingsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "UpdatePublishSettings", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdatePublishSettingsPreparer prepares the UpdatePublishSettings request.
+func (client AppsClient) UpdatePublishSettingsPreparer(ctx context.Context, appID uuid.UUID, publishSettingUpdateObject PublishSettingUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/publishsettings", pathParameters),
+ autorest.WithJSON(publishSettingUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdatePublishSettingsSender sends the UpdatePublishSettings request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) UpdatePublishSettingsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdatePublishSettingsResponder handles the response to the UpdatePublishSettings request. The method always
+// closes the http.Response Body.
+func (client AppsClient) UpdatePublishSettingsResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateSettings updates the application settings including 'UseAllTrainingData'.
+// Parameters:
+// appID - the application ID.
+// applicationSettingUpdateObject - an object containing the new application settings.
+func (client AppsClient) UpdateSettings(ctx context.Context, appID uuid.UUID, applicationSettingUpdateObject ApplicationSettingUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AppsClient.UpdateSettings")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateSettingsPreparer(ctx, appID, applicationSettingUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "UpdateSettings", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateSettingsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "UpdateSettings", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateSettingsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AppsClient", "UpdateSettings", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateSettingsPreparer prepares the UpdateSettings request.
+func (client AppsClient) UpdateSettingsPreparer(ctx context.Context, appID uuid.UUID, applicationSettingUpdateObject ApplicationSettingUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/settings", pathParameters),
+ autorest.WithJSON(applicationSettingUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateSettingsSender sends the UpdateSettings request. The method will close the
+// http.Response Body if it receives an error.
+func (client AppsClient) UpdateSettingsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateSettingsResponder handles the response to the UpdateSettings request. The method always
+// closes the http.Response Body.
+func (client AppsClient) UpdateSettingsResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/authoringapi/interfaces.go b/services/preview/cognitiveservices/v3.0/luis/authoring/authoringapi/interfaces.go
new file mode 100644
index 000000000000..004c989ed5ed
--- /dev/null
+++ b/services/preview/cognitiveservices/v3.0/luis/authoring/authoringapi/interfaces.go
@@ -0,0 +1,256 @@
+package authoringapi
+
+// 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/azure-sdk-for-go/services/preview/cognitiveservices/v3.0/luis/authoring"
+ "github.com/satori/go.uuid"
+)
+
+// FeaturesClientAPI contains the set of methods on the FeaturesClient type.
+type FeaturesClientAPI interface {
+ AddEntityFeature(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, featureRelationCreateObject authoring.ModelFeatureInformation) (result authoring.OperationStatus, err error)
+ AddIntentFeature(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, featureRelationCreateObject authoring.ModelFeatureInformation) (result authoring.OperationStatus, err error)
+ AddPhraseList(ctx context.Context, appID uuid.UUID, versionID string, phraselistCreateObject authoring.PhraselistCreateObject) (result authoring.Int32, err error)
+ DeletePhraseList(ctx context.Context, appID uuid.UUID, versionID string, phraselistID int32) (result authoring.OperationStatus, err error)
+ GetPhraseList(ctx context.Context, appID uuid.UUID, versionID string, phraselistID int32) (result authoring.PhraseListFeatureInfo, err error)
+ List(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result authoring.FeaturesResponseObject, err error)
+ ListPhraseLists(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result authoring.ListPhraseListFeatureInfo, err error)
+ UpdatePhraseList(ctx context.Context, appID uuid.UUID, versionID string, phraselistID int32, phraselistUpdateObject *authoring.PhraselistUpdateObject) (result authoring.OperationStatus, err error)
+}
+
+var _ FeaturesClientAPI = (*authoring.FeaturesClient)(nil)
+
+// ExamplesClientAPI contains the set of methods on the ExamplesClient type.
+type ExamplesClientAPI interface {
+ Add(ctx context.Context, appID uuid.UUID, versionID string, exampleLabelObject authoring.ExampleLabelObject) (result authoring.LabelExampleResponse, err error)
+ Batch(ctx context.Context, appID uuid.UUID, versionID string, exampleLabelObjectArray []authoring.ExampleLabelObject) (result authoring.ListBatchLabelExample, err error)
+ Delete(ctx context.Context, appID uuid.UUID, versionID string, exampleID int32) (result authoring.OperationStatus, err error)
+ List(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result authoring.ListLabeledUtterance, err error)
+}
+
+var _ ExamplesClientAPI = (*authoring.ExamplesClient)(nil)
+
+// ModelClientAPI contains the set of methods on the ModelClient type.
+type ModelClientAPI interface {
+ AddClosedList(ctx context.Context, appID uuid.UUID, versionID string, closedListModelCreateObject authoring.ClosedListModelCreateObject) (result authoring.UUID, err error)
+ AddCompositeEntityChild(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, compositeChildModelCreateObject authoring.CompositeChildModelCreateObject) (result authoring.UUID, err error)
+ AddCustomPrebuiltDomain(ctx context.Context, appID uuid.UUID, versionID string, prebuiltDomainObject authoring.PrebuiltDomainCreateBaseObject) (result authoring.ListUUID, err error)
+ AddCustomPrebuiltEntity(ctx context.Context, appID uuid.UUID, versionID string, prebuiltDomainModelCreateObject authoring.PrebuiltDomainModelCreateObject) (result authoring.UUID, err error)
+ AddCustomPrebuiltIntent(ctx context.Context, appID uuid.UUID, versionID string, prebuiltDomainModelCreateObject authoring.PrebuiltDomainModelCreateObject) (result authoring.UUID, err error)
+ AddEntity(ctx context.Context, appID uuid.UUID, versionID string, entityModelCreateObject authoring.EntityModelCreateObject) (result authoring.UUID, err error)
+ AddEntityChild(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, childEntityModelCreateObject authoring.ChildEntityModelCreateObject) (result authoring.UUID, err error)
+ AddExplicitListItem(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, item authoring.ExplicitListItemCreateObject) (result authoring.Int32, err error)
+ AddIntent(ctx context.Context, appID uuid.UUID, versionID string, intentCreateObject authoring.ModelCreateObject) (result authoring.UUID, err error)
+ AddPrebuilt(ctx context.Context, appID uuid.UUID, versionID string, prebuiltExtractorNames []string) (result authoring.ListPrebuiltEntityExtractor, err error)
+ AddSubList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, wordListCreateObject authoring.WordListObject) (result authoring.Int64, err error)
+ CreateClosedListEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityRoleCreateObject authoring.EntityRoleCreateObject) (result authoring.UUID, err error)
+ CreateCompositeEntityRole(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, entityRoleCreateObject authoring.EntityRoleCreateObject) (result authoring.UUID, err error)
+ CreateCustomPrebuiltEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityRoleCreateObject authoring.EntityRoleCreateObject) (result authoring.UUID, err error)
+ CreateEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityRoleCreateObject authoring.EntityRoleCreateObject) (result authoring.UUID, err error)
+ CreateHierarchicalEntityRole(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, entityRoleCreateObject authoring.EntityRoleCreateObject) (result authoring.UUID, err error)
+ CreatePatternAnyEntityModel(ctx context.Context, appID uuid.UUID, versionID string, extractorCreateObject authoring.PatternAnyModelCreateObject) (result authoring.UUID, err error)
+ CreatePatternAnyEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityRoleCreateObject authoring.EntityRoleCreateObject) (result authoring.UUID, err error)
+ CreatePrebuiltEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityRoleCreateObject authoring.EntityRoleCreateObject) (result authoring.UUID, err error)
+ CreateRegexEntityModel(ctx context.Context, appID uuid.UUID, versionID string, regexEntityExtractorCreateObj authoring.RegexModelCreateObject) (result authoring.UUID, err error)
+ CreateRegexEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityRoleCreateObject authoring.EntityRoleCreateObject) (result authoring.UUID, err error)
+ DeleteClosedList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID) (result authoring.OperationStatus, err error)
+ DeleteClosedListEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result authoring.OperationStatus, err error)
+ DeleteCompositeEntity(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID) (result authoring.OperationStatus, err error)
+ DeleteCompositeEntityChild(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, cChildID uuid.UUID) (result authoring.OperationStatus, err error)
+ DeleteCompositeEntityRole(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, roleID uuid.UUID) (result authoring.OperationStatus, err error)
+ DeleteCustomEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result authoring.OperationStatus, err error)
+ DeleteCustomPrebuiltDomain(ctx context.Context, appID uuid.UUID, versionID string, domainName string) (result authoring.OperationStatus, err error)
+ DeleteEntity(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result authoring.OperationStatus, err error)
+ DeleteEntityFeature(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, featureRelationDeleteObject authoring.ModelFeatureInformation) (result authoring.OperationStatus, err error)
+ DeleteEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result authoring.OperationStatus, err error)
+ DeleteExplicitListItem(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, itemID int64) (result authoring.OperationStatus, err error)
+ DeleteHierarchicalEntity(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID) (result authoring.OperationStatus, err error)
+ DeleteHierarchicalEntityChild(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, hChildID uuid.UUID) (result authoring.OperationStatus, err error)
+ DeleteHierarchicalEntityRole(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, roleID uuid.UUID) (result authoring.OperationStatus, err error)
+ DeleteIntent(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, deleteUtterances *bool) (result authoring.OperationStatus, err error)
+ DeleteIntentFeature(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, featureRelationDeleteObject authoring.ModelFeatureInformation) (result authoring.OperationStatus, err error)
+ DeletePatternAnyEntityModel(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result authoring.OperationStatus, err error)
+ DeletePatternAnyEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result authoring.OperationStatus, err error)
+ DeletePrebuilt(ctx context.Context, appID uuid.UUID, versionID string, prebuiltID uuid.UUID) (result authoring.OperationStatus, err error)
+ DeletePrebuiltEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result authoring.OperationStatus, err error)
+ DeleteRegexEntityModel(ctx context.Context, appID uuid.UUID, versionID string, regexEntityID uuid.UUID) (result authoring.OperationStatus, err error)
+ DeleteRegexEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result authoring.OperationStatus, err error)
+ DeleteSubList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, subListID int64) (result authoring.OperationStatus, err error)
+ ExamplesMethod(ctx context.Context, appID uuid.UUID, versionID string, modelID string, skip *int32, take *int32) (result authoring.ListLabelTextObject, err error)
+ GetClosedList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID) (result authoring.ClosedListEntityExtractor, err error)
+ GetClosedListEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result authoring.EntityRole, err error)
+ GetCompositeEntity(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID) (result authoring.CompositeEntityExtractor, err error)
+ GetCompositeEntityRole(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, roleID uuid.UUID) (result authoring.EntityRole, err error)
+ GetCustomEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result authoring.EntityRole, err error)
+ GetEntity(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result authoring.NDepthEntityExtractor, err error)
+ GetEntityFeatures(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result authoring.ListModelFeatureInformation, err error)
+ GetEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result authoring.EntityRole, err error)
+ GetExplicitList(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result authoring.ListExplicitListItem, err error)
+ GetExplicitListItem(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, itemID int64) (result authoring.ExplicitListItem, err error)
+ GetHierarchicalEntity(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID) (result authoring.HierarchicalEntityExtractor, err error)
+ GetHierarchicalEntityChild(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, hChildID uuid.UUID) (result authoring.HierarchicalChildEntity, err error)
+ GetHierarchicalEntityRole(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, roleID uuid.UUID) (result authoring.EntityRole, err error)
+ GetIntent(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID) (result authoring.IntentClassifier, err error)
+ GetIntentFeatures(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID) (result authoring.ListModelFeatureInformation, err error)
+ GetPatternAnyEntityInfo(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result authoring.PatternAnyEntityExtractor, err error)
+ GetPatternAnyEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result authoring.EntityRole, err error)
+ GetPrebuilt(ctx context.Context, appID uuid.UUID, versionID string, prebuiltID uuid.UUID) (result authoring.PrebuiltEntityExtractor, err error)
+ GetPrebuiltEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result authoring.EntityRole, err error)
+ GetRegexEntityEntityInfo(ctx context.Context, appID uuid.UUID, versionID string, regexEntityID uuid.UUID) (result authoring.RegexEntityExtractor, err error)
+ GetRegexEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result authoring.EntityRole, err error)
+ ListClosedListEntityRoles(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result authoring.ListEntityRole, err error)
+ ListClosedLists(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result authoring.ListClosedListEntityExtractor, err error)
+ ListCompositeEntities(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result authoring.ListCompositeEntityExtractor, err error)
+ ListCompositeEntityRoles(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID) (result authoring.ListEntityRole, err error)
+ ListCustomPrebuiltEntities(ctx context.Context, appID uuid.UUID, versionID string) (result authoring.ListEntityExtractor, err error)
+ ListCustomPrebuiltEntityRoles(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result authoring.ListEntityRole, err error)
+ ListCustomPrebuiltIntents(ctx context.Context, appID uuid.UUID, versionID string) (result authoring.ListIntentClassifier, err error)
+ ListCustomPrebuiltModels(ctx context.Context, appID uuid.UUID, versionID string) (result authoring.ListCustomPrebuiltModel, err error)
+ ListEntities(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result authoring.ListNDepthEntityExtractor, err error)
+ ListEntityRoles(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result authoring.ListEntityRole, err error)
+ ListEntitySuggestions(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, take *int32) (result authoring.ListEntitiesSuggestionExample, err error)
+ ListHierarchicalEntities(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result authoring.ListHierarchicalEntityExtractor, err error)
+ ListHierarchicalEntityRoles(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID) (result authoring.ListEntityRole, err error)
+ ListIntents(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result authoring.ListIntentClassifier, err error)
+ ListIntentSuggestions(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, take *int32) (result authoring.ListIntentsSuggestionExample, err error)
+ ListModels(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result authoring.ListModelInfoResponse, err error)
+ ListPatternAnyEntityInfos(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result authoring.ListPatternAnyEntityExtractor, err error)
+ ListPatternAnyEntityRoles(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result authoring.ListEntityRole, err error)
+ ListPrebuiltEntities(ctx context.Context, appID uuid.UUID, versionID string) (result authoring.ListAvailablePrebuiltEntityModel, err error)
+ ListPrebuiltEntityRoles(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result authoring.ListEntityRole, err error)
+ ListPrebuilts(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result authoring.ListPrebuiltEntityExtractor, err error)
+ ListRegexEntityInfos(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result authoring.ListRegexEntityExtractor, err error)
+ ListRegexEntityRoles(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result authoring.ListEntityRole, err error)
+ PatchClosedList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, closedListModelPatchObject authoring.ClosedListModelPatchObject) (result authoring.OperationStatus, err error)
+ ReplaceEntityFeatures(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, featureRelationsUpdateObject []authoring.ModelFeatureInformation) (result authoring.OperationStatus, err error)
+ ReplaceIntentFeatures(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, featureRelationsUpdateObject []authoring.ModelFeatureInformation) (result authoring.OperationStatus, err error)
+ UpdateClosedList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, closedListModelUpdateObject authoring.ClosedListModelUpdateObject) (result authoring.OperationStatus, err error)
+ UpdateClosedListEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject authoring.EntityRoleUpdateObject) (result authoring.OperationStatus, err error)
+ UpdateCompositeEntity(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, compositeModelUpdateObject authoring.CompositeEntityModel) (result authoring.OperationStatus, err error)
+ UpdateCompositeEntityRole(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject authoring.EntityRoleUpdateObject) (result authoring.OperationStatus, err error)
+ UpdateCustomPrebuiltEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject authoring.EntityRoleUpdateObject) (result authoring.OperationStatus, err error)
+ UpdateEntityChild(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityModelUpdateObject authoring.EntityModelUpdateObject) (result authoring.OperationStatus, err error)
+ UpdateEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject authoring.EntityRoleUpdateObject) (result authoring.OperationStatus, err error)
+ UpdateExplicitListItem(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, itemID int64, item authoring.ExplicitListItemUpdateObject) (result authoring.OperationStatus, err error)
+ UpdateHierarchicalEntity(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, modelUpdateObject authoring.ModelUpdateObject) (result authoring.OperationStatus, err error)
+ UpdateHierarchicalEntityChild(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, hChildID uuid.UUID, hierarchicalChildModelUpdateObject authoring.HierarchicalChildModelUpdateObject) (result authoring.OperationStatus, err error)
+ UpdateHierarchicalEntityRole(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject authoring.EntityRoleUpdateObject) (result authoring.OperationStatus, err error)
+ UpdateIntent(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, modelUpdateObject authoring.ModelUpdateObject) (result authoring.OperationStatus, err error)
+ UpdatePatternAnyEntityModel(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, patternAnyUpdateObject authoring.PatternAnyModelUpdateObject) (result authoring.OperationStatus, err error)
+ UpdatePatternAnyEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject authoring.EntityRoleUpdateObject) (result authoring.OperationStatus, err error)
+ UpdatePrebuiltEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject authoring.EntityRoleUpdateObject) (result authoring.OperationStatus, err error)
+ UpdateRegexEntityModel(ctx context.Context, appID uuid.UUID, versionID string, regexEntityID uuid.UUID, regexEntityUpdateObject authoring.RegexModelUpdateObject) (result authoring.OperationStatus, err error)
+ UpdateRegexEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject authoring.EntityRoleUpdateObject) (result authoring.OperationStatus, err error)
+ UpdateSubList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, subListID int64, wordListBaseUpdateObject authoring.WordListBaseUpdateObject) (result authoring.OperationStatus, err error)
+}
+
+var _ ModelClientAPI = (*authoring.ModelClient)(nil)
+
+// AppsClientAPI contains the set of methods on the AppsClient type.
+type AppsClientAPI interface {
+ Add(ctx context.Context, applicationCreateObject authoring.ApplicationCreateObject) (result authoring.UUID, err error)
+ AddCustomPrebuiltDomain(ctx context.Context, prebuiltDomainCreateObject authoring.PrebuiltDomainCreateObject) (result authoring.UUID, err error)
+ Delete(ctx context.Context, appID uuid.UUID, force *bool) (result authoring.OperationStatus, err error)
+ DownloadQueryLogs(ctx context.Context, appID uuid.UUID) (result authoring.ReadCloser, err error)
+ Get(ctx context.Context, appID uuid.UUID) (result authoring.ApplicationInfoResponse, err error)
+ GetPublishSettings(ctx context.Context, appID uuid.UUID) (result authoring.PublishSettings, err error)
+ GetSettings(ctx context.Context, appID uuid.UUID) (result authoring.ApplicationSettings, err error)
+ Import(ctx context.Context, luisApp authoring.LuisApp, appName string) (result authoring.UUID, err error)
+ List(ctx context.Context, skip *int32, take *int32) (result authoring.ListApplicationInfoResponse, err error)
+ ListAvailableCustomPrebuiltDomains(ctx context.Context) (result authoring.ListPrebuiltDomain, err error)
+ ListAvailableCustomPrebuiltDomainsForCulture(ctx context.Context, culture string) (result authoring.ListPrebuiltDomain, err error)
+ ListCortanaEndpoints(ctx context.Context) (result authoring.PersonalAssistantsResponse, err error)
+ ListDomains(ctx context.Context) (result authoring.ListString, err error)
+ ListEndpoints(ctx context.Context, appID uuid.UUID) (result authoring.SetString, err error)
+ ListSupportedCultures(ctx context.Context) (result authoring.ListAvailableCulture, err error)
+ ListUsageScenarios(ctx context.Context) (result authoring.ListString, err error)
+ PackagePublishedApplicationAsGzip(ctx context.Context, appID uuid.UUID, slotName string) (result authoring.ReadCloser, err error)
+ PackageTrainedApplicationAsGzip(ctx context.Context, appID uuid.UUID, versionID string) (result authoring.ReadCloser, err error)
+ Publish(ctx context.Context, appID uuid.UUID, applicationPublishObject authoring.ApplicationPublishObject) (result authoring.ProductionOrStagingEndpointInfo, err error)
+ Update(ctx context.Context, appID uuid.UUID, applicationUpdateObject authoring.ApplicationUpdateObject) (result authoring.OperationStatus, err error)
+ UpdatePublishSettings(ctx context.Context, appID uuid.UUID, publishSettingUpdateObject authoring.PublishSettingUpdateObject) (result authoring.OperationStatus, err error)
+ UpdateSettings(ctx context.Context, appID uuid.UUID, applicationSettingUpdateObject authoring.ApplicationSettingUpdateObject) (result authoring.OperationStatus, err error)
+}
+
+var _ AppsClientAPI = (*authoring.AppsClient)(nil)
+
+// VersionsClientAPI contains the set of methods on the VersionsClient type.
+type VersionsClientAPI interface {
+ Clone(ctx context.Context, appID uuid.UUID, versionID string, versionCloneObject authoring.TaskUpdateObject) (result authoring.String, err error)
+ Delete(ctx context.Context, appID uuid.UUID, versionID string) (result authoring.OperationStatus, err error)
+ DeleteUnlabelledUtterance(ctx context.Context, appID uuid.UUID, versionID string, utterance string) (result authoring.OperationStatus, err error)
+ Export(ctx context.Context, appID uuid.UUID, versionID string) (result authoring.LuisApp, err error)
+ Get(ctx context.Context, appID uuid.UUID, versionID string) (result authoring.VersionInfo, err error)
+ Import(ctx context.Context, appID uuid.UUID, luisApp authoring.LuisApp, versionID string) (result authoring.String, err error)
+ List(ctx context.Context, appID uuid.UUID, skip *int32, take *int32) (result authoring.ListVersionInfo, err error)
+ Update(ctx context.Context, appID uuid.UUID, versionID string, versionUpdateObject authoring.TaskUpdateObject) (result authoring.OperationStatus, err error)
+}
+
+var _ VersionsClientAPI = (*authoring.VersionsClient)(nil)
+
+// TrainClientAPI contains the set of methods on the TrainClient type.
+type TrainClientAPI interface {
+ GetStatus(ctx context.Context, appID uuid.UUID, versionID string) (result authoring.ListModelTrainingInfo, err error)
+ TrainVersion(ctx context.Context, appID uuid.UUID, versionID string) (result authoring.EnqueueTrainingResponse, err error)
+}
+
+var _ TrainClientAPI = (*authoring.TrainClient)(nil)
+
+// PermissionsClientAPI contains the set of methods on the PermissionsClient type.
+type PermissionsClientAPI interface {
+ Add(ctx context.Context, appID uuid.UUID, userToAdd authoring.UserCollaborator) (result authoring.OperationStatus, err error)
+ Delete(ctx context.Context, appID uuid.UUID, userToDelete authoring.UserCollaborator) (result authoring.OperationStatus, err error)
+ List(ctx context.Context, appID uuid.UUID) (result authoring.UserAccessList, err error)
+ Update(ctx context.Context, appID uuid.UUID, collaborators authoring.CollaboratorsArray) (result authoring.OperationStatus, err error)
+}
+
+var _ PermissionsClientAPI = (*authoring.PermissionsClient)(nil)
+
+// PatternClientAPI contains the set of methods on the PatternClient type.
+type PatternClientAPI interface {
+ AddPattern(ctx context.Context, appID uuid.UUID, versionID string, pattern authoring.PatternRuleCreateObject) (result authoring.PatternRuleInfo, err error)
+ BatchAddPatterns(ctx context.Context, appID uuid.UUID, versionID string, patterns []authoring.PatternRuleCreateObject) (result authoring.ListPatternRuleInfo, err error)
+ DeletePattern(ctx context.Context, appID uuid.UUID, versionID string, patternID uuid.UUID) (result authoring.OperationStatus, err error)
+ DeletePatterns(ctx context.Context, appID uuid.UUID, versionID string, patternIds []uuid.UUID) (result authoring.OperationStatus, err error)
+ ListIntentPatterns(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, skip *int32, take *int32) (result authoring.ListPatternRuleInfo, err error)
+ ListPatterns(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result authoring.ListPatternRuleInfo, err error)
+ UpdatePattern(ctx context.Context, appID uuid.UUID, versionID string, patternID uuid.UUID, pattern authoring.PatternRuleUpdateObject) (result authoring.PatternRuleInfo, err error)
+ UpdatePatterns(ctx context.Context, appID uuid.UUID, versionID string, patterns []authoring.PatternRuleUpdateObject) (result authoring.ListPatternRuleInfo, err error)
+}
+
+var _ PatternClientAPI = (*authoring.PatternClient)(nil)
+
+// SettingsClientAPI contains the set of methods on the SettingsClient type.
+type SettingsClientAPI interface {
+ List(ctx context.Context, appID uuid.UUID, versionID string) (result authoring.ListAppVersionSettingObject, err error)
+ Update(ctx context.Context, appID uuid.UUID, versionID string, listOfAppVersionSettingObject []authoring.AppVersionSettingObject) (result authoring.OperationStatus, err error)
+}
+
+var _ SettingsClientAPI = (*authoring.SettingsClient)(nil)
+
+// AzureAccountsClientAPI contains the set of methods on the AzureAccountsClient type.
+type AzureAccountsClientAPI interface {
+ AssignToApp(ctx context.Context, appID uuid.UUID, azureAccountInfoObject *authoring.AzureAccountInfoObject) (result authoring.OperationStatus, err error)
+ GetAssigned(ctx context.Context, appID uuid.UUID) (result authoring.ListAzureAccountInfoObject, err error)
+ ListUserLUISAccounts(ctx context.Context) (result authoring.ListAzureAccountInfoObject, err error)
+ RemoveFromApp(ctx context.Context, appID uuid.UUID, azureAccountInfoObject *authoring.AzureAccountInfoObject) (result authoring.OperationStatus, err error)
+}
+
+var _ AzureAccountsClientAPI = (*authoring.AzureAccountsClient)(nil)
diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/azureaccounts.go b/services/preview/cognitiveservices/v3.0/luis/authoring/azureaccounts.go
new file mode 100644
index 000000000000..0839f2f501f3
--- /dev/null
+++ b/services/preview/cognitiveservices/v3.0/luis/authoring/azureaccounts.go
@@ -0,0 +1,352 @@
+package authoring
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "github.com/satori/go.uuid"
+ "net/http"
+)
+
+// AzureAccountsClient is the client for the AzureAccounts methods of the Authoring service.
+type AzureAccountsClient struct {
+ BaseClient
+}
+
+// NewAzureAccountsClient creates an instance of the AzureAccountsClient client.
+func NewAzureAccountsClient(endpoint string) AzureAccountsClient {
+ return AzureAccountsClient{New(endpoint)}
+}
+
+// AssignToApp assigns an Azure account to the application.
+// Parameters:
+// appID - the application ID.
+// azureAccountInfoObject - the Azure account information object.
+func (client AzureAccountsClient) AssignToApp(ctx context.Context, appID uuid.UUID, azureAccountInfoObject *AzureAccountInfoObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AzureAccountsClient.AssignToApp")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: azureAccountInfoObject,
+ Constraints: []validation.Constraint{{Target: "azureAccountInfoObject", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "azureAccountInfoObject.AzureSubscriptionID", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "azureAccountInfoObject.ResourceGroup", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "azureAccountInfoObject.AccountName", Name: validation.Null, Rule: true, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.AzureAccountsClient", "AssignToApp", err.Error())
+ }
+
+ req, err := client.AssignToAppPreparer(ctx, appID, azureAccountInfoObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "AssignToApp", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AssignToAppSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "AssignToApp", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AssignToAppResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "AssignToApp", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AssignToAppPreparer prepares the AssignToApp request.
+func (client AzureAccountsClient) AssignToAppPreparer(ctx context.Context, appID uuid.UUID, azureAccountInfoObject *AzureAccountInfoObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/azureaccounts", pathParameters))
+ if azureAccountInfoObject != nil {
+ preparer = autorest.DecoratePreparer(preparer,
+ autorest.WithJSON(azureAccountInfoObject))
+ }
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// AssignToAppSender sends the AssignToApp request. The method will close the
+// http.Response Body if it receives an error.
+func (client AzureAccountsClient) AssignToAppSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AssignToAppResponder handles the response to the AssignToApp request. The method always
+// closes the http.Response Body.
+func (client AzureAccountsClient) AssignToAppResponder(resp *http.Response) (result OperationStatus, 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
+}
+
+// GetAssigned gets the LUIS Azure accounts assigned to the application for the user using his ARM token.
+// Parameters:
+// appID - the application ID.
+func (client AzureAccountsClient) GetAssigned(ctx context.Context, appID uuid.UUID) (result ListAzureAccountInfoObject, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AzureAccountsClient.GetAssigned")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetAssignedPreparer(ctx, appID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "GetAssigned", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetAssignedSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "GetAssigned", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetAssignedResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "GetAssigned", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetAssignedPreparer prepares the GetAssigned request.
+func (client AzureAccountsClient) GetAssignedPreparer(ctx context.Context, appID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/azureaccounts", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetAssignedSender sends the GetAssigned request. The method will close the
+// http.Response Body if it receives an error.
+func (client AzureAccountsClient) GetAssignedSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetAssignedResponder handles the response to the GetAssigned request. The method always
+// closes the http.Response Body.
+func (client AzureAccountsClient) GetAssignedResponder(resp *http.Response) (result ListAzureAccountInfoObject, 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
+}
+
+// ListUserLUISAccounts gets the LUIS Azure accounts for the user using his ARM token.
+func (client AzureAccountsClient) ListUserLUISAccounts(ctx context.Context) (result ListAzureAccountInfoObject, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AzureAccountsClient.ListUserLUISAccounts")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListUserLUISAccountsPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "ListUserLUISAccounts", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListUserLUISAccountsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "ListUserLUISAccounts", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListUserLUISAccountsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "ListUserLUISAccounts", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListUserLUISAccountsPreparer prepares the ListUserLUISAccounts request.
+func (client AzureAccountsClient) ListUserLUISAccountsPreparer(ctx context.Context) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPath("/azureaccounts"))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListUserLUISAccountsSender sends the ListUserLUISAccounts request. The method will close the
+// http.Response Body if it receives an error.
+func (client AzureAccountsClient) ListUserLUISAccountsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListUserLUISAccountsResponder handles the response to the ListUserLUISAccounts request. The method always
+// closes the http.Response Body.
+func (client AzureAccountsClient) ListUserLUISAccountsResponder(resp *http.Response) (result ListAzureAccountInfoObject, 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
+}
+
+// RemoveFromApp removes assigned Azure account from the application.
+// Parameters:
+// appID - the application ID.
+// azureAccountInfoObject - the Azure account information object.
+func (client AzureAccountsClient) RemoveFromApp(ctx context.Context, appID uuid.UUID, azureAccountInfoObject *AzureAccountInfoObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AzureAccountsClient.RemoveFromApp")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: azureAccountInfoObject,
+ Constraints: []validation.Constraint{{Target: "azureAccountInfoObject", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "azureAccountInfoObject.AzureSubscriptionID", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "azureAccountInfoObject.ResourceGroup", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "azureAccountInfoObject.AccountName", Name: validation.Null, Rule: true, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.AzureAccountsClient", "RemoveFromApp", err.Error())
+ }
+
+ req, err := client.RemoveFromAppPreparer(ctx, appID, azureAccountInfoObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "RemoveFromApp", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.RemoveFromAppSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "RemoveFromApp", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.RemoveFromAppResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.AzureAccountsClient", "RemoveFromApp", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// RemoveFromAppPreparer prepares the RemoveFromApp request.
+func (client AzureAccountsClient) RemoveFromAppPreparer(ctx context.Context, appID uuid.UUID, azureAccountInfoObject *AzureAccountInfoObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/azureaccounts", pathParameters))
+ if azureAccountInfoObject != nil {
+ preparer = autorest.DecoratePreparer(preparer,
+ autorest.WithJSON(azureAccountInfoObject))
+ }
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// RemoveFromAppSender sends the RemoveFromApp request. The method will close the
+// http.Response Body if it receives an error.
+func (client AzureAccountsClient) RemoveFromAppSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// RemoveFromAppResponder handles the response to the RemoveFromApp request. The method always
+// closes the http.Response Body.
+func (client AzureAccountsClient) RemoveFromAppResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/client.go b/services/preview/cognitiveservices/v3.0/luis/authoring/client.go
new file mode 100644
index 000000000000..52070803a823
--- /dev/null
+++ b/services/preview/cognitiveservices/v3.0/luis/authoring/client.go
@@ -0,0 +1,44 @@
+// Package authoring implements the Azure ARM Authoring service API version 3.0-preview.
+//
+//
+package authoring
+
+// 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 (
+ "github.com/Azure/go-autorest/autorest"
+)
+
+// BaseClient is the base client for Authoring.
+type BaseClient struct {
+ autorest.Client
+ Endpoint string
+}
+
+// New creates an instance of the BaseClient client.
+func New(endpoint string) BaseClient {
+ return NewWithoutDefaults(endpoint)
+}
+
+// NewWithoutDefaults creates an instance of the BaseClient client.
+func NewWithoutDefaults(endpoint string) BaseClient {
+ return BaseClient{
+ Client: autorest.NewClientWithUserAgent(UserAgent()),
+ Endpoint: endpoint,
+ }
+}
diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/examples.go b/services/preview/cognitiveservices/v3.0/luis/authoring/examples.go
new file mode 100644
index 000000000000..8fe2b086e25c
--- /dev/null
+++ b/services/preview/cognitiveservices/v3.0/luis/authoring/examples.go
@@ -0,0 +1,375 @@
+package authoring
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "github.com/satori/go.uuid"
+ "net/http"
+)
+
+// ExamplesClient is the client for the Examples methods of the Authoring service.
+type ExamplesClient struct {
+ BaseClient
+}
+
+// NewExamplesClient creates an instance of the ExamplesClient client.
+func NewExamplesClient(endpoint string) ExamplesClient {
+ return ExamplesClient{New(endpoint)}
+}
+
+// Add adds a labeled example utterance in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// exampleLabelObject - a labeled example utterance with the expected intent and entities.
+func (client ExamplesClient) Add(ctx context.Context, appID uuid.UUID, versionID string, exampleLabelObject ExampleLabelObject) (result LabelExampleResponse, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExamplesClient.Add")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.AddPreparer(ctx, appID, versionID, exampleLabelObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "Add", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AddSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "Add", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AddResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "Add", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AddPreparer prepares the Add request.
+func (client ExamplesClient) AddPreparer(ctx context.Context, appID uuid.UUID, versionID string, exampleLabelObject ExampleLabelObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/example", pathParameters),
+ autorest.WithJSON(exampleLabelObject))
+ 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 ExamplesClient) AddSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AddResponder handles the response to the Add request. The method always
+// closes the http.Response Body.
+func (client ExamplesClient) AddResponder(resp *http.Response) (result LabelExampleResponse, 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
+}
+
+// Batch adds a batch of labeled example utterances to a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// exampleLabelObjectArray - array of example utterances.
+func (client ExamplesClient) Batch(ctx context.Context, appID uuid.UUID, versionID string, exampleLabelObjectArray []ExampleLabelObject) (result ListBatchLabelExample, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExamplesClient.Batch")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: exampleLabelObjectArray,
+ Constraints: []validation.Constraint{{Target: "exampleLabelObjectArray", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("authoring.ExamplesClient", "Batch", err.Error())
+ }
+
+ req, err := client.BatchPreparer(ctx, appID, versionID, exampleLabelObjectArray)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "Batch", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.BatchSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "Batch", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.BatchResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "Batch", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// BatchPreparer prepares the Batch request.
+func (client ExamplesClient) BatchPreparer(ctx context.Context, appID uuid.UUID, versionID string, exampleLabelObjectArray []ExampleLabelObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/examples", pathParameters),
+ autorest.WithJSON(exampleLabelObjectArray))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// BatchSender sends the Batch request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExamplesClient) BatchSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// BatchResponder handles the response to the Batch request. The method always
+// closes the http.Response Body.
+func (client ExamplesClient) BatchResponder(resp *http.Response) (result ListBatchLabelExample, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusMultiStatus),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the labeled example utterances with the specified ID from a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// exampleID - the example ID.
+func (client ExamplesClient) Delete(ctx context.Context, appID uuid.UUID, versionID string, exampleID int32) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExamplesClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, appID, versionID, exampleID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "Delete", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "Delete", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ExamplesClient) DeletePreparer(ctx context.Context, appID uuid.UUID, versionID string, exampleID int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "exampleId": autorest.Encode("path", exampleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/examples/{exampleId}", pathParameters))
+ 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 ExamplesClient) DeleteSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ExamplesClient) DeleteResponder(resp *http.Response) (result OperationStatus, 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 returns example utterances to be reviewed from a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// skip - the number of entries to skip. Default value is 0.
+// take - the number of entries to return. Maximum page size is 500. Default is 100.
+func (client ExamplesClient) List(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListLabeledUtterance, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExamplesClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: skip,
+ Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}},
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(500), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.ExamplesClient", "List", err.Error())
+ }
+
+ req, err := client.ListPreparer(ctx, appID, versionID, skip, take)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ExamplesClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ExamplesClient) ListPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 100)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/examples", 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 ExamplesClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ExamplesClient) ListResponder(resp *http.Response) (result ListLabeledUtterance, 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
+}
diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/features.go b/services/preview/cognitiveservices/v3.0/luis/authoring/features.go
new file mode 100644
index 000000000000..58c6067d6245
--- /dev/null
+++ b/services/preview/cognitiveservices/v3.0/luis/authoring/features.go
@@ -0,0 +1,712 @@
+package authoring
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "github.com/satori/go.uuid"
+ "net/http"
+)
+
+// FeaturesClient is the client for the Features methods of the Authoring service.
+type FeaturesClient struct {
+ BaseClient
+}
+
+// NewFeaturesClient creates an instance of the FeaturesClient client.
+func NewFeaturesClient(endpoint string) FeaturesClient {
+ return FeaturesClient{New(endpoint)}
+}
+
+// AddEntityFeature adds a new feature relation to be used by the entity in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity extractor ID.
+// featureRelationCreateObject - a Feature relation information object.
+func (client FeaturesClient) AddEntityFeature(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, featureRelationCreateObject ModelFeatureInformation) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FeaturesClient.AddEntityFeature")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.AddEntityFeaturePreparer(ctx, appID, versionID, entityID, featureRelationCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "AddEntityFeature", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AddEntityFeatureSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "AddEntityFeature", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AddEntityFeatureResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "AddEntityFeature", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AddEntityFeaturePreparer prepares the AddEntityFeature request.
+func (client FeaturesClient) AddEntityFeaturePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, featureRelationCreateObject ModelFeatureInformation) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/entities/{entityId}/features", pathParameters),
+ autorest.WithJSON(featureRelationCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// AddEntityFeatureSender sends the AddEntityFeature request. The method will close the
+// http.Response Body if it receives an error.
+func (client FeaturesClient) AddEntityFeatureSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AddEntityFeatureResponder handles the response to the AddEntityFeature request. The method always
+// closes the http.Response Body.
+func (client FeaturesClient) AddEntityFeatureResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// AddIntentFeature adds a new feature relation to be used by the intent in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// intentID - the intent classifier ID.
+// featureRelationCreateObject - a Feature relation information object.
+func (client FeaturesClient) AddIntentFeature(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, featureRelationCreateObject ModelFeatureInformation) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FeaturesClient.AddIntentFeature")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.AddIntentFeaturePreparer(ctx, appID, versionID, intentID, featureRelationCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "AddIntentFeature", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AddIntentFeatureSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "AddIntentFeature", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AddIntentFeatureResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "AddIntentFeature", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AddIntentFeaturePreparer prepares the AddIntentFeature request.
+func (client FeaturesClient) AddIntentFeaturePreparer(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, featureRelationCreateObject ModelFeatureInformation) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "intentId": autorest.Encode("path", intentID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/intents/{intentId}/features", pathParameters),
+ autorest.WithJSON(featureRelationCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// AddIntentFeatureSender sends the AddIntentFeature request. The method will close the
+// http.Response Body if it receives an error.
+func (client FeaturesClient) AddIntentFeatureSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AddIntentFeatureResponder handles the response to the AddIntentFeature request. The method always
+// closes the http.Response Body.
+func (client FeaturesClient) AddIntentFeatureResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// AddPhraseList creates a new phraselist feature in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// phraselistCreateObject - a Phraselist object containing Name, comma-separated Phrases and the isExchangeable
+// boolean. Default value for isExchangeable is true.
+func (client FeaturesClient) AddPhraseList(ctx context.Context, appID uuid.UUID, versionID string, phraselistCreateObject PhraselistCreateObject) (result Int32, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FeaturesClient.AddPhraseList")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.AddPhraseListPreparer(ctx, appID, versionID, phraselistCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "AddPhraseList", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AddPhraseListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "AddPhraseList", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AddPhraseListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "AddPhraseList", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AddPhraseListPreparer prepares the AddPhraseList request.
+func (client FeaturesClient) AddPhraseListPreparer(ctx context.Context, appID uuid.UUID, versionID string, phraselistCreateObject PhraselistCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/phraselists", pathParameters),
+ autorest.WithJSON(phraselistCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// AddPhraseListSender sends the AddPhraseList request. The method will close the
+// http.Response Body if it receives an error.
+func (client FeaturesClient) AddPhraseListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AddPhraseListResponder handles the response to the AddPhraseList request. The method always
+// closes the http.Response Body.
+func (client FeaturesClient) AddPhraseListResponder(resp *http.Response) (result Int32, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeletePhraseList deletes a phraselist feature from a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// phraselistID - the ID of the feature to be deleted.
+func (client FeaturesClient) DeletePhraseList(ctx context.Context, appID uuid.UUID, versionID string, phraselistID int32) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FeaturesClient.DeletePhraseList")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePhraseListPreparer(ctx, appID, versionID, phraselistID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "DeletePhraseList", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeletePhraseListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "DeletePhraseList", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeletePhraseListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "DeletePhraseList", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePhraseListPreparer prepares the DeletePhraseList request.
+func (client FeaturesClient) DeletePhraseListPreparer(ctx context.Context, appID uuid.UUID, versionID string, phraselistID int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "phraselistId": autorest.Encode("path", phraselistID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/phraselists/{phraselistId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeletePhraseListSender sends the DeletePhraseList request. The method will close the
+// http.Response Body if it receives an error.
+func (client FeaturesClient) DeletePhraseListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeletePhraseListResponder handles the response to the DeletePhraseList request. The method always
+// closes the http.Response Body.
+func (client FeaturesClient) DeletePhraseListResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetPhraseList gets phraselist feature info in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// phraselistID - the ID of the feature to be retrieved.
+func (client FeaturesClient) GetPhraseList(ctx context.Context, appID uuid.UUID, versionID string, phraselistID int32) (result PhraseListFeatureInfo, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FeaturesClient.GetPhraseList")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPhraseListPreparer(ctx, appID, versionID, phraselistID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "GetPhraseList", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetPhraseListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "GetPhraseList", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetPhraseListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "GetPhraseList", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPhraseListPreparer prepares the GetPhraseList request.
+func (client FeaturesClient) GetPhraseListPreparer(ctx context.Context, appID uuid.UUID, versionID string, phraselistID int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "phraselistId": autorest.Encode("path", phraselistID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/phraselists/{phraselistId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetPhraseListSender sends the GetPhraseList request. The method will close the
+// http.Response Body if it receives an error.
+func (client FeaturesClient) GetPhraseListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetPhraseListResponder handles the response to the GetPhraseList request. The method always
+// closes the http.Response Body.
+func (client FeaturesClient) GetPhraseListResponder(resp *http.Response) (result PhraseListFeatureInfo, 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 all the extraction phraselist and pattern features in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// skip - the number of entries to skip. Default value is 0.
+// take - the number of entries to return. Maximum page size is 500. Default is 100.
+func (client FeaturesClient) List(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result FeaturesResponseObject, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FeaturesClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: skip,
+ Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}},
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(500), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.FeaturesClient", "List", err.Error())
+ }
+
+ req, err := client.ListPreparer(ctx, appID, versionID, skip, take)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client FeaturesClient) ListPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 100)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/features", 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 FeaturesClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client FeaturesClient) ListResponder(resp *http.Response) (result FeaturesResponseObject, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListPhraseLists gets all the phraselist features in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// skip - the number of entries to skip. Default value is 0.
+// take - the number of entries to return. Maximum page size is 500. Default is 100.
+func (client FeaturesClient) ListPhraseLists(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListPhraseListFeatureInfo, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FeaturesClient.ListPhraseLists")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: skip,
+ Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}},
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(500), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.FeaturesClient", "ListPhraseLists", err.Error())
+ }
+
+ req, err := client.ListPhraseListsPreparer(ctx, appID, versionID, skip, take)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "ListPhraseLists", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListPhraseListsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "ListPhraseLists", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListPhraseListsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "ListPhraseLists", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPhraseListsPreparer prepares the ListPhraseLists request.
+func (client FeaturesClient) ListPhraseListsPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 100)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/phraselists", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListPhraseListsSender sends the ListPhraseLists request. The method will close the
+// http.Response Body if it receives an error.
+func (client FeaturesClient) ListPhraseListsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListPhraseListsResponder handles the response to the ListPhraseLists request. The method always
+// closes the http.Response Body.
+func (client FeaturesClient) ListPhraseListsResponder(resp *http.Response) (result ListPhraseListFeatureInfo, 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
+}
+
+// UpdatePhraseList updates the phrases, the state and the name of the phraselist feature in a version of the
+// application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// phraselistID - the ID of the feature to be updated.
+// phraselistUpdateObject - the new values for: - Just a boolean called IsActive, in which case the status of
+// the feature will be changed. - Name, Pattern, Mode, and a boolean called IsActive to update the feature.
+func (client FeaturesClient) UpdatePhraseList(ctx context.Context, appID uuid.UUID, versionID string, phraselistID int32, phraselistUpdateObject *PhraselistUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/FeaturesClient.UpdatePhraseList")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdatePhraseListPreparer(ctx, appID, versionID, phraselistID, phraselistUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "UpdatePhraseList", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdatePhraseListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "UpdatePhraseList", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdatePhraseListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.FeaturesClient", "UpdatePhraseList", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdatePhraseListPreparer prepares the UpdatePhraseList request.
+func (client FeaturesClient) UpdatePhraseListPreparer(ctx context.Context, appID uuid.UUID, versionID string, phraselistID int32, phraselistUpdateObject *PhraselistUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "phraselistId": autorest.Encode("path", phraselistID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/phraselists/{phraselistId}", pathParameters))
+ if phraselistUpdateObject != nil {
+ preparer = autorest.DecoratePreparer(preparer,
+ autorest.WithJSON(phraselistUpdateObject))
+ }
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdatePhraseListSender sends the UpdatePhraseList request. The method will close the
+// http.Response Body if it receives an error.
+func (client FeaturesClient) UpdatePhraseListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdatePhraseListResponder handles the response to the UpdatePhraseList request. The method always
+// closes the http.Response Body.
+func (client FeaturesClient) UpdatePhraseListResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/model.go b/services/preview/cognitiveservices/v3.0/luis/authoring/model.go
new file mode 100644
index 000000000000..eebc34e1e621
--- /dev/null
+++ b/services/preview/cognitiveservices/v3.0/luis/authoring/model.go
@@ -0,0 +1,8902 @@
+package authoring
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "github.com/satori/go.uuid"
+ "net/http"
+)
+
+// ModelClient is the client for the Model methods of the Authoring service.
+type ModelClient struct {
+ BaseClient
+}
+
+// NewModelClient creates an instance of the ModelClient client.
+func NewModelClient(endpoint string) ModelClient {
+ return ModelClient{New(endpoint)}
+}
+
+// AddClosedList adds a list entity model to a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// closedListModelCreateObject - a model containing the name and words for the new list entity extractor.
+func (client ModelClient) AddClosedList(ctx context.Context, appID uuid.UUID, versionID string, closedListModelCreateObject ClosedListModelCreateObject) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.AddClosedList")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.AddClosedListPreparer(ctx, appID, versionID, closedListModelCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddClosedList", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AddClosedListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddClosedList", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AddClosedListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddClosedList", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AddClosedListPreparer prepares the AddClosedList request.
+func (client ModelClient) AddClosedListPreparer(ctx context.Context, appID uuid.UUID, versionID string, closedListModelCreateObject ClosedListModelCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/closedlists", pathParameters),
+ autorest.WithJSON(closedListModelCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// AddClosedListSender sends the AddClosedList request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) AddClosedListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AddClosedListResponder handles the response to the AddClosedList request. The method always
+// closes the http.Response Body.
+func (client ModelClient) AddClosedListResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// AddCompositeEntityChild creates a single child in an existing composite entity model in a version of the
+// application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// cEntityID - the composite entity extractor ID.
+// compositeChildModelCreateObject - a model object containing the name of the new composite child model.
+func (client ModelClient) AddCompositeEntityChild(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, compositeChildModelCreateObject CompositeChildModelCreateObject) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.AddCompositeEntityChild")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.AddCompositeEntityChildPreparer(ctx, appID, versionID, cEntityID, compositeChildModelCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCompositeEntityChild", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AddCompositeEntityChildSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCompositeEntityChild", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AddCompositeEntityChildResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCompositeEntityChild", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AddCompositeEntityChildPreparer prepares the AddCompositeEntityChild request.
+func (client ModelClient) AddCompositeEntityChildPreparer(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, compositeChildModelCreateObject CompositeChildModelCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "cEntityId": autorest.Encode("path", cEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children", pathParameters),
+ autorest.WithJSON(compositeChildModelCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// AddCompositeEntityChildSender sends the AddCompositeEntityChild request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) AddCompositeEntityChildSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AddCompositeEntityChildResponder handles the response to the AddCompositeEntityChild request. The method always
+// closes the http.Response Body.
+func (client ModelClient) AddCompositeEntityChildResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// AddCustomPrebuiltDomain adds a customizable prebuilt domain along with all of its intent and entity models in a
+// version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// prebuiltDomainObject - a prebuilt domain create object containing the name of the domain.
+func (client ModelClient) AddCustomPrebuiltDomain(ctx context.Context, appID uuid.UUID, versionID string, prebuiltDomainObject PrebuiltDomainCreateBaseObject) (result ListUUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.AddCustomPrebuiltDomain")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.AddCustomPrebuiltDomainPreparer(ctx, appID, versionID, prebuiltDomainObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCustomPrebuiltDomain", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AddCustomPrebuiltDomainSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCustomPrebuiltDomain", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AddCustomPrebuiltDomainResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCustomPrebuiltDomain", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AddCustomPrebuiltDomainPreparer prepares the AddCustomPrebuiltDomain request.
+func (client ModelClient) AddCustomPrebuiltDomainPreparer(ctx context.Context, appID uuid.UUID, versionID string, prebuiltDomainObject PrebuiltDomainCreateBaseObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/customprebuiltdomains", pathParameters),
+ autorest.WithJSON(prebuiltDomainObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// AddCustomPrebuiltDomainSender sends the AddCustomPrebuiltDomain request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) AddCustomPrebuiltDomainSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AddCustomPrebuiltDomainResponder handles the response to the AddCustomPrebuiltDomain request. The method always
+// closes the http.Response Body.
+func (client ModelClient) AddCustomPrebuiltDomainResponder(resp *http.Response) (result ListUUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// AddCustomPrebuiltEntity adds a prebuilt entity model to a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// prebuiltDomainModelCreateObject - a model object containing the name of the prebuilt entity and the name of
+// the domain to which this model belongs.
+func (client ModelClient) AddCustomPrebuiltEntity(ctx context.Context, appID uuid.UUID, versionID string, prebuiltDomainModelCreateObject PrebuiltDomainModelCreateObject) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.AddCustomPrebuiltEntity")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.AddCustomPrebuiltEntityPreparer(ctx, appID, versionID, prebuiltDomainModelCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCustomPrebuiltEntity", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AddCustomPrebuiltEntitySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCustomPrebuiltEntity", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AddCustomPrebuiltEntityResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCustomPrebuiltEntity", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AddCustomPrebuiltEntityPreparer prepares the AddCustomPrebuiltEntity request.
+func (client ModelClient) AddCustomPrebuiltEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, prebuiltDomainModelCreateObject PrebuiltDomainModelCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/customprebuiltentities", pathParameters),
+ autorest.WithJSON(prebuiltDomainModelCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// AddCustomPrebuiltEntitySender sends the AddCustomPrebuiltEntity request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) AddCustomPrebuiltEntitySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AddCustomPrebuiltEntityResponder handles the response to the AddCustomPrebuiltEntity request. The method always
+// closes the http.Response Body.
+func (client ModelClient) AddCustomPrebuiltEntityResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// AddCustomPrebuiltIntent adds a customizable prebuilt intent model to a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// prebuiltDomainModelCreateObject - a model object containing the name of the customizable prebuilt intent and
+// the name of the domain to which this model belongs.
+func (client ModelClient) AddCustomPrebuiltIntent(ctx context.Context, appID uuid.UUID, versionID string, prebuiltDomainModelCreateObject PrebuiltDomainModelCreateObject) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.AddCustomPrebuiltIntent")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.AddCustomPrebuiltIntentPreparer(ctx, appID, versionID, prebuiltDomainModelCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCustomPrebuiltIntent", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AddCustomPrebuiltIntentSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCustomPrebuiltIntent", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AddCustomPrebuiltIntentResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddCustomPrebuiltIntent", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AddCustomPrebuiltIntentPreparer prepares the AddCustomPrebuiltIntent request.
+func (client ModelClient) AddCustomPrebuiltIntentPreparer(ctx context.Context, appID uuid.UUID, versionID string, prebuiltDomainModelCreateObject PrebuiltDomainModelCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/customprebuiltintents", pathParameters),
+ autorest.WithJSON(prebuiltDomainModelCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// AddCustomPrebuiltIntentSender sends the AddCustomPrebuiltIntent request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) AddCustomPrebuiltIntentSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AddCustomPrebuiltIntentResponder handles the response to the AddCustomPrebuiltIntent request. The method always
+// closes the http.Response Body.
+func (client ModelClient) AddCustomPrebuiltIntentResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// AddEntity adds an entity extractor to a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityModelCreateObject - a model object containing the name of the new entity extractor and its children.
+func (client ModelClient) AddEntity(ctx context.Context, appID uuid.UUID, versionID string, entityModelCreateObject EntityModelCreateObject) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.AddEntity")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.AddEntityPreparer(ctx, appID, versionID, entityModelCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddEntity", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AddEntitySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddEntity", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AddEntityResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddEntity", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AddEntityPreparer prepares the AddEntity request.
+func (client ModelClient) AddEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityModelCreateObject EntityModelCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/entities", pathParameters),
+ autorest.WithJSON(entityModelCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// AddEntitySender sends the AddEntity request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) AddEntitySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AddEntityResponder handles the response to the AddEntity request. The method always
+// closes the http.Response Body.
+func (client ModelClient) AddEntityResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// AddEntityChild creates a single child in an existing entity model hierarchy in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity extractor ID.
+// childEntityModelCreateObject - a model object containing the name of the new child model and its children.
+func (client ModelClient) AddEntityChild(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, childEntityModelCreateObject ChildEntityModelCreateObject) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.AddEntityChild")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.AddEntityChildPreparer(ctx, appID, versionID, entityID, childEntityModelCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddEntityChild", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AddEntityChildSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddEntityChild", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AddEntityChildResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddEntityChild", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AddEntityChildPreparer prepares the AddEntityChild request.
+func (client ModelClient) AddEntityChildPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, childEntityModelCreateObject ChildEntityModelCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/entities/{entityId}/children", pathParameters),
+ autorest.WithJSON(childEntityModelCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// AddEntityChildSender sends the AddEntityChild request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) AddEntityChildSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AddEntityChildResponder handles the response to the AddEntityChild request. The method always
+// closes the http.Response Body.
+func (client ModelClient) AddEntityChildResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// AddExplicitListItem sends the add explicit list item request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the Pattern.Any entity extractor ID.
+// item - the new explicit list item.
+func (client ModelClient) AddExplicitListItem(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, item ExplicitListItemCreateObject) (result Int32, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.AddExplicitListItem")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.AddExplicitListItemPreparer(ctx, appID, versionID, entityID, item)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddExplicitListItem", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AddExplicitListItemSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddExplicitListItem", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AddExplicitListItemResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddExplicitListItem", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AddExplicitListItemPreparer prepares the AddExplicitListItem request.
+func (client ModelClient) AddExplicitListItemPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, item ExplicitListItemCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist", pathParameters),
+ autorest.WithJSON(item))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// AddExplicitListItemSender sends the AddExplicitListItem request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) AddExplicitListItemSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AddExplicitListItemResponder handles the response to the AddExplicitListItem request. The method always
+// closes the http.Response Body.
+func (client ModelClient) AddExplicitListItemResponder(resp *http.Response) (result Int32, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// AddIntent adds an intent to a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// intentCreateObject - a model object containing the name of the new intent.
+func (client ModelClient) AddIntent(ctx context.Context, appID uuid.UUID, versionID string, intentCreateObject ModelCreateObject) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.AddIntent")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.AddIntentPreparer(ctx, appID, versionID, intentCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddIntent", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AddIntentSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddIntent", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AddIntentResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddIntent", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AddIntentPreparer prepares the AddIntent request.
+func (client ModelClient) AddIntentPreparer(ctx context.Context, appID uuid.UUID, versionID string, intentCreateObject ModelCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/intents", pathParameters),
+ autorest.WithJSON(intentCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// AddIntentSender sends the AddIntent request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) AddIntentSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AddIntentResponder handles the response to the AddIntent request. The method always
+// closes the http.Response Body.
+func (client ModelClient) AddIntentResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// AddPrebuilt adds a list of prebuilt entities to a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// prebuiltExtractorNames - an array of prebuilt entity extractor names.
+func (client ModelClient) AddPrebuilt(ctx context.Context, appID uuid.UUID, versionID string, prebuiltExtractorNames []string) (result ListPrebuiltEntityExtractor, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.AddPrebuilt")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: prebuiltExtractorNames,
+ Constraints: []validation.Constraint{{Target: "prebuiltExtractorNames", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("authoring.ModelClient", "AddPrebuilt", err.Error())
+ }
+
+ req, err := client.AddPrebuiltPreparer(ctx, appID, versionID, prebuiltExtractorNames)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddPrebuilt", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AddPrebuiltSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddPrebuilt", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AddPrebuiltResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddPrebuilt", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AddPrebuiltPreparer prepares the AddPrebuilt request.
+func (client ModelClient) AddPrebuiltPreparer(ctx context.Context, appID uuid.UUID, versionID string, prebuiltExtractorNames []string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/prebuilts", pathParameters),
+ autorest.WithJSON(prebuiltExtractorNames))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// AddPrebuiltSender sends the AddPrebuilt request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) AddPrebuiltSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AddPrebuiltResponder handles the response to the AddPrebuilt request. The method always
+// closes the http.Response Body.
+func (client ModelClient) AddPrebuiltResponder(resp *http.Response) (result ListPrebuiltEntityExtractor, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// AddSubList adds a sublist to an existing list entity in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// clEntityID - the list entity extractor ID.
+// wordListCreateObject - words list.
+func (client ModelClient) AddSubList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, wordListCreateObject WordListObject) (result Int64, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.AddSubList")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.AddSubListPreparer(ctx, appID, versionID, clEntityID, wordListCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddSubList", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AddSubListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddSubList", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AddSubListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "AddSubList", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AddSubListPreparer prepares the AddSubList request.
+func (client ModelClient) AddSubListPreparer(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, wordListCreateObject WordListObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "clEntityId": autorest.Encode("path", clEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists", pathParameters),
+ autorest.WithJSON(wordListCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// AddSubListSender sends the AddSubList request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) AddSubListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AddSubListResponder handles the response to the AddSubList request. The method always
+// closes the http.Response Body.
+func (client ModelClient) AddSubListResponder(resp *http.Response) (result Int64, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreateClosedListEntityRole sends the create closed list entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity model ID.
+// entityRoleCreateObject - an entity role object containing the name of role.
+func (client ModelClient) CreateClosedListEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityRoleCreateObject EntityRoleCreateObject) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.CreateClosedListEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateClosedListEntityRolePreparer(ctx, appID, versionID, entityID, entityRoleCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateClosedListEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateClosedListEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateClosedListEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateClosedListEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateClosedListEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateClosedListEntityRolePreparer prepares the CreateClosedListEntityRole request.
+func (client ModelClient) CreateClosedListEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityRoleCreateObject EntityRoleCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles", pathParameters),
+ autorest.WithJSON(entityRoleCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateClosedListEntityRoleSender sends the CreateClosedListEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) CreateClosedListEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateClosedListEntityRoleResponder handles the response to the CreateClosedListEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) CreateClosedListEntityRoleResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreateCompositeEntityRole sends the create composite entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// cEntityID - the composite entity extractor ID.
+// entityRoleCreateObject - an entity role object containing the name of role.
+func (client ModelClient) CreateCompositeEntityRole(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, entityRoleCreateObject EntityRoleCreateObject) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.CreateCompositeEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateCompositeEntityRolePreparer(ctx, appID, versionID, cEntityID, entityRoleCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateCompositeEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateCompositeEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateCompositeEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateCompositeEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateCompositeEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateCompositeEntityRolePreparer prepares the CreateCompositeEntityRole request.
+func (client ModelClient) CreateCompositeEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, entityRoleCreateObject EntityRoleCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "cEntityId": autorest.Encode("path", cEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles", pathParameters),
+ autorest.WithJSON(entityRoleCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateCompositeEntityRoleSender sends the CreateCompositeEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) CreateCompositeEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateCompositeEntityRoleResponder handles the response to the CreateCompositeEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) CreateCompositeEntityRoleResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreateCustomPrebuiltEntityRole sends the create custom prebuilt entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity model ID.
+// entityRoleCreateObject - an entity role object containing the name of role.
+func (client ModelClient) CreateCustomPrebuiltEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityRoleCreateObject EntityRoleCreateObject) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.CreateCustomPrebuiltEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateCustomPrebuiltEntityRolePreparer(ctx, appID, versionID, entityID, entityRoleCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateCustomPrebuiltEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateCustomPrebuiltEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateCustomPrebuiltEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateCustomPrebuiltEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateCustomPrebuiltEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateCustomPrebuiltEntityRolePreparer prepares the CreateCustomPrebuiltEntityRole request.
+func (client ModelClient) CreateCustomPrebuiltEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityRoleCreateObject EntityRoleCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles", pathParameters),
+ autorest.WithJSON(entityRoleCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateCustomPrebuiltEntityRoleSender sends the CreateCustomPrebuiltEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) CreateCustomPrebuiltEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateCustomPrebuiltEntityRoleResponder handles the response to the CreateCustomPrebuiltEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) CreateCustomPrebuiltEntityRoleResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreateEntityRole sends the create entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity model ID.
+// entityRoleCreateObject - an entity role object containing the name of role.
+func (client ModelClient) CreateEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityRoleCreateObject EntityRoleCreateObject) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.CreateEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateEntityRolePreparer(ctx, appID, versionID, entityID, entityRoleCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateEntityRolePreparer prepares the CreateEntityRole request.
+func (client ModelClient) CreateEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityRoleCreateObject EntityRoleCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/entities/{entityId}/roles", pathParameters),
+ autorest.WithJSON(entityRoleCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateEntityRoleSender sends the CreateEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) CreateEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateEntityRoleResponder handles the response to the CreateEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) CreateEntityRoleResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreateHierarchicalEntityRole sends the create hierarchical entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// hEntityID - the hierarchical entity extractor ID.
+// entityRoleCreateObject - an entity role object containing the name of role.
+func (client ModelClient) CreateHierarchicalEntityRole(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, entityRoleCreateObject EntityRoleCreateObject) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.CreateHierarchicalEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateHierarchicalEntityRolePreparer(ctx, appID, versionID, hEntityID, entityRoleCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateHierarchicalEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateHierarchicalEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateHierarchicalEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateHierarchicalEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateHierarchicalEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateHierarchicalEntityRolePreparer prepares the CreateHierarchicalEntityRole request.
+func (client ModelClient) CreateHierarchicalEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, entityRoleCreateObject EntityRoleCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "hEntityId": autorest.Encode("path", hEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles", pathParameters),
+ autorest.WithJSON(entityRoleCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateHierarchicalEntityRoleSender sends the CreateHierarchicalEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) CreateHierarchicalEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateHierarchicalEntityRoleResponder handles the response to the CreateHierarchicalEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) CreateHierarchicalEntityRoleResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreatePatternAnyEntityModel sends the create pattern any entity model request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// extractorCreateObject - a model object containing the name and explicit list for the new Pattern.Any entity
+// extractor.
+func (client ModelClient) CreatePatternAnyEntityModel(ctx context.Context, appID uuid.UUID, versionID string, extractorCreateObject PatternAnyModelCreateObject) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.CreatePatternAnyEntityModel")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreatePatternAnyEntityModelPreparer(ctx, appID, versionID, extractorCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreatePatternAnyEntityModel", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreatePatternAnyEntityModelSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreatePatternAnyEntityModel", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreatePatternAnyEntityModelResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreatePatternAnyEntityModel", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreatePatternAnyEntityModelPreparer prepares the CreatePatternAnyEntityModel request.
+func (client ModelClient) CreatePatternAnyEntityModelPreparer(ctx context.Context, appID uuid.UUID, versionID string, extractorCreateObject PatternAnyModelCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternanyentities", pathParameters),
+ autorest.WithJSON(extractorCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreatePatternAnyEntityModelSender sends the CreatePatternAnyEntityModel request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) CreatePatternAnyEntityModelSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreatePatternAnyEntityModelResponder handles the response to the CreatePatternAnyEntityModel request. The method always
+// closes the http.Response Body.
+func (client ModelClient) CreatePatternAnyEntityModelResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreatePatternAnyEntityRole sends the create pattern any entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity model ID.
+// entityRoleCreateObject - an entity role object containing the name of role.
+func (client ModelClient) CreatePatternAnyEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityRoleCreateObject EntityRoleCreateObject) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.CreatePatternAnyEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreatePatternAnyEntityRolePreparer(ctx, appID, versionID, entityID, entityRoleCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreatePatternAnyEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreatePatternAnyEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreatePatternAnyEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreatePatternAnyEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreatePatternAnyEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreatePatternAnyEntityRolePreparer prepares the CreatePatternAnyEntityRole request.
+func (client ModelClient) CreatePatternAnyEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityRoleCreateObject EntityRoleCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles", pathParameters),
+ autorest.WithJSON(entityRoleCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreatePatternAnyEntityRoleSender sends the CreatePatternAnyEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) CreatePatternAnyEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreatePatternAnyEntityRoleResponder handles the response to the CreatePatternAnyEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) CreatePatternAnyEntityRoleResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreatePrebuiltEntityRole sends the create prebuilt entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity model ID.
+// entityRoleCreateObject - an entity role object containing the name of role.
+func (client ModelClient) CreatePrebuiltEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityRoleCreateObject EntityRoleCreateObject) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.CreatePrebuiltEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreatePrebuiltEntityRolePreparer(ctx, appID, versionID, entityID, entityRoleCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreatePrebuiltEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreatePrebuiltEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreatePrebuiltEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreatePrebuiltEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreatePrebuiltEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreatePrebuiltEntityRolePreparer prepares the CreatePrebuiltEntityRole request.
+func (client ModelClient) CreatePrebuiltEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityRoleCreateObject EntityRoleCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles", pathParameters),
+ autorest.WithJSON(entityRoleCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreatePrebuiltEntityRoleSender sends the CreatePrebuiltEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) CreatePrebuiltEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreatePrebuiltEntityRoleResponder handles the response to the CreatePrebuiltEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) CreatePrebuiltEntityRoleResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreateRegexEntityModel sends the create regex entity model request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// regexEntityExtractorCreateObj - a model object containing the name and regex pattern for the new regular
+// expression entity extractor.
+func (client ModelClient) CreateRegexEntityModel(ctx context.Context, appID uuid.UUID, versionID string, regexEntityExtractorCreateObj RegexModelCreateObject) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.CreateRegexEntityModel")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateRegexEntityModelPreparer(ctx, appID, versionID, regexEntityExtractorCreateObj)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateRegexEntityModel", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateRegexEntityModelSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateRegexEntityModel", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateRegexEntityModelResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateRegexEntityModel", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateRegexEntityModelPreparer prepares the CreateRegexEntityModel request.
+func (client ModelClient) CreateRegexEntityModelPreparer(ctx context.Context, appID uuid.UUID, versionID string, regexEntityExtractorCreateObj RegexModelCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/regexentities", pathParameters),
+ autorest.WithJSON(regexEntityExtractorCreateObj))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateRegexEntityModelSender sends the CreateRegexEntityModel request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) CreateRegexEntityModelSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateRegexEntityModelResponder handles the response to the CreateRegexEntityModel request. The method always
+// closes the http.Response Body.
+func (client ModelClient) CreateRegexEntityModelResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// CreateRegexEntityRole sends the create regex entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity model ID.
+// entityRoleCreateObject - an entity role object containing the name of role.
+func (client ModelClient) CreateRegexEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityRoleCreateObject EntityRoleCreateObject) (result UUID, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.CreateRegexEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateRegexEntityRolePreparer(ctx, appID, versionID, entityID, entityRoleCreateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateRegexEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateRegexEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateRegexEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateRegexEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "CreateRegexEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateRegexEntityRolePreparer prepares the CreateRegexEntityRole request.
+func (client ModelClient) CreateRegexEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityRoleCreateObject EntityRoleCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles", pathParameters),
+ autorest.WithJSON(entityRoleCreateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CreateRegexEntityRoleSender sends the CreateRegexEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) CreateRegexEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateRegexEntityRoleResponder handles the response to the CreateRegexEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) CreateRegexEntityRoleResponder(resp *http.Response) (result UUID, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteClosedList deletes a list entity model from a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// clEntityID - the list entity model ID.
+func (client ModelClient) DeleteClosedList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeleteClosedList")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteClosedListPreparer(ctx, appID, versionID, clEntityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteClosedList", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteClosedListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteClosedList", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteClosedListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteClosedList", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteClosedListPreparer prepares the DeleteClosedList request.
+func (client ModelClient) DeleteClosedListPreparer(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "clEntityId": autorest.Encode("path", clEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteClosedListSender sends the DeleteClosedList request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeleteClosedListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteClosedListResponder handles the response to the DeleteClosedList request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeleteClosedListResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteClosedListEntityRole sends the delete closed list entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity ID.
+// roleID - the entity role Id.
+func (client ModelClient) DeleteClosedListEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeleteClosedListEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteClosedListEntityRolePreparer(ctx, appID, versionID, entityID, roleID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteClosedListEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteClosedListEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteClosedListEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteClosedListEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteClosedListEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteClosedListEntityRolePreparer prepares the DeleteClosedListEntityRole request.
+func (client ModelClient) DeleteClosedListEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles/{roleId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteClosedListEntityRoleSender sends the DeleteClosedListEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeleteClosedListEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteClosedListEntityRoleResponder handles the response to the DeleteClosedListEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeleteClosedListEntityRoleResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteCompositeEntity deletes a composite entity from a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// cEntityID - the composite entity extractor ID.
+func (client ModelClient) DeleteCompositeEntity(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeleteCompositeEntity")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteCompositeEntityPreparer(ctx, appID, versionID, cEntityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCompositeEntity", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteCompositeEntitySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCompositeEntity", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteCompositeEntityResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCompositeEntity", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteCompositeEntityPreparer prepares the DeleteCompositeEntity request.
+func (client ModelClient) DeleteCompositeEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "cEntityId": autorest.Encode("path", cEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteCompositeEntitySender sends the DeleteCompositeEntity request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeleteCompositeEntitySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteCompositeEntityResponder handles the response to the DeleteCompositeEntity request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeleteCompositeEntityResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteCompositeEntityChild deletes a composite entity extractor child from a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// cEntityID - the composite entity extractor ID.
+// cChildID - the hierarchical entity extractor child ID.
+func (client ModelClient) DeleteCompositeEntityChild(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, cChildID uuid.UUID) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeleteCompositeEntityChild")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteCompositeEntityChildPreparer(ctx, appID, versionID, cEntityID, cChildID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCompositeEntityChild", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteCompositeEntityChildSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCompositeEntityChild", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteCompositeEntityChildResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCompositeEntityChild", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteCompositeEntityChildPreparer prepares the DeleteCompositeEntityChild request.
+func (client ModelClient) DeleteCompositeEntityChildPreparer(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, cChildID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "cChildId": autorest.Encode("path", cChildID),
+ "cEntityId": autorest.Encode("path", cEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children/{cChildId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteCompositeEntityChildSender sends the DeleteCompositeEntityChild request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeleteCompositeEntityChildSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteCompositeEntityChildResponder handles the response to the DeleteCompositeEntityChild request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeleteCompositeEntityChildResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteCompositeEntityRole sends the delete composite entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// cEntityID - the composite entity extractor ID.
+// roleID - the entity role Id.
+func (client ModelClient) DeleteCompositeEntityRole(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, roleID uuid.UUID) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeleteCompositeEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteCompositeEntityRolePreparer(ctx, appID, versionID, cEntityID, roleID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCompositeEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteCompositeEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCompositeEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteCompositeEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCompositeEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteCompositeEntityRolePreparer prepares the DeleteCompositeEntityRole request.
+func (client ModelClient) DeleteCompositeEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, roleID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "cEntityId": autorest.Encode("path", cEntityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles/{roleId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteCompositeEntityRoleSender sends the DeleteCompositeEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeleteCompositeEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteCompositeEntityRoleResponder handles the response to the DeleteCompositeEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeleteCompositeEntityRoleResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteCustomEntityRole sends the delete custom entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity ID.
+// roleID - the entity role Id.
+func (client ModelClient) DeleteCustomEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeleteCustomEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteCustomEntityRolePreparer(ctx, appID, versionID, entityID, roleID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCustomEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteCustomEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCustomEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteCustomEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCustomEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteCustomEntityRolePreparer prepares the DeleteCustomEntityRole request.
+func (client ModelClient) DeleteCustomEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles/{roleId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteCustomEntityRoleSender sends the DeleteCustomEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeleteCustomEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteCustomEntityRoleResponder handles the response to the DeleteCustomEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeleteCustomEntityRoleResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteCustomPrebuiltDomain deletes a prebuilt domain's models in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// domainName - domain name.
+func (client ModelClient) DeleteCustomPrebuiltDomain(ctx context.Context, appID uuid.UUID, versionID string, domainName string) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeleteCustomPrebuiltDomain")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteCustomPrebuiltDomainPreparer(ctx, appID, versionID, domainName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCustomPrebuiltDomain", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteCustomPrebuiltDomainSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCustomPrebuiltDomain", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteCustomPrebuiltDomainResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteCustomPrebuiltDomain", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteCustomPrebuiltDomainPreparer prepares the DeleteCustomPrebuiltDomain request.
+func (client ModelClient) DeleteCustomPrebuiltDomainPreparer(ctx context.Context, appID uuid.UUID, versionID string, domainName string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "domainName": autorest.Encode("path", domainName),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/customprebuiltdomains/{domainName}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteCustomPrebuiltDomainSender sends the DeleteCustomPrebuiltDomain request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeleteCustomPrebuiltDomainSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteCustomPrebuiltDomainResponder handles the response to the DeleteCustomPrebuiltDomain request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeleteCustomPrebuiltDomainResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteEntity deletes an entity or a child from a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity extractor or the child entity extractor ID.
+func (client ModelClient) DeleteEntity(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeleteEntity")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteEntityPreparer(ctx, appID, versionID, entityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteEntity", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteEntitySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteEntity", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteEntityResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteEntity", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteEntityPreparer prepares the DeleteEntity request.
+func (client ModelClient) DeleteEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/entities/{entityId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteEntitySender sends the DeleteEntity request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeleteEntitySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteEntityResponder handles the response to the DeleteEntity request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeleteEntityResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteEntityFeature deletes a relation from the feature relations used by the entity in a version of the
+// application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity extractor ID.
+// featureRelationDeleteObject - a feature information object containing the feature relation to delete.
+func (client ModelClient) DeleteEntityFeature(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, featureRelationDeleteObject ModelFeatureInformation) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeleteEntityFeature")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteEntityFeaturePreparer(ctx, appID, versionID, entityID, featureRelationDeleteObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteEntityFeature", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteEntityFeatureSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteEntityFeature", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteEntityFeatureResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteEntityFeature", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteEntityFeaturePreparer prepares the DeleteEntityFeature request.
+func (client ModelClient) DeleteEntityFeaturePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, featureRelationDeleteObject ModelFeatureInformation) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/entities/{entityId}/features", pathParameters),
+ autorest.WithJSON(featureRelationDeleteObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteEntityFeatureSender sends the DeleteEntityFeature request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeleteEntityFeatureSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteEntityFeatureResponder handles the response to the DeleteEntityFeature request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeleteEntityFeatureResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteEntityRole sends the delete entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity ID.
+// roleID - the entity role Id.
+func (client ModelClient) DeleteEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeleteEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteEntityRolePreparer(ctx, appID, versionID, entityID, roleID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteEntityRolePreparer prepares the DeleteEntityRole request.
+func (client ModelClient) DeleteEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteEntityRoleSender sends the DeleteEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeleteEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteEntityRoleResponder handles the response to the DeleteEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeleteEntityRoleResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteExplicitListItem sends the delete explicit list item request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the pattern.any entity id.
+// itemID - the explicit list item which will be deleted.
+func (client ModelClient) DeleteExplicitListItem(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, itemID int64) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeleteExplicitListItem")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteExplicitListItemPreparer(ctx, appID, versionID, entityID, itemID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteExplicitListItem", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteExplicitListItemSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteExplicitListItem", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteExplicitListItemResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteExplicitListItem", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteExplicitListItemPreparer prepares the DeleteExplicitListItem request.
+func (client ModelClient) DeleteExplicitListItemPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, itemID int64) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "itemId": autorest.Encode("path", itemID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist/{itemId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteExplicitListItemSender sends the DeleteExplicitListItem request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeleteExplicitListItemSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteExplicitListItemResponder handles the response to the DeleteExplicitListItem request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeleteExplicitListItemResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteHierarchicalEntity deletes a hierarchical entity from a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// hEntityID - the hierarchical entity extractor ID.
+func (client ModelClient) DeleteHierarchicalEntity(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeleteHierarchicalEntity")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteHierarchicalEntityPreparer(ctx, appID, versionID, hEntityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteHierarchicalEntity", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteHierarchicalEntitySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteHierarchicalEntity", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteHierarchicalEntityResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteHierarchicalEntity", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteHierarchicalEntityPreparer prepares the DeleteHierarchicalEntity request.
+func (client ModelClient) DeleteHierarchicalEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "hEntityId": autorest.Encode("path", hEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteHierarchicalEntitySender sends the DeleteHierarchicalEntity request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeleteHierarchicalEntitySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteHierarchicalEntityResponder handles the response to the DeleteHierarchicalEntity request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeleteHierarchicalEntityResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteHierarchicalEntityChild deletes a hierarchical entity extractor child in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// hEntityID - the hierarchical entity extractor ID.
+// hChildID - the hierarchical entity extractor child ID.
+func (client ModelClient) DeleteHierarchicalEntityChild(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, hChildID uuid.UUID) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeleteHierarchicalEntityChild")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteHierarchicalEntityChildPreparer(ctx, appID, versionID, hEntityID, hChildID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteHierarchicalEntityChild", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteHierarchicalEntityChildSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteHierarchicalEntityChild", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteHierarchicalEntityChildResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteHierarchicalEntityChild", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteHierarchicalEntityChildPreparer prepares the DeleteHierarchicalEntityChild request.
+func (client ModelClient) DeleteHierarchicalEntityChildPreparer(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, hChildID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "hChildId": autorest.Encode("path", hChildID),
+ "hEntityId": autorest.Encode("path", hEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteHierarchicalEntityChildSender sends the DeleteHierarchicalEntityChild request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeleteHierarchicalEntityChildSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteHierarchicalEntityChildResponder handles the response to the DeleteHierarchicalEntityChild request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeleteHierarchicalEntityChildResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteHierarchicalEntityRole sends the delete hierarchical entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// hEntityID - the hierarchical entity extractor ID.
+// roleID - the entity role Id.
+func (client ModelClient) DeleteHierarchicalEntityRole(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, roleID uuid.UUID) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeleteHierarchicalEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteHierarchicalEntityRolePreparer(ctx, appID, versionID, hEntityID, roleID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteHierarchicalEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteHierarchicalEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteHierarchicalEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteHierarchicalEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteHierarchicalEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteHierarchicalEntityRolePreparer prepares the DeleteHierarchicalEntityRole request.
+func (client ModelClient) DeleteHierarchicalEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, roleID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "hEntityId": autorest.Encode("path", hEntityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles/{roleId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteHierarchicalEntityRoleSender sends the DeleteHierarchicalEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeleteHierarchicalEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteHierarchicalEntityRoleResponder handles the response to the DeleteHierarchicalEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeleteHierarchicalEntityRoleResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteIntent deletes an intent from a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// intentID - the intent classifier ID.
+// deleteUtterances - if true, deletes the intent's example utterances. If false, moves the example utterances
+// to the None intent. The default value is false.
+func (client ModelClient) DeleteIntent(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, deleteUtterances *bool) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeleteIntent")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteIntentPreparer(ctx, appID, versionID, intentID, deleteUtterances)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteIntent", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteIntentSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteIntent", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteIntentResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteIntent", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteIntentPreparer prepares the DeleteIntent request.
+func (client ModelClient) DeleteIntentPreparer(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, deleteUtterances *bool) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "intentId": autorest.Encode("path", intentID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if deleteUtterances != nil {
+ queryParameters["deleteUtterances"] = autorest.Encode("query", *deleteUtterances)
+ } else {
+ queryParameters["deleteUtterances"] = autorest.Encode("query", false)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/intents/{intentId}", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteIntentSender sends the DeleteIntent request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeleteIntentSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteIntentResponder handles the response to the DeleteIntent request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeleteIntentResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteIntentFeature deletes a relation from the feature relations used by the intent in a version of the
+// application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// intentID - the intent classifier ID.
+// featureRelationDeleteObject - a feature information object containing the feature relation to delete.
+func (client ModelClient) DeleteIntentFeature(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, featureRelationDeleteObject ModelFeatureInformation) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeleteIntentFeature")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteIntentFeaturePreparer(ctx, appID, versionID, intentID, featureRelationDeleteObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteIntentFeature", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteIntentFeatureSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteIntentFeature", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteIntentFeatureResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteIntentFeature", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteIntentFeaturePreparer prepares the DeleteIntentFeature request.
+func (client ModelClient) DeleteIntentFeaturePreparer(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, featureRelationDeleteObject ModelFeatureInformation) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "intentId": autorest.Encode("path", intentID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/intents/{intentId}/features", pathParameters),
+ autorest.WithJSON(featureRelationDeleteObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteIntentFeatureSender sends the DeleteIntentFeature request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeleteIntentFeatureSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteIntentFeatureResponder handles the response to the DeleteIntentFeature request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeleteIntentFeatureResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeletePatternAnyEntityModel sends the delete pattern any entity model request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the Pattern.Any entity extractor ID.
+func (client ModelClient) DeletePatternAnyEntityModel(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeletePatternAnyEntityModel")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePatternAnyEntityModelPreparer(ctx, appID, versionID, entityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePatternAnyEntityModel", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeletePatternAnyEntityModelSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePatternAnyEntityModel", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeletePatternAnyEntityModelResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePatternAnyEntityModel", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePatternAnyEntityModelPreparer prepares the DeletePatternAnyEntityModel request.
+func (client ModelClient) DeletePatternAnyEntityModelPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeletePatternAnyEntityModelSender sends the DeletePatternAnyEntityModel request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeletePatternAnyEntityModelSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeletePatternAnyEntityModelResponder handles the response to the DeletePatternAnyEntityModel request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeletePatternAnyEntityModelResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeletePatternAnyEntityRole sends the delete pattern any entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity ID.
+// roleID - the entity role Id.
+func (client ModelClient) DeletePatternAnyEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeletePatternAnyEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePatternAnyEntityRolePreparer(ctx, appID, versionID, entityID, roleID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePatternAnyEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeletePatternAnyEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePatternAnyEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeletePatternAnyEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePatternAnyEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePatternAnyEntityRolePreparer prepares the DeletePatternAnyEntityRole request.
+func (client ModelClient) DeletePatternAnyEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles/{roleId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeletePatternAnyEntityRoleSender sends the DeletePatternAnyEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeletePatternAnyEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeletePatternAnyEntityRoleResponder handles the response to the DeletePatternAnyEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeletePatternAnyEntityRoleResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeletePrebuilt deletes a prebuilt entity extractor from a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// prebuiltID - the prebuilt entity extractor ID.
+func (client ModelClient) DeletePrebuilt(ctx context.Context, appID uuid.UUID, versionID string, prebuiltID uuid.UUID) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeletePrebuilt")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePrebuiltPreparer(ctx, appID, versionID, prebuiltID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePrebuilt", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeletePrebuiltSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePrebuilt", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeletePrebuiltResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePrebuilt", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePrebuiltPreparer prepares the DeletePrebuilt request.
+func (client ModelClient) DeletePrebuiltPreparer(ctx context.Context, appID uuid.UUID, versionID string, prebuiltID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "prebuiltId": autorest.Encode("path", prebuiltID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/prebuilts/{prebuiltId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeletePrebuiltSender sends the DeletePrebuilt request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeletePrebuiltSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeletePrebuiltResponder handles the response to the DeletePrebuilt request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeletePrebuiltResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeletePrebuiltEntityRole sends the delete prebuilt entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity ID.
+// roleID - the entity role Id.
+func (client ModelClient) DeletePrebuiltEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeletePrebuiltEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePrebuiltEntityRolePreparer(ctx, appID, versionID, entityID, roleID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePrebuiltEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeletePrebuiltEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePrebuiltEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeletePrebuiltEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeletePrebuiltEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePrebuiltEntityRolePreparer prepares the DeletePrebuiltEntityRole request.
+func (client ModelClient) DeletePrebuiltEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeletePrebuiltEntityRoleSender sends the DeletePrebuiltEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeletePrebuiltEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeletePrebuiltEntityRoleResponder handles the response to the DeletePrebuiltEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeletePrebuiltEntityRoleResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteRegexEntityModel sends the delete regex entity model request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// regexEntityID - the regular expression entity extractor ID.
+func (client ModelClient) DeleteRegexEntityModel(ctx context.Context, appID uuid.UUID, versionID string, regexEntityID uuid.UUID) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeleteRegexEntityModel")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteRegexEntityModelPreparer(ctx, appID, versionID, regexEntityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteRegexEntityModel", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteRegexEntityModelSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteRegexEntityModel", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteRegexEntityModelResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteRegexEntityModel", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteRegexEntityModelPreparer prepares the DeleteRegexEntityModel request.
+func (client ModelClient) DeleteRegexEntityModelPreparer(ctx context.Context, appID uuid.UUID, versionID string, regexEntityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "regexEntityId": autorest.Encode("path", regexEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteRegexEntityModelSender sends the DeleteRegexEntityModel request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeleteRegexEntityModelSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteRegexEntityModelResponder handles the response to the DeleteRegexEntityModel request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeleteRegexEntityModelResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteRegexEntityRole sends the delete regex entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity ID.
+// roleID - the entity role Id.
+func (client ModelClient) DeleteRegexEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeleteRegexEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteRegexEntityRolePreparer(ctx, appID, versionID, entityID, roleID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteRegexEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteRegexEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteRegexEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteRegexEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteRegexEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteRegexEntityRolePreparer prepares the DeleteRegexEntityRole request.
+func (client ModelClient) DeleteRegexEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteRegexEntityRoleSender sends the DeleteRegexEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeleteRegexEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteRegexEntityRoleResponder handles the response to the DeleteRegexEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeleteRegexEntityRoleResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteSubList deletes a sublist of a specific list entity model from a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// clEntityID - the list entity extractor ID.
+// subListID - the sublist ID.
+func (client ModelClient) DeleteSubList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, subListID int64) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.DeleteSubList")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteSubListPreparer(ctx, appID, versionID, clEntityID, subListID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteSubList", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteSubListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteSubList", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteSubListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "DeleteSubList", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteSubListPreparer prepares the DeleteSubList request.
+func (client ModelClient) DeleteSubListPreparer(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, subListID int64) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "clEntityId": autorest.Encode("path", clEntityID),
+ "subListId": autorest.Encode("path", subListID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists/{subListId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteSubListSender sends the DeleteSubList request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) DeleteSubListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteSubListResponder handles the response to the DeleteSubList request. The method always
+// closes the http.Response Body.
+func (client ModelClient) DeleteSubListResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ExamplesMethod gets the example utterances for the given intent or entity model in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// modelID - the ID (GUID) of the model.
+// skip - the number of entries to skip. Default value is 0.
+// take - the number of entries to return. Maximum page size is 500. Default is 100.
+func (client ModelClient) ExamplesMethod(ctx context.Context, appID uuid.UUID, versionID string, modelID string, skip *int32, take *int32) (result ListLabelTextObject, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ExamplesMethod")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: skip,
+ Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}},
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(500), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.ModelClient", "ExamplesMethod", err.Error())
+ }
+
+ req, err := client.ExamplesMethodPreparer(ctx, appID, versionID, modelID, skip, take)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ExamplesMethod", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ExamplesMethodSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ExamplesMethod", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ExamplesMethodResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ExamplesMethod", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ExamplesMethodPreparer prepares the ExamplesMethod request.
+func (client ModelClient) ExamplesMethodPreparer(ctx context.Context, appID uuid.UUID, versionID string, modelID string, skip *int32, take *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "modelId": autorest.Encode("path", modelID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 100)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/models/{modelId}/examples", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ExamplesMethodSender sends the ExamplesMethod request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ExamplesMethodSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ExamplesMethodResponder handles the response to the ExamplesMethod request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ExamplesMethodResponder(resp *http.Response) (result ListLabelTextObject, 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
+}
+
+// GetClosedList gets information about a list entity in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// clEntityID - the list model ID.
+func (client ModelClient) GetClosedList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID) (result ClosedListEntityExtractor, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetClosedList")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetClosedListPreparer(ctx, appID, versionID, clEntityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetClosedList", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetClosedListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetClosedList", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetClosedListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetClosedList", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetClosedListPreparer prepares the GetClosedList request.
+func (client ModelClient) GetClosedListPreparer(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "clEntityId": autorest.Encode("path", clEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetClosedListSender sends the GetClosedList request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetClosedListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetClosedListResponder handles the response to the GetClosedList request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetClosedListResponder(resp *http.Response) (result ClosedListEntityExtractor, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetClosedListEntityRole sends the get closed list entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - entity ID.
+// roleID - entity role ID.
+func (client ModelClient) GetClosedListEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result EntityRole, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetClosedListEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetClosedListEntityRolePreparer(ctx, appID, versionID, entityID, roleID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetClosedListEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetClosedListEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetClosedListEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetClosedListEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetClosedListEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetClosedListEntityRolePreparer prepares the GetClosedListEntityRole request.
+func (client ModelClient) GetClosedListEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles/{roleId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetClosedListEntityRoleSender sends the GetClosedListEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetClosedListEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetClosedListEntityRoleResponder handles the response to the GetClosedListEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetClosedListEntityRoleResponder(resp *http.Response) (result EntityRole, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetCompositeEntity gets information about a composite entity in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// cEntityID - the composite entity extractor ID.
+func (client ModelClient) GetCompositeEntity(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID) (result CompositeEntityExtractor, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetCompositeEntity")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetCompositeEntityPreparer(ctx, appID, versionID, cEntityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetCompositeEntity", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetCompositeEntitySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetCompositeEntity", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetCompositeEntityResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetCompositeEntity", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetCompositeEntityPreparer prepares the GetCompositeEntity request.
+func (client ModelClient) GetCompositeEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "cEntityId": autorest.Encode("path", cEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetCompositeEntitySender sends the GetCompositeEntity request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetCompositeEntitySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetCompositeEntityResponder handles the response to the GetCompositeEntity request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetCompositeEntityResponder(resp *http.Response) (result CompositeEntityExtractor, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetCompositeEntityRole sends the get composite entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// cEntityID - the composite entity extractor ID.
+// roleID - entity role ID.
+func (client ModelClient) GetCompositeEntityRole(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, roleID uuid.UUID) (result EntityRole, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetCompositeEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetCompositeEntityRolePreparer(ctx, appID, versionID, cEntityID, roleID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetCompositeEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetCompositeEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetCompositeEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetCompositeEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetCompositeEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetCompositeEntityRolePreparer prepares the GetCompositeEntityRole request.
+func (client ModelClient) GetCompositeEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, roleID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "cEntityId": autorest.Encode("path", cEntityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles/{roleId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetCompositeEntityRoleSender sends the GetCompositeEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetCompositeEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetCompositeEntityRoleResponder handles the response to the GetCompositeEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetCompositeEntityRoleResponder(resp *http.Response) (result EntityRole, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetCustomEntityRole sends the get custom entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - entity ID.
+// roleID - entity role ID.
+func (client ModelClient) GetCustomEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result EntityRole, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetCustomEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetCustomEntityRolePreparer(ctx, appID, versionID, entityID, roleID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetCustomEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetCustomEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetCustomEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetCustomEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetCustomEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetCustomEntityRolePreparer prepares the GetCustomEntityRole request.
+func (client ModelClient) GetCustomEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles/{roleId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetCustomEntityRoleSender sends the GetCustomEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetCustomEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetCustomEntityRoleResponder handles the response to the GetCustomEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetCustomEntityRoleResponder(resp *http.Response) (result EntityRole, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetEntity gets information about an entity model in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity extractor ID.
+func (client ModelClient) GetEntity(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result NDepthEntityExtractor, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetEntity")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetEntityPreparer(ctx, appID, versionID, entityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetEntity", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetEntitySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetEntity", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetEntityResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetEntity", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetEntityPreparer prepares the GetEntity request.
+func (client ModelClient) GetEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/entities/{entityId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetEntitySender sends the GetEntity request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetEntitySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetEntityResponder handles the response to the GetEntity request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetEntityResponder(resp *http.Response) (result NDepthEntityExtractor, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetEntityFeatures gets the information of the features used by the entity in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity extractor ID.
+func (client ModelClient) GetEntityFeatures(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result ListModelFeatureInformation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetEntityFeatures")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetEntityFeaturesPreparer(ctx, appID, versionID, entityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetEntityFeatures", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetEntityFeaturesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetEntityFeatures", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetEntityFeaturesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetEntityFeatures", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetEntityFeaturesPreparer prepares the GetEntityFeatures request.
+func (client ModelClient) GetEntityFeaturesPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/entities/{entityId}/features", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetEntityFeaturesSender sends the GetEntityFeatures request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetEntityFeaturesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetEntityFeaturesResponder handles the response to the GetEntityFeatures request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetEntityFeaturesResponder(resp *http.Response) (result ListModelFeatureInformation, 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
+}
+
+// GetEntityRole sends the get entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - entity ID.
+// roleID - entity role ID.
+func (client ModelClient) GetEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result EntityRole, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetEntityRolePreparer(ctx, appID, versionID, entityID, roleID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetEntityRolePreparer prepares the GetEntityRole request.
+func (client ModelClient) GetEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetEntityRoleSender sends the GetEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetEntityRoleResponder handles the response to the GetEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetEntityRoleResponder(resp *http.Response) (result EntityRole, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetExplicitList sends the get explicit list request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the Pattern.Any entity id.
+func (client ModelClient) GetExplicitList(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result ListExplicitListItem, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetExplicitList")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetExplicitListPreparer(ctx, appID, versionID, entityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetExplicitList", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetExplicitListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetExplicitList", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetExplicitListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetExplicitList", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetExplicitListPreparer prepares the GetExplicitList request.
+func (client ModelClient) GetExplicitListPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetExplicitListSender sends the GetExplicitList request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetExplicitListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetExplicitListResponder handles the response to the GetExplicitList request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetExplicitListResponder(resp *http.Response) (result ListExplicitListItem, 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
+}
+
+// GetExplicitListItem sends the get explicit list item request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the Pattern.Any entity Id.
+// itemID - the explicit list item Id.
+func (client ModelClient) GetExplicitListItem(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, itemID int64) (result ExplicitListItem, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetExplicitListItem")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetExplicitListItemPreparer(ctx, appID, versionID, entityID, itemID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetExplicitListItem", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetExplicitListItemSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetExplicitListItem", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetExplicitListItemResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetExplicitListItem", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetExplicitListItemPreparer prepares the GetExplicitListItem request.
+func (client ModelClient) GetExplicitListItemPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, itemID int64) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "itemId": autorest.Encode("path", itemID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist/{itemId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetExplicitListItemSender sends the GetExplicitListItem request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetExplicitListItemSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetExplicitListItemResponder handles the response to the GetExplicitListItem request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetExplicitListItemResponder(resp *http.Response) (result ExplicitListItem, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetHierarchicalEntity gets information about a hierarchical entity in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// hEntityID - the hierarchical entity extractor ID.
+func (client ModelClient) GetHierarchicalEntity(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID) (result HierarchicalEntityExtractor, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetHierarchicalEntity")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetHierarchicalEntityPreparer(ctx, appID, versionID, hEntityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetHierarchicalEntity", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetHierarchicalEntitySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetHierarchicalEntity", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetHierarchicalEntityResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetHierarchicalEntity", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetHierarchicalEntityPreparer prepares the GetHierarchicalEntity request.
+func (client ModelClient) GetHierarchicalEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "hEntityId": autorest.Encode("path", hEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetHierarchicalEntitySender sends the GetHierarchicalEntity request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetHierarchicalEntitySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetHierarchicalEntityResponder handles the response to the GetHierarchicalEntity request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetHierarchicalEntityResponder(resp *http.Response) (result HierarchicalEntityExtractor, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetHierarchicalEntityChild gets information about the child's model contained in an hierarchical entity child model
+// in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// hEntityID - the hierarchical entity extractor ID.
+// hChildID - the hierarchical entity extractor child ID.
+func (client ModelClient) GetHierarchicalEntityChild(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, hChildID uuid.UUID) (result HierarchicalChildEntity, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetHierarchicalEntityChild")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetHierarchicalEntityChildPreparer(ctx, appID, versionID, hEntityID, hChildID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetHierarchicalEntityChild", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetHierarchicalEntityChildSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetHierarchicalEntityChild", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetHierarchicalEntityChildResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetHierarchicalEntityChild", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetHierarchicalEntityChildPreparer prepares the GetHierarchicalEntityChild request.
+func (client ModelClient) GetHierarchicalEntityChildPreparer(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, hChildID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "hChildId": autorest.Encode("path", hChildID),
+ "hEntityId": autorest.Encode("path", hEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetHierarchicalEntityChildSender sends the GetHierarchicalEntityChild request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetHierarchicalEntityChildSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetHierarchicalEntityChildResponder handles the response to the GetHierarchicalEntityChild request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetHierarchicalEntityChildResponder(resp *http.Response) (result HierarchicalChildEntity, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetHierarchicalEntityRole sends the get hierarchical entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// hEntityID - the hierarchical entity extractor ID.
+// roleID - entity role ID.
+func (client ModelClient) GetHierarchicalEntityRole(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, roleID uuid.UUID) (result EntityRole, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetHierarchicalEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetHierarchicalEntityRolePreparer(ctx, appID, versionID, hEntityID, roleID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetHierarchicalEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetHierarchicalEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetHierarchicalEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetHierarchicalEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetHierarchicalEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetHierarchicalEntityRolePreparer prepares the GetHierarchicalEntityRole request.
+func (client ModelClient) GetHierarchicalEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, roleID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "hEntityId": autorest.Encode("path", hEntityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles/{roleId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetHierarchicalEntityRoleSender sends the GetHierarchicalEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetHierarchicalEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetHierarchicalEntityRoleResponder handles the response to the GetHierarchicalEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetHierarchicalEntityRoleResponder(resp *http.Response) (result EntityRole, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetIntent gets information about the intent model in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// intentID - the intent classifier ID.
+func (client ModelClient) GetIntent(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID) (result IntentClassifier, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetIntent")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetIntentPreparer(ctx, appID, versionID, intentID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetIntent", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetIntentSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetIntent", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetIntentResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetIntent", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetIntentPreparer prepares the GetIntent request.
+func (client ModelClient) GetIntentPreparer(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "intentId": autorest.Encode("path", intentID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/intents/{intentId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetIntentSender sends the GetIntent request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetIntentSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetIntentResponder handles the response to the GetIntent request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetIntentResponder(resp *http.Response) (result IntentClassifier, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetIntentFeatures gets the information of the features used by the intent in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// intentID - the intent classifier ID.
+func (client ModelClient) GetIntentFeatures(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID) (result ListModelFeatureInformation, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetIntentFeatures")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetIntentFeaturesPreparer(ctx, appID, versionID, intentID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetIntentFeatures", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetIntentFeaturesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetIntentFeatures", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetIntentFeaturesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetIntentFeatures", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetIntentFeaturesPreparer prepares the GetIntentFeatures request.
+func (client ModelClient) GetIntentFeaturesPreparer(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "intentId": autorest.Encode("path", intentID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/intents/{intentId}/features", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetIntentFeaturesSender sends the GetIntentFeatures request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetIntentFeaturesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetIntentFeaturesResponder handles the response to the GetIntentFeatures request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetIntentFeaturesResponder(resp *http.Response) (result ListModelFeatureInformation, 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
+}
+
+// GetPatternAnyEntityInfo sends the get pattern any entity info request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity extractor ID.
+func (client ModelClient) GetPatternAnyEntityInfo(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result PatternAnyEntityExtractor, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetPatternAnyEntityInfo")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPatternAnyEntityInfoPreparer(ctx, appID, versionID, entityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPatternAnyEntityInfo", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetPatternAnyEntityInfoSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPatternAnyEntityInfo", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetPatternAnyEntityInfoResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPatternAnyEntityInfo", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPatternAnyEntityInfoPreparer prepares the GetPatternAnyEntityInfo request.
+func (client ModelClient) GetPatternAnyEntityInfoPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetPatternAnyEntityInfoSender sends the GetPatternAnyEntityInfo request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetPatternAnyEntityInfoSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetPatternAnyEntityInfoResponder handles the response to the GetPatternAnyEntityInfo request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetPatternAnyEntityInfoResponder(resp *http.Response) (result PatternAnyEntityExtractor, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetPatternAnyEntityRole sends the get pattern any entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - entity ID.
+// roleID - entity role ID.
+func (client ModelClient) GetPatternAnyEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result EntityRole, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetPatternAnyEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPatternAnyEntityRolePreparer(ctx, appID, versionID, entityID, roleID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPatternAnyEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetPatternAnyEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPatternAnyEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetPatternAnyEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPatternAnyEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPatternAnyEntityRolePreparer prepares the GetPatternAnyEntityRole request.
+func (client ModelClient) GetPatternAnyEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles/{roleId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetPatternAnyEntityRoleSender sends the GetPatternAnyEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetPatternAnyEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetPatternAnyEntityRoleResponder handles the response to the GetPatternAnyEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetPatternAnyEntityRoleResponder(resp *http.Response) (result EntityRole, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetPrebuilt gets information about a prebuilt entity model in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// prebuiltID - the prebuilt entity extractor ID.
+func (client ModelClient) GetPrebuilt(ctx context.Context, appID uuid.UUID, versionID string, prebuiltID uuid.UUID) (result PrebuiltEntityExtractor, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetPrebuilt")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPrebuiltPreparer(ctx, appID, versionID, prebuiltID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPrebuilt", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetPrebuiltSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPrebuilt", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetPrebuiltResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPrebuilt", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPrebuiltPreparer prepares the GetPrebuilt request.
+func (client ModelClient) GetPrebuiltPreparer(ctx context.Context, appID uuid.UUID, versionID string, prebuiltID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "prebuiltId": autorest.Encode("path", prebuiltID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/prebuilts/{prebuiltId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetPrebuiltSender sends the GetPrebuilt request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetPrebuiltSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetPrebuiltResponder handles the response to the GetPrebuilt request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetPrebuiltResponder(resp *http.Response) (result PrebuiltEntityExtractor, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetPrebuiltEntityRole sends the get prebuilt entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - entity ID.
+// roleID - entity role ID.
+func (client ModelClient) GetPrebuiltEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result EntityRole, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetPrebuiltEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPrebuiltEntityRolePreparer(ctx, appID, versionID, entityID, roleID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPrebuiltEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetPrebuiltEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPrebuiltEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetPrebuiltEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetPrebuiltEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPrebuiltEntityRolePreparer prepares the GetPrebuiltEntityRole request.
+func (client ModelClient) GetPrebuiltEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetPrebuiltEntityRoleSender sends the GetPrebuiltEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetPrebuiltEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetPrebuiltEntityRoleResponder handles the response to the GetPrebuiltEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetPrebuiltEntityRoleResponder(resp *http.Response) (result EntityRole, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetRegexEntityEntityInfo sends the get regex entity entity info request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// regexEntityID - the regular expression entity model ID.
+func (client ModelClient) GetRegexEntityEntityInfo(ctx context.Context, appID uuid.UUID, versionID string, regexEntityID uuid.UUID) (result RegexEntityExtractor, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetRegexEntityEntityInfo")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetRegexEntityEntityInfoPreparer(ctx, appID, versionID, regexEntityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetRegexEntityEntityInfo", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetRegexEntityEntityInfoSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetRegexEntityEntityInfo", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetRegexEntityEntityInfoResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetRegexEntityEntityInfo", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetRegexEntityEntityInfoPreparer prepares the GetRegexEntityEntityInfo request.
+func (client ModelClient) GetRegexEntityEntityInfoPreparer(ctx context.Context, appID uuid.UUID, versionID string, regexEntityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "regexEntityId": autorest.Encode("path", regexEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetRegexEntityEntityInfoSender sends the GetRegexEntityEntityInfo request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetRegexEntityEntityInfoSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetRegexEntityEntityInfoResponder handles the response to the GetRegexEntityEntityInfo request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetRegexEntityEntityInfoResponder(resp *http.Response) (result RegexEntityExtractor, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetRegexEntityRole sends the get regex entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - entity ID.
+// roleID - entity role ID.
+func (client ModelClient) GetRegexEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (result EntityRole, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.GetRegexEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetRegexEntityRolePreparer(ctx, appID, versionID, entityID, roleID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetRegexEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetRegexEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetRegexEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetRegexEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "GetRegexEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetRegexEntityRolePreparer prepares the GetRegexEntityRole request.
+func (client ModelClient) GetRegexEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetRegexEntityRoleSender sends the GetRegexEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) GetRegexEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetRegexEntityRoleResponder handles the response to the GetRegexEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) GetRegexEntityRoleResponder(resp *http.Response) (result EntityRole, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListClosedListEntityRoles sends the list closed list entity roles request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - entity Id
+func (client ModelClient) ListClosedListEntityRoles(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result ListEntityRole, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListClosedListEntityRoles")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListClosedListEntityRolesPreparer(ctx, appID, versionID, entityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListClosedListEntityRoles", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListClosedListEntityRolesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListClosedListEntityRoles", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListClosedListEntityRolesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListClosedListEntityRoles", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListClosedListEntityRolesPreparer prepares the ListClosedListEntityRoles request.
+func (client ModelClient) ListClosedListEntityRolesPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListClosedListEntityRolesSender sends the ListClosedListEntityRoles request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListClosedListEntityRolesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListClosedListEntityRolesResponder handles the response to the ListClosedListEntityRoles request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListClosedListEntityRolesResponder(resp *http.Response) (result ListEntityRole, 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
+}
+
+// ListClosedLists gets information about all the list entity models in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// skip - the number of entries to skip. Default value is 0.
+// take - the number of entries to return. Maximum page size is 500. Default is 100.
+func (client ModelClient) ListClosedLists(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListClosedListEntityExtractor, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListClosedLists")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: skip,
+ Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}},
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(500), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.ModelClient", "ListClosedLists", err.Error())
+ }
+
+ req, err := client.ListClosedListsPreparer(ctx, appID, versionID, skip, take)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListClosedLists", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListClosedListsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListClosedLists", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListClosedListsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListClosedLists", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListClosedListsPreparer prepares the ListClosedLists request.
+func (client ModelClient) ListClosedListsPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 100)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/closedlists", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListClosedListsSender sends the ListClosedLists request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListClosedListsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListClosedListsResponder handles the response to the ListClosedLists request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListClosedListsResponder(resp *http.Response) (result ListClosedListEntityExtractor, 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
+}
+
+// ListCompositeEntities gets information about all the composite entity models in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// skip - the number of entries to skip. Default value is 0.
+// take - the number of entries to return. Maximum page size is 500. Default is 100.
+func (client ModelClient) ListCompositeEntities(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListCompositeEntityExtractor, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListCompositeEntities")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: skip,
+ Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}},
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(500), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.ModelClient", "ListCompositeEntities", err.Error())
+ }
+
+ req, err := client.ListCompositeEntitiesPreparer(ctx, appID, versionID, skip, take)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCompositeEntities", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListCompositeEntitiesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCompositeEntities", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListCompositeEntitiesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCompositeEntities", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListCompositeEntitiesPreparer prepares the ListCompositeEntities request.
+func (client ModelClient) ListCompositeEntitiesPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 100)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/compositeentities", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListCompositeEntitiesSender sends the ListCompositeEntities request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListCompositeEntitiesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListCompositeEntitiesResponder handles the response to the ListCompositeEntities request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListCompositeEntitiesResponder(resp *http.Response) (result ListCompositeEntityExtractor, 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
+}
+
+// ListCompositeEntityRoles sends the list composite entity roles request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// cEntityID - the composite entity extractor ID.
+func (client ModelClient) ListCompositeEntityRoles(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID) (result ListEntityRole, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListCompositeEntityRoles")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListCompositeEntityRolesPreparer(ctx, appID, versionID, cEntityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCompositeEntityRoles", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListCompositeEntityRolesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCompositeEntityRoles", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListCompositeEntityRolesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCompositeEntityRoles", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListCompositeEntityRolesPreparer prepares the ListCompositeEntityRoles request.
+func (client ModelClient) ListCompositeEntityRolesPreparer(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "cEntityId": autorest.Encode("path", cEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListCompositeEntityRolesSender sends the ListCompositeEntityRoles request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListCompositeEntityRolesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListCompositeEntityRolesResponder handles the response to the ListCompositeEntityRoles request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListCompositeEntityRolesResponder(resp *http.Response) (result ListEntityRole, 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
+}
+
+// ListCustomPrebuiltEntities gets all prebuilt entities used in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+func (client ModelClient) ListCustomPrebuiltEntities(ctx context.Context, appID uuid.UUID, versionID string) (result ListEntityExtractor, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListCustomPrebuiltEntities")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListCustomPrebuiltEntitiesPreparer(ctx, appID, versionID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltEntities", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListCustomPrebuiltEntitiesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltEntities", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListCustomPrebuiltEntitiesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltEntities", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListCustomPrebuiltEntitiesPreparer prepares the ListCustomPrebuiltEntities request.
+func (client ModelClient) ListCustomPrebuiltEntitiesPreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/customprebuiltentities", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListCustomPrebuiltEntitiesSender sends the ListCustomPrebuiltEntities request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListCustomPrebuiltEntitiesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListCustomPrebuiltEntitiesResponder handles the response to the ListCustomPrebuiltEntities request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListCustomPrebuiltEntitiesResponder(resp *http.Response) (result ListEntityExtractor, 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
+}
+
+// ListCustomPrebuiltEntityRoles sends the list custom prebuilt entity roles request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - entity Id
+func (client ModelClient) ListCustomPrebuiltEntityRoles(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result ListEntityRole, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListCustomPrebuiltEntityRoles")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListCustomPrebuiltEntityRolesPreparer(ctx, appID, versionID, entityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltEntityRoles", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListCustomPrebuiltEntityRolesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltEntityRoles", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListCustomPrebuiltEntityRolesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltEntityRoles", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListCustomPrebuiltEntityRolesPreparer prepares the ListCustomPrebuiltEntityRoles request.
+func (client ModelClient) ListCustomPrebuiltEntityRolesPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListCustomPrebuiltEntityRolesSender sends the ListCustomPrebuiltEntityRoles request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListCustomPrebuiltEntityRolesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListCustomPrebuiltEntityRolesResponder handles the response to the ListCustomPrebuiltEntityRoles request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListCustomPrebuiltEntityRolesResponder(resp *http.Response) (result ListEntityRole, 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
+}
+
+// ListCustomPrebuiltIntents gets information about customizable prebuilt intents added to a version of the
+// application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+func (client ModelClient) ListCustomPrebuiltIntents(ctx context.Context, appID uuid.UUID, versionID string) (result ListIntentClassifier, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListCustomPrebuiltIntents")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListCustomPrebuiltIntentsPreparer(ctx, appID, versionID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltIntents", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListCustomPrebuiltIntentsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltIntents", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListCustomPrebuiltIntentsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltIntents", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListCustomPrebuiltIntentsPreparer prepares the ListCustomPrebuiltIntents request.
+func (client ModelClient) ListCustomPrebuiltIntentsPreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/customprebuiltintents", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListCustomPrebuiltIntentsSender sends the ListCustomPrebuiltIntents request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListCustomPrebuiltIntentsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListCustomPrebuiltIntentsResponder handles the response to the ListCustomPrebuiltIntents request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListCustomPrebuiltIntentsResponder(resp *http.Response) (result ListIntentClassifier, 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
+}
+
+// ListCustomPrebuiltModels gets all prebuilt intent and entity model information used in a version of this
+// application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+func (client ModelClient) ListCustomPrebuiltModels(ctx context.Context, appID uuid.UUID, versionID string) (result ListCustomPrebuiltModel, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListCustomPrebuiltModels")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListCustomPrebuiltModelsPreparer(ctx, appID, versionID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltModels", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListCustomPrebuiltModelsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltModels", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListCustomPrebuiltModelsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListCustomPrebuiltModels", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListCustomPrebuiltModelsPreparer prepares the ListCustomPrebuiltModels request.
+func (client ModelClient) ListCustomPrebuiltModelsPreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/customprebuiltmodels", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListCustomPrebuiltModelsSender sends the ListCustomPrebuiltModels request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListCustomPrebuiltModelsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListCustomPrebuiltModelsResponder handles the response to the ListCustomPrebuiltModels request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListCustomPrebuiltModelsResponder(resp *http.Response) (result ListCustomPrebuiltModel, 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
+}
+
+// ListEntities gets information about all the simple entity models in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// skip - the number of entries to skip. Default value is 0.
+// take - the number of entries to return. Maximum page size is 500. Default is 100.
+func (client ModelClient) ListEntities(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListNDepthEntityExtractor, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListEntities")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: skip,
+ Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}},
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(500), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.ModelClient", "ListEntities", err.Error())
+ }
+
+ req, err := client.ListEntitiesPreparer(ctx, appID, versionID, skip, take)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListEntities", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListEntitiesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListEntities", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListEntitiesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListEntities", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListEntitiesPreparer prepares the ListEntities request.
+func (client ModelClient) ListEntitiesPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 100)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/entities", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListEntitiesSender sends the ListEntities request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListEntitiesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListEntitiesResponder handles the response to the ListEntities request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListEntitiesResponder(resp *http.Response) (result ListNDepthEntityExtractor, 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
+}
+
+// ListEntityRoles sends the list entity roles request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - entity Id
+func (client ModelClient) ListEntityRoles(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result ListEntityRole, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListEntityRoles")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListEntityRolesPreparer(ctx, appID, versionID, entityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListEntityRoles", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListEntityRolesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListEntityRoles", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListEntityRolesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListEntityRoles", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListEntityRolesPreparer prepares the ListEntityRoles request.
+func (client ModelClient) ListEntityRolesPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/entities/{entityId}/roles", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListEntityRolesSender sends the ListEntityRoles request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListEntityRolesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListEntityRolesResponder handles the response to the ListEntityRoles request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListEntityRolesResponder(resp *http.Response) (result ListEntityRole, 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
+}
+
+// ListEntitySuggestions get suggested example utterances that would improve the accuracy of the entity model in a
+// version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the target entity extractor model to enhance.
+// take - the number of entries to return. Maximum page size is 500. Default is 100.
+func (client ModelClient) ListEntitySuggestions(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, take *int32) (result ListEntitiesSuggestionExample, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListEntitySuggestions")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(500), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.ModelClient", "ListEntitySuggestions", err.Error())
+ }
+
+ req, err := client.ListEntitySuggestionsPreparer(ctx, appID, versionID, entityID, take)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListEntitySuggestions", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListEntitySuggestionsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListEntitySuggestions", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListEntitySuggestionsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListEntitySuggestions", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListEntitySuggestionsPreparer prepares the ListEntitySuggestions request.
+func (client ModelClient) ListEntitySuggestionsPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, take *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 100)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/entities/{entityId}/suggest", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListEntitySuggestionsSender sends the ListEntitySuggestions request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListEntitySuggestionsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListEntitySuggestionsResponder handles the response to the ListEntitySuggestions request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListEntitySuggestionsResponder(resp *http.Response) (result ListEntitiesSuggestionExample, 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
+}
+
+// ListHierarchicalEntities gets information about all the hierarchical entity models in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// skip - the number of entries to skip. Default value is 0.
+// take - the number of entries to return. Maximum page size is 500. Default is 100.
+func (client ModelClient) ListHierarchicalEntities(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListHierarchicalEntityExtractor, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListHierarchicalEntities")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: skip,
+ Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}},
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(500), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.ModelClient", "ListHierarchicalEntities", err.Error())
+ }
+
+ req, err := client.ListHierarchicalEntitiesPreparer(ctx, appID, versionID, skip, take)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListHierarchicalEntities", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListHierarchicalEntitiesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListHierarchicalEntities", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListHierarchicalEntitiesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListHierarchicalEntities", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListHierarchicalEntitiesPreparer prepares the ListHierarchicalEntities request.
+func (client ModelClient) ListHierarchicalEntitiesPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 100)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/hierarchicalentities", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListHierarchicalEntitiesSender sends the ListHierarchicalEntities request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListHierarchicalEntitiesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListHierarchicalEntitiesResponder handles the response to the ListHierarchicalEntities request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListHierarchicalEntitiesResponder(resp *http.Response) (result ListHierarchicalEntityExtractor, 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
+}
+
+// ListHierarchicalEntityRoles sends the list hierarchical entity roles request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// hEntityID - the hierarchical entity extractor ID.
+func (client ModelClient) ListHierarchicalEntityRoles(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID) (result ListEntityRole, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListHierarchicalEntityRoles")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListHierarchicalEntityRolesPreparer(ctx, appID, versionID, hEntityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListHierarchicalEntityRoles", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListHierarchicalEntityRolesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListHierarchicalEntityRoles", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListHierarchicalEntityRolesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListHierarchicalEntityRoles", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListHierarchicalEntityRolesPreparer prepares the ListHierarchicalEntityRoles request.
+func (client ModelClient) ListHierarchicalEntityRolesPreparer(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "hEntityId": autorest.Encode("path", hEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListHierarchicalEntityRolesSender sends the ListHierarchicalEntityRoles request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListHierarchicalEntityRolesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListHierarchicalEntityRolesResponder handles the response to the ListHierarchicalEntityRoles request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListHierarchicalEntityRolesResponder(resp *http.Response) (result ListEntityRole, 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
+}
+
+// ListIntents gets information about the intent models in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// skip - the number of entries to skip. Default value is 0.
+// take - the number of entries to return. Maximum page size is 500. Default is 100.
+func (client ModelClient) ListIntents(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListIntentClassifier, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListIntents")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: skip,
+ Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}},
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(500), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.ModelClient", "ListIntents", err.Error())
+ }
+
+ req, err := client.ListIntentsPreparer(ctx, appID, versionID, skip, take)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListIntents", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListIntentsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListIntents", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListIntentsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListIntents", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListIntentsPreparer prepares the ListIntents request.
+func (client ModelClient) ListIntentsPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 100)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/intents", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListIntentsSender sends the ListIntents request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListIntentsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListIntentsResponder handles the response to the ListIntents request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListIntentsResponder(resp *http.Response) (result ListIntentClassifier, 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
+}
+
+// ListIntentSuggestions suggests example utterances that would improve the accuracy of the intent model in a version
+// of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// intentID - the intent classifier ID.
+// take - the number of entries to return. Maximum page size is 500. Default is 100.
+func (client ModelClient) ListIntentSuggestions(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, take *int32) (result ListIntentsSuggestionExample, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListIntentSuggestions")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(500), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.ModelClient", "ListIntentSuggestions", err.Error())
+ }
+
+ req, err := client.ListIntentSuggestionsPreparer(ctx, appID, versionID, intentID, take)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListIntentSuggestions", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListIntentSuggestionsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListIntentSuggestions", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListIntentSuggestionsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListIntentSuggestions", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListIntentSuggestionsPreparer prepares the ListIntentSuggestions request.
+func (client ModelClient) ListIntentSuggestionsPreparer(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, take *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "intentId": autorest.Encode("path", intentID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 100)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/intents/{intentId}/suggest", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListIntentSuggestionsSender sends the ListIntentSuggestions request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListIntentSuggestionsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListIntentSuggestionsResponder handles the response to the ListIntentSuggestions request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListIntentSuggestionsResponder(resp *http.Response) (result ListIntentsSuggestionExample, 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
+}
+
+// ListModels gets information about all the intent and entity models in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// skip - the number of entries to skip. Default value is 0.
+// take - the number of entries to return. Maximum page size is 500. Default is 100.
+func (client ModelClient) ListModels(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListModelInfoResponse, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListModels")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: skip,
+ Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}},
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(500), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.ModelClient", "ListModels", err.Error())
+ }
+
+ req, err := client.ListModelsPreparer(ctx, appID, versionID, skip, take)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListModels", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListModelsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListModels", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListModelsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListModels", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListModelsPreparer prepares the ListModels request.
+func (client ModelClient) ListModelsPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 100)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/models", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListModelsSender sends the ListModels request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListModelsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListModelsResponder handles the response to the ListModels request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListModelsResponder(resp *http.Response) (result ListModelInfoResponse, 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
+}
+
+// ListPatternAnyEntityInfos sends the list pattern any entity infos request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// skip - the number of entries to skip. Default value is 0.
+// take - the number of entries to return. Maximum page size is 500. Default is 100.
+func (client ModelClient) ListPatternAnyEntityInfos(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListPatternAnyEntityExtractor, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListPatternAnyEntityInfos")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: skip,
+ Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}},
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(500), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.ModelClient", "ListPatternAnyEntityInfos", err.Error())
+ }
+
+ req, err := client.ListPatternAnyEntityInfosPreparer(ctx, appID, versionID, skip, take)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPatternAnyEntityInfos", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListPatternAnyEntityInfosSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPatternAnyEntityInfos", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListPatternAnyEntityInfosResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPatternAnyEntityInfos", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPatternAnyEntityInfosPreparer prepares the ListPatternAnyEntityInfos request.
+func (client ModelClient) ListPatternAnyEntityInfosPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 100)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternanyentities", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListPatternAnyEntityInfosSender sends the ListPatternAnyEntityInfos request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListPatternAnyEntityInfosSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListPatternAnyEntityInfosResponder handles the response to the ListPatternAnyEntityInfos request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListPatternAnyEntityInfosResponder(resp *http.Response) (result ListPatternAnyEntityExtractor, 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
+}
+
+// ListPatternAnyEntityRoles sends the list pattern any entity roles request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - entity Id
+func (client ModelClient) ListPatternAnyEntityRoles(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result ListEntityRole, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListPatternAnyEntityRoles")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListPatternAnyEntityRolesPreparer(ctx, appID, versionID, entityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPatternAnyEntityRoles", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListPatternAnyEntityRolesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPatternAnyEntityRoles", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListPatternAnyEntityRolesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPatternAnyEntityRoles", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPatternAnyEntityRolesPreparer prepares the ListPatternAnyEntityRoles request.
+func (client ModelClient) ListPatternAnyEntityRolesPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListPatternAnyEntityRolesSender sends the ListPatternAnyEntityRoles request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListPatternAnyEntityRolesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListPatternAnyEntityRolesResponder handles the response to the ListPatternAnyEntityRoles request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListPatternAnyEntityRolesResponder(resp *http.Response) (result ListEntityRole, 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
+}
+
+// ListPrebuiltEntities gets all the available prebuilt entities in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+func (client ModelClient) ListPrebuiltEntities(ctx context.Context, appID uuid.UUID, versionID string) (result ListAvailablePrebuiltEntityModel, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListPrebuiltEntities")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListPrebuiltEntitiesPreparer(ctx, appID, versionID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPrebuiltEntities", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListPrebuiltEntitiesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPrebuiltEntities", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListPrebuiltEntitiesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPrebuiltEntities", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPrebuiltEntitiesPreparer prepares the ListPrebuiltEntities request.
+func (client ModelClient) ListPrebuiltEntitiesPreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/listprebuilts", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListPrebuiltEntitiesSender sends the ListPrebuiltEntities request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListPrebuiltEntitiesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListPrebuiltEntitiesResponder handles the response to the ListPrebuiltEntities request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListPrebuiltEntitiesResponder(resp *http.Response) (result ListAvailablePrebuiltEntityModel, 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
+}
+
+// ListPrebuiltEntityRoles sends the list prebuilt entity roles request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - entity Id
+func (client ModelClient) ListPrebuiltEntityRoles(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result ListEntityRole, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListPrebuiltEntityRoles")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListPrebuiltEntityRolesPreparer(ctx, appID, versionID, entityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPrebuiltEntityRoles", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListPrebuiltEntityRolesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPrebuiltEntityRoles", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListPrebuiltEntityRolesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPrebuiltEntityRoles", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPrebuiltEntityRolesPreparer prepares the ListPrebuiltEntityRoles request.
+func (client ModelClient) ListPrebuiltEntityRolesPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListPrebuiltEntityRolesSender sends the ListPrebuiltEntityRoles request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListPrebuiltEntityRolesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListPrebuiltEntityRolesResponder handles the response to the ListPrebuiltEntityRoles request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListPrebuiltEntityRolesResponder(resp *http.Response) (result ListEntityRole, 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
+}
+
+// ListPrebuilts gets information about all the prebuilt entities in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// skip - the number of entries to skip. Default value is 0.
+// take - the number of entries to return. Maximum page size is 500. Default is 100.
+func (client ModelClient) ListPrebuilts(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListPrebuiltEntityExtractor, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListPrebuilts")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: skip,
+ Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}},
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(500), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.ModelClient", "ListPrebuilts", err.Error())
+ }
+
+ req, err := client.ListPrebuiltsPreparer(ctx, appID, versionID, skip, take)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPrebuilts", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListPrebuiltsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPrebuilts", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListPrebuiltsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListPrebuilts", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPrebuiltsPreparer prepares the ListPrebuilts request.
+func (client ModelClient) ListPrebuiltsPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 100)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/prebuilts", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListPrebuiltsSender sends the ListPrebuilts request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListPrebuiltsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListPrebuiltsResponder handles the response to the ListPrebuilts request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListPrebuiltsResponder(resp *http.Response) (result ListPrebuiltEntityExtractor, 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
+}
+
+// ListRegexEntityInfos sends the list regex entity infos request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// skip - the number of entries to skip. Default value is 0.
+// take - the number of entries to return. Maximum page size is 500. Default is 100.
+func (client ModelClient) ListRegexEntityInfos(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListRegexEntityExtractor, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListRegexEntityInfos")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: skip,
+ Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}},
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(500), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.ModelClient", "ListRegexEntityInfos", err.Error())
+ }
+
+ req, err := client.ListRegexEntityInfosPreparer(ctx, appID, versionID, skip, take)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListRegexEntityInfos", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListRegexEntityInfosSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListRegexEntityInfos", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListRegexEntityInfosResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListRegexEntityInfos", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListRegexEntityInfosPreparer prepares the ListRegexEntityInfos request.
+func (client ModelClient) ListRegexEntityInfosPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 100)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/regexentities", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListRegexEntityInfosSender sends the ListRegexEntityInfos request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListRegexEntityInfosSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListRegexEntityInfosResponder handles the response to the ListRegexEntityInfos request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListRegexEntityInfosResponder(resp *http.Response) (result ListRegexEntityExtractor, 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
+}
+
+// ListRegexEntityRoles sends the list regex entity roles request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - entity Id
+func (client ModelClient) ListRegexEntityRoles(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (result ListEntityRole, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ListRegexEntityRoles")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListRegexEntityRolesPreparer(ctx, appID, versionID, entityID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListRegexEntityRoles", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListRegexEntityRolesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListRegexEntityRoles", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListRegexEntityRolesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ListRegexEntityRoles", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListRegexEntityRolesPreparer prepares the ListRegexEntityRoles request.
+func (client ModelClient) ListRegexEntityRolesPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListRegexEntityRolesSender sends the ListRegexEntityRoles request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ListRegexEntityRolesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListRegexEntityRolesResponder handles the response to the ListRegexEntityRoles request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ListRegexEntityRolesResponder(resp *http.Response) (result ListEntityRole, 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
+}
+
+// PatchClosedList adds a batch of sublists to an existing list entity in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// clEntityID - the list entity model ID.
+// closedListModelPatchObject - a words list batch.
+func (client ModelClient) PatchClosedList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, closedListModelPatchObject ClosedListModelPatchObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.PatchClosedList")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.PatchClosedListPreparer(ctx, appID, versionID, clEntityID, closedListModelPatchObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "PatchClosedList", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.PatchClosedListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "PatchClosedList", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.PatchClosedListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "PatchClosedList", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// PatchClosedListPreparer prepares the PatchClosedList request.
+func (client ModelClient) PatchClosedListPreparer(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, closedListModelPatchObject ClosedListModelPatchObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "clEntityId": autorest.Encode("path", clEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPatch(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}", pathParameters),
+ autorest.WithJSON(closedListModelPatchObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// PatchClosedListSender sends the PatchClosedList request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) PatchClosedListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// PatchClosedListResponder handles the response to the PatchClosedList request. The method always
+// closes the http.Response Body.
+func (client ModelClient) PatchClosedListResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ReplaceEntityFeatures updates the information of the features used by the entity in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity extractor ID.
+// featureRelationsUpdateObject - a list of feature information objects containing the new feature relations.
+func (client ModelClient) ReplaceEntityFeatures(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, featureRelationsUpdateObject []ModelFeatureInformation) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ReplaceEntityFeatures")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: featureRelationsUpdateObject,
+ Constraints: []validation.Constraint{{Target: "featureRelationsUpdateObject", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("authoring.ModelClient", "ReplaceEntityFeatures", err.Error())
+ }
+
+ req, err := client.ReplaceEntityFeaturesPreparer(ctx, appID, versionID, entityID, featureRelationsUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ReplaceEntityFeatures", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ReplaceEntityFeaturesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ReplaceEntityFeatures", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ReplaceEntityFeaturesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ReplaceEntityFeatures", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ReplaceEntityFeaturesPreparer prepares the ReplaceEntityFeatures request.
+func (client ModelClient) ReplaceEntityFeaturesPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, featureRelationsUpdateObject []ModelFeatureInformation) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/entities/{entityId}/features", pathParameters),
+ autorest.WithJSON(featureRelationsUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ReplaceEntityFeaturesSender sends the ReplaceEntityFeatures request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ReplaceEntityFeaturesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ReplaceEntityFeaturesResponder handles the response to the ReplaceEntityFeatures request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ReplaceEntityFeaturesResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ReplaceIntentFeatures updates the information of the features used by the intent in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// intentID - the intent classifier ID.
+// featureRelationsUpdateObject - a list of feature information objects containing the new feature relations.
+func (client ModelClient) ReplaceIntentFeatures(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, featureRelationsUpdateObject []ModelFeatureInformation) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.ReplaceIntentFeatures")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: featureRelationsUpdateObject,
+ Constraints: []validation.Constraint{{Target: "featureRelationsUpdateObject", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("authoring.ModelClient", "ReplaceIntentFeatures", err.Error())
+ }
+
+ req, err := client.ReplaceIntentFeaturesPreparer(ctx, appID, versionID, intentID, featureRelationsUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ReplaceIntentFeatures", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ReplaceIntentFeaturesSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ReplaceIntentFeatures", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ReplaceIntentFeaturesResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "ReplaceIntentFeatures", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ReplaceIntentFeaturesPreparer prepares the ReplaceIntentFeatures request.
+func (client ModelClient) ReplaceIntentFeaturesPreparer(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, featureRelationsUpdateObject []ModelFeatureInformation) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "intentId": autorest.Encode("path", intentID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/intents/{intentId}/features", pathParameters),
+ autorest.WithJSON(featureRelationsUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ReplaceIntentFeaturesSender sends the ReplaceIntentFeatures request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) ReplaceIntentFeaturesSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ReplaceIntentFeaturesResponder handles the response to the ReplaceIntentFeatures request. The method always
+// closes the http.Response Body.
+func (client ModelClient) ReplaceIntentFeaturesResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateClosedList updates the list entity in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// clEntityID - the list model ID.
+// closedListModelUpdateObject - the new list entity name and words list.
+func (client ModelClient) UpdateClosedList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, closedListModelUpdateObject ClosedListModelUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.UpdateClosedList")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateClosedListPreparer(ctx, appID, versionID, clEntityID, closedListModelUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateClosedList", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateClosedListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateClosedList", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateClosedListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateClosedList", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateClosedListPreparer prepares the UpdateClosedList request.
+func (client ModelClient) UpdateClosedListPreparer(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, closedListModelUpdateObject ClosedListModelUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "clEntityId": autorest.Encode("path", clEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}", pathParameters),
+ autorest.WithJSON(closedListModelUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateClosedListSender sends the UpdateClosedList request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) UpdateClosedListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateClosedListResponder handles the response to the UpdateClosedList request. The method always
+// closes the http.Response Body.
+func (client ModelClient) UpdateClosedListResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateClosedListEntityRole sends the update closed list entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity ID.
+// roleID - the entity role ID.
+// entityRoleUpdateObject - the new entity role.
+func (client ModelClient) UpdateClosedListEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject EntityRoleUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.UpdateClosedListEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateClosedListEntityRolePreparer(ctx, appID, versionID, entityID, roleID, entityRoleUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateClosedListEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateClosedListEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateClosedListEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateClosedListEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateClosedListEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateClosedListEntityRolePreparer prepares the UpdateClosedListEntityRole request.
+func (client ModelClient) UpdateClosedListEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject EntityRoleUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles/{roleId}", pathParameters),
+ autorest.WithJSON(entityRoleUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateClosedListEntityRoleSender sends the UpdateClosedListEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) UpdateClosedListEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateClosedListEntityRoleResponder handles the response to the UpdateClosedListEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) UpdateClosedListEntityRoleResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateCompositeEntity updates a composite entity in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// cEntityID - the composite entity extractor ID.
+// compositeModelUpdateObject - a model object containing the new entity extractor name and children.
+func (client ModelClient) UpdateCompositeEntity(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, compositeModelUpdateObject CompositeEntityModel) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.UpdateCompositeEntity")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateCompositeEntityPreparer(ctx, appID, versionID, cEntityID, compositeModelUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateCompositeEntity", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateCompositeEntitySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateCompositeEntity", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateCompositeEntityResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateCompositeEntity", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateCompositeEntityPreparer prepares the UpdateCompositeEntity request.
+func (client ModelClient) UpdateCompositeEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, compositeModelUpdateObject CompositeEntityModel) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "cEntityId": autorest.Encode("path", cEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}", pathParameters),
+ autorest.WithJSON(compositeModelUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateCompositeEntitySender sends the UpdateCompositeEntity request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) UpdateCompositeEntitySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateCompositeEntityResponder handles the response to the UpdateCompositeEntity request. The method always
+// closes the http.Response Body.
+func (client ModelClient) UpdateCompositeEntityResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateCompositeEntityRole sends the update composite entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// cEntityID - the composite entity extractor ID.
+// roleID - the entity role ID.
+// entityRoleUpdateObject - the new entity role.
+func (client ModelClient) UpdateCompositeEntityRole(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject EntityRoleUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.UpdateCompositeEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateCompositeEntityRolePreparer(ctx, appID, versionID, cEntityID, roleID, entityRoleUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateCompositeEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateCompositeEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateCompositeEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateCompositeEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateCompositeEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateCompositeEntityRolePreparer prepares the UpdateCompositeEntityRole request.
+func (client ModelClient) UpdateCompositeEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, cEntityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject EntityRoleUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "cEntityId": autorest.Encode("path", cEntityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles/{roleId}", pathParameters),
+ autorest.WithJSON(entityRoleUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateCompositeEntityRoleSender sends the UpdateCompositeEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) UpdateCompositeEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateCompositeEntityRoleResponder handles the response to the UpdateCompositeEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) UpdateCompositeEntityRoleResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateCustomPrebuiltEntityRole sends the update custom prebuilt entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity ID.
+// roleID - the entity role ID.
+// entityRoleUpdateObject - the new entity role.
+func (client ModelClient) UpdateCustomPrebuiltEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject EntityRoleUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.UpdateCustomPrebuiltEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateCustomPrebuiltEntityRolePreparer(ctx, appID, versionID, entityID, roleID, entityRoleUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateCustomPrebuiltEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateCustomPrebuiltEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateCustomPrebuiltEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateCustomPrebuiltEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateCustomPrebuiltEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateCustomPrebuiltEntityRolePreparer prepares the UpdateCustomPrebuiltEntityRole request.
+func (client ModelClient) UpdateCustomPrebuiltEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject EntityRoleUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles/{roleId}", pathParameters),
+ autorest.WithJSON(entityRoleUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateCustomPrebuiltEntityRoleSender sends the UpdateCustomPrebuiltEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) UpdateCustomPrebuiltEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateCustomPrebuiltEntityRoleResponder handles the response to the UpdateCustomPrebuiltEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) UpdateCustomPrebuiltEntityRoleResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateEntityChild updates the name of an entity extractor or the name and instanceOf model of a child entity
+// extractor.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity extractor or the child entity extractor ID.
+// entityModelUpdateObject - a model object containing the name new entity extractor or the name and instance
+// of model of a child entity extractor
+func (client ModelClient) UpdateEntityChild(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityModelUpdateObject EntityModelUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.UpdateEntityChild")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateEntityChildPreparer(ctx, appID, versionID, entityID, entityModelUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateEntityChild", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateEntityChildSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateEntityChild", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateEntityChildResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateEntityChild", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateEntityChildPreparer prepares the UpdateEntityChild request.
+func (client ModelClient) UpdateEntityChildPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, entityModelUpdateObject EntityModelUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPatch(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/entities/{entityId}", pathParameters),
+ autorest.WithJSON(entityModelUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateEntityChildSender sends the UpdateEntityChild request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) UpdateEntityChildSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateEntityChildResponder handles the response to the UpdateEntityChild request. The method always
+// closes the http.Response Body.
+func (client ModelClient) UpdateEntityChildResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateEntityRole sends the update entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity ID.
+// roleID - the entity role ID.
+// entityRoleUpdateObject - the new entity role.
+func (client ModelClient) UpdateEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject EntityRoleUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.UpdateEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateEntityRolePreparer(ctx, appID, versionID, entityID, roleID, entityRoleUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateEntityRolePreparer prepares the UpdateEntityRole request.
+func (client ModelClient) UpdateEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject EntityRoleUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}", pathParameters),
+ autorest.WithJSON(entityRoleUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateEntityRoleSender sends the UpdateEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) UpdateEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateEntityRoleResponder handles the response to the UpdateEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) UpdateEntityRoleResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateExplicitListItem sends the update explicit list item request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the Pattern.Any entity extractor ID.
+// itemID - the explicit list item ID.
+// item - the new explicit list item.
+func (client ModelClient) UpdateExplicitListItem(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, itemID int64, item ExplicitListItemUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.UpdateExplicitListItem")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateExplicitListItemPreparer(ctx, appID, versionID, entityID, itemID, item)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateExplicitListItem", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateExplicitListItemSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateExplicitListItem", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateExplicitListItemResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateExplicitListItem", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateExplicitListItemPreparer prepares the UpdateExplicitListItem request.
+func (client ModelClient) UpdateExplicitListItemPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, itemID int64, item ExplicitListItemUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "itemId": autorest.Encode("path", itemID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist/{itemId}", pathParameters),
+ autorest.WithJSON(item))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateExplicitListItemSender sends the UpdateExplicitListItem request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) UpdateExplicitListItemSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateExplicitListItemResponder handles the response to the UpdateExplicitListItem request. The method always
+// closes the http.Response Body.
+func (client ModelClient) UpdateExplicitListItemResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateHierarchicalEntity updates the name of a hierarchical entity model in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// hEntityID - the hierarchical entity extractor ID.
+// modelUpdateObject - model containing names of the hierarchical entity.
+func (client ModelClient) UpdateHierarchicalEntity(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, modelUpdateObject ModelUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.UpdateHierarchicalEntity")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateHierarchicalEntityPreparer(ctx, appID, versionID, hEntityID, modelUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateHierarchicalEntity", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateHierarchicalEntitySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateHierarchicalEntity", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateHierarchicalEntityResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateHierarchicalEntity", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateHierarchicalEntityPreparer prepares the UpdateHierarchicalEntity request.
+func (client ModelClient) UpdateHierarchicalEntityPreparer(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, modelUpdateObject ModelUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "hEntityId": autorest.Encode("path", hEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPatch(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}", pathParameters),
+ autorest.WithJSON(modelUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateHierarchicalEntitySender sends the UpdateHierarchicalEntity request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) UpdateHierarchicalEntitySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateHierarchicalEntityResponder handles the response to the UpdateHierarchicalEntity request. The method always
+// closes the http.Response Body.
+func (client ModelClient) UpdateHierarchicalEntityResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateHierarchicalEntityChild renames a single child in an existing hierarchical entity model in a version of the
+// application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// hEntityID - the hierarchical entity extractor ID.
+// hChildID - the hierarchical entity extractor child ID.
+// hierarchicalChildModelUpdateObject - model object containing new name of the hierarchical entity child.
+func (client ModelClient) UpdateHierarchicalEntityChild(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, hChildID uuid.UUID, hierarchicalChildModelUpdateObject HierarchicalChildModelUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.UpdateHierarchicalEntityChild")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateHierarchicalEntityChildPreparer(ctx, appID, versionID, hEntityID, hChildID, hierarchicalChildModelUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateHierarchicalEntityChild", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateHierarchicalEntityChildSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateHierarchicalEntityChild", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateHierarchicalEntityChildResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateHierarchicalEntityChild", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateHierarchicalEntityChildPreparer prepares the UpdateHierarchicalEntityChild request.
+func (client ModelClient) UpdateHierarchicalEntityChildPreparer(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, hChildID uuid.UUID, hierarchicalChildModelUpdateObject HierarchicalChildModelUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "hChildId": autorest.Encode("path", hChildID),
+ "hEntityId": autorest.Encode("path", hEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPatch(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}", pathParameters),
+ autorest.WithJSON(hierarchicalChildModelUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateHierarchicalEntityChildSender sends the UpdateHierarchicalEntityChild request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) UpdateHierarchicalEntityChildSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateHierarchicalEntityChildResponder handles the response to the UpdateHierarchicalEntityChild request. The method always
+// closes the http.Response Body.
+func (client ModelClient) UpdateHierarchicalEntityChildResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateHierarchicalEntityRole sends the update hierarchical entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// hEntityID - the hierarchical entity extractor ID.
+// roleID - the entity role ID.
+// entityRoleUpdateObject - the new entity role.
+func (client ModelClient) UpdateHierarchicalEntityRole(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject EntityRoleUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.UpdateHierarchicalEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateHierarchicalEntityRolePreparer(ctx, appID, versionID, hEntityID, roleID, entityRoleUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateHierarchicalEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateHierarchicalEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateHierarchicalEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateHierarchicalEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateHierarchicalEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateHierarchicalEntityRolePreparer prepares the UpdateHierarchicalEntityRole request.
+func (client ModelClient) UpdateHierarchicalEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, hEntityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject EntityRoleUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "hEntityId": autorest.Encode("path", hEntityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles/{roleId}", pathParameters),
+ autorest.WithJSON(entityRoleUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateHierarchicalEntityRoleSender sends the UpdateHierarchicalEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) UpdateHierarchicalEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateHierarchicalEntityRoleResponder handles the response to the UpdateHierarchicalEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) UpdateHierarchicalEntityRoleResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateIntent updates the name of an intent in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// intentID - the intent classifier ID.
+// modelUpdateObject - a model object containing the new intent name.
+func (client ModelClient) UpdateIntent(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, modelUpdateObject ModelUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.UpdateIntent")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateIntentPreparer(ctx, appID, versionID, intentID, modelUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateIntent", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateIntentSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateIntent", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateIntentResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateIntent", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateIntentPreparer prepares the UpdateIntent request.
+func (client ModelClient) UpdateIntentPreparer(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, modelUpdateObject ModelUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "intentId": autorest.Encode("path", intentID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/intents/{intentId}", pathParameters),
+ autorest.WithJSON(modelUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateIntentSender sends the UpdateIntent request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) UpdateIntentSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateIntentResponder handles the response to the UpdateIntent request. The method always
+// closes the http.Response Body.
+func (client ModelClient) UpdateIntentResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdatePatternAnyEntityModel sends the update pattern any entity model request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the Pattern.Any entity extractor ID.
+// patternAnyUpdateObject - an object containing the explicit list of the Pattern.Any entity.
+func (client ModelClient) UpdatePatternAnyEntityModel(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, patternAnyUpdateObject PatternAnyModelUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.UpdatePatternAnyEntityModel")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdatePatternAnyEntityModelPreparer(ctx, appID, versionID, entityID, patternAnyUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdatePatternAnyEntityModel", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdatePatternAnyEntityModelSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdatePatternAnyEntityModel", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdatePatternAnyEntityModelResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdatePatternAnyEntityModel", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdatePatternAnyEntityModelPreparer prepares the UpdatePatternAnyEntityModel request.
+func (client ModelClient) UpdatePatternAnyEntityModelPreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, patternAnyUpdateObject PatternAnyModelUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}", pathParameters),
+ autorest.WithJSON(patternAnyUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdatePatternAnyEntityModelSender sends the UpdatePatternAnyEntityModel request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) UpdatePatternAnyEntityModelSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdatePatternAnyEntityModelResponder handles the response to the UpdatePatternAnyEntityModel request. The method always
+// closes the http.Response Body.
+func (client ModelClient) UpdatePatternAnyEntityModelResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdatePatternAnyEntityRole sends the update pattern any entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity ID.
+// roleID - the entity role ID.
+// entityRoleUpdateObject - the new entity role.
+func (client ModelClient) UpdatePatternAnyEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject EntityRoleUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.UpdatePatternAnyEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdatePatternAnyEntityRolePreparer(ctx, appID, versionID, entityID, roleID, entityRoleUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdatePatternAnyEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdatePatternAnyEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdatePatternAnyEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdatePatternAnyEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdatePatternAnyEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdatePatternAnyEntityRolePreparer prepares the UpdatePatternAnyEntityRole request.
+func (client ModelClient) UpdatePatternAnyEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject EntityRoleUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles/{roleId}", pathParameters),
+ autorest.WithJSON(entityRoleUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdatePatternAnyEntityRoleSender sends the UpdatePatternAnyEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) UpdatePatternAnyEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdatePatternAnyEntityRoleResponder handles the response to the UpdatePatternAnyEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) UpdatePatternAnyEntityRoleResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdatePrebuiltEntityRole sends the update prebuilt entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity ID.
+// roleID - the entity role ID.
+// entityRoleUpdateObject - the new entity role.
+func (client ModelClient) UpdatePrebuiltEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject EntityRoleUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.UpdatePrebuiltEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdatePrebuiltEntityRolePreparer(ctx, appID, versionID, entityID, roleID, entityRoleUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdatePrebuiltEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdatePrebuiltEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdatePrebuiltEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdatePrebuiltEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdatePrebuiltEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdatePrebuiltEntityRolePreparer prepares the UpdatePrebuiltEntityRole request.
+func (client ModelClient) UpdatePrebuiltEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject EntityRoleUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}", pathParameters),
+ autorest.WithJSON(entityRoleUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdatePrebuiltEntityRoleSender sends the UpdatePrebuiltEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) UpdatePrebuiltEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdatePrebuiltEntityRoleResponder handles the response to the UpdatePrebuiltEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) UpdatePrebuiltEntityRoleResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateRegexEntityModel sends the update regex entity model request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// regexEntityID - the regular expression entity extractor ID.
+// regexEntityUpdateObject - an object containing the new entity name and regex pattern.
+func (client ModelClient) UpdateRegexEntityModel(ctx context.Context, appID uuid.UUID, versionID string, regexEntityID uuid.UUID, regexEntityUpdateObject RegexModelUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.UpdateRegexEntityModel")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateRegexEntityModelPreparer(ctx, appID, versionID, regexEntityID, regexEntityUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateRegexEntityModel", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateRegexEntityModelSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateRegexEntityModel", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateRegexEntityModelResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateRegexEntityModel", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateRegexEntityModelPreparer prepares the UpdateRegexEntityModel request.
+func (client ModelClient) UpdateRegexEntityModelPreparer(ctx context.Context, appID uuid.UUID, versionID string, regexEntityID uuid.UUID, regexEntityUpdateObject RegexModelUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "regexEntityId": autorest.Encode("path", regexEntityID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}", pathParameters),
+ autorest.WithJSON(regexEntityUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateRegexEntityModelSender sends the UpdateRegexEntityModel request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) UpdateRegexEntityModelSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateRegexEntityModelResponder handles the response to the UpdateRegexEntityModel request. The method always
+// closes the http.Response Body.
+func (client ModelClient) UpdateRegexEntityModelResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateRegexEntityRole sends the update regex entity role request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// entityID - the entity ID.
+// roleID - the entity role ID.
+// entityRoleUpdateObject - the new entity role.
+func (client ModelClient) UpdateRegexEntityRole(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject EntityRoleUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.UpdateRegexEntityRole")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateRegexEntityRolePreparer(ctx, appID, versionID, entityID, roleID, entityRoleUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateRegexEntityRole", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateRegexEntityRoleSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateRegexEntityRole", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateRegexEntityRoleResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateRegexEntityRole", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateRegexEntityRolePreparer prepares the UpdateRegexEntityRole request.
+func (client ModelClient) UpdateRegexEntityRolePreparer(ctx context.Context, appID uuid.UUID, versionID string, entityID uuid.UUID, roleID uuid.UUID, entityRoleUpdateObject EntityRoleUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "entityId": autorest.Encode("path", entityID),
+ "roleId": autorest.Encode("path", roleID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}", pathParameters),
+ autorest.WithJSON(entityRoleUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateRegexEntityRoleSender sends the UpdateRegexEntityRole request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) UpdateRegexEntityRoleSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateRegexEntityRoleResponder handles the response to the UpdateRegexEntityRole request. The method always
+// closes the http.Response Body.
+func (client ModelClient) UpdateRegexEntityRoleResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdateSubList updates one of the list entity's sublists in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// clEntityID - the list entity extractor ID.
+// subListID - the sublist ID.
+// wordListBaseUpdateObject - a sublist update object containing the new canonical form and the list of words.
+func (client ModelClient) UpdateSubList(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, subListID int64, wordListBaseUpdateObject WordListBaseUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ModelClient.UpdateSubList")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdateSubListPreparer(ctx, appID, versionID, clEntityID, subListID, wordListBaseUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateSubList", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateSubListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateSubList", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateSubListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.ModelClient", "UpdateSubList", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdateSubListPreparer prepares the UpdateSubList request.
+func (client ModelClient) UpdateSubListPreparer(ctx context.Context, appID uuid.UUID, versionID string, clEntityID uuid.UUID, subListID int64, wordListBaseUpdateObject WordListBaseUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "clEntityId": autorest.Encode("path", clEntityID),
+ "subListId": autorest.Encode("path", subListID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists/{subListId}", pathParameters),
+ autorest.WithJSON(wordListBaseUpdateObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateSubListSender sends the UpdateSubList request. The method will close the
+// http.Response Body if it receives an error.
+func (client ModelClient) UpdateSubListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateSubListResponder handles the response to the UpdateSubList request. The method always
+// closes the http.Response Body.
+func (client ModelClient) UpdateSubListResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/models.go b/services/preview/cognitiveservices/v3.0/luis/authoring/models.go
new file mode 100644
index 000000000000..64d7ab0da5b2
--- /dev/null
+++ b/services/preview/cognitiveservices/v3.0/luis/authoring/models.go
@@ -0,0 +1,2178 @@
+package authoring
+
+// 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 (
+ "encoding/json"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/date"
+ "github.com/satori/go.uuid"
+ "io"
+)
+
+// The package's fully qualified name.
+const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/v3.0/luis/authoring"
+
+// OperationStatusType enumerates the values for operation status type.
+type OperationStatusType string
+
+const (
+ // Failed ...
+ Failed OperationStatusType = "Failed"
+ // FAILED ...
+ FAILED OperationStatusType = "FAILED"
+ // Success ...
+ Success OperationStatusType = "Success"
+)
+
+// PossibleOperationStatusTypeValues returns an array of possible values for the OperationStatusType const type.
+func PossibleOperationStatusTypeValues() []OperationStatusType {
+ return []OperationStatusType{Failed, FAILED, Success}
+}
+
+// ReadableType enumerates the values for readable type.
+type ReadableType string
+
+const (
+ // ReadableTypeChildEntityExtractor ...
+ ReadableTypeChildEntityExtractor ReadableType = "Child Entity Extractor"
+ // ReadableTypeClosedListEntityExtractor ...
+ ReadableTypeClosedListEntityExtractor ReadableType = "Closed List Entity Extractor"
+ // ReadableTypeCompositeEntityExtractor ...
+ ReadableTypeCompositeEntityExtractor ReadableType = "Composite Entity Extractor"
+ // ReadableTypeEntityExtractor ...
+ ReadableTypeEntityExtractor ReadableType = "Entity Extractor"
+ // ReadableTypeHierarchicalChildEntityExtractor ...
+ ReadableTypeHierarchicalChildEntityExtractor ReadableType = "Hierarchical Child Entity Extractor"
+ // ReadableTypeHierarchicalEntityExtractor ...
+ ReadableTypeHierarchicalEntityExtractor ReadableType = "Hierarchical Entity Extractor"
+ // ReadableTypeIntentClassifier ...
+ ReadableTypeIntentClassifier ReadableType = "Intent Classifier"
+ // ReadableTypeListEntityExtractor ...
+ ReadableTypeListEntityExtractor ReadableType = "List Entity Extractor"
+ // ReadableTypePatternAnyEntityExtractor ...
+ ReadableTypePatternAnyEntityExtractor ReadableType = "Pattern.Any Entity Extractor"
+ // ReadableTypePrebuiltEntityExtractor ...
+ ReadableTypePrebuiltEntityExtractor ReadableType = "Prebuilt Entity Extractor"
+ // ReadableTypeRegexEntityExtractor ...
+ ReadableTypeRegexEntityExtractor ReadableType = "Regex Entity Extractor"
+)
+
+// PossibleReadableTypeValues returns an array of possible values for the ReadableType const type.
+func PossibleReadableTypeValues() []ReadableType {
+ return []ReadableType{ReadableTypeChildEntityExtractor, ReadableTypeClosedListEntityExtractor, ReadableTypeCompositeEntityExtractor, ReadableTypeEntityExtractor, ReadableTypeHierarchicalChildEntityExtractor, ReadableTypeHierarchicalEntityExtractor, ReadableTypeIntentClassifier, ReadableTypeListEntityExtractor, ReadableTypePatternAnyEntityExtractor, ReadableTypePrebuiltEntityExtractor, ReadableTypeRegexEntityExtractor}
+}
+
+// ReadableType1 enumerates the values for readable type 1.
+type ReadableType1 string
+
+const (
+ // ReadableType1ChildEntityExtractor ...
+ ReadableType1ChildEntityExtractor ReadableType1 = "Child Entity Extractor"
+ // ReadableType1ClosedListEntityExtractor ...
+ ReadableType1ClosedListEntityExtractor ReadableType1 = "Closed List Entity Extractor"
+ // ReadableType1CompositeEntityExtractor ...
+ ReadableType1CompositeEntityExtractor ReadableType1 = "Composite Entity Extractor"
+ // ReadableType1EntityExtractor ...
+ ReadableType1EntityExtractor ReadableType1 = "Entity Extractor"
+ // ReadableType1HierarchicalChildEntityExtractor ...
+ ReadableType1HierarchicalChildEntityExtractor ReadableType1 = "Hierarchical Child Entity Extractor"
+ // ReadableType1HierarchicalEntityExtractor ...
+ ReadableType1HierarchicalEntityExtractor ReadableType1 = "Hierarchical Entity Extractor"
+ // ReadableType1IntentClassifier ...
+ ReadableType1IntentClassifier ReadableType1 = "Intent Classifier"
+ // ReadableType1ListEntityExtractor ...
+ ReadableType1ListEntityExtractor ReadableType1 = "List Entity Extractor"
+ // ReadableType1PatternAnyEntityExtractor ...
+ ReadableType1PatternAnyEntityExtractor ReadableType1 = "Pattern.Any Entity Extractor"
+ // ReadableType1PrebuiltEntityExtractor ...
+ ReadableType1PrebuiltEntityExtractor ReadableType1 = "Prebuilt Entity Extractor"
+ // ReadableType1RegexEntityExtractor ...
+ ReadableType1RegexEntityExtractor ReadableType1 = "Regex Entity Extractor"
+)
+
+// PossibleReadableType1Values returns an array of possible values for the ReadableType1 const type.
+func PossibleReadableType1Values() []ReadableType1 {
+ return []ReadableType1{ReadableType1ChildEntityExtractor, ReadableType1ClosedListEntityExtractor, ReadableType1CompositeEntityExtractor, ReadableType1EntityExtractor, ReadableType1HierarchicalChildEntityExtractor, ReadableType1HierarchicalEntityExtractor, ReadableType1IntentClassifier, ReadableType1ListEntityExtractor, ReadableType1PatternAnyEntityExtractor, ReadableType1PrebuiltEntityExtractor, ReadableType1RegexEntityExtractor}
+}
+
+// ReadableType10 enumerates the values for readable type 10.
+type ReadableType10 string
+
+const (
+ // ReadableType10ChildEntityExtractor ...
+ ReadableType10ChildEntityExtractor ReadableType10 = "Child Entity Extractor"
+ // ReadableType10ClosedListEntityExtractor ...
+ ReadableType10ClosedListEntityExtractor ReadableType10 = "Closed List Entity Extractor"
+ // ReadableType10CompositeEntityExtractor ...
+ ReadableType10CompositeEntityExtractor ReadableType10 = "Composite Entity Extractor"
+ // ReadableType10EntityExtractor ...
+ ReadableType10EntityExtractor ReadableType10 = "Entity Extractor"
+ // ReadableType10HierarchicalChildEntityExtractor ...
+ ReadableType10HierarchicalChildEntityExtractor ReadableType10 = "Hierarchical Child Entity Extractor"
+ // ReadableType10HierarchicalEntityExtractor ...
+ ReadableType10HierarchicalEntityExtractor ReadableType10 = "Hierarchical Entity Extractor"
+ // ReadableType10IntentClassifier ...
+ ReadableType10IntentClassifier ReadableType10 = "Intent Classifier"
+ // ReadableType10ListEntityExtractor ...
+ ReadableType10ListEntityExtractor ReadableType10 = "List Entity Extractor"
+ // ReadableType10PatternAnyEntityExtractor ...
+ ReadableType10PatternAnyEntityExtractor ReadableType10 = "Pattern.Any Entity Extractor"
+ // ReadableType10PrebuiltEntityExtractor ...
+ ReadableType10PrebuiltEntityExtractor ReadableType10 = "Prebuilt Entity Extractor"
+ // ReadableType10RegexEntityExtractor ...
+ ReadableType10RegexEntityExtractor ReadableType10 = "Regex Entity Extractor"
+)
+
+// PossibleReadableType10Values returns an array of possible values for the ReadableType10 const type.
+func PossibleReadableType10Values() []ReadableType10 {
+ return []ReadableType10{ReadableType10ChildEntityExtractor, ReadableType10ClosedListEntityExtractor, ReadableType10CompositeEntityExtractor, ReadableType10EntityExtractor, ReadableType10HierarchicalChildEntityExtractor, ReadableType10HierarchicalEntityExtractor, ReadableType10IntentClassifier, ReadableType10ListEntityExtractor, ReadableType10PatternAnyEntityExtractor, ReadableType10PrebuiltEntityExtractor, ReadableType10RegexEntityExtractor}
+}
+
+// ReadableType11 enumerates the values for readable type 11.
+type ReadableType11 string
+
+const (
+ // ReadableType11ChildEntityExtractor ...
+ ReadableType11ChildEntityExtractor ReadableType11 = "Child Entity Extractor"
+ // ReadableType11ClosedListEntityExtractor ...
+ ReadableType11ClosedListEntityExtractor ReadableType11 = "Closed List Entity Extractor"
+ // ReadableType11CompositeEntityExtractor ...
+ ReadableType11CompositeEntityExtractor ReadableType11 = "Composite Entity Extractor"
+ // ReadableType11EntityExtractor ...
+ ReadableType11EntityExtractor ReadableType11 = "Entity Extractor"
+ // ReadableType11HierarchicalChildEntityExtractor ...
+ ReadableType11HierarchicalChildEntityExtractor ReadableType11 = "Hierarchical Child Entity Extractor"
+ // ReadableType11HierarchicalEntityExtractor ...
+ ReadableType11HierarchicalEntityExtractor ReadableType11 = "Hierarchical Entity Extractor"
+ // ReadableType11IntentClassifier ...
+ ReadableType11IntentClassifier ReadableType11 = "Intent Classifier"
+ // ReadableType11ListEntityExtractor ...
+ ReadableType11ListEntityExtractor ReadableType11 = "List Entity Extractor"
+ // ReadableType11PatternAnyEntityExtractor ...
+ ReadableType11PatternAnyEntityExtractor ReadableType11 = "Pattern.Any Entity Extractor"
+ // ReadableType11PrebuiltEntityExtractor ...
+ ReadableType11PrebuiltEntityExtractor ReadableType11 = "Prebuilt Entity Extractor"
+ // ReadableType11RegexEntityExtractor ...
+ ReadableType11RegexEntityExtractor ReadableType11 = "Regex Entity Extractor"
+)
+
+// PossibleReadableType11Values returns an array of possible values for the ReadableType11 const type.
+func PossibleReadableType11Values() []ReadableType11 {
+ return []ReadableType11{ReadableType11ChildEntityExtractor, ReadableType11ClosedListEntityExtractor, ReadableType11CompositeEntityExtractor, ReadableType11EntityExtractor, ReadableType11HierarchicalChildEntityExtractor, ReadableType11HierarchicalEntityExtractor, ReadableType11IntentClassifier, ReadableType11ListEntityExtractor, ReadableType11PatternAnyEntityExtractor, ReadableType11PrebuiltEntityExtractor, ReadableType11RegexEntityExtractor}
+}
+
+// ReadableType2 enumerates the values for readable type 2.
+type ReadableType2 string
+
+const (
+ // ReadableType2ChildEntityExtractor ...
+ ReadableType2ChildEntityExtractor ReadableType2 = "Child Entity Extractor"
+ // ReadableType2ClosedListEntityExtractor ...
+ ReadableType2ClosedListEntityExtractor ReadableType2 = "Closed List Entity Extractor"
+ // ReadableType2CompositeEntityExtractor ...
+ ReadableType2CompositeEntityExtractor ReadableType2 = "Composite Entity Extractor"
+ // ReadableType2EntityExtractor ...
+ ReadableType2EntityExtractor ReadableType2 = "Entity Extractor"
+ // ReadableType2HierarchicalChildEntityExtractor ...
+ ReadableType2HierarchicalChildEntityExtractor ReadableType2 = "Hierarchical Child Entity Extractor"
+ // ReadableType2HierarchicalEntityExtractor ...
+ ReadableType2HierarchicalEntityExtractor ReadableType2 = "Hierarchical Entity Extractor"
+ // ReadableType2IntentClassifier ...
+ ReadableType2IntentClassifier ReadableType2 = "Intent Classifier"
+ // ReadableType2ListEntityExtractor ...
+ ReadableType2ListEntityExtractor ReadableType2 = "List Entity Extractor"
+ // ReadableType2PatternAnyEntityExtractor ...
+ ReadableType2PatternAnyEntityExtractor ReadableType2 = "Pattern.Any Entity Extractor"
+ // ReadableType2PrebuiltEntityExtractor ...
+ ReadableType2PrebuiltEntityExtractor ReadableType2 = "Prebuilt Entity Extractor"
+ // ReadableType2RegexEntityExtractor ...
+ ReadableType2RegexEntityExtractor ReadableType2 = "Regex Entity Extractor"
+)
+
+// PossibleReadableType2Values returns an array of possible values for the ReadableType2 const type.
+func PossibleReadableType2Values() []ReadableType2 {
+ return []ReadableType2{ReadableType2ChildEntityExtractor, ReadableType2ClosedListEntityExtractor, ReadableType2CompositeEntityExtractor, ReadableType2EntityExtractor, ReadableType2HierarchicalChildEntityExtractor, ReadableType2HierarchicalEntityExtractor, ReadableType2IntentClassifier, ReadableType2ListEntityExtractor, ReadableType2PatternAnyEntityExtractor, ReadableType2PrebuiltEntityExtractor, ReadableType2RegexEntityExtractor}
+}
+
+// ReadableType3 enumerates the values for readable type 3.
+type ReadableType3 string
+
+const (
+ // ReadableType3ChildEntityExtractor ...
+ ReadableType3ChildEntityExtractor ReadableType3 = "Child Entity Extractor"
+ // ReadableType3ClosedListEntityExtractor ...
+ ReadableType3ClosedListEntityExtractor ReadableType3 = "Closed List Entity Extractor"
+ // ReadableType3CompositeEntityExtractor ...
+ ReadableType3CompositeEntityExtractor ReadableType3 = "Composite Entity Extractor"
+ // ReadableType3EntityExtractor ...
+ ReadableType3EntityExtractor ReadableType3 = "Entity Extractor"
+ // ReadableType3HierarchicalChildEntityExtractor ...
+ ReadableType3HierarchicalChildEntityExtractor ReadableType3 = "Hierarchical Child Entity Extractor"
+ // ReadableType3HierarchicalEntityExtractor ...
+ ReadableType3HierarchicalEntityExtractor ReadableType3 = "Hierarchical Entity Extractor"
+ // ReadableType3IntentClassifier ...
+ ReadableType3IntentClassifier ReadableType3 = "Intent Classifier"
+ // ReadableType3ListEntityExtractor ...
+ ReadableType3ListEntityExtractor ReadableType3 = "List Entity Extractor"
+ // ReadableType3PatternAnyEntityExtractor ...
+ ReadableType3PatternAnyEntityExtractor ReadableType3 = "Pattern.Any Entity Extractor"
+ // ReadableType3PrebuiltEntityExtractor ...
+ ReadableType3PrebuiltEntityExtractor ReadableType3 = "Prebuilt Entity Extractor"
+ // ReadableType3RegexEntityExtractor ...
+ ReadableType3RegexEntityExtractor ReadableType3 = "Regex Entity Extractor"
+)
+
+// PossibleReadableType3Values returns an array of possible values for the ReadableType3 const type.
+func PossibleReadableType3Values() []ReadableType3 {
+ return []ReadableType3{ReadableType3ChildEntityExtractor, ReadableType3ClosedListEntityExtractor, ReadableType3CompositeEntityExtractor, ReadableType3EntityExtractor, ReadableType3HierarchicalChildEntityExtractor, ReadableType3HierarchicalEntityExtractor, ReadableType3IntentClassifier, ReadableType3ListEntityExtractor, ReadableType3PatternAnyEntityExtractor, ReadableType3PrebuiltEntityExtractor, ReadableType3RegexEntityExtractor}
+}
+
+// ReadableType4 enumerates the values for readable type 4.
+type ReadableType4 string
+
+const (
+ // ReadableType4ChildEntityExtractor ...
+ ReadableType4ChildEntityExtractor ReadableType4 = "Child Entity Extractor"
+ // ReadableType4ClosedListEntityExtractor ...
+ ReadableType4ClosedListEntityExtractor ReadableType4 = "Closed List Entity Extractor"
+ // ReadableType4CompositeEntityExtractor ...
+ ReadableType4CompositeEntityExtractor ReadableType4 = "Composite Entity Extractor"
+ // ReadableType4EntityExtractor ...
+ ReadableType4EntityExtractor ReadableType4 = "Entity Extractor"
+ // ReadableType4HierarchicalChildEntityExtractor ...
+ ReadableType4HierarchicalChildEntityExtractor ReadableType4 = "Hierarchical Child Entity Extractor"
+ // ReadableType4HierarchicalEntityExtractor ...
+ ReadableType4HierarchicalEntityExtractor ReadableType4 = "Hierarchical Entity Extractor"
+ // ReadableType4IntentClassifier ...
+ ReadableType4IntentClassifier ReadableType4 = "Intent Classifier"
+ // ReadableType4ListEntityExtractor ...
+ ReadableType4ListEntityExtractor ReadableType4 = "List Entity Extractor"
+ // ReadableType4PatternAnyEntityExtractor ...
+ ReadableType4PatternAnyEntityExtractor ReadableType4 = "Pattern.Any Entity Extractor"
+ // ReadableType4PrebuiltEntityExtractor ...
+ ReadableType4PrebuiltEntityExtractor ReadableType4 = "Prebuilt Entity Extractor"
+ // ReadableType4RegexEntityExtractor ...
+ ReadableType4RegexEntityExtractor ReadableType4 = "Regex Entity Extractor"
+)
+
+// PossibleReadableType4Values returns an array of possible values for the ReadableType4 const type.
+func PossibleReadableType4Values() []ReadableType4 {
+ return []ReadableType4{ReadableType4ChildEntityExtractor, ReadableType4ClosedListEntityExtractor, ReadableType4CompositeEntityExtractor, ReadableType4EntityExtractor, ReadableType4HierarchicalChildEntityExtractor, ReadableType4HierarchicalEntityExtractor, ReadableType4IntentClassifier, ReadableType4ListEntityExtractor, ReadableType4PatternAnyEntityExtractor, ReadableType4PrebuiltEntityExtractor, ReadableType4RegexEntityExtractor}
+}
+
+// ReadableType5 enumerates the values for readable type 5.
+type ReadableType5 string
+
+const (
+ // ReadableType5ChildEntityExtractor ...
+ ReadableType5ChildEntityExtractor ReadableType5 = "Child Entity Extractor"
+ // ReadableType5ClosedListEntityExtractor ...
+ ReadableType5ClosedListEntityExtractor ReadableType5 = "Closed List Entity Extractor"
+ // ReadableType5CompositeEntityExtractor ...
+ ReadableType5CompositeEntityExtractor ReadableType5 = "Composite Entity Extractor"
+ // ReadableType5EntityExtractor ...
+ ReadableType5EntityExtractor ReadableType5 = "Entity Extractor"
+ // ReadableType5HierarchicalChildEntityExtractor ...
+ ReadableType5HierarchicalChildEntityExtractor ReadableType5 = "Hierarchical Child Entity Extractor"
+ // ReadableType5HierarchicalEntityExtractor ...
+ ReadableType5HierarchicalEntityExtractor ReadableType5 = "Hierarchical Entity Extractor"
+ // ReadableType5IntentClassifier ...
+ ReadableType5IntentClassifier ReadableType5 = "Intent Classifier"
+ // ReadableType5ListEntityExtractor ...
+ ReadableType5ListEntityExtractor ReadableType5 = "List Entity Extractor"
+ // ReadableType5PatternAnyEntityExtractor ...
+ ReadableType5PatternAnyEntityExtractor ReadableType5 = "Pattern.Any Entity Extractor"
+ // ReadableType5PrebuiltEntityExtractor ...
+ ReadableType5PrebuiltEntityExtractor ReadableType5 = "Prebuilt Entity Extractor"
+ // ReadableType5RegexEntityExtractor ...
+ ReadableType5RegexEntityExtractor ReadableType5 = "Regex Entity Extractor"
+)
+
+// PossibleReadableType5Values returns an array of possible values for the ReadableType5 const type.
+func PossibleReadableType5Values() []ReadableType5 {
+ return []ReadableType5{ReadableType5ChildEntityExtractor, ReadableType5ClosedListEntityExtractor, ReadableType5CompositeEntityExtractor, ReadableType5EntityExtractor, ReadableType5HierarchicalChildEntityExtractor, ReadableType5HierarchicalEntityExtractor, ReadableType5IntentClassifier, ReadableType5ListEntityExtractor, ReadableType5PatternAnyEntityExtractor, ReadableType5PrebuiltEntityExtractor, ReadableType5RegexEntityExtractor}
+}
+
+// ReadableType6 enumerates the values for readable type 6.
+type ReadableType6 string
+
+const (
+ // ReadableType6ChildEntityExtractor ...
+ ReadableType6ChildEntityExtractor ReadableType6 = "Child Entity Extractor"
+ // ReadableType6ClosedListEntityExtractor ...
+ ReadableType6ClosedListEntityExtractor ReadableType6 = "Closed List Entity Extractor"
+ // ReadableType6CompositeEntityExtractor ...
+ ReadableType6CompositeEntityExtractor ReadableType6 = "Composite Entity Extractor"
+ // ReadableType6EntityExtractor ...
+ ReadableType6EntityExtractor ReadableType6 = "Entity Extractor"
+ // ReadableType6HierarchicalChildEntityExtractor ...
+ ReadableType6HierarchicalChildEntityExtractor ReadableType6 = "Hierarchical Child Entity Extractor"
+ // ReadableType6HierarchicalEntityExtractor ...
+ ReadableType6HierarchicalEntityExtractor ReadableType6 = "Hierarchical Entity Extractor"
+ // ReadableType6IntentClassifier ...
+ ReadableType6IntentClassifier ReadableType6 = "Intent Classifier"
+ // ReadableType6ListEntityExtractor ...
+ ReadableType6ListEntityExtractor ReadableType6 = "List Entity Extractor"
+ // ReadableType6PatternAnyEntityExtractor ...
+ ReadableType6PatternAnyEntityExtractor ReadableType6 = "Pattern.Any Entity Extractor"
+ // ReadableType6PrebuiltEntityExtractor ...
+ ReadableType6PrebuiltEntityExtractor ReadableType6 = "Prebuilt Entity Extractor"
+ // ReadableType6RegexEntityExtractor ...
+ ReadableType6RegexEntityExtractor ReadableType6 = "Regex Entity Extractor"
+)
+
+// PossibleReadableType6Values returns an array of possible values for the ReadableType6 const type.
+func PossibleReadableType6Values() []ReadableType6 {
+ return []ReadableType6{ReadableType6ChildEntityExtractor, ReadableType6ClosedListEntityExtractor, ReadableType6CompositeEntityExtractor, ReadableType6EntityExtractor, ReadableType6HierarchicalChildEntityExtractor, ReadableType6HierarchicalEntityExtractor, ReadableType6IntentClassifier, ReadableType6ListEntityExtractor, ReadableType6PatternAnyEntityExtractor, ReadableType6PrebuiltEntityExtractor, ReadableType6RegexEntityExtractor}
+}
+
+// ReadableType7 enumerates the values for readable type 7.
+type ReadableType7 string
+
+const (
+ // ReadableType7ChildEntityExtractor ...
+ ReadableType7ChildEntityExtractor ReadableType7 = "Child Entity Extractor"
+ // ReadableType7ClosedListEntityExtractor ...
+ ReadableType7ClosedListEntityExtractor ReadableType7 = "Closed List Entity Extractor"
+ // ReadableType7CompositeEntityExtractor ...
+ ReadableType7CompositeEntityExtractor ReadableType7 = "Composite Entity Extractor"
+ // ReadableType7EntityExtractor ...
+ ReadableType7EntityExtractor ReadableType7 = "Entity Extractor"
+ // ReadableType7HierarchicalChildEntityExtractor ...
+ ReadableType7HierarchicalChildEntityExtractor ReadableType7 = "Hierarchical Child Entity Extractor"
+ // ReadableType7HierarchicalEntityExtractor ...
+ ReadableType7HierarchicalEntityExtractor ReadableType7 = "Hierarchical Entity Extractor"
+ // ReadableType7IntentClassifier ...
+ ReadableType7IntentClassifier ReadableType7 = "Intent Classifier"
+ // ReadableType7ListEntityExtractor ...
+ ReadableType7ListEntityExtractor ReadableType7 = "List Entity Extractor"
+ // ReadableType7PatternAnyEntityExtractor ...
+ ReadableType7PatternAnyEntityExtractor ReadableType7 = "Pattern.Any Entity Extractor"
+ // ReadableType7PrebuiltEntityExtractor ...
+ ReadableType7PrebuiltEntityExtractor ReadableType7 = "Prebuilt Entity Extractor"
+ // ReadableType7RegexEntityExtractor ...
+ ReadableType7RegexEntityExtractor ReadableType7 = "Regex Entity Extractor"
+)
+
+// PossibleReadableType7Values returns an array of possible values for the ReadableType7 const type.
+func PossibleReadableType7Values() []ReadableType7 {
+ return []ReadableType7{ReadableType7ChildEntityExtractor, ReadableType7ClosedListEntityExtractor, ReadableType7CompositeEntityExtractor, ReadableType7EntityExtractor, ReadableType7HierarchicalChildEntityExtractor, ReadableType7HierarchicalEntityExtractor, ReadableType7IntentClassifier, ReadableType7ListEntityExtractor, ReadableType7PatternAnyEntityExtractor, ReadableType7PrebuiltEntityExtractor, ReadableType7RegexEntityExtractor}
+}
+
+// ReadableType8 enumerates the values for readable type 8.
+type ReadableType8 string
+
+const (
+ // ReadableType8ChildEntityExtractor ...
+ ReadableType8ChildEntityExtractor ReadableType8 = "Child Entity Extractor"
+ // ReadableType8ClosedListEntityExtractor ...
+ ReadableType8ClosedListEntityExtractor ReadableType8 = "Closed List Entity Extractor"
+ // ReadableType8CompositeEntityExtractor ...
+ ReadableType8CompositeEntityExtractor ReadableType8 = "Composite Entity Extractor"
+ // ReadableType8EntityExtractor ...
+ ReadableType8EntityExtractor ReadableType8 = "Entity Extractor"
+ // ReadableType8HierarchicalChildEntityExtractor ...
+ ReadableType8HierarchicalChildEntityExtractor ReadableType8 = "Hierarchical Child Entity Extractor"
+ // ReadableType8HierarchicalEntityExtractor ...
+ ReadableType8HierarchicalEntityExtractor ReadableType8 = "Hierarchical Entity Extractor"
+ // ReadableType8IntentClassifier ...
+ ReadableType8IntentClassifier ReadableType8 = "Intent Classifier"
+ // ReadableType8ListEntityExtractor ...
+ ReadableType8ListEntityExtractor ReadableType8 = "List Entity Extractor"
+ // ReadableType8PatternAnyEntityExtractor ...
+ ReadableType8PatternAnyEntityExtractor ReadableType8 = "Pattern.Any Entity Extractor"
+ // ReadableType8PrebuiltEntityExtractor ...
+ ReadableType8PrebuiltEntityExtractor ReadableType8 = "Prebuilt Entity Extractor"
+ // ReadableType8RegexEntityExtractor ...
+ ReadableType8RegexEntityExtractor ReadableType8 = "Regex Entity Extractor"
+)
+
+// PossibleReadableType8Values returns an array of possible values for the ReadableType8 const type.
+func PossibleReadableType8Values() []ReadableType8 {
+ return []ReadableType8{ReadableType8ChildEntityExtractor, ReadableType8ClosedListEntityExtractor, ReadableType8CompositeEntityExtractor, ReadableType8EntityExtractor, ReadableType8HierarchicalChildEntityExtractor, ReadableType8HierarchicalEntityExtractor, ReadableType8IntentClassifier, ReadableType8ListEntityExtractor, ReadableType8PatternAnyEntityExtractor, ReadableType8PrebuiltEntityExtractor, ReadableType8RegexEntityExtractor}
+}
+
+// ReadableType9 enumerates the values for readable type 9.
+type ReadableType9 string
+
+const (
+ // ReadableType9ChildEntityExtractor ...
+ ReadableType9ChildEntityExtractor ReadableType9 = "Child Entity Extractor"
+ // ReadableType9ClosedListEntityExtractor ...
+ ReadableType9ClosedListEntityExtractor ReadableType9 = "Closed List Entity Extractor"
+ // ReadableType9CompositeEntityExtractor ...
+ ReadableType9CompositeEntityExtractor ReadableType9 = "Composite Entity Extractor"
+ // ReadableType9EntityExtractor ...
+ ReadableType9EntityExtractor ReadableType9 = "Entity Extractor"
+ // ReadableType9HierarchicalChildEntityExtractor ...
+ ReadableType9HierarchicalChildEntityExtractor ReadableType9 = "Hierarchical Child Entity Extractor"
+ // ReadableType9HierarchicalEntityExtractor ...
+ ReadableType9HierarchicalEntityExtractor ReadableType9 = "Hierarchical Entity Extractor"
+ // ReadableType9IntentClassifier ...
+ ReadableType9IntentClassifier ReadableType9 = "Intent Classifier"
+ // ReadableType9ListEntityExtractor ...
+ ReadableType9ListEntityExtractor ReadableType9 = "List Entity Extractor"
+ // ReadableType9PatternAnyEntityExtractor ...
+ ReadableType9PatternAnyEntityExtractor ReadableType9 = "Pattern.Any Entity Extractor"
+ // ReadableType9PrebuiltEntityExtractor ...
+ ReadableType9PrebuiltEntityExtractor ReadableType9 = "Prebuilt Entity Extractor"
+ // ReadableType9RegexEntityExtractor ...
+ ReadableType9RegexEntityExtractor ReadableType9 = "Regex Entity Extractor"
+)
+
+// PossibleReadableType9Values returns an array of possible values for the ReadableType9 const type.
+func PossibleReadableType9Values() []ReadableType9 {
+ return []ReadableType9{ReadableType9ChildEntityExtractor, ReadableType9ClosedListEntityExtractor, ReadableType9CompositeEntityExtractor, ReadableType9EntityExtractor, ReadableType9HierarchicalChildEntityExtractor, ReadableType9HierarchicalEntityExtractor, ReadableType9IntentClassifier, ReadableType9ListEntityExtractor, ReadableType9PatternAnyEntityExtractor, ReadableType9PrebuiltEntityExtractor, ReadableType9RegexEntityExtractor}
+}
+
+// Status enumerates the values for status.
+type Status string
+
+const (
+ // StatusFail ...
+ StatusFail Status = "Fail"
+ // StatusInProgress ...
+ StatusInProgress Status = "InProgress"
+ // StatusQueued ...
+ StatusQueued Status = "Queued"
+ // StatusSuccess ...
+ StatusSuccess Status = "Success"
+ // StatusUpToDate ...
+ StatusUpToDate Status = "UpToDate"
+)
+
+// PossibleStatusValues returns an array of possible values for the Status const type.
+func PossibleStatusValues() []Status {
+ return []Status{StatusFail, StatusInProgress, StatusQueued, StatusSuccess, StatusUpToDate}
+}
+
+// Status1 enumerates the values for status 1.
+type Status1 string
+
+const (
+ // Status1Fail ...
+ Status1Fail Status1 = "Fail"
+ // Status1InProgress ...
+ Status1InProgress Status1 = "InProgress"
+ // Status1Queued ...
+ Status1Queued Status1 = "Queued"
+ // Status1Success ...
+ Status1Success Status1 = "Success"
+ // Status1UpToDate ...
+ Status1UpToDate Status1 = "UpToDate"
+)
+
+// PossibleStatus1Values returns an array of possible values for the Status1 const type.
+func PossibleStatus1Values() []Status1 {
+ return []Status1{Status1Fail, Status1InProgress, Status1Queued, Status1Success, Status1UpToDate}
+}
+
+// TrainingStatus enumerates the values for training status.
+type TrainingStatus string
+
+const (
+ // InProgress ...
+ InProgress TrainingStatus = "InProgress"
+ // NeedsTraining ...
+ NeedsTraining TrainingStatus = "NeedsTraining"
+ // Trained ...
+ Trained TrainingStatus = "Trained"
+)
+
+// PossibleTrainingStatusValues returns an array of possible values for the TrainingStatus const type.
+func PossibleTrainingStatusValues() []TrainingStatus {
+ return []TrainingStatus{InProgress, NeedsTraining, Trained}
+}
+
+// ApplicationCreateObject properties for creating a new LUIS Application
+type ApplicationCreateObject struct {
+ // Culture - The culture for the new application. It is the language that your app understands and speaks. E.g.: "en-us". Note: the culture cannot be changed after the app is created.
+ Culture *string `json:"culture,omitempty"`
+ // Domain - The domain for the new application. Optional. E.g.: Comics.
+ Domain *string `json:"domain,omitempty"`
+ // Description - Description of the new application. Optional.
+ Description *string `json:"description,omitempty"`
+ // InitialVersionID - The initial version ID. Optional. Default value is: "0.1"
+ InitialVersionID *string `json:"initialVersionId,omitempty"`
+ // UsageScenario - Defines the scenario for the new application. Optional. E.g.: IoT.
+ UsageScenario *string `json:"usageScenario,omitempty"`
+ // Name - The name for the new application.
+ Name *string `json:"name,omitempty"`
+}
+
+// ApplicationInfoResponse response containing the Application Info.
+type ApplicationInfoResponse struct {
+ autorest.Response `json:"-"`
+ // ID - The ID (GUID) of the application.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - The name of the application.
+ Name *string `json:"name,omitempty"`
+ // Description - The description of the application.
+ Description *string `json:"description,omitempty"`
+ // Culture - The culture of the application. For example, "en-us".
+ Culture *string `json:"culture,omitempty"`
+ // UsageScenario - Defines the scenario for the new application. Optional. For example, IoT.
+ UsageScenario *string `json:"usageScenario,omitempty"`
+ // Domain - The domain for the new application. Optional. For example, Comics.
+ Domain *string `json:"domain,omitempty"`
+ // VersionsCount - Amount of model versions within the application.
+ VersionsCount *int32 `json:"versionsCount,omitempty"`
+ // CreatedDateTime - The version's creation timestamp.
+ CreatedDateTime *string `json:"createdDateTime,omitempty"`
+ // Endpoints - The Runtime endpoint URL for this model version.
+ Endpoints interface{} `json:"endpoints,omitempty"`
+ // EndpointHitsCount - Number of calls made to this endpoint.
+ EndpointHitsCount *int32 `json:"endpointHitsCount,omitempty"`
+ // ActiveVersion - The version ID currently marked as active.
+ ActiveVersion *string `json:"activeVersion,omitempty"`
+}
+
+// ApplicationPublishObject object model for publishing a specific application version.
+type ApplicationPublishObject struct {
+ // VersionID - The version ID to publish.
+ VersionID *string `json:"versionId,omitempty"`
+ // IsStaging - Indicates if the staging slot should be used, instead of the Production one.
+ IsStaging *bool `json:"isStaging,omitempty"`
+}
+
+// ApplicationSettings the application settings.
+type ApplicationSettings struct {
+ autorest.Response `json:"-"`
+ // ID - The application ID.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // IsPublic - Setting your application as public allows other people to use your application's endpoint using their own keys for billing purposes.
+ IsPublic *bool `json:"public,omitempty"`
+}
+
+// ApplicationSettingUpdateObject object model for updating an application's settings.
+type ApplicationSettingUpdateObject struct {
+ // IsPublic - Setting your application as public allows other people to use your application's endpoint using their own keys.
+ IsPublic *bool `json:"public,omitempty"`
+}
+
+// ApplicationUpdateObject object model for updating the name or description of an application.
+type ApplicationUpdateObject struct {
+ // Name - The application's new name.
+ Name *string `json:"name,omitempty"`
+ // Description - The application's new description.
+ Description *string `json:"description,omitempty"`
+}
+
+// AppVersionSettingObject object model of an application version setting.
+type AppVersionSettingObject struct {
+ // Name - The application version setting name.
+ Name *string `json:"name,omitempty"`
+ // Value - The application version setting value.
+ Value *string `json:"value,omitempty"`
+}
+
+// AvailableCulture available culture for using in a new application.
+type AvailableCulture struct {
+ // Name - The language name.
+ Name *string `json:"name,omitempty"`
+ // Code - The ISO value for the language.
+ Code *string `json:"code,omitempty"`
+}
+
+// AvailablePrebuiltEntityModel available Prebuilt entity model for using in an application.
+type AvailablePrebuiltEntityModel struct {
+ // Name - The entity name.
+ Name *string `json:"name,omitempty"`
+ // Description - The entity description and usage information.
+ Description *string `json:"description,omitempty"`
+ // Examples - Usage examples.
+ Examples *string `json:"examples,omitempty"`
+}
+
+// AzureAccountInfoObject defines the Azure account information object.
+type AzureAccountInfoObject struct {
+ // AzureSubscriptionID - The id for the Azure subscription.
+ AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"`
+ // ResourceGroup - The Azure resource group name.
+ ResourceGroup *string `json:"resourceGroup,omitempty"`
+ // AccountName - The Azure account name.
+ AccountName *string `json:"accountName,omitempty"`
+}
+
+// BatchLabelExample response when adding a batch of labeled example utterances.
+type BatchLabelExample struct {
+ Value *LabelExampleResponse `json:"value,omitempty"`
+ HasError *bool `json:"hasError,omitempty"`
+ Error *OperationStatus `json:"error,omitempty"`
+}
+
+// ChildEntity the base child entity type.
+type ChildEntity struct {
+ // ID - The ID (GUID) belonging to a child entity.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - The name of a child entity.
+ Name *string `json:"name,omitempty"`
+ // InstanceOf - Instance of Model.
+ InstanceOf *string `json:"instanceOf,omitempty"`
+ // TypeID - The type ID of the Entity Model.
+ TypeID *int32 `json:"typeId,omitempty"`
+ // ReadableType - Possible values include: 'ReadableType1EntityExtractor', 'ReadableType1ChildEntityExtractor', 'ReadableType1HierarchicalEntityExtractor', 'ReadableType1HierarchicalChildEntityExtractor', 'ReadableType1CompositeEntityExtractor', 'ReadableType1ListEntityExtractor', 'ReadableType1PrebuiltEntityExtractor', 'ReadableType1IntentClassifier', 'ReadableType1PatternAnyEntityExtractor', 'ReadableType1ClosedListEntityExtractor', 'ReadableType1RegexEntityExtractor'
+ ReadableType ReadableType1 `json:"readableType,omitempty"`
+ // Children - List of children
+ Children *[]ChildEntity `json:"children,omitempty"`
+}
+
+// ChildEntityModelCreateObject a child entity extractor create object.
+type ChildEntityModelCreateObject struct {
+ // Children - Child entities.
+ Children *[]ChildEntityModelCreateObject `json:"children,omitempty"`
+ // Name - Entity name.
+ Name *string `json:"name,omitempty"`
+ // InstanceOf - The instance of model name
+ InstanceOf *string `json:"instanceOf,omitempty"`
+}
+
+// ClosedList exported Model - A list entity.
+type ClosedList struct {
+ // Name - Name of the list entity.
+ Name *string `json:"name,omitempty"`
+ // SubLists - Sublists for the list entity.
+ SubLists *[]SubClosedList `json:"subLists,omitempty"`
+ Roles *[]string `json:"roles,omitempty"`
+}
+
+// ClosedListEntityExtractor list Entity Extractor.
+type ClosedListEntityExtractor struct {
+ autorest.Response `json:"-"`
+ // ID - The ID of the Entity Model.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - Name of the Entity Model.
+ Name *string `json:"name,omitempty"`
+ // TypeID - The type ID of the Entity Model.
+ TypeID *int32 `json:"typeId,omitempty"`
+ // ReadableType - Possible values include: 'ReadableType5EntityExtractor', 'ReadableType5ChildEntityExtractor', 'ReadableType5HierarchicalEntityExtractor', 'ReadableType5HierarchicalChildEntityExtractor', 'ReadableType5CompositeEntityExtractor', 'ReadableType5ListEntityExtractor', 'ReadableType5PrebuiltEntityExtractor', 'ReadableType5IntentClassifier', 'ReadableType5PatternAnyEntityExtractor', 'ReadableType5ClosedListEntityExtractor', 'ReadableType5RegexEntityExtractor'
+ ReadableType ReadableType5 `json:"readableType,omitempty"`
+ Roles *[]EntityRole `json:"roles,omitempty"`
+ // SubLists - List of sublists.
+ SubLists *[]SubClosedListResponse `json:"subLists,omitempty"`
+}
+
+// ClosedListModelCreateObject object model for creating a list entity.
+type ClosedListModelCreateObject struct {
+ // SubLists - Sublists for the feature.
+ SubLists *[]WordListObject `json:"subLists,omitempty"`
+ // Name - Name of the list entity.
+ Name *string `json:"name,omitempty"`
+}
+
+// ClosedListModelPatchObject object model for adding a batch of sublists to an existing list entity.
+type ClosedListModelPatchObject struct {
+ // SubLists - Sublists to add.
+ SubLists *[]WordListObject `json:"subLists,omitempty"`
+}
+
+// ClosedListModelUpdateObject object model for updating a list entity.
+type ClosedListModelUpdateObject struct {
+ // SubLists - The new sublists for the feature.
+ SubLists *[]WordListObject `json:"subLists,omitempty"`
+ // Name - The new name of the list entity.
+ Name *string `json:"name,omitempty"`
+}
+
+// CollaboratorsArray ...
+type CollaboratorsArray struct {
+ // Emails - The email address of the users.
+ Emails *[]string `json:"emails,omitempty"`
+}
+
+// CompositeChildModelCreateObject ...
+type CompositeChildModelCreateObject struct {
+ Name *string `json:"name,omitempty"`
+}
+
+// CompositeEntityExtractor a Composite Entity Extractor.
+type CompositeEntityExtractor struct {
+ autorest.Response `json:"-"`
+ // ID - The ID of the Entity Model.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - Name of the Entity Model.
+ Name *string `json:"name,omitempty"`
+ // TypeID - The type ID of the Entity Model.
+ TypeID *int32 `json:"typeId,omitempty"`
+ // ReadableType - Possible values include: 'ReadableType4EntityExtractor', 'ReadableType4ChildEntityExtractor', 'ReadableType4HierarchicalEntityExtractor', 'ReadableType4HierarchicalChildEntityExtractor', 'ReadableType4CompositeEntityExtractor', 'ReadableType4ListEntityExtractor', 'ReadableType4PrebuiltEntityExtractor', 'ReadableType4IntentClassifier', 'ReadableType4PatternAnyEntityExtractor', 'ReadableType4ClosedListEntityExtractor', 'ReadableType4RegexEntityExtractor'
+ ReadableType ReadableType4 `json:"readableType,omitempty"`
+ Roles *[]EntityRole `json:"roles,omitempty"`
+ // Children - List of child entities.
+ Children *[]ChildEntity `json:"children,omitempty"`
+}
+
+// CompositeEntityModel a composite entity extractor.
+type CompositeEntityModel struct {
+ // Children - Child entities.
+ Children *[]string `json:"children,omitempty"`
+ // Name - Entity name.
+ Name *string `json:"name,omitempty"`
+}
+
+// CustomPrebuiltModel a Custom Prebuilt model.
+type CustomPrebuiltModel struct {
+ // ID - The ID of the Entity Model.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - Name of the Entity Model.
+ Name *string `json:"name,omitempty"`
+ // TypeID - The type ID of the Entity Model.
+ TypeID *int32 `json:"typeId,omitempty"`
+ // ReadableType - Possible values include: 'ReadableType7EntityExtractor', 'ReadableType7ChildEntityExtractor', 'ReadableType7HierarchicalEntityExtractor', 'ReadableType7HierarchicalChildEntityExtractor', 'ReadableType7CompositeEntityExtractor', 'ReadableType7ListEntityExtractor', 'ReadableType7PrebuiltEntityExtractor', 'ReadableType7IntentClassifier', 'ReadableType7PatternAnyEntityExtractor', 'ReadableType7ClosedListEntityExtractor', 'ReadableType7RegexEntityExtractor'
+ ReadableType ReadableType7 `json:"readableType,omitempty"`
+ // CustomPrebuiltDomainName - The domain name.
+ CustomPrebuiltDomainName *string `json:"customPrebuiltDomainName,omitempty"`
+ // CustomPrebuiltModelName - The intent name or entity name.
+ CustomPrebuiltModelName *string `json:"customPrebuiltModelName,omitempty"`
+ Roles *[]EntityRole `json:"roles,omitempty"`
+}
+
+// EndpointInfo the base class "ProductionOrStagingEndpointInfo" inherits from.
+type EndpointInfo struct {
+ // VersionID - The version ID to publish.
+ VersionID *string `json:"versionId,omitempty"`
+ // IsStaging - Indicates if the staging slot should be used, instead of the Production one.
+ IsStaging *bool `json:"isStaging,omitempty"`
+ // EndpointURL - The Runtime endpoint URL for this model version.
+ EndpointURL *string `json:"endpointUrl,omitempty"`
+ // Region - The target region that the application is published to.
+ Region *string `json:"region,omitempty"`
+ // AssignedEndpointKey - The endpoint key.
+ AssignedEndpointKey *string `json:"assignedEndpointKey,omitempty"`
+ // EndpointRegion - The endpoint's region.
+ EndpointRegion *string `json:"endpointRegion,omitempty"`
+ // FailedRegions - Regions where publishing failed.
+ FailedRegions *string `json:"failedRegions,omitempty"`
+ // PublishedDateTime - Timestamp when was last published.
+ PublishedDateTime *string `json:"publishedDateTime,omitempty"`
+}
+
+// EnqueueTrainingResponse response model when requesting to train the model.
+type EnqueueTrainingResponse struct {
+ autorest.Response `json:"-"`
+ // StatusID - The train request status ID.
+ StatusID *int32 `json:"statusId,omitempty"`
+ // Status - Possible values include: 'StatusQueued', 'StatusInProgress', 'StatusUpToDate', 'StatusFail', 'StatusSuccess'
+ Status Status `json:"status,omitempty"`
+}
+
+// EntitiesSuggestionExample predicted/suggested entity.
+type EntitiesSuggestionExample struct {
+ // Text - The utterance. For example, "What's the weather like in seattle?"
+ Text *string `json:"text,omitempty"`
+ // TokenizedText - The utterance tokenized.
+ TokenizedText *[]string `json:"tokenizedText,omitempty"`
+ // IntentPredictions - Predicted/suggested intents.
+ IntentPredictions *[]IntentPrediction `json:"intentPredictions,omitempty"`
+ // EntityPredictions - Predicted/suggested entities.
+ EntityPredictions *[]EntityPrediction `json:"entityPredictions,omitempty"`
+}
+
+// EntityExtractor entity Extractor.
+type EntityExtractor struct {
+ // ID - The ID of the Entity Model.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - Name of the Entity Model.
+ Name *string `json:"name,omitempty"`
+ // TypeID - The type ID of the Entity Model.
+ TypeID *int32 `json:"typeId,omitempty"`
+ // ReadableType - Possible values include: 'ReadableType8EntityExtractor', 'ReadableType8ChildEntityExtractor', 'ReadableType8HierarchicalEntityExtractor', 'ReadableType8HierarchicalChildEntityExtractor', 'ReadableType8CompositeEntityExtractor', 'ReadableType8ListEntityExtractor', 'ReadableType8PrebuiltEntityExtractor', 'ReadableType8IntentClassifier', 'ReadableType8PatternAnyEntityExtractor', 'ReadableType8ClosedListEntityExtractor', 'ReadableType8RegexEntityExtractor'
+ ReadableType ReadableType8 `json:"readableType,omitempty"`
+ Roles *[]EntityRole `json:"roles,omitempty"`
+ // CustomPrebuiltDomainName - The domain name.
+ CustomPrebuiltDomainName *string `json:"customPrebuiltDomainName,omitempty"`
+ // CustomPrebuiltModelName - The intent name or entity name.
+ CustomPrebuiltModelName *string `json:"customPrebuiltModelName,omitempty"`
+}
+
+// EntityLabel defines the entity type and position of the extracted entity within the example.
+type EntityLabel struct {
+ // EntityName - The entity type.
+ EntityName *string `json:"entityName,omitempty"`
+ // StartTokenIndex - The index within the utterance where the extracted entity starts.
+ StartTokenIndex *int32 `json:"startTokenIndex,omitempty"`
+ // EndTokenIndex - The index within the utterance where the extracted entity ends.
+ EndTokenIndex *int32 `json:"endTokenIndex,omitempty"`
+ // Role - The role of the predicted entity.
+ Role *string `json:"role,omitempty"`
+ // RoleID - The role id for the predicted entity.
+ RoleID *uuid.UUID `json:"roleId,omitempty"`
+}
+
+// EntityLabelObject defines the entity type and position of the extracted entity within the example.
+type EntityLabelObject struct {
+ // EntityName - The entity type.
+ EntityName *string `json:"entityName,omitempty"`
+ // StartCharIndex - The index within the utterance where the extracted entity starts.
+ StartCharIndex *int32 `json:"startCharIndex,omitempty"`
+ // EndCharIndex - The index within the utterance where the extracted entity ends.
+ EndCharIndex *int32 `json:"endCharIndex,omitempty"`
+ // Role - The role the entity plays in the utterance.
+ Role *string `json:"role,omitempty"`
+}
+
+// EntityModelCreateObject an entity extractor create object.
+type EntityModelCreateObject struct {
+ // Children - Child entities.
+ Children *[]ChildEntityModelCreateObject `json:"children,omitempty"`
+ // Name - Entity name.
+ Name *string `json:"name,omitempty"`
+}
+
+// EntityModelInfo an Entity Extractor model info.
+type EntityModelInfo struct {
+ Roles *[]EntityRole `json:"roles,omitempty"`
+ // ID - The ID of the Entity Model.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - Name of the Entity Model.
+ Name *string `json:"name,omitempty"`
+ // TypeID - The type ID of the Entity Model.
+ TypeID *int32 `json:"typeId,omitempty"`
+ // ReadableType - Possible values include: 'ReadableTypeEntityExtractor', 'ReadableTypeChildEntityExtractor', 'ReadableTypeHierarchicalEntityExtractor', 'ReadableTypeHierarchicalChildEntityExtractor', 'ReadableTypeCompositeEntityExtractor', 'ReadableTypeListEntityExtractor', 'ReadableTypePrebuiltEntityExtractor', 'ReadableTypeIntentClassifier', 'ReadableTypePatternAnyEntityExtractor', 'ReadableTypeClosedListEntityExtractor', 'ReadableTypeRegexEntityExtractor'
+ ReadableType ReadableType `json:"readableType,omitempty"`
+}
+
+// EntityModelUpdateObject an entity extractor update object.
+type EntityModelUpdateObject struct {
+ // Name - Entity name.
+ Name *string `json:"name,omitempty"`
+ // InstanceOf - The instance of model name
+ InstanceOf *string `json:"instanceOf,omitempty"`
+}
+
+// EntityPrediction a suggested entity.
+type EntityPrediction struct {
+ // EntityName - The entity's name
+ EntityName *string `json:"entityName,omitempty"`
+ // StartTokenIndex - The index within the utterance where the extracted entity starts.
+ StartTokenIndex *int32 `json:"startTokenIndex,omitempty"`
+ // EndTokenIndex - The index within the utterance where the extracted entity ends.
+ EndTokenIndex *int32 `json:"endTokenIndex,omitempty"`
+ // Phrase - The actual token(s) that comprise the entity.
+ Phrase *string `json:"phrase,omitempty"`
+}
+
+// EntityRole entity extractor role
+type EntityRole struct {
+ autorest.Response `json:"-"`
+ // ID - The entity role ID.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - The entity role name.
+ Name *string `json:"name,omitempty"`
+}
+
+// EntityRoleCreateObject object model for creating an entity role.
+type EntityRoleCreateObject struct {
+ // Name - The entity role name.
+ Name *string `json:"name,omitempty"`
+}
+
+// EntityRoleUpdateObject object model for updating an entity role.
+type EntityRoleUpdateObject struct {
+ // Name - The entity role name.
+ Name *string `json:"name,omitempty"`
+}
+
+// ErrorResponse error response when invoking an operation on the API.
+type ErrorResponse struct {
+ // AdditionalProperties - Unmatched properties from the message are deserialized this collection
+ AdditionalProperties map[string]interface{} `json:""`
+ ErrorType *string `json:"errorType,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ErrorResponse.
+func (er ErrorResponse) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if er.ErrorType != nil {
+ objectMap["errorType"] = er.ErrorType
+ }
+ for k, v := range er.AdditionalProperties {
+ objectMap[k] = v
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ErrorResponse struct.
+func (er *ErrorResponse) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ default:
+ if v != nil {
+ var additionalProperties interface{}
+ err = json.Unmarshal(*v, &additionalProperties)
+ if err != nil {
+ return err
+ }
+ if er.AdditionalProperties == nil {
+ er.AdditionalProperties = make(map[string]interface{})
+ }
+ er.AdditionalProperties[k] = additionalProperties
+ }
+ case "errorType":
+ if v != nil {
+ var errorType string
+ err = json.Unmarshal(*v, &errorType)
+ if err != nil {
+ return err
+ }
+ er.ErrorType = &errorType
+ }
+ }
+ }
+
+ return nil
+}
+
+// ExampleLabelObject a labeled example utterance.
+type ExampleLabelObject struct {
+ // Text - The example utterance.
+ Text *string `json:"text,omitempty"`
+ // EntityLabels - The identified entities within the example utterance.
+ EntityLabels *[]EntityLabelObject `json:"entityLabels,omitempty"`
+ // IntentName - The identified intent representing the example utterance.
+ IntentName *string `json:"intentName,omitempty"`
+}
+
+// ExplicitListItem explicit (exception) list item
+type ExplicitListItem struct {
+ autorest.Response `json:"-"`
+ // ID - The explicit list item ID.
+ ID *int64 `json:"id,omitempty"`
+ // ExplicitListItem - The explicit list item value.
+ ExplicitListItem *string `json:"explicitListItem,omitempty"`
+}
+
+// ExplicitListItemCreateObject object model for creating an explicit (exception) list item.
+type ExplicitListItemCreateObject struct {
+ // ExplicitListItem - The explicit list item.
+ ExplicitListItem *string `json:"explicitListItem,omitempty"`
+}
+
+// ExplicitListItemUpdateObject model object for updating an explicit (exception) list item.
+type ExplicitListItemUpdateObject struct {
+ // ExplicitListItem - The explicit list item.
+ ExplicitListItem *string `json:"explicitListItem,omitempty"`
+}
+
+// FeatureInfoObject the base class Features-related response objects inherit from.
+type FeatureInfoObject struct {
+ // ID - A six-digit ID used for Features.
+ ID *int32 `json:"id,omitempty"`
+ // Name - The name of the Feature.
+ Name *string `json:"name,omitempty"`
+ // IsActive - Indicates if the feature is enabled.
+ IsActive *bool `json:"isActive,omitempty"`
+ // EnabledForAllModels - Indicates if the feature is enabled for all models in the application.
+ EnabledForAllModels *bool `json:"enabledForAllModels,omitempty"`
+}
+
+// FeaturesResponseObject model Features, including Patterns and Phraselists.
+type FeaturesResponseObject struct {
+ autorest.Response `json:"-"`
+ PhraselistFeatures *[]PhraseListFeatureInfo `json:"phraselistFeatures,omitempty"`
+ PatternFeatures *[]PatternFeatureInfo `json:"patternFeatures,omitempty"`
+}
+
+// HierarchicalChildEntity a Hierarchical Child Entity.
+type HierarchicalChildEntity struct {
+ autorest.Response `json:"-"`
+ // ID - The ID (GUID) belonging to a child entity.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - The name of a child entity.
+ Name *string `json:"name,omitempty"`
+ // InstanceOf - Instance of Model.
+ InstanceOf *string `json:"instanceOf,omitempty"`
+ // TypeID - The type ID of the Entity Model.
+ TypeID *int32 `json:"typeId,omitempty"`
+ // ReadableType - Possible values include: 'ReadableType1EntityExtractor', 'ReadableType1ChildEntityExtractor', 'ReadableType1HierarchicalEntityExtractor', 'ReadableType1HierarchicalChildEntityExtractor', 'ReadableType1CompositeEntityExtractor', 'ReadableType1ListEntityExtractor', 'ReadableType1PrebuiltEntityExtractor', 'ReadableType1IntentClassifier', 'ReadableType1PatternAnyEntityExtractor', 'ReadableType1ClosedListEntityExtractor', 'ReadableType1RegexEntityExtractor'
+ ReadableType ReadableType1 `json:"readableType,omitempty"`
+ // Children - List of children
+ Children *[]ChildEntity `json:"children,omitempty"`
+}
+
+// HierarchicalChildModelUpdateObject ...
+type HierarchicalChildModelUpdateObject struct {
+ Name *string `json:"name,omitempty"`
+}
+
+// HierarchicalEntityExtractor hierarchical Entity Extractor.
+type HierarchicalEntityExtractor struct {
+ autorest.Response `json:"-"`
+ // ID - The ID of the Entity Model.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - Name of the Entity Model.
+ Name *string `json:"name,omitempty"`
+ // TypeID - The type ID of the Entity Model.
+ TypeID *int32 `json:"typeId,omitempty"`
+ // ReadableType - Possible values include: 'ReadableType3EntityExtractor', 'ReadableType3ChildEntityExtractor', 'ReadableType3HierarchicalEntityExtractor', 'ReadableType3HierarchicalChildEntityExtractor', 'ReadableType3CompositeEntityExtractor', 'ReadableType3ListEntityExtractor', 'ReadableType3PrebuiltEntityExtractor', 'ReadableType3IntentClassifier', 'ReadableType3PatternAnyEntityExtractor', 'ReadableType3ClosedListEntityExtractor', 'ReadableType3RegexEntityExtractor'
+ ReadableType ReadableType3 `json:"readableType,omitempty"`
+ Roles *[]EntityRole `json:"roles,omitempty"`
+ // Children - List of child entities.
+ Children *[]ChildEntity `json:"children,omitempty"`
+}
+
+// HierarchicalModel ...
+type HierarchicalModel struct {
+ Name *string `json:"name,omitempty"`
+ Children *[]string `json:"children,omitempty"`
+ Inherits *PrebuiltDomainObject `json:"inherits,omitempty"`
+ Roles *[]string `json:"roles,omitempty"`
+}
+
+// Int32 ...
+type Int32 struct {
+ autorest.Response `json:"-"`
+ Value *int32 `json:"value,omitempty"`
+}
+
+// Int64 ...
+type Int64 struct {
+ autorest.Response `json:"-"`
+ Value *int64 `json:"value,omitempty"`
+}
+
+// IntentClassifier intent Classifier.
+type IntentClassifier struct {
+ autorest.Response `json:"-"`
+ // CustomPrebuiltDomainName - The domain name.
+ CustomPrebuiltDomainName *string `json:"customPrebuiltDomainName,omitempty"`
+ // CustomPrebuiltModelName - The intent name or entity name.
+ CustomPrebuiltModelName *string `json:"customPrebuiltModelName,omitempty"`
+ // ID - The ID of the Entity Model.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - Name of the Entity Model.
+ Name *string `json:"name,omitempty"`
+ // TypeID - The type ID of the Entity Model.
+ TypeID *int32 `json:"typeId,omitempty"`
+ // ReadableType - Possible values include: 'ReadableTypeEntityExtractor', 'ReadableTypeChildEntityExtractor', 'ReadableTypeHierarchicalEntityExtractor', 'ReadableTypeHierarchicalChildEntityExtractor', 'ReadableTypeCompositeEntityExtractor', 'ReadableTypeListEntityExtractor', 'ReadableTypePrebuiltEntityExtractor', 'ReadableTypeIntentClassifier', 'ReadableTypePatternAnyEntityExtractor', 'ReadableTypeClosedListEntityExtractor', 'ReadableTypeRegexEntityExtractor'
+ ReadableType ReadableType `json:"readableType,omitempty"`
+}
+
+// IntentPrediction a suggested intent.
+type IntentPrediction struct {
+ // Name - The intent's name
+ Name *string `json:"name,omitempty"`
+ // Score - The intent's score, based on the prediction model.
+ Score *float64 `json:"score,omitempty"`
+}
+
+// IntentsSuggestionExample predicted/suggested intent.
+type IntentsSuggestionExample struct {
+ // Text - The utterance. For example, "What's the weather like in seattle?"
+ Text *string `json:"text,omitempty"`
+ // TokenizedText - The tokenized utterance.
+ TokenizedText *[]string `json:"tokenizedText,omitempty"`
+ // IntentPredictions - Predicted/suggested intents.
+ IntentPredictions *[]IntentPrediction `json:"intentPredictions,omitempty"`
+ // EntityPredictions - Predicted/suggested entities.
+ EntityPredictions *[]EntityPrediction `json:"entityPredictions,omitempty"`
+}
+
+// JSONEntity exported Model - Extracted Entity from utterance.
+type JSONEntity struct {
+ // StartPos - The index within the utterance where the extracted entity starts.
+ StartPos *int32 `json:"startPos,omitempty"`
+ // EndPos - The index within the utterance where the extracted entity ends.
+ EndPos *int32 `json:"endPos,omitempty"`
+ // Entity - The entity name.
+ Entity *string `json:"entity,omitempty"`
+ // Role - The role the entity plays in the utterance.
+ Role *string `json:"role,omitempty"`
+}
+
+// JSONModelFeature exported Model - Phraselist Model Feature.
+type JSONModelFeature struct {
+ // Activated - Indicates if the feature is enabled.
+ Activated *bool `json:"activated,omitempty"`
+ // Name - The Phraselist name.
+ Name *string `json:"name,omitempty"`
+ // Words - List of comma-separated phrases that represent the Phraselist.
+ Words *string `json:"words,omitempty"`
+ // Mode - An interchangeable phrase list feature serves as a list of synonyms for training. A non-exchangeable phrase list serves as separate features for training. So, if your non-interchangeable phrase list contains 5 phrases, they will be mapped to 5 separate features. You can think of the non-interchangeable phrase list as an additional bag of words to add to LUIS existing vocabulary features. It is used as a lexicon lookup feature where its value is 1 if the lexicon contains a given word or 0 if it doesn’t. Default value is true.
+ Mode *bool `json:"mode,omitempty"`
+}
+
+// JSONRegexFeature exported Model - A Pattern feature.
+type JSONRegexFeature struct {
+ // Pattern - The Regular Expression to match.
+ Pattern *string `json:"pattern,omitempty"`
+ // Activated - Indicates if the Pattern feature is enabled.
+ Activated *bool `json:"activated,omitempty"`
+ // Name - Name of the feature.
+ Name *string `json:"name,omitempty"`
+}
+
+// JSONUtterance exported Model - Utterance that was used to train the model.
+type JSONUtterance struct {
+ // Text - The utterance.
+ Text *string `json:"text,omitempty"`
+ // Intent - The matched intent.
+ Intent *string `json:"intent,omitempty"`
+ // Entities - The matched entities.
+ Entities *[]JSONEntity `json:"entities,omitempty"`
+}
+
+// LabeledUtterance a prediction and label pair of an example.
+type LabeledUtterance struct {
+ // ID - ID of Labeled Utterance.
+ ID *int32 `json:"id,omitempty"`
+ // Text - The utterance. For example, "What's the weather like in seattle?"
+ Text *string `json:"text,omitempty"`
+ // TokenizedText - The utterance tokenized.
+ TokenizedText *[]string `json:"tokenizedText,omitempty"`
+ // IntentLabel - The intent matching the example.
+ IntentLabel *string `json:"intentLabel,omitempty"`
+ // EntityLabels - The entities matching the example.
+ EntityLabels *[]EntityLabel `json:"entityLabels,omitempty"`
+ // IntentPredictions - List of suggested intents.
+ IntentPredictions *[]IntentPrediction `json:"intentPredictions,omitempty"`
+ // EntityPredictions - List of suggested entities.
+ EntityPredictions *[]EntityPrediction `json:"entityPredictions,omitempty"`
+}
+
+// LabelExampleResponse response when adding a labeled example utterance.
+type LabelExampleResponse struct {
+ autorest.Response `json:"-"`
+ // UtteranceText - The example utterance.
+ UtteranceText *string `json:"UtteranceText,omitempty"`
+ // ExampleID - The newly created sample ID.
+ ExampleID *int32 `json:"ExampleId,omitempty"`
+}
+
+// LabelTextObject an object containing the example utterance's text.
+type LabelTextObject struct {
+ // ID - The ID of the Label.
+ ID *int32 `json:"id,omitempty"`
+ // Text - The text of the label.
+ Text *string `json:"text,omitempty"`
+}
+
+// ListApplicationInfoResponse ...
+type ListApplicationInfoResponse struct {
+ autorest.Response `json:"-"`
+ Value *[]ApplicationInfoResponse `json:"value,omitempty"`
+}
+
+// ListAppVersionSettingObject ...
+type ListAppVersionSettingObject struct {
+ autorest.Response `json:"-"`
+ Value *[]AppVersionSettingObject `json:"value,omitempty"`
+}
+
+// ListAvailableCulture ...
+type ListAvailableCulture struct {
+ autorest.Response `json:"-"`
+ Value *[]AvailableCulture `json:"value,omitempty"`
+}
+
+// ListAvailablePrebuiltEntityModel ...
+type ListAvailablePrebuiltEntityModel struct {
+ autorest.Response `json:"-"`
+ Value *[]AvailablePrebuiltEntityModel `json:"value,omitempty"`
+}
+
+// ListAzureAccountInfoObject ...
+type ListAzureAccountInfoObject struct {
+ autorest.Response `json:"-"`
+ Value *[]AzureAccountInfoObject `json:"value,omitempty"`
+}
+
+// ListBatchLabelExample ...
+type ListBatchLabelExample struct {
+ autorest.Response `json:"-"`
+ Value *[]BatchLabelExample `json:"value,omitempty"`
+}
+
+// ListClosedListEntityExtractor ...
+type ListClosedListEntityExtractor struct {
+ autorest.Response `json:"-"`
+ Value *[]ClosedListEntityExtractor `json:"value,omitempty"`
+}
+
+// ListCompositeEntityExtractor ...
+type ListCompositeEntityExtractor struct {
+ autorest.Response `json:"-"`
+ Value *[]CompositeEntityExtractor `json:"value,omitempty"`
+}
+
+// ListCustomPrebuiltModel ...
+type ListCustomPrebuiltModel struct {
+ autorest.Response `json:"-"`
+ Value *[]CustomPrebuiltModel `json:"value,omitempty"`
+}
+
+// ListEntitiesSuggestionExample ...
+type ListEntitiesSuggestionExample struct {
+ autorest.Response `json:"-"`
+ Value *[]EntitiesSuggestionExample `json:"value,omitempty"`
+}
+
+// ListEntityExtractor ...
+type ListEntityExtractor struct {
+ autorest.Response `json:"-"`
+ Value *[]EntityExtractor `json:"value,omitempty"`
+}
+
+// ListEntityRole ...
+type ListEntityRole struct {
+ autorest.Response `json:"-"`
+ Value *[]EntityRole `json:"value,omitempty"`
+}
+
+// ListExplicitListItem ...
+type ListExplicitListItem struct {
+ autorest.Response `json:"-"`
+ Value *[]ExplicitListItem `json:"value,omitempty"`
+}
+
+// ListHierarchicalEntityExtractor ...
+type ListHierarchicalEntityExtractor struct {
+ autorest.Response `json:"-"`
+ Value *[]HierarchicalEntityExtractor `json:"value,omitempty"`
+}
+
+// ListIntentClassifier ...
+type ListIntentClassifier struct {
+ autorest.Response `json:"-"`
+ Value *[]IntentClassifier `json:"value,omitempty"`
+}
+
+// ListIntentsSuggestionExample ...
+type ListIntentsSuggestionExample struct {
+ autorest.Response `json:"-"`
+ Value *[]IntentsSuggestionExample `json:"value,omitempty"`
+}
+
+// ListLabeledUtterance ...
+type ListLabeledUtterance struct {
+ autorest.Response `json:"-"`
+ Value *[]LabeledUtterance `json:"value,omitempty"`
+}
+
+// ListLabelTextObject ...
+type ListLabelTextObject struct {
+ autorest.Response `json:"-"`
+ Value *[]LabelTextObject `json:"value,omitempty"`
+}
+
+// ListModelFeatureInformation ...
+type ListModelFeatureInformation struct {
+ autorest.Response `json:"-"`
+ Value *[]ModelFeatureInformation `json:"value,omitempty"`
+}
+
+// ListModelInfoResponse ...
+type ListModelInfoResponse struct {
+ autorest.Response `json:"-"`
+ Value *[]ModelInfoResponse `json:"value,omitempty"`
+}
+
+// ListModelTrainingInfo ...
+type ListModelTrainingInfo struct {
+ autorest.Response `json:"-"`
+ Value *[]ModelTrainingInfo `json:"value,omitempty"`
+}
+
+// ListNDepthEntityExtractor ...
+type ListNDepthEntityExtractor struct {
+ autorest.Response `json:"-"`
+ Value *[]NDepthEntityExtractor `json:"value,omitempty"`
+}
+
+// ListPatternAnyEntityExtractor ...
+type ListPatternAnyEntityExtractor struct {
+ autorest.Response `json:"-"`
+ Value *[]PatternAnyEntityExtractor `json:"value,omitempty"`
+}
+
+// ListPatternRuleInfo ...
+type ListPatternRuleInfo struct {
+ autorest.Response `json:"-"`
+ Value *[]PatternRuleInfo `json:"value,omitempty"`
+}
+
+// ListPhraseListFeatureInfo ...
+type ListPhraseListFeatureInfo struct {
+ autorest.Response `json:"-"`
+ Value *[]PhraseListFeatureInfo `json:"value,omitempty"`
+}
+
+// ListPrebuiltDomain ...
+type ListPrebuiltDomain struct {
+ autorest.Response `json:"-"`
+ Value *[]PrebuiltDomain `json:"value,omitempty"`
+}
+
+// ListPrebuiltEntityExtractor ...
+type ListPrebuiltEntityExtractor struct {
+ autorest.Response `json:"-"`
+ Value *[]PrebuiltEntityExtractor `json:"value,omitempty"`
+}
+
+// ListRegexEntityExtractor ...
+type ListRegexEntityExtractor struct {
+ autorest.Response `json:"-"`
+ Value *[]RegexEntityExtractor `json:"value,omitempty"`
+}
+
+// ListString ...
+type ListString struct {
+ autorest.Response `json:"-"`
+ Value *[]string `json:"value,omitempty"`
+}
+
+// ListUUID ...
+type ListUUID struct {
+ autorest.Response `json:"-"`
+ Value *[]uuid.UUID `json:"value,omitempty"`
+}
+
+// ListVersionInfo ...
+type ListVersionInfo struct {
+ autorest.Response `json:"-"`
+ Value *[]VersionInfo `json:"value,omitempty"`
+}
+
+// LuisApp exported Model - An exported LUIS Application.
+type LuisApp struct {
+ autorest.Response `json:"-"`
+ // AdditionalProperties - Unmatched properties from the message are deserialized this collection
+ AdditionalProperties map[string]interface{} `json:""`
+ // Name - The name of the application.
+ Name *string `json:"name,omitempty"`
+ // VersionID - The version ID of the application that was exported.
+ VersionID *string `json:"versionId,omitempty"`
+ // Desc - The description of the application.
+ Desc *string `json:"desc,omitempty"`
+ // Culture - The culture of the application. E.g.: en-us.
+ Culture *string `json:"culture,omitempty"`
+ // Intents - List of intents.
+ Intents *[]HierarchicalModel `json:"intents,omitempty"`
+ // Entities - List of entities.
+ Entities *[]HierarchicalModel `json:"entities,omitempty"`
+ // ClosedLists - List of list entities.
+ ClosedLists *[]ClosedList `json:"closedLists,omitempty"`
+ // Composites - List of composite entities.
+ Composites *[]HierarchicalModel `json:"composites,omitempty"`
+ // PatternAnyEntities - List of Pattern.Any entities.
+ PatternAnyEntities *[]PatternAny `json:"patternAnyEntities,omitempty"`
+ // RegexEntities - List of regular expression entities.
+ RegexEntities *[]RegexEntity `json:"regex_entities,omitempty"`
+ // PrebuiltEntities - List of prebuilt entities.
+ PrebuiltEntities *[]PrebuiltEntity `json:"prebuiltEntities,omitempty"`
+ // RegexFeatures - List of pattern features.
+ RegexFeatures *[]JSONRegexFeature `json:"regex_features,omitempty"`
+ // ModelFeatures - List of model features.
+ ModelFeatures *[]JSONModelFeature `json:"model_features,omitempty"`
+ // Patterns - List of patterns.
+ Patterns *[]PatternRule `json:"patterns,omitempty"`
+ // Utterances - List of example utterances.
+ Utterances *[]JSONUtterance `json:"utterances,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for LuisApp.
+func (la LuisApp) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if la.Name != nil {
+ objectMap["name"] = la.Name
+ }
+ if la.VersionID != nil {
+ objectMap["versionId"] = la.VersionID
+ }
+ if la.Desc != nil {
+ objectMap["desc"] = la.Desc
+ }
+ if la.Culture != nil {
+ objectMap["culture"] = la.Culture
+ }
+ if la.Intents != nil {
+ objectMap["intents"] = la.Intents
+ }
+ if la.Entities != nil {
+ objectMap["entities"] = la.Entities
+ }
+ if la.ClosedLists != nil {
+ objectMap["closedLists"] = la.ClosedLists
+ }
+ if la.Composites != nil {
+ objectMap["composites"] = la.Composites
+ }
+ if la.PatternAnyEntities != nil {
+ objectMap["patternAnyEntities"] = la.PatternAnyEntities
+ }
+ if la.RegexEntities != nil {
+ objectMap["regex_entities"] = la.RegexEntities
+ }
+ if la.PrebuiltEntities != nil {
+ objectMap["prebuiltEntities"] = la.PrebuiltEntities
+ }
+ if la.RegexFeatures != nil {
+ objectMap["regex_features"] = la.RegexFeatures
+ }
+ if la.ModelFeatures != nil {
+ objectMap["model_features"] = la.ModelFeatures
+ }
+ if la.Patterns != nil {
+ objectMap["patterns"] = la.Patterns
+ }
+ if la.Utterances != nil {
+ objectMap["utterances"] = la.Utterances
+ }
+ for k, v := range la.AdditionalProperties {
+ objectMap[k] = v
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for LuisApp struct.
+func (la *LuisApp) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ default:
+ if v != nil {
+ var additionalProperties interface{}
+ err = json.Unmarshal(*v, &additionalProperties)
+ if err != nil {
+ return err
+ }
+ if la.AdditionalProperties == nil {
+ la.AdditionalProperties = make(map[string]interface{})
+ }
+ la.AdditionalProperties[k] = additionalProperties
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ la.Name = &name
+ }
+ case "versionId":
+ if v != nil {
+ var versionID string
+ err = json.Unmarshal(*v, &versionID)
+ if err != nil {
+ return err
+ }
+ la.VersionID = &versionID
+ }
+ case "desc":
+ if v != nil {
+ var desc string
+ err = json.Unmarshal(*v, &desc)
+ if err != nil {
+ return err
+ }
+ la.Desc = &desc
+ }
+ case "culture":
+ if v != nil {
+ var culture string
+ err = json.Unmarshal(*v, &culture)
+ if err != nil {
+ return err
+ }
+ la.Culture = &culture
+ }
+ case "intents":
+ if v != nil {
+ var intents []HierarchicalModel
+ err = json.Unmarshal(*v, &intents)
+ if err != nil {
+ return err
+ }
+ la.Intents = &intents
+ }
+ case "entities":
+ if v != nil {
+ var entities []HierarchicalModel
+ err = json.Unmarshal(*v, &entities)
+ if err != nil {
+ return err
+ }
+ la.Entities = &entities
+ }
+ case "closedLists":
+ if v != nil {
+ var closedLists []ClosedList
+ err = json.Unmarshal(*v, &closedLists)
+ if err != nil {
+ return err
+ }
+ la.ClosedLists = &closedLists
+ }
+ case "composites":
+ if v != nil {
+ var composites []HierarchicalModel
+ err = json.Unmarshal(*v, &composites)
+ if err != nil {
+ return err
+ }
+ la.Composites = &composites
+ }
+ case "patternAnyEntities":
+ if v != nil {
+ var patternAnyEntities []PatternAny
+ err = json.Unmarshal(*v, &patternAnyEntities)
+ if err != nil {
+ return err
+ }
+ la.PatternAnyEntities = &patternAnyEntities
+ }
+ case "regex_entities":
+ if v != nil {
+ var regexEntities []RegexEntity
+ err = json.Unmarshal(*v, ®exEntities)
+ if err != nil {
+ return err
+ }
+ la.RegexEntities = ®exEntities
+ }
+ case "prebuiltEntities":
+ if v != nil {
+ var prebuiltEntities []PrebuiltEntity
+ err = json.Unmarshal(*v, &prebuiltEntities)
+ if err != nil {
+ return err
+ }
+ la.PrebuiltEntities = &prebuiltEntities
+ }
+ case "regex_features":
+ if v != nil {
+ var regexFeatures []JSONRegexFeature
+ err = json.Unmarshal(*v, ®exFeatures)
+ if err != nil {
+ return err
+ }
+ la.RegexFeatures = ®exFeatures
+ }
+ case "model_features":
+ if v != nil {
+ var modelFeatures []JSONModelFeature
+ err = json.Unmarshal(*v, &modelFeatures)
+ if err != nil {
+ return err
+ }
+ la.ModelFeatures = &modelFeatures
+ }
+ case "patterns":
+ if v != nil {
+ var patterns []PatternRule
+ err = json.Unmarshal(*v, &patterns)
+ if err != nil {
+ return err
+ }
+ la.Patterns = &patterns
+ }
+ case "utterances":
+ if v != nil {
+ var utterances []JSONUtterance
+ err = json.Unmarshal(*v, &utterances)
+ if err != nil {
+ return err
+ }
+ la.Utterances = &utterances
+ }
+ }
+ }
+
+ return nil
+}
+
+// ModelCreateObject object model for creating a new entity extractor.
+type ModelCreateObject struct {
+ // Name - Name of the new entity extractor.
+ Name *string `json:"name,omitempty"`
+}
+
+// ModelFeatureInformation an object containing the model feature information either the model name or
+// feature name.
+type ModelFeatureInformation struct {
+ // ModelName - The name of the model used.
+ ModelName *string `json:"modelName,omitempty"`
+ // FeatureName - The name of the feature used.
+ FeatureName *string `json:"featureName,omitempty"`
+}
+
+// ModelInfo base type used in entity types.
+type ModelInfo struct {
+ // ID - The ID of the Entity Model.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - Name of the Entity Model.
+ Name *string `json:"name,omitempty"`
+ // TypeID - The type ID of the Entity Model.
+ TypeID *int32 `json:"typeId,omitempty"`
+ // ReadableType - Possible values include: 'ReadableTypeEntityExtractor', 'ReadableTypeChildEntityExtractor', 'ReadableTypeHierarchicalEntityExtractor', 'ReadableTypeHierarchicalChildEntityExtractor', 'ReadableTypeCompositeEntityExtractor', 'ReadableTypeListEntityExtractor', 'ReadableTypePrebuiltEntityExtractor', 'ReadableTypeIntentClassifier', 'ReadableTypePatternAnyEntityExtractor', 'ReadableTypeClosedListEntityExtractor', 'ReadableTypeRegexEntityExtractor'
+ ReadableType ReadableType `json:"readableType,omitempty"`
+}
+
+// ModelInfoResponse an application model info.
+type ModelInfoResponse struct {
+ // ID - The ID of the Entity Model.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - Name of the Entity Model.
+ Name *string `json:"name,omitempty"`
+ // TypeID - The type ID of the Entity Model.
+ TypeID *int32 `json:"typeId,omitempty"`
+ // ReadableType - Possible values include: 'ReadableType2EntityExtractor', 'ReadableType2ChildEntityExtractor', 'ReadableType2HierarchicalEntityExtractor', 'ReadableType2HierarchicalChildEntityExtractor', 'ReadableType2CompositeEntityExtractor', 'ReadableType2ListEntityExtractor', 'ReadableType2PrebuiltEntityExtractor', 'ReadableType2IntentClassifier', 'ReadableType2PatternAnyEntityExtractor', 'ReadableType2ClosedListEntityExtractor', 'ReadableType2RegexEntityExtractor'
+ ReadableType ReadableType2 `json:"readableType,omitempty"`
+ Roles *[]EntityRole `json:"roles,omitempty"`
+ // Children - List of child entities.
+ Children *[]ChildEntity `json:"children,omitempty"`
+ // SubLists - List of sublists.
+ SubLists *[]SubClosedListResponse `json:"subLists,omitempty"`
+ // CustomPrebuiltDomainName - The domain name.
+ CustomPrebuiltDomainName *string `json:"customPrebuiltDomainName,omitempty"`
+ // CustomPrebuiltModelName - The intent name or entity name.
+ CustomPrebuiltModelName *string `json:"customPrebuiltModelName,omitempty"`
+ // RegexPattern - The Regular Expression entity pattern.
+ RegexPattern *string `json:"regexPattern,omitempty"`
+ ExplicitList *[]ExplicitListItem `json:"explicitList,omitempty"`
+}
+
+// ModelTrainingDetails model Training Details.
+type ModelTrainingDetails struct {
+ // StatusID - The train request status ID.
+ StatusID *int32 `json:"statusId,omitempty"`
+ // Status - Possible values include: 'Status1Queued', 'Status1InProgress', 'Status1UpToDate', 'Status1Fail', 'Status1Success'
+ Status Status1 `json:"status,omitempty"`
+ // ExampleCount - The count of examples used to train the model.
+ ExampleCount *int32 `json:"exampleCount,omitempty"`
+ // TrainingDateTime - When the model was trained.
+ TrainingDateTime *date.Time `json:"trainingDateTime,omitempty"`
+ // FailureReason - Reason for the training failure.
+ FailureReason *string `json:"failureReason,omitempty"`
+}
+
+// ModelTrainingInfo model Training Info.
+type ModelTrainingInfo struct {
+ // ModelID - The ID (GUID) of the model.
+ ModelID *uuid.UUID `json:"modelId,omitempty"`
+ Details *ModelTrainingDetails `json:"details,omitempty"`
+}
+
+// ModelUpdateObject object model for updating an intent classifier.
+type ModelUpdateObject struct {
+ // Name - The entity's new name.
+ Name *string `json:"name,omitempty"`
+}
+
+// NDepthEntityExtractor n-Depth Entity Extractor.
+type NDepthEntityExtractor struct {
+ autorest.Response `json:"-"`
+ // ID - The ID of the Entity Model.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - Name of the Entity Model.
+ Name *string `json:"name,omitempty"`
+ // TypeID - The type ID of the Entity Model.
+ TypeID *int32 `json:"typeId,omitempty"`
+ // ReadableType - Possible values include: 'ReadableType9EntityExtractor', 'ReadableType9ChildEntityExtractor', 'ReadableType9HierarchicalEntityExtractor', 'ReadableType9HierarchicalChildEntityExtractor', 'ReadableType9CompositeEntityExtractor', 'ReadableType9ListEntityExtractor', 'ReadableType9PrebuiltEntityExtractor', 'ReadableType9IntentClassifier', 'ReadableType9PatternAnyEntityExtractor', 'ReadableType9ClosedListEntityExtractor', 'ReadableType9RegexEntityExtractor'
+ ReadableType ReadableType9 `json:"readableType,omitempty"`
+ Roles *[]EntityRole `json:"roles,omitempty"`
+ // CustomPrebuiltDomainName - The domain name.
+ CustomPrebuiltDomainName *string `json:"customPrebuiltDomainName,omitempty"`
+ // CustomPrebuiltModelName - The intent name or entity name.
+ CustomPrebuiltModelName *string `json:"customPrebuiltModelName,omitempty"`
+ Children *[]ChildEntity `json:"children,omitempty"`
+}
+
+// OperationError operation error details when invoking an operation on the API.
+type OperationError struct {
+ Code *string `json:"code,omitempty"`
+ Message *string `json:"message,omitempty"`
+}
+
+// OperationStatus response of an Operation status.
+type OperationStatus struct {
+ autorest.Response `json:"-"`
+ // Code - Status Code. Possible values include: 'Failed', 'FAILED', 'Success'
+ Code OperationStatusType `json:"code,omitempty"`
+ // Message - Status details.
+ Message *string `json:"message,omitempty"`
+}
+
+// PatternAny pattern.Any Entity Extractor.
+type PatternAny struct {
+ Name *string `json:"name,omitempty"`
+ ExplicitList *[]string `json:"explicitList,omitempty"`
+ Roles *[]string `json:"roles,omitempty"`
+}
+
+// PatternAnyEntityExtractor pattern.Any Entity Extractor.
+type PatternAnyEntityExtractor struct {
+ autorest.Response `json:"-"`
+ // ID - The ID of the Entity Model.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - Name of the Entity Model.
+ Name *string `json:"name,omitempty"`
+ // TypeID - The type ID of the Entity Model.
+ TypeID *int32 `json:"typeId,omitempty"`
+ // ReadableType - Possible values include: 'ReadableType11EntityExtractor', 'ReadableType11ChildEntityExtractor', 'ReadableType11HierarchicalEntityExtractor', 'ReadableType11HierarchicalChildEntityExtractor', 'ReadableType11CompositeEntityExtractor', 'ReadableType11ListEntityExtractor', 'ReadableType11PrebuiltEntityExtractor', 'ReadableType11IntentClassifier', 'ReadableType11PatternAnyEntityExtractor', 'ReadableType11ClosedListEntityExtractor', 'ReadableType11RegexEntityExtractor'
+ ReadableType ReadableType11 `json:"readableType,omitempty"`
+ Roles *[]EntityRole `json:"roles,omitempty"`
+ ExplicitList *[]ExplicitListItem `json:"explicitList,omitempty"`
+}
+
+// PatternAnyModelCreateObject model object for creating a Pattern.Any entity model.
+type PatternAnyModelCreateObject struct {
+ // Name - The model name.
+ Name *string `json:"name,omitempty"`
+ // ExplicitList - The Pattern.Any explicit list.
+ ExplicitList *[]string `json:"explicitList,omitempty"`
+}
+
+// PatternAnyModelUpdateObject model object for updating a Pattern.Any entity model.
+type PatternAnyModelUpdateObject struct {
+ // Name - The model name.
+ Name *string `json:"name,omitempty"`
+ // ExplicitList - The Pattern.Any explicit list.
+ ExplicitList *[]string `json:"explicitList,omitempty"`
+}
+
+// PatternFeatureInfo pattern feature.
+type PatternFeatureInfo struct {
+ // Pattern - The Regular Expression to match.
+ Pattern *string `json:"pattern,omitempty"`
+ // ID - A six-digit ID used for Features.
+ ID *int32 `json:"id,omitempty"`
+ // Name - The name of the Feature.
+ Name *string `json:"name,omitempty"`
+ // IsActive - Indicates if the feature is enabled.
+ IsActive *bool `json:"isActive,omitempty"`
+ // EnabledForAllModels - Indicates if the feature is enabled for all models in the application.
+ EnabledForAllModels *bool `json:"enabledForAllModels,omitempty"`
+}
+
+// PatternRule pattern
+type PatternRule struct {
+ // Pattern - The pattern text.
+ Pattern *string `json:"pattern,omitempty"`
+ // Intent - The intent's name where the pattern belongs to.
+ Intent *string `json:"intent,omitempty"`
+}
+
+// PatternRuleCreateObject object model for creating a pattern
+type PatternRuleCreateObject struct {
+ // Pattern - The pattern text.
+ Pattern *string `json:"pattern,omitempty"`
+ // Intent - The intent's name which the pattern belongs to.
+ Intent *string `json:"intent,omitempty"`
+}
+
+// PatternRuleInfo pattern rule
+type PatternRuleInfo struct {
+ autorest.Response `json:"-"`
+ // ID - The pattern ID.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Pattern - The pattern text.
+ Pattern *string `json:"pattern,omitempty"`
+ // Intent - The intent's name where the pattern belongs to.
+ Intent *string `json:"intent,omitempty"`
+}
+
+// PatternRuleUpdateObject object model for updating a pattern.
+type PatternRuleUpdateObject struct {
+ // ID - The pattern ID.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Pattern - The pattern text.
+ Pattern *string `json:"pattern,omitempty"`
+ // Intent - The intent's name which the pattern belongs to.
+ Intent *string `json:"intent,omitempty"`
+}
+
+// PersonalAssistantsResponse response containing user's endpoint keys and the endpoint URLs of the
+// prebuilt Cortana applications.
+type PersonalAssistantsResponse struct {
+ autorest.Response `json:"-"`
+ EndpointKeys *[]uuid.UUID `json:"endpointKeys,omitempty"`
+ EndpointUrls map[string]*string `json:"endpointUrls"`
+}
+
+// MarshalJSON is the custom marshaler for PersonalAssistantsResponse.
+func (par PersonalAssistantsResponse) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if par.EndpointKeys != nil {
+ objectMap["endpointKeys"] = par.EndpointKeys
+ }
+ if par.EndpointUrls != nil {
+ objectMap["endpointUrls"] = par.EndpointUrls
+ }
+ return json.Marshal(objectMap)
+}
+
+// PhraselistCreateObject object model for creating a phraselist model.
+type PhraselistCreateObject struct {
+ // Phrases - List of comma-separated phrases that represent the Phraselist.
+ Phrases *string `json:"phrases,omitempty"`
+ // Name - The Phraselist name.
+ Name *string `json:"name,omitempty"`
+ // IsExchangeable - An interchangeable phrase list feature serves as a list of synonyms for training. A non-exchangeable phrase list serves as separate features for training. So, if your non-interchangeable phrase list contains 5 phrases, they will be mapped to 5 separate features. You can think of the non-interchangeable phrase list as an additional bag of words to add to LUIS existing vocabulary features. It is used as a lexicon lookup feature where its value is 1 if the lexicon contains a given word or 0 if it doesn’t. Default value is true.
+ IsExchangeable *bool `json:"isExchangeable,omitempty"`
+}
+
+// PhraseListFeatureInfo phraselist Feature.
+type PhraseListFeatureInfo struct {
+ autorest.Response `json:"-"`
+ // Phrases - A list of comma-separated values.
+ Phrases *string `json:"phrases,omitempty"`
+ // IsExchangeable - An exchangeable phrase list feature are serves as single feature to the LUIS underlying training algorithm. It is used as a lexicon lookup feature where its value is 1 if the lexicon contains a given word or 0 if it doesn’t. Think of an exchangeable as a synonyms list. A non-exchangeable phrase list feature has all the phrases in the list serve as separate features to the underlying training algorithm. So, if you your phrase list feature contains 5 phrases, they will be mapped to 5 separate features. You can think of the non-exchangeable phrase list feature as an additional bag of words that you are willing to add to LUIS existing vocabulary features. Think of a non-exchangeable as set of different words. Default value is true.
+ IsExchangeable *bool `json:"isExchangeable,omitempty"`
+ // ID - A six-digit ID used for Features.
+ ID *int32 `json:"id,omitempty"`
+ // Name - The name of the Feature.
+ Name *string `json:"name,omitempty"`
+ // IsActive - Indicates if the feature is enabled.
+ IsActive *bool `json:"isActive,omitempty"`
+ // EnabledForAllModels - Indicates if the feature is enabled for all models in the application.
+ EnabledForAllModels *bool `json:"enabledForAllModels,omitempty"`
+}
+
+// PhraselistUpdateObject object model for updating a Phraselist.
+type PhraselistUpdateObject struct {
+ // Phrases - List of comma-separated phrases that represent the Phraselist.
+ Phrases *string `json:"phrases,omitempty"`
+ // Name - The Phraselist name.
+ Name *string `json:"name,omitempty"`
+ // IsActive - Indicates if the Phraselist is enabled.
+ IsActive *bool `json:"isActive,omitempty"`
+ // IsExchangeable - An exchangeable phrase list feature are serves as single feature to the LUIS underlying training algorithm. It is used as a lexicon lookup feature where its value is 1 if the lexicon contains a given word or 0 if it doesn’t. Think of an exchangeable as a synonyms list. A non-exchangeable phrase list feature has all the phrases in the list serve as separate features to the underlying training algorithm. So, if you your phrase list feature contains 5 phrases, they will be mapped to 5 separate features. You can think of the non-exchangeable phrase list feature as an additional bag of words that you are willing to add to LUIS existing vocabulary features. Think of a non-exchangeable as set of different words. Default value is true.
+ IsExchangeable *bool `json:"isExchangeable,omitempty"`
+ // EnabledForAllModels - Indicates if the Phraselist is enabled for all models in the application.
+ EnabledForAllModels *bool `json:"enabledForAllModels,omitempty"`
+}
+
+// PrebuiltDomain prebuilt Domain.
+type PrebuiltDomain struct {
+ Name *string `json:"name,omitempty"`
+ Culture *string `json:"culture,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Examples *string `json:"examples,omitempty"`
+ Intents *[]PrebuiltDomainItem `json:"intents,omitempty"`
+ Entities *[]PrebuiltDomainItem `json:"entities,omitempty"`
+}
+
+// PrebuiltDomainCreateBaseObject a model object containing the name of the custom prebuilt entity and the
+// name of the domain to which this model belongs.
+type PrebuiltDomainCreateBaseObject struct {
+ // DomainName - The domain name.
+ DomainName *string `json:"domainName,omitempty"`
+}
+
+// PrebuiltDomainCreateObject a prebuilt domain create object containing the name and culture of the
+// domain.
+type PrebuiltDomainCreateObject struct {
+ // DomainName - The domain name.
+ DomainName *string `json:"domainName,omitempty"`
+ // Culture - The culture of the new domain.
+ Culture *string `json:"culture,omitempty"`
+}
+
+// PrebuiltDomainItem ...
+type PrebuiltDomainItem struct {
+ Name *string `json:"name,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Examples *string `json:"examples,omitempty"`
+}
+
+// PrebuiltDomainModelCreateObject a model object containing the name of the custom prebuilt intent or
+// entity and the name of the domain to which this model belongs.
+type PrebuiltDomainModelCreateObject struct {
+ // DomainName - The domain name.
+ DomainName *string `json:"domainName,omitempty"`
+ // ModelName - The intent name or entity name.
+ ModelName *string `json:"modelName,omitempty"`
+}
+
+// PrebuiltDomainObject ...
+type PrebuiltDomainObject struct {
+ DomainName *string `json:"domain_name,omitempty"`
+ ModelName *string `json:"model_name,omitempty"`
+}
+
+// PrebuiltEntity prebuilt Entity Extractor.
+type PrebuiltEntity struct {
+ Name *string `json:"name,omitempty"`
+ Roles *[]string `json:"roles,omitempty"`
+}
+
+// PrebuiltEntityExtractor prebuilt Entity Extractor.
+type PrebuiltEntityExtractor struct {
+ autorest.Response `json:"-"`
+ // ID - The ID of the Entity Model.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - Name of the Entity Model.
+ Name *string `json:"name,omitempty"`
+ // TypeID - The type ID of the Entity Model.
+ TypeID *int32 `json:"typeId,omitempty"`
+ // ReadableType - Possible values include: 'ReadableType6EntityExtractor', 'ReadableType6ChildEntityExtractor', 'ReadableType6HierarchicalEntityExtractor', 'ReadableType6HierarchicalChildEntityExtractor', 'ReadableType6CompositeEntityExtractor', 'ReadableType6ListEntityExtractor', 'ReadableType6PrebuiltEntityExtractor', 'ReadableType6IntentClassifier', 'ReadableType6PatternAnyEntityExtractor', 'ReadableType6ClosedListEntityExtractor', 'ReadableType6RegexEntityExtractor'
+ ReadableType ReadableType6 `json:"readableType,omitempty"`
+ Roles *[]EntityRole `json:"roles,omitempty"`
+}
+
+// ProductionOrStagingEndpointInfo ...
+type ProductionOrStagingEndpointInfo struct {
+ autorest.Response `json:"-"`
+ // VersionID - The version ID to publish.
+ VersionID *string `json:"versionId,omitempty"`
+ // IsStaging - Indicates if the staging slot should be used, instead of the Production one.
+ IsStaging *bool `json:"isStaging,omitempty"`
+ // EndpointURL - The Runtime endpoint URL for this model version.
+ EndpointURL *string `json:"endpointUrl,omitempty"`
+ // Region - The target region that the application is published to.
+ Region *string `json:"region,omitempty"`
+ // AssignedEndpointKey - The endpoint key.
+ AssignedEndpointKey *string `json:"assignedEndpointKey,omitempty"`
+ // EndpointRegion - The endpoint's region.
+ EndpointRegion *string `json:"endpointRegion,omitempty"`
+ // FailedRegions - Regions where publishing failed.
+ FailedRegions *string `json:"failedRegions,omitempty"`
+ // PublishedDateTime - Timestamp when was last published.
+ PublishedDateTime *string `json:"publishedDateTime,omitempty"`
+}
+
+// PublishSettings the application publish settings.
+type PublishSettings struct {
+ autorest.Response `json:"-"`
+ // ID - The application ID.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // IsSentimentAnalysisEnabled - Setting sentiment analysis as true returns the sentiment of the input utterance along with the response
+ IsSentimentAnalysisEnabled *bool `json:"sentimentAnalysis,omitempty"`
+ // IsSpeechEnabled - Enables speech priming in your app
+ IsSpeechEnabled *bool `json:"speech,omitempty"`
+ // IsSpellCheckerEnabled - Enables spell checking of the utterance.
+ IsSpellCheckerEnabled *bool `json:"spellChecker,omitempty"`
+}
+
+// PublishSettingUpdateObject object model for updating an application's publish settings.
+type PublishSettingUpdateObject struct {
+ // SentimentAnalysis - Setting sentiment analysis as true returns the Sentiment of the input utterance along with the response
+ SentimentAnalysis *bool `json:"sentimentAnalysis,omitempty"`
+ // Speech - Setting speech as public enables speech priming in your app
+ Speech *bool `json:"speech,omitempty"`
+ // SpellChecker - Setting spell checker as public enables spell checking the input utterance.
+ SpellChecker *bool `json:"spellChecker,omitempty"`
+}
+
+// ReadCloser ...
+type ReadCloser struct {
+ autorest.Response `json:"-"`
+ Value *io.ReadCloser `json:"value,omitempty"`
+}
+
+// RegexEntity regular Expression Entity Extractor.
+type RegexEntity struct {
+ Name *string `json:"name,omitempty"`
+ RegexPattern *string `json:"regexPattern,omitempty"`
+ Roles *[]string `json:"roles,omitempty"`
+}
+
+// RegexEntityExtractor regular Expression Entity Extractor.
+type RegexEntityExtractor struct {
+ autorest.Response `json:"-"`
+ // ID - The ID of the Entity Model.
+ ID *uuid.UUID `json:"id,omitempty"`
+ // Name - Name of the Entity Model.
+ Name *string `json:"name,omitempty"`
+ // TypeID - The type ID of the Entity Model.
+ TypeID *int32 `json:"typeId,omitempty"`
+ // ReadableType - Possible values include: 'ReadableType10EntityExtractor', 'ReadableType10ChildEntityExtractor', 'ReadableType10HierarchicalEntityExtractor', 'ReadableType10HierarchicalChildEntityExtractor', 'ReadableType10CompositeEntityExtractor', 'ReadableType10ListEntityExtractor', 'ReadableType10PrebuiltEntityExtractor', 'ReadableType10IntentClassifier', 'ReadableType10PatternAnyEntityExtractor', 'ReadableType10ClosedListEntityExtractor', 'ReadableType10RegexEntityExtractor'
+ ReadableType ReadableType10 `json:"readableType,omitempty"`
+ Roles *[]EntityRole `json:"roles,omitempty"`
+ // RegexPattern - The Regular Expression entity pattern.
+ RegexPattern *string `json:"regexPattern,omitempty"`
+}
+
+// RegexModelCreateObject model object for creating a regular expression entity model.
+type RegexModelCreateObject struct {
+ // RegexPattern - The regular expression entity pattern.
+ RegexPattern *string `json:"regexPattern,omitempty"`
+ // Name - The model name.
+ Name *string `json:"name,omitempty"`
+}
+
+// RegexModelUpdateObject model object for updating a regular expression entity model.
+type RegexModelUpdateObject struct {
+ // RegexPattern - The regular expression entity pattern.
+ RegexPattern *string `json:"regexPattern,omitempty"`
+ // Name - The model name.
+ Name *string `json:"name,omitempty"`
+}
+
+// SetString ...
+type SetString struct {
+ autorest.Response `json:"-"`
+ Value map[string]*string `json:"value"`
+}
+
+// MarshalJSON is the custom marshaler for SetString.
+func (ss SetString) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if ss.Value != nil {
+ objectMap["value"] = ss.Value
+ }
+ return json.Marshal(objectMap)
+}
+
+// String ...
+type String struct {
+ autorest.Response `json:"-"`
+ Value *string `json:"value,omitempty"`
+}
+
+// SubClosedList sublist of items for a list entity.
+type SubClosedList struct {
+ // CanonicalForm - The standard form that the list represents.
+ CanonicalForm *string `json:"canonicalForm,omitempty"`
+ // List - List of synonym words.
+ List *[]string `json:"list,omitempty"`
+}
+
+// SubClosedListResponse sublist of items for a list entity.
+type SubClosedListResponse struct {
+ // ID - The sublist ID
+ ID *int32 `json:"id,omitempty"`
+ // CanonicalForm - The standard form that the list represents.
+ CanonicalForm *string `json:"canonicalForm,omitempty"`
+ // List - List of synonym words.
+ List *[]string `json:"list,omitempty"`
+}
+
+// TaskUpdateObject object model for cloning an application's version.
+type TaskUpdateObject struct {
+ // Version - The new version for the cloned model.
+ Version *string `json:"version,omitempty"`
+}
+
+// UserAccessList list of user permissions.
+type UserAccessList struct {
+ autorest.Response `json:"-"`
+ // Owner - The email address of owner of the application.
+ Owner *string `json:"owner,omitempty"`
+ Emails *[]string `json:"emails,omitempty"`
+}
+
+// UserCollaborator ...
+type UserCollaborator struct {
+ // Email - The email address of the user.
+ Email *string `json:"email,omitempty"`
+}
+
+// UUID ...
+type UUID struct {
+ autorest.Response `json:"-"`
+ Value *uuid.UUID `json:"value,omitempty"`
+}
+
+// VersionInfo object model of an application version.
+type VersionInfo struct {
+ autorest.Response `json:"-"`
+ // Version - The version ID. E.g.: "0.1"
+ Version *string `json:"version,omitempty"`
+ // CreatedDateTime - The version's creation timestamp.
+ CreatedDateTime *date.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime - Timestamp of the last update.
+ LastModifiedDateTime *date.Time `json:"lastModifiedDateTime,omitempty"`
+ // LastTrainedDateTime - Timestamp of the last time the model was trained.
+ LastTrainedDateTime *date.Time `json:"lastTrainedDateTime,omitempty"`
+ // LastPublishedDateTime - Timestamp when was last published.
+ LastPublishedDateTime *date.Time `json:"lastPublishedDateTime,omitempty"`
+ // EndpointURL - The Runtime endpoint URL for this model version.
+ EndpointURL *string `json:"endpointUrl,omitempty"`
+ // AssignedEndpointKey - The endpoint key.
+ AssignedEndpointKey map[string]*string `json:"assignedEndpointKey"`
+ // ExternalAPIKeys - External keys.
+ ExternalAPIKeys interface{} `json:"externalApiKeys,omitempty"`
+ // IntentsCount - Number of intents in this model.
+ IntentsCount *int32 `json:"intentsCount,omitempty"`
+ // EntitiesCount - Number of entities in this model.
+ EntitiesCount *int32 `json:"entitiesCount,omitempty"`
+ // EndpointHitsCount - Number of calls made to this endpoint.
+ EndpointHitsCount *int32 `json:"endpointHitsCount,omitempty"`
+ // TrainingStatus - The current training status. Possible values include: 'NeedsTraining', 'InProgress', 'Trained'
+ TrainingStatus TrainingStatus `json:"trainingStatus,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for VersionInfo.
+func (vi VersionInfo) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if vi.Version != nil {
+ objectMap["version"] = vi.Version
+ }
+ if vi.CreatedDateTime != nil {
+ objectMap["createdDateTime"] = vi.CreatedDateTime
+ }
+ if vi.LastModifiedDateTime != nil {
+ objectMap["lastModifiedDateTime"] = vi.LastModifiedDateTime
+ }
+ if vi.LastTrainedDateTime != nil {
+ objectMap["lastTrainedDateTime"] = vi.LastTrainedDateTime
+ }
+ if vi.LastPublishedDateTime != nil {
+ objectMap["lastPublishedDateTime"] = vi.LastPublishedDateTime
+ }
+ if vi.EndpointURL != nil {
+ objectMap["endpointUrl"] = vi.EndpointURL
+ }
+ if vi.AssignedEndpointKey != nil {
+ objectMap["assignedEndpointKey"] = vi.AssignedEndpointKey
+ }
+ if vi.ExternalAPIKeys != nil {
+ objectMap["externalApiKeys"] = vi.ExternalAPIKeys
+ }
+ if vi.IntentsCount != nil {
+ objectMap["intentsCount"] = vi.IntentsCount
+ }
+ if vi.EntitiesCount != nil {
+ objectMap["entitiesCount"] = vi.EntitiesCount
+ }
+ if vi.EndpointHitsCount != nil {
+ objectMap["endpointHitsCount"] = vi.EndpointHitsCount
+ }
+ if vi.TrainingStatus != "" {
+ objectMap["trainingStatus"] = vi.TrainingStatus
+ }
+ return json.Marshal(objectMap)
+}
+
+// WordListBaseUpdateObject object model for updating one of the list entity's sublists.
+type WordListBaseUpdateObject struct {
+ // CanonicalForm - The standard form that the list represents.
+ CanonicalForm *string `json:"canonicalForm,omitempty"`
+ // List - List of synonym words.
+ List *[]string `json:"list,omitempty"`
+}
+
+// WordListObject sublist of items for a list entity.
+type WordListObject struct {
+ // CanonicalForm - The standard form that the list represents.
+ CanonicalForm *string `json:"canonicalForm,omitempty"`
+ // List - List of synonym words.
+ List *[]string `json:"list,omitempty"`
+}
diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/pattern.go b/services/preview/cognitiveservices/v3.0/luis/authoring/pattern.go
new file mode 100644
index 000000000000..d827805145dc
--- /dev/null
+++ b/services/preview/cognitiveservices/v3.0/luis/authoring/pattern.go
@@ -0,0 +1,723 @@
+package authoring
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "github.com/satori/go.uuid"
+ "net/http"
+)
+
+// PatternClient is the client for the Pattern methods of the Authoring service.
+type PatternClient struct {
+ BaseClient
+}
+
+// NewPatternClient creates an instance of the PatternClient client.
+func NewPatternClient(endpoint string) PatternClient {
+ return PatternClient{New(endpoint)}
+}
+
+// AddPattern sends the add pattern request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// pattern - the input pattern.
+func (client PatternClient) AddPattern(ctx context.Context, appID uuid.UUID, versionID string, pattern PatternRuleCreateObject) (result PatternRuleInfo, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PatternClient.AddPattern")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.AddPatternPreparer(ctx, appID, versionID, pattern)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "AddPattern", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AddPatternSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "AddPattern", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AddPatternResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "AddPattern", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AddPatternPreparer prepares the AddPattern request.
+func (client PatternClient) AddPatternPreparer(ctx context.Context, appID uuid.UUID, versionID string, pattern PatternRuleCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternrule", pathParameters),
+ autorest.WithJSON(pattern))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// AddPatternSender sends the AddPattern request. The method will close the
+// http.Response Body if it receives an error.
+func (client PatternClient) AddPatternSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AddPatternResponder handles the response to the AddPattern request. The method always
+// closes the http.Response Body.
+func (client PatternClient) AddPatternResponder(resp *http.Response) (result PatternRuleInfo, 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
+}
+
+// BatchAddPatterns sends the batch add patterns request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// patterns - a JSON array containing patterns.
+func (client PatternClient) BatchAddPatterns(ctx context.Context, appID uuid.UUID, versionID string, patterns []PatternRuleCreateObject) (result ListPatternRuleInfo, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PatternClient.BatchAddPatterns")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: patterns,
+ Constraints: []validation.Constraint{{Target: "patterns", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("authoring.PatternClient", "BatchAddPatterns", err.Error())
+ }
+
+ req, err := client.BatchAddPatternsPreparer(ctx, appID, versionID, patterns)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "BatchAddPatterns", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.BatchAddPatternsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "BatchAddPatterns", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.BatchAddPatternsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "BatchAddPatterns", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// BatchAddPatternsPreparer prepares the BatchAddPatterns request.
+func (client PatternClient) BatchAddPatternsPreparer(ctx context.Context, appID uuid.UUID, versionID string, patterns []PatternRuleCreateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternrules", pathParameters),
+ autorest.WithJSON(patterns))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// BatchAddPatternsSender sends the BatchAddPatterns request. The method will close the
+// http.Response Body if it receives an error.
+func (client PatternClient) BatchAddPatternsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// BatchAddPatternsResponder handles the response to the BatchAddPatterns request. The method always
+// closes the http.Response Body.
+func (client PatternClient) BatchAddPatternsResponder(resp *http.Response) (result ListPatternRuleInfo, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeletePattern sends the delete pattern request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// patternID - the pattern ID.
+func (client PatternClient) DeletePattern(ctx context.Context, appID uuid.UUID, versionID string, patternID uuid.UUID) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PatternClient.DeletePattern")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePatternPreparer(ctx, appID, versionID, patternID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "DeletePattern", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeletePatternSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "DeletePattern", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeletePatternResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "DeletePattern", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePatternPreparer prepares the DeletePattern request.
+func (client PatternClient) DeletePatternPreparer(ctx context.Context, appID uuid.UUID, versionID string, patternID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "patternId": autorest.Encode("path", patternID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternrules/{patternId}", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeletePatternSender sends the DeletePattern request. The method will close the
+// http.Response Body if it receives an error.
+func (client PatternClient) DeletePatternSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeletePatternResponder handles the response to the DeletePattern request. The method always
+// closes the http.Response Body.
+func (client PatternClient) DeletePatternResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeletePatterns sends the delete patterns request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// patternIds - the patterns IDs.
+func (client PatternClient) DeletePatterns(ctx context.Context, appID uuid.UUID, versionID string, patternIds []uuid.UUID) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PatternClient.DeletePatterns")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: patternIds,
+ Constraints: []validation.Constraint{{Target: "patternIds", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("authoring.PatternClient", "DeletePatterns", err.Error())
+ }
+
+ req, err := client.DeletePatternsPreparer(ctx, appID, versionID, patternIds)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "DeletePatterns", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeletePatternsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "DeletePatterns", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeletePatternsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "DeletePatterns", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePatternsPreparer prepares the DeletePatterns request.
+func (client PatternClient) DeletePatternsPreparer(ctx context.Context, appID uuid.UUID, versionID string, patternIds []uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternrules", pathParameters),
+ autorest.WithJSON(patternIds))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeletePatternsSender sends the DeletePatterns request. The method will close the
+// http.Response Body if it receives an error.
+func (client PatternClient) DeletePatternsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeletePatternsResponder handles the response to the DeletePatterns request. The method always
+// closes the http.Response Body.
+func (client PatternClient) DeletePatternsResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListIntentPatterns sends the list intent patterns request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// intentID - the intent classifier ID.
+// skip - the number of entries to skip. Default value is 0.
+// take - the number of entries to return. Maximum page size is 500. Default is 100.
+func (client PatternClient) ListIntentPatterns(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, skip *int32, take *int32) (result ListPatternRuleInfo, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PatternClient.ListIntentPatterns")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: skip,
+ Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}},
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(500), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.PatternClient", "ListIntentPatterns", err.Error())
+ }
+
+ req, err := client.ListIntentPatternsPreparer(ctx, appID, versionID, intentID, skip, take)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "ListIntentPatterns", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListIntentPatternsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "ListIntentPatterns", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListIntentPatternsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "ListIntentPatterns", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListIntentPatternsPreparer prepares the ListIntentPatterns request.
+func (client PatternClient) ListIntentPatternsPreparer(ctx context.Context, appID uuid.UUID, versionID string, intentID uuid.UUID, skip *int32, take *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "intentId": autorest.Encode("path", intentID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 100)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/intents/{intentId}/patternrules", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListIntentPatternsSender sends the ListIntentPatterns request. The method will close the
+// http.Response Body if it receives an error.
+func (client PatternClient) ListIntentPatternsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListIntentPatternsResponder handles the response to the ListIntentPatterns request. The method always
+// closes the http.Response Body.
+func (client PatternClient) ListIntentPatternsResponder(resp *http.Response) (result ListPatternRuleInfo, 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
+}
+
+// ListPatterns sends the list patterns request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// skip - the number of entries to skip. Default value is 0.
+// take - the number of entries to return. Maximum page size is 500. Default is 100.
+func (client PatternClient) ListPatterns(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (result ListPatternRuleInfo, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PatternClient.ListPatterns")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: skip,
+ Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}},
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(500), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.PatternClient", "ListPatterns", err.Error())
+ }
+
+ req, err := client.ListPatternsPreparer(ctx, appID, versionID, skip, take)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "ListPatterns", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListPatternsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "ListPatterns", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListPatternsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "ListPatterns", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPatternsPreparer prepares the ListPatterns request.
+func (client PatternClient) ListPatternsPreparer(ctx context.Context, appID uuid.UUID, versionID string, skip *int32, take *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 100)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternrules", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListPatternsSender sends the ListPatterns request. The method will close the
+// http.Response Body if it receives an error.
+func (client PatternClient) ListPatternsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListPatternsResponder handles the response to the ListPatterns request. The method always
+// closes the http.Response Body.
+func (client PatternClient) ListPatternsResponder(resp *http.Response) (result ListPatternRuleInfo, 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
+}
+
+// UpdatePattern sends the update pattern request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// patternID - the pattern ID.
+// pattern - an object representing a pattern.
+func (client PatternClient) UpdatePattern(ctx context.Context, appID uuid.UUID, versionID string, patternID uuid.UUID, pattern PatternRuleUpdateObject) (result PatternRuleInfo, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PatternClient.UpdatePattern")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdatePatternPreparer(ctx, appID, versionID, patternID, pattern)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "UpdatePattern", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdatePatternSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "UpdatePattern", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdatePatternResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "UpdatePattern", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdatePatternPreparer prepares the UpdatePattern request.
+func (client PatternClient) UpdatePatternPreparer(ctx context.Context, appID uuid.UUID, versionID string, patternID uuid.UUID, pattern PatternRuleUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "patternId": autorest.Encode("path", patternID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternrules/{patternId}", pathParameters),
+ autorest.WithJSON(pattern))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdatePatternSender sends the UpdatePattern request. The method will close the
+// http.Response Body if it receives an error.
+func (client PatternClient) UpdatePatternSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdatePatternResponder handles the response to the UpdatePattern request. The method always
+// closes the http.Response Body.
+func (client PatternClient) UpdatePatternResponder(resp *http.Response) (result PatternRuleInfo, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// UpdatePatterns sends the update patterns request.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// patterns - an array represents the patterns.
+func (client PatternClient) UpdatePatterns(ctx context.Context, appID uuid.UUID, versionID string, patterns []PatternRuleUpdateObject) (result ListPatternRuleInfo, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PatternClient.UpdatePatterns")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: patterns,
+ Constraints: []validation.Constraint{{Target: "patterns", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("authoring.PatternClient", "UpdatePatterns", err.Error())
+ }
+
+ req, err := client.UpdatePatternsPreparer(ctx, appID, versionID, patterns)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "UpdatePatterns", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdatePatternsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "UpdatePatterns", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdatePatternsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PatternClient", "UpdatePatterns", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdatePatternsPreparer prepares the UpdatePatterns request.
+func (client PatternClient) UpdatePatternsPreparer(ctx context.Context, appID uuid.UUID, versionID string, patterns []PatternRuleUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/patternrules", pathParameters),
+ autorest.WithJSON(patterns))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdatePatternsSender sends the UpdatePatterns request. The method will close the
+// http.Response Body if it receives an error.
+func (client PatternClient) UpdatePatternsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdatePatternsResponder handles the response to the UpdatePatterns request. The method always
+// closes the http.Response Body.
+func (client PatternClient) UpdatePatternsResponder(resp *http.Response) (result ListPatternRuleInfo, 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
+}
diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/permissions.go b/services/preview/cognitiveservices/v3.0/luis/authoring/permissions.go
new file mode 100644
index 000000000000..f502cfb640e0
--- /dev/null
+++ b/services/preview/cognitiveservices/v3.0/luis/authoring/permissions.go
@@ -0,0 +1,337 @@
+package authoring
+
+// 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/tracing"
+ "github.com/satori/go.uuid"
+ "net/http"
+)
+
+// PermissionsClient is the client for the Permissions methods of the Authoring service.
+type PermissionsClient struct {
+ BaseClient
+}
+
+// NewPermissionsClient creates an instance of the PermissionsClient client.
+func NewPermissionsClient(endpoint string) PermissionsClient {
+ return PermissionsClient{New(endpoint)}
+}
+
+// Add adds a user to the allowed list of users to access this LUIS application. Users are added using their email
+// address.
+// Parameters:
+// appID - the application ID.
+// userToAdd - a model containing the user's email address.
+func (client PermissionsClient) Add(ctx context.Context, appID uuid.UUID, userToAdd UserCollaborator) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PermissionsClient.Add")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.AddPreparer(ctx, appID, userToAdd)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PermissionsClient", "Add", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.AddSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.PermissionsClient", "Add", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.AddResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PermissionsClient", "Add", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// AddPreparer prepares the Add request.
+func (client PermissionsClient) AddPreparer(ctx context.Context, appID uuid.UUID, userToAdd UserCollaborator) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/permissions", pathParameters),
+ autorest.WithJSON(userToAdd))
+ 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 PermissionsClient) AddSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// AddResponder handles the response to the Add request. The method always
+// closes the http.Response Body.
+func (client PermissionsClient) AddResponder(resp *http.Response) (result OperationStatus, 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 removes a user from the allowed list of users to access this LUIS application. Users are removed using their
+// email address.
+// Parameters:
+// appID - the application ID.
+// userToDelete - a model containing the user's email address.
+func (client PermissionsClient) Delete(ctx context.Context, appID uuid.UUID, userToDelete UserCollaborator) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PermissionsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, appID, userToDelete)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PermissionsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.PermissionsClient", "Delete", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PermissionsClient", "Delete", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client PermissionsClient) DeletePreparer(ctx context.Context, appID uuid.UUID, userToDelete UserCollaborator) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/permissions", pathParameters),
+ autorest.WithJSON(userToDelete))
+ 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 PermissionsClient) DeleteSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client PermissionsClient) DeleteResponder(resp *http.Response) (result OperationStatus, 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 list of user emails that have permissions to access your application.
+// Parameters:
+// appID - the application ID.
+func (client PermissionsClient) List(ctx context.Context, appID uuid.UUID) (result UserAccessList, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PermissionsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListPreparer(ctx, appID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PermissionsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.PermissionsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PermissionsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client PermissionsClient) ListPreparer(ctx context.Context, appID uuid.UUID) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/permissions", pathParameters))
+ 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 PermissionsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client PermissionsClient) ListResponder(resp *http.Response) (result UserAccessList, 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 replaces the current user access list with the new list sent in the body. If an empty list is sent, all
+// access to other users will be removed.
+// Parameters:
+// appID - the application ID.
+// collaborators - a model containing a list of user email addresses.
+func (client PermissionsClient) Update(ctx context.Context, appID uuid.UUID, collaborators CollaboratorsArray) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PermissionsClient.Update")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdatePreparer(ctx, appID, collaborators)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PermissionsClient", "Update", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.PermissionsClient", "Update", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.PermissionsClient", "Update", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdatePreparer prepares the Update request.
+func (client PermissionsClient) UpdatePreparer(ctx context.Context, appID uuid.UUID, collaborators CollaboratorsArray) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/permissions", pathParameters),
+ autorest.WithJSON(collaborators))
+ 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 PermissionsClient) UpdateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateResponder handles the response to the Update request. The method always
+// closes the http.Response Body.
+func (client PermissionsClient) UpdateResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/settings.go b/services/preview/cognitiveservices/v3.0/luis/authoring/settings.go
new file mode 100644
index 000000000000..f5a254b06f0b
--- /dev/null
+++ b/services/preview/cognitiveservices/v3.0/luis/authoring/settings.go
@@ -0,0 +1,195 @@
+package authoring
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "github.com/satori/go.uuid"
+ "net/http"
+)
+
+// SettingsClient is the client for the Settings methods of the Authoring service.
+type SettingsClient struct {
+ BaseClient
+}
+
+// NewSettingsClient creates an instance of the SettingsClient client.
+func NewSettingsClient(endpoint string) SettingsClient {
+ return SettingsClient{New(endpoint)}
+}
+
+// List gets the settings in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+func (client SettingsClient) List(ctx context.Context, appID uuid.UUID, versionID string) (result ListAppVersionSettingObject, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SettingsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListPreparer(ctx, appID, versionID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.SettingsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.SettingsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.SettingsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client SettingsClient) ListPreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/settings", pathParameters))
+ 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 SettingsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client SettingsClient) ListResponder(resp *http.Response) (result ListAppVersionSettingObject, 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
+}
+
+// Update updates the settings in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// listOfAppVersionSettingObject - a list of the updated application version settings.
+func (client SettingsClient) Update(ctx context.Context, appID uuid.UUID, versionID string, listOfAppVersionSettingObject []AppVersionSettingObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/SettingsClient.Update")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: listOfAppVersionSettingObject,
+ Constraints: []validation.Constraint{{Target: "listOfAppVersionSettingObject", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("authoring.SettingsClient", "Update", err.Error())
+ }
+
+ req, err := client.UpdatePreparer(ctx, appID, versionID, listOfAppVersionSettingObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.SettingsClient", "Update", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.SettingsClient", "Update", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.SettingsClient", "Update", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdatePreparer prepares the Update request.
+func (client SettingsClient) UpdatePreparer(ctx context.Context, appID uuid.UUID, versionID string, listOfAppVersionSettingObject []AppVersionSettingObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/settings", pathParameters),
+ autorest.WithJSON(listOfAppVersionSettingObject))
+ 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 SettingsClient) UpdateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateResponder handles the response to the Update request. The method always
+// closes the http.Response Body.
+func (client SettingsClient) UpdateResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/train.go b/services/preview/cognitiveservices/v3.0/luis/authoring/train.go
new file mode 100644
index 000000000000..aaba41df3efc
--- /dev/null
+++ b/services/preview/cognitiveservices/v3.0/luis/authoring/train.go
@@ -0,0 +1,191 @@
+package authoring
+
+// 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/tracing"
+ "github.com/satori/go.uuid"
+ "net/http"
+)
+
+// TrainClient is the client for the Train methods of the Authoring service.
+type TrainClient struct {
+ BaseClient
+}
+
+// NewTrainClient creates an instance of the TrainClient client.
+func NewTrainClient(endpoint string) TrainClient {
+ return TrainClient{New(endpoint)}
+}
+
+// GetStatus gets the training status of all models (intents and entities) for the specified LUIS app. You must call
+// the train API to train the LUIS app before you call this API to get training status. "appID" specifies the LUIS app
+// ID. "versionId" specifies the version number of the LUIS app. For example, "0.1".
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+func (client TrainClient) GetStatus(ctx context.Context, appID uuid.UUID, versionID string) (result ListModelTrainingInfo, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/TrainClient.GetStatus")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetStatusPreparer(ctx, appID, versionID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.TrainClient", "GetStatus", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetStatusSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.TrainClient", "GetStatus", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetStatusResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.TrainClient", "GetStatus", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetStatusPreparer prepares the GetStatus request.
+func (client TrainClient) GetStatusPreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/train", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetStatusSender sends the GetStatus request. The method will close the
+// http.Response Body if it receives an error.
+func (client TrainClient) GetStatusSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetStatusResponder handles the response to the GetStatus request. The method always
+// closes the http.Response Body.
+func (client TrainClient) GetStatusResponder(resp *http.Response) (result ListModelTrainingInfo, 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
+}
+
+// TrainVersion sends a training request for a version of a specified LUIS app. This POST request initiates a request
+// asynchronously. To determine whether the training request is successful, submit a GET request to get training
+// status. Note: The application version is not fully trained unless all the models (intents and entities) are trained
+// successfully or are up to date. To verify training success, get the training status at least once after training is
+// complete.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+func (client TrainClient) TrainVersion(ctx context.Context, appID uuid.UUID, versionID string) (result EnqueueTrainingResponse, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/TrainClient.TrainVersion")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.TrainVersionPreparer(ctx, appID, versionID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.TrainClient", "TrainVersion", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.TrainVersionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.TrainClient", "TrainVersion", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.TrainVersionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.TrainClient", "TrainVersion", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// TrainVersionPreparer prepares the TrainVersion request.
+func (client TrainClient) TrainVersionPreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/train", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// TrainVersionSender sends the TrainVersion request. The method will close the
+// http.Response Body if it receives an error.
+func (client TrainClient) TrainVersionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// TrainVersionResponder handles the response to the TrainVersion request. The method always
+// closes the http.Response Body.
+func (client TrainClient) TrainVersionResponder(resp *http.Response) (result EnqueueTrainingResponse, 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}
+ return
+}
diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/version.go b/services/preview/cognitiveservices/v3.0/luis/authoring/version.go
new file mode 100644
index 000000000000..5621f83fc771
--- /dev/null
+++ b/services/preview/cognitiveservices/v3.0/luis/authoring/version.go
@@ -0,0 +1,30 @@
+package authoring
+
+import "github.com/Azure/azure-sdk-for-go/version"
+
+// 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.
+
+// UserAgent returns the UserAgent string to use when sending http.Requests.
+func UserAgent() string {
+ return "Azure-SDK-For-Go/" + version.Number + " authoring/3.0-preview"
+}
+
+// Version returns the semantic version (see http://semver.org) of the client.
+func Version() string {
+ return version.Number
+}
diff --git a/services/preview/cognitiveservices/v3.0/luis/authoring/versions.go b/services/preview/cognitiveservices/v3.0/luis/authoring/versions.go
new file mode 100644
index 000000000000..bfb400e04767
--- /dev/null
+++ b/services/preview/cognitiveservices/v3.0/luis/authoring/versions.go
@@ -0,0 +1,674 @@
+package authoring
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "github.com/satori/go.uuid"
+ "net/http"
+)
+
+// VersionsClient is the client for the Versions methods of the Authoring service.
+type VersionsClient struct {
+ BaseClient
+}
+
+// NewVersionsClient creates an instance of the VersionsClient client.
+func NewVersionsClient(endpoint string) VersionsClient {
+ return VersionsClient{New(endpoint)}
+}
+
+// Clone creates a new version from the selected version.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// versionCloneObject - a model containing the new version ID.
+func (client VersionsClient) Clone(ctx context.Context, appID uuid.UUID, versionID string, versionCloneObject TaskUpdateObject) (result String, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VersionsClient.Clone")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ClonePreparer(ctx, appID, versionID, versionCloneObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Clone", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CloneSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Clone", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CloneResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Clone", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ClonePreparer prepares the Clone request.
+func (client VersionsClient) ClonePreparer(ctx context.Context, appID uuid.UUID, versionID string, versionCloneObject TaskUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/clone", pathParameters),
+ autorest.WithJSON(versionCloneObject))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CloneSender sends the Clone request. The method will close the
+// http.Response Body if it receives an error.
+func (client VersionsClient) CloneSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CloneResponder handles the response to the Clone request. The method always
+// closes the http.Response Body.
+func (client VersionsClient) CloneResponder(resp *http.Response) (result String, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes an application version.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+func (client VersionsClient) Delete(ctx context.Context, appID uuid.UUID, versionID string) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VersionsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, appID, versionID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Delete", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Delete", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client VersionsClient) DeletePreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/", pathParameters))
+ 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 VersionsClient) DeleteSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client VersionsClient) DeleteResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// DeleteUnlabelledUtterance deleted an unlabelled utterance in a version of the application.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// utterance - the utterance text to delete.
+func (client VersionsClient) DeleteUnlabelledUtterance(ctx context.Context, appID uuid.UUID, versionID string, utterance string) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VersionsClient.DeleteUnlabelledUtterance")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeleteUnlabelledUtterancePreparer(ctx, appID, versionID, utterance)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "DeleteUnlabelledUtterance", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteUnlabelledUtteranceSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "DeleteUnlabelledUtterance", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteUnlabelledUtteranceResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "DeleteUnlabelledUtterance", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeleteUnlabelledUtterancePreparer prepares the DeleteUnlabelledUtterance request.
+func (client VersionsClient) DeleteUnlabelledUtterancePreparer(ctx context.Context, appID uuid.UUID, versionID string, utterance string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsDelete(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/suggest", pathParameters),
+ autorest.WithJSON(utterance))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// DeleteUnlabelledUtteranceSender sends the DeleteUnlabelledUtterance request. The method will close the
+// http.Response Body if it receives an error.
+func (client VersionsClient) DeleteUnlabelledUtteranceSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteUnlabelledUtteranceResponder handles the response to the DeleteUnlabelledUtterance request. The method always
+// closes the http.Response Body.
+func (client VersionsClient) DeleteUnlabelledUtteranceResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Export exports a LUIS application to JSON format.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+func (client VersionsClient) Export(ctx context.Context, appID uuid.UUID, versionID string) (result LuisApp, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VersionsClient.Export")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ExportPreparer(ctx, appID, versionID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Export", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ExportSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Export", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ExportResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Export", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ExportPreparer prepares the Export request.
+func (client VersionsClient) ExportPreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/export", pathParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ExportSender sends the Export request. The method will close the
+// http.Response Body if it receives an error.
+func (client VersionsClient) ExportSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ExportResponder handles the response to the Export request. The method always
+// closes the http.Response Body.
+func (client VersionsClient) ExportResponder(resp *http.Response) (result LuisApp, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Get gets the version information such as date created, last modified date, endpoint URL, count of intents and
+// entities, training and publishing status.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+func (client VersionsClient) Get(ctx context.Context, appID uuid.UUID, versionID string) (result VersionInfo, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VersionsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, appID, versionID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client VersionsClient) GetPreparer(ctx context.Context, appID uuid.UUID, versionID string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/", pathParameters))
+ 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 VersionsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client VersionsClient) GetResponder(resp *http.Response) (result VersionInfo, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Import imports a new version into a LUIS application.
+// Parameters:
+// appID - the application ID.
+// luisApp - a LUIS application structure.
+// versionID - the new versionId to import. If not specified, the versionId will be read from the imported
+// object.
+func (client VersionsClient) Import(ctx context.Context, appID uuid.UUID, luisApp LuisApp, versionID string) (result String, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VersionsClient.Import")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ImportPreparer(ctx, appID, luisApp, versionID)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Import", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ImportSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Import", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ImportResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Import", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ImportPreparer prepares the Import request.
+func (client VersionsClient) ImportPreparer(ctx context.Context, appID uuid.UUID, luisApp LuisApp, versionID string) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if len(versionID) > 0 {
+ queryParameters["versionId"] = autorest.Encode("query", versionID)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPost(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/import", pathParameters),
+ autorest.WithJSON(luisApp),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ImportSender sends the Import request. The method will close the
+// http.Response Body if it receives an error.
+func (client VersionsClient) ImportSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ImportResponder handles the response to the Import request. The method always
+// closes the http.Response Body.
+func (client VersionsClient) ImportResponder(resp *http.Response) (result String, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
+ autorest.ByUnmarshallingJSON(&result.Value),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// List gets a list of versions for this application ID.
+// Parameters:
+// appID - the application ID.
+// skip - the number of entries to skip. Default value is 0.
+// take - the number of entries to return. Maximum page size is 500. Default is 100.
+func (client VersionsClient) List(ctx context.Context, appID uuid.UUID, skip *int32, take *int32) (result ListVersionInfo, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VersionsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: skip,
+ Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}}}}},
+ {TargetValue: take,
+ Constraints: []validation.Constraint{{Target: "take", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "take", Name: validation.InclusiveMaximum, Rule: int64(500), Chain: nil},
+ {Target: "take", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("authoring.VersionsClient", "List", err.Error())
+ }
+
+ req, err := client.ListPreparer(ctx, appID, skip, take)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client VersionsClient) ListPreparer(ctx context.Context, appID uuid.UUID, skip *int32, take *int32) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ }
+
+ queryParameters := map[string]interface{}{}
+ if skip != nil {
+ queryParameters["skip"] = autorest.Encode("query", *skip)
+ } else {
+ queryParameters["skip"] = autorest.Encode("query", 0)
+ }
+ if take != nil {
+ queryParameters["take"] = autorest.Encode("query", *take)
+ } else {
+ queryParameters["take"] = autorest.Encode("query", 100)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions", 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 VersionsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client VersionsClient) ListResponder(resp *http.Response) (result ListVersionInfo, 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
+}
+
+// Update updates the name or description of the application version.
+// Parameters:
+// appID - the application ID.
+// versionID - the version ID.
+// versionUpdateObject - a model containing Name and Description of the application.
+func (client VersionsClient) Update(ctx context.Context, appID uuid.UUID, versionID string, versionUpdateObject TaskUpdateObject) (result OperationStatus, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/VersionsClient.Update")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdatePreparer(ctx, appID, versionID, versionUpdateObject)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Update", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Update", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "authoring.VersionsClient", "Update", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdatePreparer prepares the Update request.
+func (client VersionsClient) UpdatePreparer(ctx context.Context, appID uuid.UUID, versionID string, versionUpdateObject TaskUpdateObject) (*http.Request, error) {
+ urlParameters := map[string]interface{}{
+ "Endpoint": client.Endpoint,
+ }
+
+ pathParameters := map[string]interface{}{
+ "appId": autorest.Encode("path", appID),
+ "versionId": autorest.Encode("path", versionID),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsContentType("application/json; charset=utf-8"),
+ autorest.AsPut(),
+ autorest.WithCustomBaseURL("{Endpoint}/luis/api/v3.0-preview", urlParameters),
+ autorest.WithPathParameters("/apps/{appId}/versions/{versionId}/", pathParameters),
+ autorest.WithJSON(versionUpdateObject))
+ 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 VersionsClient) UpdateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateResponder handles the response to the Update request. The method always
+// closes the http.Response Body.
+func (client VersionsClient) UpdateResponder(resp *http.Response) (result OperationStatus, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/models.go b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/models.go
index 82c442d86055..7935c26a8cbc 100644
--- a/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/models.go
+++ b/services/preview/containerregistry/mgmt/2018-02-01/containerregistry/models.go
@@ -3008,8 +3008,6 @@ type Registry struct {
autorest.Response `json:"-"`
// Sku - The SKU of the container registry.
Sku *Sku `json:"sku,omitempty"`
- // Identity - The identity of the container registry.
- Identity *RegistryIdentity `json:"identity,omitempty"`
// RegistryProperties - The properties of the container registry.
*RegistryProperties `json:"properties,omitempty"`
// ID - READ-ONLY; The resource ID.
@@ -3030,9 +3028,6 @@ func (r Registry) MarshalJSON() ([]byte, error) {
if r.Sku != nil {
objectMap["sku"] = r.Sku
}
- if r.Identity != nil {
- objectMap["identity"] = r.Identity
- }
if r.RegistryProperties != nil {
objectMap["properties"] = r.RegistryProperties
}
@@ -3063,15 +3058,6 @@ func (r *Registry) UnmarshalJSON(body []byte) error {
}
r.Sku = &sku
}
- case "identity":
- if v != nil {
- var identity RegistryIdentity
- err = json.Unmarshal(*v, &identity)
- if err != nil {
- return err
- }
- r.Identity = &identity
- }
case "properties":
if v != nil {
var registryProperties RegistryProperties
@@ -3132,16 +3118,6 @@ func (r *Registry) UnmarshalJSON(body []byte) error {
return nil
}
-// RegistryIdentity the identity of the container registry.
-type RegistryIdentity struct {
- // Type - The type of identity used for the registry.
- Type *string `json:"type,omitempty"`
- // PrincipalID - The principal ID of registry identity.
- PrincipalID *string `json:"principalId,omitempty"`
- // TenantID - The tenant ID associated with the registry.
- TenantID *string `json:"tenantId,omitempty"`
-}
-
// RegistryListCredentialsResult the response from the ListCredentials operation.
type RegistryListCredentialsResult struct {
autorest.Response `json:"-"`
@@ -3367,8 +3343,6 @@ type RegistryUpdateParameters struct {
Tags map[string]*string `json:"tags"`
// Sku - The SKU of the container registry.
Sku *Sku `json:"sku,omitempty"`
- // Identity - The identity of the container registry.
- Identity *RegistryIdentity `json:"identity,omitempty"`
// RegistryPropertiesUpdateParameters - The properties that the container registry will be updated with.
*RegistryPropertiesUpdateParameters `json:"properties,omitempty"`
}
@@ -3382,9 +3356,6 @@ func (rup RegistryUpdateParameters) MarshalJSON() ([]byte, error) {
if rup.Sku != nil {
objectMap["sku"] = rup.Sku
}
- if rup.Identity != nil {
- objectMap["identity"] = rup.Identity
- }
if rup.RegistryPropertiesUpdateParameters != nil {
objectMap["properties"] = rup.RegistryPropertiesUpdateParameters
}
@@ -3418,15 +3389,6 @@ func (rup *RegistryUpdateParameters) UnmarshalJSON(body []byte) error {
}
rup.Sku = &sku
}
- case "identity":
- if v != nil {
- var identity RegistryIdentity
- err = json.Unmarshal(*v, &identity)
- if err != nil {
- return err
- }
- rup.Identity = &identity
- }
case "properties":
if v != nil {
var registryPropertiesUpdateParameters RegistryPropertiesUpdateParameters
diff --git a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/agentpools.go b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/agentpools.go
new file mode 100644
index 000000000000..0deeb2385425
--- /dev/null
+++ b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/agentpools.go
@@ -0,0 +1,621 @@
+package containerservice
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// AgentPoolsClient is the the Container Service Client.
+type AgentPoolsClient struct {
+ BaseClient
+}
+
+// NewAgentPoolsClient creates an instance of the AgentPoolsClient client.
+func NewAgentPoolsClient(subscriptionID string) AgentPoolsClient {
+ return NewAgentPoolsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewAgentPoolsClientWithBaseURI creates an instance of the AgentPoolsClient client.
+func NewAgentPoolsClientWithBaseURI(baseURI string, subscriptionID string) AgentPoolsClient {
+ return AgentPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates an agent pool in the specified managed cluster.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+// agentPoolName - the name of the agent pool.
+// parameters - parameters supplied to the Create or Update an agent pool operation.
+func (client AgentPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string, parameters AgentPool) (result AgentPoolsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}},
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.ManagedClusterAgentPoolProfileProperties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterAgentPoolProfileProperties.Count", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterAgentPoolProfileProperties.Count", Name: validation.InclusiveMaximum, Rule: int64(100), Chain: nil},
+ {Target: "parameters.ManagedClusterAgentPoolProfileProperties.Count", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil},
+ }},
+ }}}}}); err != nil {
+ return result, validation.NewError("containerservice.AgentPoolsClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, resourceName, agentPoolName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client AgentPoolsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string, parameters AgentPool) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "agentPoolName": autorest.Encode("path", agentPoolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "resourceName": autorest.Encode("path", resourceName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-08-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.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}", pathParameters),
+ autorest.WithJSON(parameters),
+ 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 AgentPoolsClient) CreateOrUpdateSender(req *http.Request) (future AgentPoolsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client AgentPoolsClient) CreateOrUpdateResponder(resp *http.Response) (result AgentPool, 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 deletes the agent pool in the specified managed cluster.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+// agentPoolName - the name of the agent pool.
+func (client AgentPoolsClient) Delete(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string) (result AgentPoolsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.AgentPoolsClient", "Delete", err.Error())
+ }
+
+ req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName, agentPoolName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client AgentPoolsClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "agentPoolName": autorest.Encode("path", agentPoolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "resourceName": autorest.Encode("path", resourceName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-08-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.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}", 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 AgentPoolsClient) DeleteSender(req *http.Request) (future AgentPoolsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client AgentPoolsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the details of the agent pool by managed cluster and resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+// agentPoolName - the name of the agent pool.
+func (client AgentPoolsClient) Get(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string) (result AgentPool, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.AgentPoolsClient", "Get", err.Error())
+ }
+
+ req, err := client.GetPreparer(ctx, resourceGroupName, resourceName, agentPoolName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client AgentPoolsClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "agentPoolName": autorest.Encode("path", agentPoolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "resourceName": autorest.Encode("path", resourceName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-08-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.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}", 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 AgentPoolsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client AgentPoolsClient) GetResponder(resp *http.Response) (result AgentPool, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetAvailableAgentPoolVersions gets a list of supported versions for the specified agent pool.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+func (client AgentPoolsClient) GetAvailableAgentPoolVersions(ctx context.Context, resourceGroupName string, resourceName string) (result AgentPoolAvailableVersions, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolsClient.GetAvailableAgentPoolVersions")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", err.Error())
+ }
+
+ req, err := client.GetAvailableAgentPoolVersionsPreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetAvailableAgentPoolVersionsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetAvailableAgentPoolVersionsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetAvailableAgentPoolVersions", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetAvailableAgentPoolVersionsPreparer prepares the GetAvailableAgentPoolVersions request.
+func (client AgentPoolsClient) GetAvailableAgentPoolVersionsPreparer(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 = "2019-08-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.ContainerService/managedClusters/{resourceName}/availableAgentPoolVersions", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetAvailableAgentPoolVersionsSender sends the GetAvailableAgentPoolVersions request. The method will close the
+// http.Response Body if it receives an error.
+func (client AgentPoolsClient) GetAvailableAgentPoolVersionsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetAvailableAgentPoolVersionsResponder handles the response to the GetAvailableAgentPoolVersions request. The method always
+// closes the http.Response Body.
+func (client AgentPoolsClient) GetAvailableAgentPoolVersionsResponder(resp *http.Response) (result AgentPoolAvailableVersions, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetUpgradeProfile gets the details of the upgrade profile for an agent pool with a specified resource group and
+// managed cluster name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+// agentPoolName - the name of the agent pool.
+func (client AgentPoolsClient) GetUpgradeProfile(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string) (result AgentPoolUpgradeProfile, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolsClient.GetUpgradeProfile")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.AgentPoolsClient", "GetUpgradeProfile", err.Error())
+ }
+
+ req, err := client.GetUpgradeProfilePreparer(ctx, resourceGroupName, resourceName, agentPoolName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetUpgradeProfileSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetUpgradeProfileResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "GetUpgradeProfile", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetUpgradeProfilePreparer prepares the GetUpgradeProfile request.
+func (client AgentPoolsClient) GetUpgradeProfilePreparer(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "agentPoolName": autorest.Encode("path", agentPoolName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "resourceName": autorest.Encode("path", resourceName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-08-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.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeProfiles/default", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetUpgradeProfileSender sends the GetUpgradeProfile request. The method will close the
+// http.Response Body if it receives an error.
+func (client AgentPoolsClient) GetUpgradeProfileSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetUpgradeProfileResponder handles the response to the GetUpgradeProfile request. The method always
+// closes the http.Response Body.
+func (client AgentPoolsClient) GetUpgradeProfileResponder(resp *http.Response) (result AgentPoolUpgradeProfile, 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 agent pools in the specified managed cluster. The operation returns properties of each agent
+// pool.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+func (client AgentPoolsClient) List(ctx context.Context, resourceGroupName string, resourceName string) (result AgentPoolListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolsClient.List")
+ defer func() {
+ sc := -1
+ if result.aplr.Response.Response != nil {
+ sc = result.aplr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.AgentPoolsClient", "List", err.Error())
+ }
+
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.aplr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.aplr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client AgentPoolsClient) ListPreparer(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 = "2019-08-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.ContainerService/managedClusters/{resourceName}/agentPools", 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 AgentPoolsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client AgentPoolsClient) ListResponder(resp *http.Response) (result AgentPoolListResult, 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 AgentPoolsClient) listNextResults(ctx context.Context, lastResults AgentPoolListResult) (result AgentPoolListResult, err error) {
+ req, err := lastResults.agentPoolListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "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, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client AgentPoolsClient) ListComplete(ctx context.Context, resourceGroupName string, resourceName string) (result AgentPoolListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, resourceGroupName, resourceName)
+ return
+}
diff --git a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/client.go b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/client.go
new file mode 100644
index 000000000000..09a36def717c
--- /dev/null
+++ b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/client.go
@@ -0,0 +1,51 @@
+// Package containerservice implements the Azure ARM Containerservice service API version .
+//
+// The Container Service Client.
+package containerservice
+
+// 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 (
+ "github.com/Azure/go-autorest/autorest"
+)
+
+const (
+ // DefaultBaseURI is the default URI used for the service Containerservice
+ DefaultBaseURI = "https://management.azure.com"
+)
+
+// BaseClient is the base client for Containerservice.
+type BaseClient struct {
+ autorest.Client
+ BaseURI string
+ SubscriptionID string
+}
+
+// New creates an instance of the BaseClient client.
+func New(subscriptionID string) BaseClient {
+ return NewWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewWithBaseURI creates an instance of the BaseClient client.
+func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
+ return BaseClient{
+ Client: autorest.NewClientWithUserAgent(UserAgent()),
+ BaseURI: baseURI,
+ SubscriptionID: subscriptionID,
+ }
+}
diff --git a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/containerserviceapi/interfaces.go b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/containerserviceapi/interfaces.go
new file mode 100644
index 000000000000..48d8fcad7f57
--- /dev/null
+++ b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/containerserviceapi/interfaces.go
@@ -0,0 +1,85 @@
+package containerserviceapi
+
+// 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/azure-sdk-for-go/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice"
+)
+
+// OpenShiftManagedClustersClientAPI contains the set of methods on the OpenShiftManagedClustersClient type.
+type OpenShiftManagedClustersClientAPI interface {
+ CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, parameters containerservice.OpenShiftManagedCluster) (result containerservice.OpenShiftManagedClustersCreateOrUpdateFuture, err error)
+ Delete(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.OpenShiftManagedClustersDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.OpenShiftManagedCluster, err error)
+ List(ctx context.Context) (result containerservice.OpenShiftManagedClusterListResultPage, err error)
+ ListByResourceGroup(ctx context.Context, resourceGroupName string) (result containerservice.OpenShiftManagedClusterListResultPage, err error)
+ UpdateTags(ctx context.Context, resourceGroupName string, resourceName string, parameters containerservice.TagsObject) (result containerservice.OpenShiftManagedClustersUpdateTagsFuture, err error)
+}
+
+var _ OpenShiftManagedClustersClientAPI = (*containerservice.OpenShiftManagedClustersClient)(nil)
+
+// ContainerServicesClientAPI contains the set of methods on the ContainerServicesClient type.
+type ContainerServicesClientAPI interface {
+ CreateOrUpdate(ctx context.Context, resourceGroupName string, containerServiceName string, parameters containerservice.ContainerService) (result containerservice.ContainerServicesCreateOrUpdateFutureType, err error)
+ Delete(ctx context.Context, resourceGroupName string, containerServiceName string) (result containerservice.ContainerServicesDeleteFutureType, err error)
+ Get(ctx context.Context, resourceGroupName string, containerServiceName string) (result containerservice.ContainerService, err error)
+ List(ctx context.Context) (result containerservice.ListResultPage, err error)
+ ListByResourceGroup(ctx context.Context, resourceGroupName string) (result containerservice.ListResultPage, err error)
+ ListOrchestrators(ctx context.Context, location string, resourceType string) (result containerservice.OrchestratorVersionProfileListResult, err error)
+}
+
+var _ ContainerServicesClientAPI = (*containerservice.ContainerServicesClient)(nil)
+
+// OperationsClientAPI contains the set of methods on the OperationsClient type.
+type OperationsClientAPI interface {
+ List(ctx context.Context) (result containerservice.OperationListResult, err error)
+}
+
+var _ OperationsClientAPI = (*containerservice.OperationsClient)(nil)
+
+// ManagedClustersClientAPI contains the set of methods on the ManagedClustersClient type.
+type ManagedClustersClientAPI interface {
+ CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, parameters containerservice.ManagedCluster) (result containerservice.ManagedClustersCreateOrUpdateFuture, err error)
+ Delete(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.ManagedClustersDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.ManagedCluster, err error)
+ GetAccessProfile(ctx context.Context, resourceGroupName string, resourceName string, roleName string) (result containerservice.ManagedClusterAccessProfile, err error)
+ GetUpgradeProfile(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.ManagedClusterUpgradeProfile, err error)
+ List(ctx context.Context) (result containerservice.ManagedClusterListResultPage, err error)
+ ListByResourceGroup(ctx context.Context, resourceGroupName string) (result containerservice.ManagedClusterListResultPage, err error)
+ ListClusterAdminCredentials(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.CredentialResults, err error)
+ ListClusterUserCredentials(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.CredentialResults, err error)
+ ResetAADProfile(ctx context.Context, resourceGroupName string, resourceName string, parameters containerservice.ManagedClusterAADProfile) (result containerservice.ManagedClustersResetAADProfileFuture, err error)
+ ResetServicePrincipalProfile(ctx context.Context, resourceGroupName string, resourceName string, parameters containerservice.ManagedClusterServicePrincipalProfile) (result containerservice.ManagedClustersResetServicePrincipalProfileFuture, err error)
+ RotateClusterCertificates(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.ManagedClustersRotateClusterCertificatesFuture, err error)
+ UpdateTags(ctx context.Context, resourceGroupName string, resourceName string, parameters containerservice.TagsObject) (result containerservice.ManagedClustersUpdateTagsFuture, err error)
+}
+
+var _ ManagedClustersClientAPI = (*containerservice.ManagedClustersClient)(nil)
+
+// AgentPoolsClientAPI contains the set of methods on the AgentPoolsClient type.
+type AgentPoolsClientAPI interface {
+ CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string, parameters containerservice.AgentPool) (result containerservice.AgentPoolsCreateOrUpdateFuture, err error)
+ Delete(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string) (result containerservice.AgentPoolsDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string) (result containerservice.AgentPool, err error)
+ GetAvailableAgentPoolVersions(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.AgentPoolAvailableVersions, err error)
+ GetUpgradeProfile(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string) (result containerservice.AgentPoolUpgradeProfile, err error)
+ List(ctx context.Context, resourceGroupName string, resourceName string) (result containerservice.AgentPoolListResultPage, err error)
+}
+
+var _ AgentPoolsClientAPI = (*containerservice.AgentPoolsClient)(nil)
diff --git a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/containerservices.go b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/containerservices.go
new file mode 100644
index 000000000000..1bd2a37eec45
--- /dev/null
+++ b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/containerservices.go
@@ -0,0 +1,622 @@
+package containerservice
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ContainerServicesClient is the the Container Service Client.
+type ContainerServicesClient struct {
+ BaseClient
+}
+
+// NewContainerServicesClient creates an instance of the ContainerServicesClient client.
+func NewContainerServicesClient(subscriptionID string) ContainerServicesClient {
+ return NewContainerServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewContainerServicesClientWithBaseURI creates an instance of the ContainerServicesClient client.
+func NewContainerServicesClientWithBaseURI(baseURI string, subscriptionID string) ContainerServicesClient {
+ return ContainerServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates a container service with the specified configuration of orchestrator, masters, and
+// agents.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// containerServiceName - the name of the container service in the specified subscription and resource group.
+// parameters - parameters supplied to the Create or Update a Container Service operation.
+func (client ContainerServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, containerServiceName string, parameters ContainerService) (result ContainerServicesCreateOrUpdateFutureType, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.Properties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.OrchestratorProfile", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.Properties.CustomProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.CustomProfile.Orchestrator", Name: validation.Null, Rule: true, Chain: nil}}},
+ {Target: "parameters.Properties.ServicePrincipalProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.ServicePrincipalProfile.ClientID", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.Properties.ServicePrincipalProfile.KeyVaultSecretRef", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.ServicePrincipalProfile.KeyVaultSecretRef.VaultID", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.Properties.ServicePrincipalProfile.KeyVaultSecretRef.SecretName", Name: validation.Null, Rule: true, Chain: nil},
+ }},
+ }},
+ {Target: "parameters.Properties.MasterProfile", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.MasterProfile.DNSPrefix", Name: validation.Null, Rule: true, Chain: nil}}},
+ {Target: "parameters.Properties.WindowsProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.WindowsProfile.AdminUsername", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.WindowsProfile.AdminUsername", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([._]?[a-zA-Z0-9]+)*$`, Chain: nil}}},
+ {Target: "parameters.Properties.WindowsProfile.AdminPassword", Name: validation.Null, Rule: true, Chain: nil},
+ }},
+ {Target: "parameters.Properties.LinuxProfile", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.LinuxProfile.AdminUsername", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.LinuxProfile.AdminUsername", Name: validation.Pattern, Rule: `^[A-Za-z][-A-Za-z0-9_]*$`, Chain: nil}}},
+ {Target: "parameters.Properties.LinuxProfile.SSH", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.LinuxProfile.SSH.PublicKeys", Name: validation.Null, Rule: true, Chain: nil}}},
+ }},
+ {Target: "parameters.Properties.DiagnosticsProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.DiagnosticsProfile.VMDiagnostics", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.Properties.DiagnosticsProfile.VMDiagnostics.Enabled", Name: validation.Null, Rule: true, Chain: nil}}},
+ }},
+ }}}}}); err != nil {
+ return result, validation.NewError("containerservice.ContainerServicesClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, containerServiceName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ContainerServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, containerServiceName string, parameters ContainerService) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "containerServiceName": autorest.Encode("path", containerServiceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2017-07-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.ContainerService/containerServices/{containerServiceName}", pathParameters),
+ autorest.WithJSON(parameters),
+ 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 ContainerServicesClient) CreateOrUpdateSender(req *http.Request) (future ContainerServicesCreateOrUpdateFutureType, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ContainerServicesClient) CreateOrUpdateResponder(resp *http.Response) (result ContainerService, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete deletes the specified container service in the specified subscription and resource group. The operation does
+// not delete other resources created as part of creating a container service, including storage accounts, VMs, and
+// availability sets. All the other resources created with the container service are part of the same resource group
+// and can be deleted individually.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// containerServiceName - the name of the container service in the specified subscription and resource group.
+func (client ContainerServicesClient) Delete(ctx context.Context, resourceGroupName string, containerServiceName string) (result ContainerServicesDeleteFutureType, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, containerServiceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ContainerServicesClient) DeletePreparer(ctx context.Context, resourceGroupName string, containerServiceName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "containerServiceName": autorest.Encode("path", containerServiceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2017-07-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.ContainerService/containerServices/{containerServiceName}", 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 ContainerServicesClient) DeleteSender(req *http.Request) (future ContainerServicesDeleteFutureType, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ContainerServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the properties of the specified container service in the specified subscription and resource group. The
+// operation returns the properties including state, orchestrator, number of masters and agents, and FQDNs of masters
+// and agents.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// containerServiceName - the name of the container service in the specified subscription and resource group.
+func (client ContainerServicesClient) Get(ctx context.Context, resourceGroupName string, containerServiceName string) (result ContainerService, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, containerServiceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ContainerServicesClient) GetPreparer(ctx context.Context, resourceGroupName string, containerServiceName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "containerServiceName": autorest.Encode("path", containerServiceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2017-07-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.ContainerService/containerServices/{containerServiceName}", 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 ContainerServicesClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ContainerServicesClient) GetResponder(resp *http.Response) (result ContainerService, 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 container services in the specified subscription. The operation returns properties of each
+// container service including state, orchestrator, number of masters and agents, and FQDNs of masters and agents.
+func (client ContainerServicesClient) List(ctx context.Context) (result ListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.List")
+ defer func() {
+ sc := -1
+ if result.lr.Response.Response != nil {
+ sc = result.lr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.lr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.lr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ContainerServicesClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2017-07-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/containerServices", 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 ContainerServicesClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ContainerServicesClient) ListResponder(resp *http.Response) (result ListResult, 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 ContainerServicesClient) listNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) {
+ req, err := lastResults.listResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "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, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ContainerServicesClient) ListComplete(ctx context.Context) (result ListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx)
+ return
+}
+
+// ListByResourceGroup gets a list of container services in the specified subscription and resource group. The
+// operation returns properties of each container service including state, orchestrator, number of masters and agents,
+// and FQDNs of masters and agents.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client ContainerServicesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.lr.Response.Response != nil {
+ sc = result.lr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByResourceGroupNextResults
+ req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.lr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.lr, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client ContainerServicesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2017-07-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.ContainerService/containerServices", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client ContainerServicesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client ContainerServicesClient) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByResourceGroupNextResults retrieves the next set of results, if any.
+func (client ContainerServicesClient) listByResourceGroupNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) {
+ req, err := lastResults.listResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ContainerServicesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByResourceGroup(ctx, resourceGroupName)
+ return
+}
+
+// ListOrchestrators gets a list of supported orchestrators in the specified subscription. The operation returns
+// properties of each orchestrator including version, available upgrades and whether that version or upgrades are in
+// preview.
+// Parameters:
+// location - the name of a supported Azure region.
+// resourceType - resource type for which the list of orchestrators needs to be returned
+func (client ContainerServicesClient) ListOrchestrators(ctx context.Context, location string, resourceType string) (result OrchestratorVersionProfileListResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ContainerServicesClient.ListOrchestrators")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListOrchestratorsPreparer(ctx, location, resourceType)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListOrchestratorsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListOrchestratorsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesClient", "ListOrchestrators", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListOrchestratorsPreparer prepares the ListOrchestrators request.
+func (client ContainerServicesClient) ListOrchestratorsPreparer(ctx context.Context, location string, resourceType string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "location": autorest.Encode("path", location),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-08-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(resourceType) > 0 {
+ queryParameters["resource-type"] = autorest.Encode("query", resourceType)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/orchestrators", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListOrchestratorsSender sends the ListOrchestrators request. The method will close the
+// http.Response Body if it receives an error.
+func (client ContainerServicesClient) ListOrchestratorsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListOrchestratorsResponder handles the response to the ListOrchestrators request. The method always
+// closes the http.Response Body.
+func (client ContainerServicesClient) ListOrchestratorsResponder(resp *http.Response) (result OrchestratorVersionProfileListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/managedclusters.go b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/managedclusters.go
new file mode 100644
index 000000000000..a58266d7e18a
--- /dev/null
+++ b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/managedclusters.go
@@ -0,0 +1,1287 @@
+package containerservice
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ManagedClustersClient is the the Container Service Client.
+type ManagedClustersClient struct {
+ BaseClient
+}
+
+// NewManagedClustersClient creates an instance of the ManagedClustersClient client.
+func NewManagedClustersClient(subscriptionID string) ManagedClustersClient {
+ return NewManagedClustersClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewManagedClustersClientWithBaseURI creates an instance of the ManagedClustersClient client.
+func NewManagedClustersClientWithBaseURI(baseURI string, subscriptionID string) ManagedClustersClient {
+ return ManagedClustersClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates a managed cluster with the specified configuration for agents and Kubernetes
+// version.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+// parameters - parameters supplied to the Create or Update a Managed Cluster operation.
+func (client ManagedClustersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, parameters ManagedCluster) (result ManagedClustersCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}},
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.ManagedClusterProperties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.LinuxProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.LinuxProfile.AdminUsername", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.LinuxProfile.AdminUsername", Name: validation.Pattern, Rule: `^[A-Za-z][-A-Za-z0-9_]*$`, Chain: nil}}},
+ {Target: "parameters.ManagedClusterProperties.LinuxProfile.SSH", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.LinuxProfile.SSH.PublicKeys", Name: validation.Null, Rule: true, Chain: nil}}},
+ }},
+ {Target: "parameters.ManagedClusterProperties.WindowsProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.WindowsProfile.AdminUsername", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.WindowsProfile.AdminUsername", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]+([._]?[a-zA-Z0-9]+)*$`, Chain: nil}}},
+ }},
+ {Target: "parameters.ManagedClusterProperties.ServicePrincipalProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.ServicePrincipalProfile.ClientID", Name: validation.Null, Rule: true, Chain: nil}}},
+ {Target: "parameters.ManagedClusterProperties.NetworkProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.PodCidr", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.PodCidr", Name: validation.Pattern, Rule: `^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$`, Chain: nil}}},
+ {Target: "parameters.ManagedClusterProperties.NetworkProfile.ServiceCidr", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.ServiceCidr", Name: validation.Pattern, Rule: `^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$`, Chain: nil}}},
+ {Target: "parameters.ManagedClusterProperties.NetworkProfile.DNSServiceIP", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.DNSServiceIP", Name: validation.Pattern, Rule: `^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$`, Chain: nil}}},
+ {Target: "parameters.ManagedClusterProperties.NetworkProfile.DockerBridgeCidr", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.DockerBridgeCidr", Name: validation.Pattern, Rule: `^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$`, Chain: nil}}},
+ {Target: "parameters.ManagedClusterProperties.NetworkProfile.LoadBalancerProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.LoadBalancerProfile.ManagedOutboundIPs", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.LoadBalancerProfile.ManagedOutboundIPs.Count", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.NetworkProfile.LoadBalancerProfile.ManagedOutboundIPs.Count", Name: validation.InclusiveMaximum, Rule: int64(100), Chain: nil},
+ {Target: "parameters.ManagedClusterProperties.NetworkProfile.LoadBalancerProfile.ManagedOutboundIPs.Count", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil},
+ }},
+ }},
+ }},
+ }},
+ {Target: "parameters.ManagedClusterProperties.AadProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ManagedClusterProperties.AadProfile.ClientAppID", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.ManagedClusterProperties.AadProfile.ServerAppID", Name: validation.Null, Rule: true, Chain: nil},
+ }},
+ }}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, resourceName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ManagedClustersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters ManagedCluster) (*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 = "2019-08-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.ContainerService/managedClusters/{resourceName}", pathParameters),
+ autorest.WithJSON(parameters),
+ 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 ManagedClustersClient) CreateOrUpdateSender(req *http.Request) (future ManagedClustersCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedCluster, 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 deletes the managed cluster with a specified resource group and name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+func (client ManagedClustersClient) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result ManagedClustersDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "Delete", err.Error())
+ }
+
+ req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ManagedClustersClient) 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 = "2019-08-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.ContainerService/managedClusters/{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 ManagedClustersClient) DeleteSender(req *http.Request) (future ManagedClustersDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the details of the managed cluster with a specified resource group and name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+func (client ManagedClustersClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result ManagedCluster, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "Get", err.Error())
+ }
+
+ req, err := client.GetPreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ManagedClustersClient) 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 = "2019-08-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.ContainerService/managedClusters/{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 ManagedClustersClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) GetResponder(resp *http.Response) (result ManagedCluster, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetAccessProfile gets the accessProfile for the specified role name of the managed cluster with a specified resource
+// group and name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+// roleName - the name of the role for managed cluster accessProfile resource.
+func (client ManagedClustersClient) GetAccessProfile(ctx context.Context, resourceGroupName string, resourceName string, roleName string) (result ManagedClusterAccessProfile, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.GetAccessProfile")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "GetAccessProfile", err.Error())
+ }
+
+ req, err := client.GetAccessProfilePreparer(ctx, resourceGroupName, resourceName, roleName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetAccessProfileSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetAccessProfileResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetAccessProfile", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetAccessProfilePreparer prepares the GetAccessProfile request.
+func (client ManagedClustersClient) GetAccessProfilePreparer(ctx context.Context, resourceGroupName string, resourceName string, roleName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "resourceName": autorest.Encode("path", resourceName),
+ "roleName": autorest.Encode("path", roleName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-08-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/accessProfiles/{roleName}/listCredential", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetAccessProfileSender sends the GetAccessProfile request. The method will close the
+// http.Response Body if it receives an error.
+func (client ManagedClustersClient) GetAccessProfileSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetAccessProfileResponder handles the response to the GetAccessProfile request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) GetAccessProfileResponder(resp *http.Response) (result ManagedClusterAccessProfile, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetUpgradeProfile gets the details of the upgrade profile for a managed cluster with a specified resource group and
+// name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+func (client ManagedClustersClient) GetUpgradeProfile(ctx context.Context, resourceGroupName string, resourceName string) (result ManagedClusterUpgradeProfile, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.GetUpgradeProfile")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "GetUpgradeProfile", err.Error())
+ }
+
+ req, err := client.GetUpgradeProfilePreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetUpgradeProfileSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetUpgradeProfileResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "GetUpgradeProfile", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetUpgradeProfilePreparer prepares the GetUpgradeProfile request.
+func (client ManagedClustersClient) GetUpgradeProfilePreparer(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 = "2019-08-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.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetUpgradeProfileSender sends the GetUpgradeProfile request. The method will close the
+// http.Response Body if it receives an error.
+func (client ManagedClustersClient) GetUpgradeProfileSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetUpgradeProfileResponder handles the response to the GetUpgradeProfile request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) GetUpgradeProfileResponder(resp *http.Response) (result ManagedClusterUpgradeProfile, 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 managed clusters in the specified subscription. The operation returns properties of each managed
+// cluster.
+func (client ManagedClustersClient) List(ctx context.Context) (result ManagedClusterListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.List")
+ defer func() {
+ sc := -1
+ if result.mclr.Response.Response != nil {
+ sc = result.mclr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.mclr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.mclr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ManagedClustersClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-08-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters", 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 ManagedClustersClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) ListResponder(resp *http.Response) (result ManagedClusterListResult, 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 ManagedClustersClient) listNextResults(ctx context.Context, lastResults ManagedClusterListResult) (result ManagedClusterListResult, err error) {
+ req, err := lastResults.managedClusterListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "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, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ManagedClustersClient) ListComplete(ctx context.Context) (result ManagedClusterListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx)
+ return
+}
+
+// ListByResourceGroup lists managed clusters in the specified subscription and resource group. The operation returns
+// properties of each managed cluster.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client ManagedClustersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ManagedClusterListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.mclr.Response.Response != nil {
+ sc = result.mclr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "ListByResourceGroup", err.Error())
+ }
+
+ result.fn = client.listByResourceGroupNextResults
+ req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.mclr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.mclr, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client ManagedClustersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-08-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.ContainerService/managedClusters", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client ManagedClustersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) ListByResourceGroupResponder(resp *http.Response) (result ManagedClusterListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByResourceGroupNextResults retrieves the next set of results, if any.
+func (client ManagedClustersClient) listByResourceGroupNextResults(ctx context.Context, lastResults ManagedClusterListResult) (result ManagedClusterListResult, err error) {
+ req, err := lastResults.managedClusterListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ManagedClustersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ManagedClusterListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByResourceGroup(ctx, resourceGroupName)
+ return
+}
+
+// ListClusterAdminCredentials gets cluster admin credential of the managed cluster with a specified resource group and
+// name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+func (client ManagedClustersClient) ListClusterAdminCredentials(ctx context.Context, resourceGroupName string, resourceName string) (result CredentialResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ListClusterAdminCredentials")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "ListClusterAdminCredentials", err.Error())
+ }
+
+ req, err := client.ListClusterAdminCredentialsPreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListClusterAdminCredentialsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListClusterAdminCredentialsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterAdminCredentials", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListClusterAdminCredentialsPreparer prepares the ListClusterAdminCredentials request.
+func (client ManagedClustersClient) ListClusterAdminCredentialsPreparer(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 = "2019-08-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterAdminCredential", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListClusterAdminCredentialsSender sends the ListClusterAdminCredentials request. The method will close the
+// http.Response Body if it receives an error.
+func (client ManagedClustersClient) ListClusterAdminCredentialsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListClusterAdminCredentialsResponder handles the response to the ListClusterAdminCredentials request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) ListClusterAdminCredentialsResponder(resp *http.Response) (result CredentialResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListClusterUserCredentials gets cluster user credential of the managed cluster with a specified resource group and
+// name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+func (client ManagedClustersClient) ListClusterUserCredentials(ctx context.Context, resourceGroupName string, resourceName string) (result CredentialResults, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ListClusterUserCredentials")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "ListClusterUserCredentials", err.Error())
+ }
+
+ req, err := client.ListClusterUserCredentialsPreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListClusterUserCredentialsSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListClusterUserCredentialsResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ListClusterUserCredentials", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListClusterUserCredentialsPreparer prepares the ListClusterUserCredentials request.
+func (client ManagedClustersClient) ListClusterUserCredentialsPreparer(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 = "2019-08-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterUserCredential", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListClusterUserCredentialsSender sends the ListClusterUserCredentials request. The method will close the
+// http.Response Body if it receives an error.
+func (client ManagedClustersClient) ListClusterUserCredentialsSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListClusterUserCredentialsResponder handles the response to the ListClusterUserCredentials request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) ListClusterUserCredentialsResponder(resp *http.Response) (result CredentialResults, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ResetAADProfile update the AAD Profile for a managed cluster.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+// parameters - parameters supplied to the Reset AAD Profile operation for a Managed Cluster.
+func (client ManagedClustersClient) ResetAADProfile(ctx context.Context, resourceGroupName string, resourceName string, parameters ManagedClusterAADProfile) (result ManagedClustersResetAADProfileFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ResetAADProfile")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}},
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.ClientAppID", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.ServerAppID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "ResetAADProfile", err.Error())
+ }
+
+ req, err := client.ResetAADProfilePreparer(ctx, resourceGroupName, resourceName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ResetAADProfile", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.ResetAADProfileSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ResetAADProfile", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// ResetAADProfilePreparer prepares the ResetAADProfile request.
+func (client ManagedClustersClient) ResetAADProfilePreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters ManagedClusterAADProfile) (*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 = "2019-08-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("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ResetAADProfileSender sends the ResetAADProfile request. The method will close the
+// http.Response Body if it receives an error.
+func (client ManagedClustersClient) ResetAADProfileSender(req *http.Request) (future ManagedClustersResetAADProfileFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// ResetAADProfileResponder handles the response to the ResetAADProfile request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) ResetAADProfileResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// ResetServicePrincipalProfile update the service principal Profile for a managed cluster.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+// parameters - parameters supplied to the Reset Service Principal Profile operation for a Managed Cluster.
+func (client ManagedClustersClient) ResetServicePrincipalProfile(ctx context.Context, resourceGroupName string, resourceName string, parameters ManagedClusterServicePrincipalProfile) (result ManagedClustersResetServicePrincipalProfileFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.ResetServicePrincipalProfile")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}},
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.ClientID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "ResetServicePrincipalProfile", err.Error())
+ }
+
+ req, err := client.ResetServicePrincipalProfilePreparer(ctx, resourceGroupName, resourceName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ResetServicePrincipalProfile", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.ResetServicePrincipalProfileSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "ResetServicePrincipalProfile", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// ResetServicePrincipalProfilePreparer prepares the ResetServicePrincipalProfile request.
+func (client ManagedClustersClient) ResetServicePrincipalProfilePreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters ManagedClusterServicePrincipalProfile) (*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 = "2019-08-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("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ResetServicePrincipalProfileSender sends the ResetServicePrincipalProfile request. The method will close the
+// http.Response Body if it receives an error.
+func (client ManagedClustersClient) ResetServicePrincipalProfileSender(req *http.Request) (future ManagedClustersResetServicePrincipalProfileFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// ResetServicePrincipalProfileResponder handles the response to the ResetServicePrincipalProfile request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) ResetServicePrincipalProfileResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// RotateClusterCertificates rotate certificates of a managed cluster.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+func (client ManagedClustersClient) RotateClusterCertificates(ctx context.Context, resourceGroupName string, resourceName string) (result ManagedClustersRotateClusterCertificatesFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.RotateClusterCertificates")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "RotateClusterCertificates", err.Error())
+ }
+
+ req, err := client.RotateClusterCertificatesPreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "RotateClusterCertificates", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.RotateClusterCertificatesSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "RotateClusterCertificates", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// RotateClusterCertificatesPreparer prepares the RotateClusterCertificates request.
+func (client ManagedClustersClient) RotateClusterCertificatesPreparer(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 = "2019-08-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// RotateClusterCertificatesSender sends the RotateClusterCertificates request. The method will close the
+// http.Response Body if it receives an error.
+func (client ManagedClustersClient) RotateClusterCertificatesSender(req *http.Request) (future ManagedClustersRotateClusterCertificatesFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// RotateClusterCertificatesResponder handles the response to the RotateClusterCertificates request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) RotateClusterCertificatesResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// UpdateTags updates a managed cluster with the specified tags.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the managed cluster resource.
+// parameters - parameters supplied to the Update Managed Cluster Tags operation.
+func (client ManagedClustersClient) UpdateTags(ctx context.Context, resourceGroupName string, resourceName string, parameters TagsObject) (result ManagedClustersUpdateTagsFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClustersClient.UpdateTags")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: resourceName,
+ Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil},
+ {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil},
+ {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.ManagedClustersClient", "UpdateTags", err.Error())
+ }
+
+ req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, resourceName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "UpdateTags", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.UpdateTagsSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersClient", "UpdateTags", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// UpdateTagsPreparer prepares the UpdateTags request.
+func (client ManagedClustersClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters TagsObject) (*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 = "2019-08-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.ContainerService/managedClusters/{resourceName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateTagsSender sends the UpdateTags request. The method will close the
+// http.Response Body if it receives an error.
+func (client ManagedClustersClient) UpdateTagsSender(req *http.Request) (future ManagedClustersUpdateTagsFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// UpdateTagsResponder handles the response to the UpdateTags request. The method always
+// closes the http.Response Body.
+func (client ManagedClustersClient) UpdateTagsResponder(resp *http.Response) (result ManagedCluster, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/models.go b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/models.go
new file mode 100644
index 000000000000..6e005b696506
--- /dev/null
+++ b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/models.go
@@ -0,0 +1,3330 @@
+package containerservice
+
+// 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"
+ "encoding/json"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/autorest/to"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// The package's fully qualified name.
+const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice"
+
+// AgentPoolType enumerates the values for agent pool type.
+type AgentPoolType string
+
+const (
+ // AvailabilitySet ...
+ AvailabilitySet AgentPoolType = "AvailabilitySet"
+ // VirtualMachineScaleSets ...
+ VirtualMachineScaleSets AgentPoolType = "VirtualMachineScaleSets"
+)
+
+// PossibleAgentPoolTypeValues returns an array of possible values for the AgentPoolType const type.
+func PossibleAgentPoolTypeValues() []AgentPoolType {
+ return []AgentPoolType{AvailabilitySet, VirtualMachineScaleSets}
+}
+
+// Kind enumerates the values for kind.
+type Kind string
+
+const (
+ // KindAADIdentityProvider ...
+ KindAADIdentityProvider Kind = "AADIdentityProvider"
+ // KindOpenShiftManagedClusterBaseIdentityProvider ...
+ KindOpenShiftManagedClusterBaseIdentityProvider Kind = "OpenShiftManagedClusterBaseIdentityProvider"
+)
+
+// PossibleKindValues returns an array of possible values for the Kind const type.
+func PossibleKindValues() []Kind {
+ return []Kind{KindAADIdentityProvider, KindOpenShiftManagedClusterBaseIdentityProvider}
+}
+
+// LoadBalancerSku enumerates the values for load balancer sku.
+type LoadBalancerSku string
+
+const (
+ // Basic ...
+ Basic LoadBalancerSku = "basic"
+ // Standard ...
+ Standard LoadBalancerSku = "standard"
+)
+
+// PossibleLoadBalancerSkuValues returns an array of possible values for the LoadBalancerSku const type.
+func PossibleLoadBalancerSkuValues() []LoadBalancerSku {
+ return []LoadBalancerSku{Basic, Standard}
+}
+
+// NetworkPlugin enumerates the values for network plugin.
+type NetworkPlugin string
+
+const (
+ // Azure ...
+ Azure NetworkPlugin = "azure"
+ // Kubenet ...
+ Kubenet NetworkPlugin = "kubenet"
+)
+
+// PossibleNetworkPluginValues returns an array of possible values for the NetworkPlugin const type.
+func PossibleNetworkPluginValues() []NetworkPlugin {
+ return []NetworkPlugin{Azure, Kubenet}
+}
+
+// NetworkPolicy enumerates the values for network policy.
+type NetworkPolicy string
+
+const (
+ // NetworkPolicyAzure ...
+ NetworkPolicyAzure NetworkPolicy = "azure"
+ // NetworkPolicyCalico ...
+ NetworkPolicyCalico NetworkPolicy = "calico"
+)
+
+// PossibleNetworkPolicyValues returns an array of possible values for the NetworkPolicy const type.
+func PossibleNetworkPolicyValues() []NetworkPolicy {
+ return []NetworkPolicy{NetworkPolicyAzure, NetworkPolicyCalico}
+}
+
+// OpenShiftAgentPoolProfileRole enumerates the values for open shift agent pool profile role.
+type OpenShiftAgentPoolProfileRole string
+
+const (
+ // Compute ...
+ Compute OpenShiftAgentPoolProfileRole = "compute"
+ // Infra ...
+ Infra OpenShiftAgentPoolProfileRole = "infra"
+)
+
+// PossibleOpenShiftAgentPoolProfileRoleValues returns an array of possible values for the OpenShiftAgentPoolProfileRole const type.
+func PossibleOpenShiftAgentPoolProfileRoleValues() []OpenShiftAgentPoolProfileRole {
+ return []OpenShiftAgentPoolProfileRole{Compute, Infra}
+}
+
+// OpenShiftContainerServiceVMSize enumerates the values for open shift container service vm size.
+type OpenShiftContainerServiceVMSize string
+
+const (
+ // StandardD16sV3 ...
+ StandardD16sV3 OpenShiftContainerServiceVMSize = "Standard_D16s_v3"
+ // StandardD2sV3 ...
+ StandardD2sV3 OpenShiftContainerServiceVMSize = "Standard_D2s_v3"
+ // StandardD32sV3 ...
+ StandardD32sV3 OpenShiftContainerServiceVMSize = "Standard_D32s_v3"
+ // StandardD4sV3 ...
+ StandardD4sV3 OpenShiftContainerServiceVMSize = "Standard_D4s_v3"
+ // StandardD64sV3 ...
+ StandardD64sV3 OpenShiftContainerServiceVMSize = "Standard_D64s_v3"
+ // StandardD8sV3 ...
+ StandardD8sV3 OpenShiftContainerServiceVMSize = "Standard_D8s_v3"
+ // StandardDS12V2 ...
+ StandardDS12V2 OpenShiftContainerServiceVMSize = "Standard_DS12_v2"
+ // StandardDS13V2 ...
+ StandardDS13V2 OpenShiftContainerServiceVMSize = "Standard_DS13_v2"
+ // StandardDS14V2 ...
+ StandardDS14V2 OpenShiftContainerServiceVMSize = "Standard_DS14_v2"
+ // StandardDS15V2 ...
+ StandardDS15V2 OpenShiftContainerServiceVMSize = "Standard_DS15_v2"
+ // StandardDS4V2 ...
+ StandardDS4V2 OpenShiftContainerServiceVMSize = "Standard_DS4_v2"
+ // StandardDS5V2 ...
+ StandardDS5V2 OpenShiftContainerServiceVMSize = "Standard_DS5_v2"
+ // StandardE16sV3 ...
+ StandardE16sV3 OpenShiftContainerServiceVMSize = "Standard_E16s_v3"
+ // StandardE20sV3 ...
+ StandardE20sV3 OpenShiftContainerServiceVMSize = "Standard_E20s_v3"
+ // StandardE32sV3 ...
+ StandardE32sV3 OpenShiftContainerServiceVMSize = "Standard_E32s_v3"
+ // StandardE4sV3 ...
+ StandardE4sV3 OpenShiftContainerServiceVMSize = "Standard_E4s_v3"
+ // StandardE64sV3 ...
+ StandardE64sV3 OpenShiftContainerServiceVMSize = "Standard_E64s_v3"
+ // StandardE8sV3 ...
+ StandardE8sV3 OpenShiftContainerServiceVMSize = "Standard_E8s_v3"
+ // StandardF16s ...
+ StandardF16s OpenShiftContainerServiceVMSize = "Standard_F16s"
+ // StandardF16sV2 ...
+ StandardF16sV2 OpenShiftContainerServiceVMSize = "Standard_F16s_v2"
+ // StandardF32sV2 ...
+ StandardF32sV2 OpenShiftContainerServiceVMSize = "Standard_F32s_v2"
+ // StandardF64sV2 ...
+ StandardF64sV2 OpenShiftContainerServiceVMSize = "Standard_F64s_v2"
+ // StandardF72sV2 ...
+ StandardF72sV2 OpenShiftContainerServiceVMSize = "Standard_F72s_v2"
+ // StandardF8s ...
+ StandardF8s OpenShiftContainerServiceVMSize = "Standard_F8s"
+ // StandardF8sV2 ...
+ StandardF8sV2 OpenShiftContainerServiceVMSize = "Standard_F8s_v2"
+ // StandardGS2 ...
+ StandardGS2 OpenShiftContainerServiceVMSize = "Standard_GS2"
+ // StandardGS3 ...
+ StandardGS3 OpenShiftContainerServiceVMSize = "Standard_GS3"
+ // StandardGS4 ...
+ StandardGS4 OpenShiftContainerServiceVMSize = "Standard_GS4"
+ // StandardGS5 ...
+ StandardGS5 OpenShiftContainerServiceVMSize = "Standard_GS5"
+ // StandardL16s ...
+ StandardL16s OpenShiftContainerServiceVMSize = "Standard_L16s"
+ // StandardL32s ...
+ StandardL32s OpenShiftContainerServiceVMSize = "Standard_L32s"
+ // StandardL4s ...
+ StandardL4s OpenShiftContainerServiceVMSize = "Standard_L4s"
+ // StandardL8s ...
+ StandardL8s OpenShiftContainerServiceVMSize = "Standard_L8s"
+)
+
+// PossibleOpenShiftContainerServiceVMSizeValues returns an array of possible values for the OpenShiftContainerServiceVMSize const type.
+func PossibleOpenShiftContainerServiceVMSizeValues() []OpenShiftContainerServiceVMSize {
+ return []OpenShiftContainerServiceVMSize{StandardD16sV3, StandardD2sV3, StandardD32sV3, StandardD4sV3, StandardD64sV3, StandardD8sV3, StandardDS12V2, StandardDS13V2, StandardDS14V2, StandardDS15V2, StandardDS4V2, StandardDS5V2, StandardE16sV3, StandardE20sV3, StandardE32sV3, StandardE4sV3, StandardE64sV3, StandardE8sV3, StandardF16s, StandardF16sV2, StandardF32sV2, StandardF64sV2, StandardF72sV2, StandardF8s, StandardF8sV2, StandardGS2, StandardGS3, StandardGS4, StandardGS5, StandardL16s, StandardL32s, StandardL4s, StandardL8s}
+}
+
+// OrchestratorTypes enumerates the values for orchestrator types.
+type OrchestratorTypes string
+
+const (
+ // Custom ...
+ Custom OrchestratorTypes = "Custom"
+ // DCOS ...
+ DCOS OrchestratorTypes = "DCOS"
+ // DockerCE ...
+ DockerCE OrchestratorTypes = "DockerCE"
+ // Kubernetes ...
+ Kubernetes OrchestratorTypes = "Kubernetes"
+ // Swarm ...
+ Swarm OrchestratorTypes = "Swarm"
+)
+
+// PossibleOrchestratorTypesValues returns an array of possible values for the OrchestratorTypes const type.
+func PossibleOrchestratorTypesValues() []OrchestratorTypes {
+ return []OrchestratorTypes{Custom, DCOS, DockerCE, Kubernetes, Swarm}
+}
+
+// OSType enumerates the values for os type.
+type OSType string
+
+const (
+ // Linux ...
+ Linux OSType = "Linux"
+ // Windows ...
+ Windows OSType = "Windows"
+)
+
+// PossibleOSTypeValues returns an array of possible values for the OSType const type.
+func PossibleOSTypeValues() []OSType {
+ return []OSType{Linux, Windows}
+}
+
+// ResourceIdentityType enumerates the values for resource identity type.
+type ResourceIdentityType string
+
+const (
+ // None ...
+ None ResourceIdentityType = "None"
+ // SystemAssigned ...
+ SystemAssigned ResourceIdentityType = "SystemAssigned"
+)
+
+// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
+func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
+ return []ResourceIdentityType{None, SystemAssigned}
+}
+
+// ScaleSetEvictionPolicy enumerates the values for scale set eviction policy.
+type ScaleSetEvictionPolicy string
+
+const (
+ // Deallocate ...
+ Deallocate ScaleSetEvictionPolicy = "Deallocate"
+ // Delete ...
+ Delete ScaleSetEvictionPolicy = "Delete"
+)
+
+// PossibleScaleSetEvictionPolicyValues returns an array of possible values for the ScaleSetEvictionPolicy const type.
+func PossibleScaleSetEvictionPolicyValues() []ScaleSetEvictionPolicy {
+ return []ScaleSetEvictionPolicy{Deallocate, Delete}
+}
+
+// ScaleSetPriority enumerates the values for scale set priority.
+type ScaleSetPriority string
+
+const (
+ // Low ...
+ Low ScaleSetPriority = "Low"
+ // Regular ...
+ Regular ScaleSetPriority = "Regular"
+)
+
+// PossibleScaleSetPriorityValues returns an array of possible values for the ScaleSetPriority const type.
+func PossibleScaleSetPriorityValues() []ScaleSetPriority {
+ return []ScaleSetPriority{Low, Regular}
+}
+
+// StorageProfileTypes enumerates the values for storage profile types.
+type StorageProfileTypes string
+
+const (
+ // ManagedDisks ...
+ ManagedDisks StorageProfileTypes = "ManagedDisks"
+ // StorageAccount ...
+ StorageAccount StorageProfileTypes = "StorageAccount"
+)
+
+// PossibleStorageProfileTypesValues returns an array of possible values for the StorageProfileTypes const type.
+func PossibleStorageProfileTypesValues() []StorageProfileTypes {
+ return []StorageProfileTypes{ManagedDisks, StorageAccount}
+}
+
+// VMSizeTypes enumerates the values for vm size types.
+type VMSizeTypes string
+
+const (
+ // VMSizeTypesStandardA1 ...
+ VMSizeTypesStandardA1 VMSizeTypes = "Standard_A1"
+ // VMSizeTypesStandardA10 ...
+ VMSizeTypesStandardA10 VMSizeTypes = "Standard_A10"
+ // VMSizeTypesStandardA11 ...
+ VMSizeTypesStandardA11 VMSizeTypes = "Standard_A11"
+ // VMSizeTypesStandardA1V2 ...
+ VMSizeTypesStandardA1V2 VMSizeTypes = "Standard_A1_v2"
+ // VMSizeTypesStandardA2 ...
+ VMSizeTypesStandardA2 VMSizeTypes = "Standard_A2"
+ // VMSizeTypesStandardA2mV2 ...
+ VMSizeTypesStandardA2mV2 VMSizeTypes = "Standard_A2m_v2"
+ // VMSizeTypesStandardA2V2 ...
+ VMSizeTypesStandardA2V2 VMSizeTypes = "Standard_A2_v2"
+ // VMSizeTypesStandardA3 ...
+ VMSizeTypesStandardA3 VMSizeTypes = "Standard_A3"
+ // VMSizeTypesStandardA4 ...
+ VMSizeTypesStandardA4 VMSizeTypes = "Standard_A4"
+ // VMSizeTypesStandardA4mV2 ...
+ VMSizeTypesStandardA4mV2 VMSizeTypes = "Standard_A4m_v2"
+ // VMSizeTypesStandardA4V2 ...
+ VMSizeTypesStandardA4V2 VMSizeTypes = "Standard_A4_v2"
+ // VMSizeTypesStandardA5 ...
+ VMSizeTypesStandardA5 VMSizeTypes = "Standard_A5"
+ // VMSizeTypesStandardA6 ...
+ VMSizeTypesStandardA6 VMSizeTypes = "Standard_A6"
+ // VMSizeTypesStandardA7 ...
+ VMSizeTypesStandardA7 VMSizeTypes = "Standard_A7"
+ // VMSizeTypesStandardA8 ...
+ VMSizeTypesStandardA8 VMSizeTypes = "Standard_A8"
+ // VMSizeTypesStandardA8mV2 ...
+ VMSizeTypesStandardA8mV2 VMSizeTypes = "Standard_A8m_v2"
+ // VMSizeTypesStandardA8V2 ...
+ VMSizeTypesStandardA8V2 VMSizeTypes = "Standard_A8_v2"
+ // VMSizeTypesStandardA9 ...
+ VMSizeTypesStandardA9 VMSizeTypes = "Standard_A9"
+ // VMSizeTypesStandardB2ms ...
+ VMSizeTypesStandardB2ms VMSizeTypes = "Standard_B2ms"
+ // VMSizeTypesStandardB2s ...
+ VMSizeTypesStandardB2s VMSizeTypes = "Standard_B2s"
+ // VMSizeTypesStandardB4ms ...
+ VMSizeTypesStandardB4ms VMSizeTypes = "Standard_B4ms"
+ // VMSizeTypesStandardB8ms ...
+ VMSizeTypesStandardB8ms VMSizeTypes = "Standard_B8ms"
+ // VMSizeTypesStandardD1 ...
+ VMSizeTypesStandardD1 VMSizeTypes = "Standard_D1"
+ // VMSizeTypesStandardD11 ...
+ VMSizeTypesStandardD11 VMSizeTypes = "Standard_D11"
+ // VMSizeTypesStandardD11V2 ...
+ VMSizeTypesStandardD11V2 VMSizeTypes = "Standard_D11_v2"
+ // VMSizeTypesStandardD11V2Promo ...
+ VMSizeTypesStandardD11V2Promo VMSizeTypes = "Standard_D11_v2_Promo"
+ // VMSizeTypesStandardD12 ...
+ VMSizeTypesStandardD12 VMSizeTypes = "Standard_D12"
+ // VMSizeTypesStandardD12V2 ...
+ VMSizeTypesStandardD12V2 VMSizeTypes = "Standard_D12_v2"
+ // VMSizeTypesStandardD12V2Promo ...
+ VMSizeTypesStandardD12V2Promo VMSizeTypes = "Standard_D12_v2_Promo"
+ // VMSizeTypesStandardD13 ...
+ VMSizeTypesStandardD13 VMSizeTypes = "Standard_D13"
+ // VMSizeTypesStandardD13V2 ...
+ VMSizeTypesStandardD13V2 VMSizeTypes = "Standard_D13_v2"
+ // VMSizeTypesStandardD13V2Promo ...
+ VMSizeTypesStandardD13V2Promo VMSizeTypes = "Standard_D13_v2_Promo"
+ // VMSizeTypesStandardD14 ...
+ VMSizeTypesStandardD14 VMSizeTypes = "Standard_D14"
+ // VMSizeTypesStandardD14V2 ...
+ VMSizeTypesStandardD14V2 VMSizeTypes = "Standard_D14_v2"
+ // VMSizeTypesStandardD14V2Promo ...
+ VMSizeTypesStandardD14V2Promo VMSizeTypes = "Standard_D14_v2_Promo"
+ // VMSizeTypesStandardD15V2 ...
+ VMSizeTypesStandardD15V2 VMSizeTypes = "Standard_D15_v2"
+ // VMSizeTypesStandardD16sV3 ...
+ VMSizeTypesStandardD16sV3 VMSizeTypes = "Standard_D16s_v3"
+ // VMSizeTypesStandardD16V3 ...
+ VMSizeTypesStandardD16V3 VMSizeTypes = "Standard_D16_v3"
+ // VMSizeTypesStandardD1V2 ...
+ VMSizeTypesStandardD1V2 VMSizeTypes = "Standard_D1_v2"
+ // VMSizeTypesStandardD2 ...
+ VMSizeTypesStandardD2 VMSizeTypes = "Standard_D2"
+ // VMSizeTypesStandardD2sV3 ...
+ VMSizeTypesStandardD2sV3 VMSizeTypes = "Standard_D2s_v3"
+ // VMSizeTypesStandardD2V2 ...
+ VMSizeTypesStandardD2V2 VMSizeTypes = "Standard_D2_v2"
+ // VMSizeTypesStandardD2V2Promo ...
+ VMSizeTypesStandardD2V2Promo VMSizeTypes = "Standard_D2_v2_Promo"
+ // VMSizeTypesStandardD2V3 ...
+ VMSizeTypesStandardD2V3 VMSizeTypes = "Standard_D2_v3"
+ // VMSizeTypesStandardD3 ...
+ VMSizeTypesStandardD3 VMSizeTypes = "Standard_D3"
+ // VMSizeTypesStandardD32sV3 ...
+ VMSizeTypesStandardD32sV3 VMSizeTypes = "Standard_D32s_v3"
+ // VMSizeTypesStandardD32V3 ...
+ VMSizeTypesStandardD32V3 VMSizeTypes = "Standard_D32_v3"
+ // VMSizeTypesStandardD3V2 ...
+ VMSizeTypesStandardD3V2 VMSizeTypes = "Standard_D3_v2"
+ // VMSizeTypesStandardD3V2Promo ...
+ VMSizeTypesStandardD3V2Promo VMSizeTypes = "Standard_D3_v2_Promo"
+ // VMSizeTypesStandardD4 ...
+ VMSizeTypesStandardD4 VMSizeTypes = "Standard_D4"
+ // VMSizeTypesStandardD4sV3 ...
+ VMSizeTypesStandardD4sV3 VMSizeTypes = "Standard_D4s_v3"
+ // VMSizeTypesStandardD4V2 ...
+ VMSizeTypesStandardD4V2 VMSizeTypes = "Standard_D4_v2"
+ // VMSizeTypesStandardD4V2Promo ...
+ VMSizeTypesStandardD4V2Promo VMSizeTypes = "Standard_D4_v2_Promo"
+ // VMSizeTypesStandardD4V3 ...
+ VMSizeTypesStandardD4V3 VMSizeTypes = "Standard_D4_v3"
+ // VMSizeTypesStandardD5V2 ...
+ VMSizeTypesStandardD5V2 VMSizeTypes = "Standard_D5_v2"
+ // VMSizeTypesStandardD5V2Promo ...
+ VMSizeTypesStandardD5V2Promo VMSizeTypes = "Standard_D5_v2_Promo"
+ // VMSizeTypesStandardD64sV3 ...
+ VMSizeTypesStandardD64sV3 VMSizeTypes = "Standard_D64s_v3"
+ // VMSizeTypesStandardD64V3 ...
+ VMSizeTypesStandardD64V3 VMSizeTypes = "Standard_D64_v3"
+ // VMSizeTypesStandardD8sV3 ...
+ VMSizeTypesStandardD8sV3 VMSizeTypes = "Standard_D8s_v3"
+ // VMSizeTypesStandardD8V3 ...
+ VMSizeTypesStandardD8V3 VMSizeTypes = "Standard_D8_v3"
+ // VMSizeTypesStandardDS1 ...
+ VMSizeTypesStandardDS1 VMSizeTypes = "Standard_DS1"
+ // VMSizeTypesStandardDS11 ...
+ VMSizeTypesStandardDS11 VMSizeTypes = "Standard_DS11"
+ // VMSizeTypesStandardDS11V2 ...
+ VMSizeTypesStandardDS11V2 VMSizeTypes = "Standard_DS11_v2"
+ // VMSizeTypesStandardDS11V2Promo ...
+ VMSizeTypesStandardDS11V2Promo VMSizeTypes = "Standard_DS11_v2_Promo"
+ // VMSizeTypesStandardDS12 ...
+ VMSizeTypesStandardDS12 VMSizeTypes = "Standard_DS12"
+ // VMSizeTypesStandardDS12V2 ...
+ VMSizeTypesStandardDS12V2 VMSizeTypes = "Standard_DS12_v2"
+ // VMSizeTypesStandardDS12V2Promo ...
+ VMSizeTypesStandardDS12V2Promo VMSizeTypes = "Standard_DS12_v2_Promo"
+ // VMSizeTypesStandardDS13 ...
+ VMSizeTypesStandardDS13 VMSizeTypes = "Standard_DS13"
+ // VMSizeTypesStandardDS132V2 ...
+ VMSizeTypesStandardDS132V2 VMSizeTypes = "Standard_DS13-2_v2"
+ // VMSizeTypesStandardDS134V2 ...
+ VMSizeTypesStandardDS134V2 VMSizeTypes = "Standard_DS13-4_v2"
+ // VMSizeTypesStandardDS13V2 ...
+ VMSizeTypesStandardDS13V2 VMSizeTypes = "Standard_DS13_v2"
+ // VMSizeTypesStandardDS13V2Promo ...
+ VMSizeTypesStandardDS13V2Promo VMSizeTypes = "Standard_DS13_v2_Promo"
+ // VMSizeTypesStandardDS14 ...
+ VMSizeTypesStandardDS14 VMSizeTypes = "Standard_DS14"
+ // VMSizeTypesStandardDS144V2 ...
+ VMSizeTypesStandardDS144V2 VMSizeTypes = "Standard_DS14-4_v2"
+ // VMSizeTypesStandardDS148V2 ...
+ VMSizeTypesStandardDS148V2 VMSizeTypes = "Standard_DS14-8_v2"
+ // VMSizeTypesStandardDS14V2 ...
+ VMSizeTypesStandardDS14V2 VMSizeTypes = "Standard_DS14_v2"
+ // VMSizeTypesStandardDS14V2Promo ...
+ VMSizeTypesStandardDS14V2Promo VMSizeTypes = "Standard_DS14_v2_Promo"
+ // VMSizeTypesStandardDS15V2 ...
+ VMSizeTypesStandardDS15V2 VMSizeTypes = "Standard_DS15_v2"
+ // VMSizeTypesStandardDS1V2 ...
+ VMSizeTypesStandardDS1V2 VMSizeTypes = "Standard_DS1_v2"
+ // VMSizeTypesStandardDS2 ...
+ VMSizeTypesStandardDS2 VMSizeTypes = "Standard_DS2"
+ // VMSizeTypesStandardDS2V2 ...
+ VMSizeTypesStandardDS2V2 VMSizeTypes = "Standard_DS2_v2"
+ // VMSizeTypesStandardDS2V2Promo ...
+ VMSizeTypesStandardDS2V2Promo VMSizeTypes = "Standard_DS2_v2_Promo"
+ // VMSizeTypesStandardDS3 ...
+ VMSizeTypesStandardDS3 VMSizeTypes = "Standard_DS3"
+ // VMSizeTypesStandardDS3V2 ...
+ VMSizeTypesStandardDS3V2 VMSizeTypes = "Standard_DS3_v2"
+ // VMSizeTypesStandardDS3V2Promo ...
+ VMSizeTypesStandardDS3V2Promo VMSizeTypes = "Standard_DS3_v2_Promo"
+ // VMSizeTypesStandardDS4 ...
+ VMSizeTypesStandardDS4 VMSizeTypes = "Standard_DS4"
+ // VMSizeTypesStandardDS4V2 ...
+ VMSizeTypesStandardDS4V2 VMSizeTypes = "Standard_DS4_v2"
+ // VMSizeTypesStandardDS4V2Promo ...
+ VMSizeTypesStandardDS4V2Promo VMSizeTypes = "Standard_DS4_v2_Promo"
+ // VMSizeTypesStandardDS5V2 ...
+ VMSizeTypesStandardDS5V2 VMSizeTypes = "Standard_DS5_v2"
+ // VMSizeTypesStandardDS5V2Promo ...
+ VMSizeTypesStandardDS5V2Promo VMSizeTypes = "Standard_DS5_v2_Promo"
+ // VMSizeTypesStandardE16sV3 ...
+ VMSizeTypesStandardE16sV3 VMSizeTypes = "Standard_E16s_v3"
+ // VMSizeTypesStandardE16V3 ...
+ VMSizeTypesStandardE16V3 VMSizeTypes = "Standard_E16_v3"
+ // VMSizeTypesStandardE2sV3 ...
+ VMSizeTypesStandardE2sV3 VMSizeTypes = "Standard_E2s_v3"
+ // VMSizeTypesStandardE2V3 ...
+ VMSizeTypesStandardE2V3 VMSizeTypes = "Standard_E2_v3"
+ // VMSizeTypesStandardE3216sV3 ...
+ VMSizeTypesStandardE3216sV3 VMSizeTypes = "Standard_E32-16s_v3"
+ // VMSizeTypesStandardE328sV3 ...
+ VMSizeTypesStandardE328sV3 VMSizeTypes = "Standard_E32-8s_v3"
+ // VMSizeTypesStandardE32sV3 ...
+ VMSizeTypesStandardE32sV3 VMSizeTypes = "Standard_E32s_v3"
+ // VMSizeTypesStandardE32V3 ...
+ VMSizeTypesStandardE32V3 VMSizeTypes = "Standard_E32_v3"
+ // VMSizeTypesStandardE4sV3 ...
+ VMSizeTypesStandardE4sV3 VMSizeTypes = "Standard_E4s_v3"
+ // VMSizeTypesStandardE4V3 ...
+ VMSizeTypesStandardE4V3 VMSizeTypes = "Standard_E4_v3"
+ // VMSizeTypesStandardE6416sV3 ...
+ VMSizeTypesStandardE6416sV3 VMSizeTypes = "Standard_E64-16s_v3"
+ // VMSizeTypesStandardE6432sV3 ...
+ VMSizeTypesStandardE6432sV3 VMSizeTypes = "Standard_E64-32s_v3"
+ // VMSizeTypesStandardE64sV3 ...
+ VMSizeTypesStandardE64sV3 VMSizeTypes = "Standard_E64s_v3"
+ // VMSizeTypesStandardE64V3 ...
+ VMSizeTypesStandardE64V3 VMSizeTypes = "Standard_E64_v3"
+ // VMSizeTypesStandardE8sV3 ...
+ VMSizeTypesStandardE8sV3 VMSizeTypes = "Standard_E8s_v3"
+ // VMSizeTypesStandardE8V3 ...
+ VMSizeTypesStandardE8V3 VMSizeTypes = "Standard_E8_v3"
+ // VMSizeTypesStandardF1 ...
+ VMSizeTypesStandardF1 VMSizeTypes = "Standard_F1"
+ // VMSizeTypesStandardF16 ...
+ VMSizeTypesStandardF16 VMSizeTypes = "Standard_F16"
+ // VMSizeTypesStandardF16s ...
+ VMSizeTypesStandardF16s VMSizeTypes = "Standard_F16s"
+ // VMSizeTypesStandardF16sV2 ...
+ VMSizeTypesStandardF16sV2 VMSizeTypes = "Standard_F16s_v2"
+ // VMSizeTypesStandardF1s ...
+ VMSizeTypesStandardF1s VMSizeTypes = "Standard_F1s"
+ // VMSizeTypesStandardF2 ...
+ VMSizeTypesStandardF2 VMSizeTypes = "Standard_F2"
+ // VMSizeTypesStandardF2s ...
+ VMSizeTypesStandardF2s VMSizeTypes = "Standard_F2s"
+ // VMSizeTypesStandardF2sV2 ...
+ VMSizeTypesStandardF2sV2 VMSizeTypes = "Standard_F2s_v2"
+ // VMSizeTypesStandardF32sV2 ...
+ VMSizeTypesStandardF32sV2 VMSizeTypes = "Standard_F32s_v2"
+ // VMSizeTypesStandardF4 ...
+ VMSizeTypesStandardF4 VMSizeTypes = "Standard_F4"
+ // VMSizeTypesStandardF4s ...
+ VMSizeTypesStandardF4s VMSizeTypes = "Standard_F4s"
+ // VMSizeTypesStandardF4sV2 ...
+ VMSizeTypesStandardF4sV2 VMSizeTypes = "Standard_F4s_v2"
+ // VMSizeTypesStandardF64sV2 ...
+ VMSizeTypesStandardF64sV2 VMSizeTypes = "Standard_F64s_v2"
+ // VMSizeTypesStandardF72sV2 ...
+ VMSizeTypesStandardF72sV2 VMSizeTypes = "Standard_F72s_v2"
+ // VMSizeTypesStandardF8 ...
+ VMSizeTypesStandardF8 VMSizeTypes = "Standard_F8"
+ // VMSizeTypesStandardF8s ...
+ VMSizeTypesStandardF8s VMSizeTypes = "Standard_F8s"
+ // VMSizeTypesStandardF8sV2 ...
+ VMSizeTypesStandardF8sV2 VMSizeTypes = "Standard_F8s_v2"
+ // VMSizeTypesStandardG1 ...
+ VMSizeTypesStandardG1 VMSizeTypes = "Standard_G1"
+ // VMSizeTypesStandardG2 ...
+ VMSizeTypesStandardG2 VMSizeTypes = "Standard_G2"
+ // VMSizeTypesStandardG3 ...
+ VMSizeTypesStandardG3 VMSizeTypes = "Standard_G3"
+ // VMSizeTypesStandardG4 ...
+ VMSizeTypesStandardG4 VMSizeTypes = "Standard_G4"
+ // VMSizeTypesStandardG5 ...
+ VMSizeTypesStandardG5 VMSizeTypes = "Standard_G5"
+ // VMSizeTypesStandardGS1 ...
+ VMSizeTypesStandardGS1 VMSizeTypes = "Standard_GS1"
+ // VMSizeTypesStandardGS2 ...
+ VMSizeTypesStandardGS2 VMSizeTypes = "Standard_GS2"
+ // VMSizeTypesStandardGS3 ...
+ VMSizeTypesStandardGS3 VMSizeTypes = "Standard_GS3"
+ // VMSizeTypesStandardGS4 ...
+ VMSizeTypesStandardGS4 VMSizeTypes = "Standard_GS4"
+ // VMSizeTypesStandardGS44 ...
+ VMSizeTypesStandardGS44 VMSizeTypes = "Standard_GS4-4"
+ // VMSizeTypesStandardGS48 ...
+ VMSizeTypesStandardGS48 VMSizeTypes = "Standard_GS4-8"
+ // VMSizeTypesStandardGS5 ...
+ VMSizeTypesStandardGS5 VMSizeTypes = "Standard_GS5"
+ // VMSizeTypesStandardGS516 ...
+ VMSizeTypesStandardGS516 VMSizeTypes = "Standard_GS5-16"
+ // VMSizeTypesStandardGS58 ...
+ VMSizeTypesStandardGS58 VMSizeTypes = "Standard_GS5-8"
+ // VMSizeTypesStandardH16 ...
+ VMSizeTypesStandardH16 VMSizeTypes = "Standard_H16"
+ // VMSizeTypesStandardH16m ...
+ VMSizeTypesStandardH16m VMSizeTypes = "Standard_H16m"
+ // VMSizeTypesStandardH16mr ...
+ VMSizeTypesStandardH16mr VMSizeTypes = "Standard_H16mr"
+ // VMSizeTypesStandardH16r ...
+ VMSizeTypesStandardH16r VMSizeTypes = "Standard_H16r"
+ // VMSizeTypesStandardH8 ...
+ VMSizeTypesStandardH8 VMSizeTypes = "Standard_H8"
+ // VMSizeTypesStandardH8m ...
+ VMSizeTypesStandardH8m VMSizeTypes = "Standard_H8m"
+ // VMSizeTypesStandardL16s ...
+ VMSizeTypesStandardL16s VMSizeTypes = "Standard_L16s"
+ // VMSizeTypesStandardL32s ...
+ VMSizeTypesStandardL32s VMSizeTypes = "Standard_L32s"
+ // VMSizeTypesStandardL4s ...
+ VMSizeTypesStandardL4s VMSizeTypes = "Standard_L4s"
+ // VMSizeTypesStandardL8s ...
+ VMSizeTypesStandardL8s VMSizeTypes = "Standard_L8s"
+ // VMSizeTypesStandardM12832ms ...
+ VMSizeTypesStandardM12832ms VMSizeTypes = "Standard_M128-32ms"
+ // VMSizeTypesStandardM12864ms ...
+ VMSizeTypesStandardM12864ms VMSizeTypes = "Standard_M128-64ms"
+ // VMSizeTypesStandardM128ms ...
+ VMSizeTypesStandardM128ms VMSizeTypes = "Standard_M128ms"
+ // VMSizeTypesStandardM128s ...
+ VMSizeTypesStandardM128s VMSizeTypes = "Standard_M128s"
+ // VMSizeTypesStandardM6416ms ...
+ VMSizeTypesStandardM6416ms VMSizeTypes = "Standard_M64-16ms"
+ // VMSizeTypesStandardM6432ms ...
+ VMSizeTypesStandardM6432ms VMSizeTypes = "Standard_M64-32ms"
+ // VMSizeTypesStandardM64ms ...
+ VMSizeTypesStandardM64ms VMSizeTypes = "Standard_M64ms"
+ // VMSizeTypesStandardM64s ...
+ VMSizeTypesStandardM64s VMSizeTypes = "Standard_M64s"
+ // VMSizeTypesStandardNC12 ...
+ VMSizeTypesStandardNC12 VMSizeTypes = "Standard_NC12"
+ // VMSizeTypesStandardNC12sV2 ...
+ VMSizeTypesStandardNC12sV2 VMSizeTypes = "Standard_NC12s_v2"
+ // VMSizeTypesStandardNC12sV3 ...
+ VMSizeTypesStandardNC12sV3 VMSizeTypes = "Standard_NC12s_v3"
+ // VMSizeTypesStandardNC24 ...
+ VMSizeTypesStandardNC24 VMSizeTypes = "Standard_NC24"
+ // VMSizeTypesStandardNC24r ...
+ VMSizeTypesStandardNC24r VMSizeTypes = "Standard_NC24r"
+ // VMSizeTypesStandardNC24rsV2 ...
+ VMSizeTypesStandardNC24rsV2 VMSizeTypes = "Standard_NC24rs_v2"
+ // VMSizeTypesStandardNC24rsV3 ...
+ VMSizeTypesStandardNC24rsV3 VMSizeTypes = "Standard_NC24rs_v3"
+ // VMSizeTypesStandardNC24sV2 ...
+ VMSizeTypesStandardNC24sV2 VMSizeTypes = "Standard_NC24s_v2"
+ // VMSizeTypesStandardNC24sV3 ...
+ VMSizeTypesStandardNC24sV3 VMSizeTypes = "Standard_NC24s_v3"
+ // VMSizeTypesStandardNC6 ...
+ VMSizeTypesStandardNC6 VMSizeTypes = "Standard_NC6"
+ // VMSizeTypesStandardNC6sV2 ...
+ VMSizeTypesStandardNC6sV2 VMSizeTypes = "Standard_NC6s_v2"
+ // VMSizeTypesStandardNC6sV3 ...
+ VMSizeTypesStandardNC6sV3 VMSizeTypes = "Standard_NC6s_v3"
+ // VMSizeTypesStandardND12s ...
+ VMSizeTypesStandardND12s VMSizeTypes = "Standard_ND12s"
+ // VMSizeTypesStandardND24rs ...
+ VMSizeTypesStandardND24rs VMSizeTypes = "Standard_ND24rs"
+ // VMSizeTypesStandardND24s ...
+ VMSizeTypesStandardND24s VMSizeTypes = "Standard_ND24s"
+ // VMSizeTypesStandardND6s ...
+ VMSizeTypesStandardND6s VMSizeTypes = "Standard_ND6s"
+ // VMSizeTypesStandardNV12 ...
+ VMSizeTypesStandardNV12 VMSizeTypes = "Standard_NV12"
+ // VMSizeTypesStandardNV24 ...
+ VMSizeTypesStandardNV24 VMSizeTypes = "Standard_NV24"
+ // VMSizeTypesStandardNV6 ...
+ VMSizeTypesStandardNV6 VMSizeTypes = "Standard_NV6"
+)
+
+// PossibleVMSizeTypesValues returns an array of possible values for the VMSizeTypes const type.
+func PossibleVMSizeTypesValues() []VMSizeTypes {
+ return []VMSizeTypes{VMSizeTypesStandardA1, VMSizeTypesStandardA10, VMSizeTypesStandardA11, VMSizeTypesStandardA1V2, VMSizeTypesStandardA2, VMSizeTypesStandardA2mV2, VMSizeTypesStandardA2V2, VMSizeTypesStandardA3, VMSizeTypesStandardA4, VMSizeTypesStandardA4mV2, VMSizeTypesStandardA4V2, VMSizeTypesStandardA5, VMSizeTypesStandardA6, VMSizeTypesStandardA7, VMSizeTypesStandardA8, VMSizeTypesStandardA8mV2, VMSizeTypesStandardA8V2, VMSizeTypesStandardA9, VMSizeTypesStandardB2ms, VMSizeTypesStandardB2s, VMSizeTypesStandardB4ms, VMSizeTypesStandardB8ms, VMSizeTypesStandardD1, VMSizeTypesStandardD11, VMSizeTypesStandardD11V2, VMSizeTypesStandardD11V2Promo, VMSizeTypesStandardD12, VMSizeTypesStandardD12V2, VMSizeTypesStandardD12V2Promo, VMSizeTypesStandardD13, VMSizeTypesStandardD13V2, VMSizeTypesStandardD13V2Promo, VMSizeTypesStandardD14, VMSizeTypesStandardD14V2, VMSizeTypesStandardD14V2Promo, VMSizeTypesStandardD15V2, VMSizeTypesStandardD16sV3, VMSizeTypesStandardD16V3, VMSizeTypesStandardD1V2, VMSizeTypesStandardD2, VMSizeTypesStandardD2sV3, VMSizeTypesStandardD2V2, VMSizeTypesStandardD2V2Promo, VMSizeTypesStandardD2V3, VMSizeTypesStandardD3, VMSizeTypesStandardD32sV3, VMSizeTypesStandardD32V3, VMSizeTypesStandardD3V2, VMSizeTypesStandardD3V2Promo, VMSizeTypesStandardD4, VMSizeTypesStandardD4sV3, VMSizeTypesStandardD4V2, VMSizeTypesStandardD4V2Promo, VMSizeTypesStandardD4V3, VMSizeTypesStandardD5V2, VMSizeTypesStandardD5V2Promo, VMSizeTypesStandardD64sV3, VMSizeTypesStandardD64V3, VMSizeTypesStandardD8sV3, VMSizeTypesStandardD8V3, VMSizeTypesStandardDS1, VMSizeTypesStandardDS11, VMSizeTypesStandardDS11V2, VMSizeTypesStandardDS11V2Promo, VMSizeTypesStandardDS12, VMSizeTypesStandardDS12V2, VMSizeTypesStandardDS12V2Promo, VMSizeTypesStandardDS13, VMSizeTypesStandardDS132V2, VMSizeTypesStandardDS134V2, VMSizeTypesStandardDS13V2, VMSizeTypesStandardDS13V2Promo, VMSizeTypesStandardDS14, VMSizeTypesStandardDS144V2, VMSizeTypesStandardDS148V2, VMSizeTypesStandardDS14V2, VMSizeTypesStandardDS14V2Promo, VMSizeTypesStandardDS15V2, VMSizeTypesStandardDS1V2, VMSizeTypesStandardDS2, VMSizeTypesStandardDS2V2, VMSizeTypesStandardDS2V2Promo, VMSizeTypesStandardDS3, VMSizeTypesStandardDS3V2, VMSizeTypesStandardDS3V2Promo, VMSizeTypesStandardDS4, VMSizeTypesStandardDS4V2, VMSizeTypesStandardDS4V2Promo, VMSizeTypesStandardDS5V2, VMSizeTypesStandardDS5V2Promo, VMSizeTypesStandardE16sV3, VMSizeTypesStandardE16V3, VMSizeTypesStandardE2sV3, VMSizeTypesStandardE2V3, VMSizeTypesStandardE3216sV3, VMSizeTypesStandardE328sV3, VMSizeTypesStandardE32sV3, VMSizeTypesStandardE32V3, VMSizeTypesStandardE4sV3, VMSizeTypesStandardE4V3, VMSizeTypesStandardE6416sV3, VMSizeTypesStandardE6432sV3, VMSizeTypesStandardE64sV3, VMSizeTypesStandardE64V3, VMSizeTypesStandardE8sV3, VMSizeTypesStandardE8V3, VMSizeTypesStandardF1, VMSizeTypesStandardF16, VMSizeTypesStandardF16s, VMSizeTypesStandardF16sV2, VMSizeTypesStandardF1s, VMSizeTypesStandardF2, VMSizeTypesStandardF2s, VMSizeTypesStandardF2sV2, VMSizeTypesStandardF32sV2, VMSizeTypesStandardF4, VMSizeTypesStandardF4s, VMSizeTypesStandardF4sV2, VMSizeTypesStandardF64sV2, VMSizeTypesStandardF72sV2, VMSizeTypesStandardF8, VMSizeTypesStandardF8s, VMSizeTypesStandardF8sV2, VMSizeTypesStandardG1, VMSizeTypesStandardG2, VMSizeTypesStandardG3, VMSizeTypesStandardG4, VMSizeTypesStandardG5, VMSizeTypesStandardGS1, VMSizeTypesStandardGS2, VMSizeTypesStandardGS3, VMSizeTypesStandardGS4, VMSizeTypesStandardGS44, VMSizeTypesStandardGS48, VMSizeTypesStandardGS5, VMSizeTypesStandardGS516, VMSizeTypesStandardGS58, VMSizeTypesStandardH16, VMSizeTypesStandardH16m, VMSizeTypesStandardH16mr, VMSizeTypesStandardH16r, VMSizeTypesStandardH8, VMSizeTypesStandardH8m, VMSizeTypesStandardL16s, VMSizeTypesStandardL32s, VMSizeTypesStandardL4s, VMSizeTypesStandardL8s, VMSizeTypesStandardM12832ms, VMSizeTypesStandardM12864ms, VMSizeTypesStandardM128ms, VMSizeTypesStandardM128s, VMSizeTypesStandardM6416ms, VMSizeTypesStandardM6432ms, VMSizeTypesStandardM64ms, VMSizeTypesStandardM64s, VMSizeTypesStandardNC12, VMSizeTypesStandardNC12sV2, VMSizeTypesStandardNC12sV3, VMSizeTypesStandardNC24, VMSizeTypesStandardNC24r, VMSizeTypesStandardNC24rsV2, VMSizeTypesStandardNC24rsV3, VMSizeTypesStandardNC24sV2, VMSizeTypesStandardNC24sV3, VMSizeTypesStandardNC6, VMSizeTypesStandardNC6sV2, VMSizeTypesStandardNC6sV3, VMSizeTypesStandardND12s, VMSizeTypesStandardND24rs, VMSizeTypesStandardND24s, VMSizeTypesStandardND6s, VMSizeTypesStandardNV12, VMSizeTypesStandardNV24, VMSizeTypesStandardNV6}
+}
+
+// AccessProfile profile for enabling a user to access a managed cluster.
+type AccessProfile struct {
+ // KubeConfig - Base64-encoded Kubernetes configuration file.
+ KubeConfig *[]byte `json:"kubeConfig,omitempty"`
+}
+
+// AgentPool agent Pool.
+type AgentPool struct {
+ autorest.Response `json:"-"`
+ // ManagedClusterAgentPoolProfileProperties - Properties of an agent pool.
+ *ManagedClusterAgentPoolProfileProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource ID.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; The name of the resource that is unique within a resource group. This name can be used to access the resource.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for AgentPool.
+func (ap AgentPool) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if ap.ManagedClusterAgentPoolProfileProperties != nil {
+ objectMap["properties"] = ap.ManagedClusterAgentPoolProfileProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for AgentPool struct.
+func (ap *AgentPool) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var managedClusterAgentPoolProfileProperties ManagedClusterAgentPoolProfileProperties
+ err = json.Unmarshal(*v, &managedClusterAgentPoolProfileProperties)
+ if err != nil {
+ return err
+ }
+ ap.ManagedClusterAgentPoolProfileProperties = &managedClusterAgentPoolProfileProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ ap.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ap.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ ap.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// AgentPoolAvailableVersions the list of available versions for an agent pool.
+type AgentPoolAvailableVersions struct {
+ autorest.Response `json:"-"`
+ // ID - READ-ONLY; Id of the agent pool available versions.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the agent pool available versions.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the agent pool available versions.
+ Type *string `json:"type,omitempty"`
+ // AgentPoolAvailableVersionsProperties - Properties of agent pool available versions.
+ *AgentPoolAvailableVersionsProperties `json:"properties,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for AgentPoolAvailableVersions.
+func (apav AgentPoolAvailableVersions) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if apav.AgentPoolAvailableVersionsProperties != nil {
+ objectMap["properties"] = apav.AgentPoolAvailableVersionsProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for AgentPoolAvailableVersions struct.
+func (apav *AgentPoolAvailableVersions) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ apav.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ apav.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ apav.Type = &typeVar
+ }
+ case "properties":
+ if v != nil {
+ var agentPoolAvailableVersionsProperties AgentPoolAvailableVersionsProperties
+ err = json.Unmarshal(*v, &agentPoolAvailableVersionsProperties)
+ if err != nil {
+ return err
+ }
+ apav.AgentPoolAvailableVersionsProperties = &agentPoolAvailableVersionsProperties
+ }
+ }
+ }
+
+ return nil
+}
+
+// AgentPoolAvailableVersionsProperties the list of available agent pool versions.
+type AgentPoolAvailableVersionsProperties struct {
+ // AgentPoolVersions - List of versions available for agent pool.
+ AgentPoolVersions *[]AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem `json:"agentPoolVersions,omitempty"`
+}
+
+// AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem ...
+type AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem struct {
+ // Default - Whether this version is the default agent pool version.
+ Default *bool `json:"default,omitempty"`
+ // KubernetesVersion - Kubernetes version (major, minor, patch).
+ KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
+ // IsPreview - Whether Kubernetes version is currently in preview.
+ IsPreview *bool `json:"isPreview,omitempty"`
+}
+
+// AgentPoolListResult the response from the List Agent Pools operation.
+type AgentPoolListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of agent pools.
+ Value *[]AgentPool `json:"value,omitempty"`
+ // NextLink - READ-ONLY; The URL to get the next set of agent pool results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// AgentPoolListResultIterator provides access to a complete listing of AgentPool values.
+type AgentPoolListResultIterator struct {
+ i int
+ page AgentPoolListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *AgentPoolListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *AgentPoolListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter AgentPoolListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter AgentPoolListResultIterator) Response() AgentPoolListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter AgentPoolListResultIterator) Value() AgentPool {
+ if !iter.page.NotDone() {
+ return AgentPool{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the AgentPoolListResultIterator type.
+func NewAgentPoolListResultIterator(page AgentPoolListResultPage) AgentPoolListResultIterator {
+ return AgentPoolListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (aplr AgentPoolListResult) IsEmpty() bool {
+ return aplr.Value == nil || len(*aplr.Value) == 0
+}
+
+// agentPoolListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (aplr AgentPoolListResult) agentPoolListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if aplr.NextLink == nil || len(to.String(aplr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(aplr.NextLink)))
+}
+
+// AgentPoolListResultPage contains a page of AgentPool values.
+type AgentPoolListResultPage struct {
+ fn func(context.Context, AgentPoolListResult) (AgentPoolListResult, error)
+ aplr AgentPoolListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *AgentPoolListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/AgentPoolListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.aplr)
+ if err != nil {
+ return err
+ }
+ page.aplr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *AgentPoolListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page AgentPoolListResultPage) NotDone() bool {
+ return !page.aplr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page AgentPoolListResultPage) Response() AgentPoolListResult {
+ return page.aplr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page AgentPoolListResultPage) Values() []AgentPool {
+ if page.aplr.IsEmpty() {
+ return nil
+ }
+ return *page.aplr.Value
+}
+
+// Creates a new instance of the AgentPoolListResultPage type.
+func NewAgentPoolListResultPage(getNextPage func(context.Context, AgentPoolListResult) (AgentPoolListResult, error)) AgentPoolListResultPage {
+ return AgentPoolListResultPage{fn: getNextPage}
+}
+
+// AgentPoolProfile profile for the container service agent pool.
+type AgentPoolProfile struct {
+ // Name - Unique name of the agent pool profile in the context of the subscription and resource group.
+ Name *string `json:"name,omitempty"`
+ // Count - Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.
+ Count *int32 `json:"count,omitempty"`
+ // VMSize - Size of agent VMs. Possible values include: 'VMSizeTypesStandardA1', 'VMSizeTypesStandardA10', 'VMSizeTypesStandardA11', 'VMSizeTypesStandardA1V2', 'VMSizeTypesStandardA2', 'VMSizeTypesStandardA2V2', 'VMSizeTypesStandardA2mV2', 'VMSizeTypesStandardA3', 'VMSizeTypesStandardA4', 'VMSizeTypesStandardA4V2', 'VMSizeTypesStandardA4mV2', 'VMSizeTypesStandardA5', 'VMSizeTypesStandardA6', 'VMSizeTypesStandardA7', 'VMSizeTypesStandardA8', 'VMSizeTypesStandardA8V2', 'VMSizeTypesStandardA8mV2', 'VMSizeTypesStandardA9', 'VMSizeTypesStandardB2ms', 'VMSizeTypesStandardB2s', 'VMSizeTypesStandardB4ms', 'VMSizeTypesStandardB8ms', 'VMSizeTypesStandardD1', 'VMSizeTypesStandardD11', 'VMSizeTypesStandardD11V2', 'VMSizeTypesStandardD11V2Promo', 'VMSizeTypesStandardD12', 'VMSizeTypesStandardD12V2', 'VMSizeTypesStandardD12V2Promo', 'VMSizeTypesStandardD13', 'VMSizeTypesStandardD13V2', 'VMSizeTypesStandardD13V2Promo', 'VMSizeTypesStandardD14', 'VMSizeTypesStandardD14V2', 'VMSizeTypesStandardD14V2Promo', 'VMSizeTypesStandardD15V2', 'VMSizeTypesStandardD16V3', 'VMSizeTypesStandardD16sV3', 'VMSizeTypesStandardD1V2', 'VMSizeTypesStandardD2', 'VMSizeTypesStandardD2V2', 'VMSizeTypesStandardD2V2Promo', 'VMSizeTypesStandardD2V3', 'VMSizeTypesStandardD2sV3', 'VMSizeTypesStandardD3', 'VMSizeTypesStandardD32V3', 'VMSizeTypesStandardD32sV3', 'VMSizeTypesStandardD3V2', 'VMSizeTypesStandardD3V2Promo', 'VMSizeTypesStandardD4', 'VMSizeTypesStandardD4V2', 'VMSizeTypesStandardD4V2Promo', 'VMSizeTypesStandardD4V3', 'VMSizeTypesStandardD4sV3', 'VMSizeTypesStandardD5V2', 'VMSizeTypesStandardD5V2Promo', 'VMSizeTypesStandardD64V3', 'VMSizeTypesStandardD64sV3', 'VMSizeTypesStandardD8V3', 'VMSizeTypesStandardD8sV3', 'VMSizeTypesStandardDS1', 'VMSizeTypesStandardDS11', 'VMSizeTypesStandardDS11V2', 'VMSizeTypesStandardDS11V2Promo', 'VMSizeTypesStandardDS12', 'VMSizeTypesStandardDS12V2', 'VMSizeTypesStandardDS12V2Promo', 'VMSizeTypesStandardDS13', 'VMSizeTypesStandardDS132V2', 'VMSizeTypesStandardDS134V2', 'VMSizeTypesStandardDS13V2', 'VMSizeTypesStandardDS13V2Promo', 'VMSizeTypesStandardDS14', 'VMSizeTypesStandardDS144V2', 'VMSizeTypesStandardDS148V2', 'VMSizeTypesStandardDS14V2', 'VMSizeTypesStandardDS14V2Promo', 'VMSizeTypesStandardDS15V2', 'VMSizeTypesStandardDS1V2', 'VMSizeTypesStandardDS2', 'VMSizeTypesStandardDS2V2', 'VMSizeTypesStandardDS2V2Promo', 'VMSizeTypesStandardDS3', 'VMSizeTypesStandardDS3V2', 'VMSizeTypesStandardDS3V2Promo', 'VMSizeTypesStandardDS4', 'VMSizeTypesStandardDS4V2', 'VMSizeTypesStandardDS4V2Promo', 'VMSizeTypesStandardDS5V2', 'VMSizeTypesStandardDS5V2Promo', 'VMSizeTypesStandardE16V3', 'VMSizeTypesStandardE16sV3', 'VMSizeTypesStandardE2V3', 'VMSizeTypesStandardE2sV3', 'VMSizeTypesStandardE3216sV3', 'VMSizeTypesStandardE328sV3', 'VMSizeTypesStandardE32V3', 'VMSizeTypesStandardE32sV3', 'VMSizeTypesStandardE4V3', 'VMSizeTypesStandardE4sV3', 'VMSizeTypesStandardE6416sV3', 'VMSizeTypesStandardE6432sV3', 'VMSizeTypesStandardE64V3', 'VMSizeTypesStandardE64sV3', 'VMSizeTypesStandardE8V3', 'VMSizeTypesStandardE8sV3', 'VMSizeTypesStandardF1', 'VMSizeTypesStandardF16', 'VMSizeTypesStandardF16s', 'VMSizeTypesStandardF16sV2', 'VMSizeTypesStandardF1s', 'VMSizeTypesStandardF2', 'VMSizeTypesStandardF2s', 'VMSizeTypesStandardF2sV2', 'VMSizeTypesStandardF32sV2', 'VMSizeTypesStandardF4', 'VMSizeTypesStandardF4s', 'VMSizeTypesStandardF4sV2', 'VMSizeTypesStandardF64sV2', 'VMSizeTypesStandardF72sV2', 'VMSizeTypesStandardF8', 'VMSizeTypesStandardF8s', 'VMSizeTypesStandardF8sV2', 'VMSizeTypesStandardG1', 'VMSizeTypesStandardG2', 'VMSizeTypesStandardG3', 'VMSizeTypesStandardG4', 'VMSizeTypesStandardG5', 'VMSizeTypesStandardGS1', 'VMSizeTypesStandardGS2', 'VMSizeTypesStandardGS3', 'VMSizeTypesStandardGS4', 'VMSizeTypesStandardGS44', 'VMSizeTypesStandardGS48', 'VMSizeTypesStandardGS5', 'VMSizeTypesStandardGS516', 'VMSizeTypesStandardGS58', 'VMSizeTypesStandardH16', 'VMSizeTypesStandardH16m', 'VMSizeTypesStandardH16mr', 'VMSizeTypesStandardH16r', 'VMSizeTypesStandardH8', 'VMSizeTypesStandardH8m', 'VMSizeTypesStandardL16s', 'VMSizeTypesStandardL32s', 'VMSizeTypesStandardL4s', 'VMSizeTypesStandardL8s', 'VMSizeTypesStandardM12832ms', 'VMSizeTypesStandardM12864ms', 'VMSizeTypesStandardM128ms', 'VMSizeTypesStandardM128s', 'VMSizeTypesStandardM6416ms', 'VMSizeTypesStandardM6432ms', 'VMSizeTypesStandardM64ms', 'VMSizeTypesStandardM64s', 'VMSizeTypesStandardNC12', 'VMSizeTypesStandardNC12sV2', 'VMSizeTypesStandardNC12sV3', 'VMSizeTypesStandardNC24', 'VMSizeTypesStandardNC24r', 'VMSizeTypesStandardNC24rsV2', 'VMSizeTypesStandardNC24rsV3', 'VMSizeTypesStandardNC24sV2', 'VMSizeTypesStandardNC24sV3', 'VMSizeTypesStandardNC6', 'VMSizeTypesStandardNC6sV2', 'VMSizeTypesStandardNC6sV3', 'VMSizeTypesStandardND12s', 'VMSizeTypesStandardND24rs', 'VMSizeTypesStandardND24s', 'VMSizeTypesStandardND6s', 'VMSizeTypesStandardNV12', 'VMSizeTypesStandardNV24', 'VMSizeTypesStandardNV6'
+ VMSize VMSizeTypes `json:"vmSize,omitempty"`
+ // OsDiskSizeGB - OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified.
+ OsDiskSizeGB *int32 `json:"osDiskSizeGB,omitempty"`
+ // DNSPrefix - DNS prefix to be used to create the FQDN for the agent pool.
+ DNSPrefix *string `json:"dnsPrefix,omitempty"`
+ // Fqdn - READ-ONLY; FQDN for the agent pool.
+ Fqdn *string `json:"fqdn,omitempty"`
+ // Ports - Ports number array used to expose on this agent pool. The default opened ports are different based on your choice of orchestrator.
+ Ports *[]int32 `json:"ports,omitempty"`
+ // StorageProfile - Storage profile specifies what kind of storage used. Choose from StorageAccount and ManagedDisks. Leave it empty, we will choose for you based on the orchestrator choice. Possible values include: 'StorageAccount', 'ManagedDisks'
+ StorageProfile StorageProfileTypes `json:"storageProfile,omitempty"`
+ // VnetSubnetID - VNet SubnetID specifies the VNet's subnet identifier.
+ VnetSubnetID *string `json:"vnetSubnetID,omitempty"`
+ // OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
+ OsType OSType `json:"osType,omitempty"`
+}
+
+// AgentPoolsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type AgentPoolsCreateOrUpdateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *AgentPoolsCreateOrUpdateFuture) Result(client AgentPoolsClient) (ap AgentPool, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.AgentPoolsCreateOrUpdateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if ap.Response.Response, err = future.GetResult(sender); err == nil && ap.Response.Response.StatusCode != http.StatusNoContent {
+ ap, err = client.CreateOrUpdateResponder(ap.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsCreateOrUpdateFuture", "Result", ap.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// AgentPoolsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type AgentPoolsDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *AgentPoolsDeleteFuture) Result(client AgentPoolsClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.AgentPoolsDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.AgentPoolsDeleteFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// AgentPoolUpgradeProfile the list of available upgrades for an agent pool.
+type AgentPoolUpgradeProfile struct {
+ autorest.Response `json:"-"`
+ // ID - READ-ONLY; Id of the agent pool upgrade profile.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the agent pool upgrade profile.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the agent pool upgrade profile.
+ Type *string `json:"type,omitempty"`
+ // AgentPoolUpgradeProfileProperties - Properties of agent pool upgrade profile.
+ *AgentPoolUpgradeProfileProperties `json:"properties,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for AgentPoolUpgradeProfile.
+func (apup AgentPoolUpgradeProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if apup.AgentPoolUpgradeProfileProperties != nil {
+ objectMap["properties"] = apup.AgentPoolUpgradeProfileProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for AgentPoolUpgradeProfile struct.
+func (apup *AgentPoolUpgradeProfile) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ apup.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ apup.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ apup.Type = &typeVar
+ }
+ case "properties":
+ if v != nil {
+ var agentPoolUpgradeProfileProperties AgentPoolUpgradeProfileProperties
+ err = json.Unmarshal(*v, &agentPoolUpgradeProfileProperties)
+ if err != nil {
+ return err
+ }
+ apup.AgentPoolUpgradeProfileProperties = &agentPoolUpgradeProfileProperties
+ }
+ }
+ }
+
+ return nil
+}
+
+// AgentPoolUpgradeProfileProperties the list of available upgrade versions.
+type AgentPoolUpgradeProfileProperties struct {
+ // KubernetesVersion - Kubernetes version (major, minor, patch).
+ KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
+ // OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
+ OsType OSType `json:"osType,omitempty"`
+ // Upgrades - List of orchestrator types and versions available for upgrade.
+ Upgrades *[]AgentPoolUpgradeProfilePropertiesUpgradesItem `json:"upgrades,omitempty"`
+}
+
+// AgentPoolUpgradeProfilePropertiesUpgradesItem ...
+type AgentPoolUpgradeProfilePropertiesUpgradesItem struct {
+ // KubernetesVersion - Kubernetes version (major, minor, patch).
+ KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
+ // IsPreview - Whether Kubernetes version is currently in preview.
+ IsPreview *bool `json:"isPreview,omitempty"`
+}
+
+// CloudError an error response from the Container service.
+type CloudError struct {
+ // Error - Details about the error.
+ Error *CloudErrorBody `json:"error,omitempty"`
+}
+
+// CloudErrorBody an error response from the Container service.
+type CloudErrorBody struct {
+ // Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
+ Code *string `json:"code,omitempty"`
+ // Message - A message describing the error, intended to be suitable for display in a user interface.
+ Message *string `json:"message,omitempty"`
+ // Target - The target of the particular error. For example, the name of the property in error.
+ Target *string `json:"target,omitempty"`
+ // Details - A list of additional details about the error.
+ Details *[]CloudErrorBody `json:"details,omitempty"`
+}
+
+// ContainerService container service.
+type ContainerService struct {
+ autorest.Response `json:"-"`
+ // Properties - Properties of the container service.
+ *Properties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; 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 ContainerService.
+func (cs ContainerService) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if cs.Properties != nil {
+ objectMap["properties"] = cs.Properties
+ }
+ if cs.Location != nil {
+ objectMap["location"] = cs.Location
+ }
+ if cs.Tags != nil {
+ objectMap["tags"] = cs.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ContainerService struct.
+func (cs *ContainerService) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var properties Properties
+ err = json.Unmarshal(*v, &properties)
+ if err != nil {
+ return err
+ }
+ cs.Properties = &properties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ cs.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ cs.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ cs.Type = &typeVar
+ }
+ case "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ cs.Location = &location
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ cs.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// ContainerServicesCreateOrUpdateFutureType an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ContainerServicesCreateOrUpdateFutureType struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ContainerServicesCreateOrUpdateFutureType) Result(client ContainerServicesClient) (cs ContainerService, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesCreateOrUpdateFutureType", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.ContainerServicesCreateOrUpdateFutureType")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if cs.Response.Response, err = future.GetResult(sender); err == nil && cs.Response.Response.StatusCode != http.StatusNoContent {
+ cs, err = client.CreateOrUpdateResponder(cs.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesCreateOrUpdateFutureType", "Result", cs.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// ContainerServicesDeleteFutureType an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ContainerServicesDeleteFutureType struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ContainerServicesDeleteFutureType) Result(client ContainerServicesClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ContainerServicesDeleteFutureType", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.ContainerServicesDeleteFutureType")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// CredentialResult the credential result response.
+type CredentialResult struct {
+ // Name - READ-ONLY; The name of the credential.
+ Name *string `json:"name,omitempty"`
+ // Value - READ-ONLY; Base64-encoded Kubernetes configuration file.
+ Value *[]byte `json:"value,omitempty"`
+}
+
+// CredentialResults the list of credential result response.
+type CredentialResults struct {
+ autorest.Response `json:"-"`
+ // Kubeconfigs - READ-ONLY; Base64-encoded Kubernetes configuration file.
+ Kubeconfigs *[]CredentialResult `json:"kubeconfigs,omitempty"`
+}
+
+// CustomProfile properties to configure a custom container service cluster.
+type CustomProfile struct {
+ // Orchestrator - The name of the custom orchestrator to use.
+ Orchestrator *string `json:"orchestrator,omitempty"`
+}
+
+// DiagnosticsProfile profile for diagnostics on the container service cluster.
+type DiagnosticsProfile struct {
+ // VMDiagnostics - Profile for diagnostics on the container service VMs.
+ VMDiagnostics *VMDiagnostics `json:"vmDiagnostics,omitempty"`
+}
+
+// KeyVaultSecretRef reference to a secret stored in Azure Key Vault.
+type KeyVaultSecretRef struct {
+ // VaultID - Key vault identifier.
+ VaultID *string `json:"vaultID,omitempty"`
+ // SecretName - The secret name.
+ SecretName *string `json:"secretName,omitempty"`
+ // Version - The secret version.
+ Version *string `json:"version,omitempty"`
+}
+
+// LinuxProfile profile for Linux VMs in the container service cluster.
+type LinuxProfile struct {
+ // AdminUsername - The administrator username to use for Linux VMs.
+ AdminUsername *string `json:"adminUsername,omitempty"`
+ // SSH - SSH configuration for Linux-based VMs running on Azure.
+ SSH *SSHConfiguration `json:"ssh,omitempty"`
+}
+
+// ListResult the response from the List Container Services operation.
+type ListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of container services.
+ Value *[]ContainerService `json:"value,omitempty"`
+ // NextLink - READ-ONLY; The URL to get the next set of container service results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// ListResultIterator provides access to a complete listing of ContainerService values.
+type ListResultIterator struct {
+ i int
+ page ListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *ListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *ListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter ListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter ListResultIterator) Response() ListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter ListResultIterator) Value() ContainerService {
+ if !iter.page.NotDone() {
+ return ContainerService{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the ListResultIterator type.
+func NewListResultIterator(page ListResultPage) ListResultIterator {
+ return ListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (lr ListResult) IsEmpty() bool {
+ return lr.Value == nil || len(*lr.Value) == 0
+}
+
+// listResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (lr ListResult) listResultPreparer(ctx context.Context) (*http.Request, error) {
+ if lr.NextLink == nil || len(to.String(lr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(lr.NextLink)))
+}
+
+// ListResultPage contains a page of ContainerService values.
+type ListResultPage struct {
+ fn func(context.Context, ListResult) (ListResult, error)
+ lr ListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *ListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.lr)
+ if err != nil {
+ return err
+ }
+ page.lr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *ListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page ListResultPage) NotDone() bool {
+ return !page.lr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page ListResultPage) Response() ListResult {
+ return page.lr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page ListResultPage) Values() []ContainerService {
+ if page.lr.IsEmpty() {
+ return nil
+ }
+ return *page.lr.Value
+}
+
+// Creates a new instance of the ListResultPage type.
+func NewListResultPage(getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage {
+ return ListResultPage{fn: getNextPage}
+}
+
+// ManagedCluster managed cluster.
+type ManagedCluster struct {
+ autorest.Response `json:"-"`
+ // ManagedClusterProperties - Properties of a managed cluster.
+ *ManagedClusterProperties `json:"properties,omitempty"`
+ // Identity - The identity of the managed cluster, if configured.
+ Identity *ManagedClusterIdentity `json:"identity,omitempty"`
+ // ID - READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; 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 ManagedCluster.
+func (mc ManagedCluster) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if mc.ManagedClusterProperties != nil {
+ objectMap["properties"] = mc.ManagedClusterProperties
+ }
+ if mc.Identity != nil {
+ objectMap["identity"] = mc.Identity
+ }
+ if mc.Location != nil {
+ objectMap["location"] = mc.Location
+ }
+ if mc.Tags != nil {
+ objectMap["tags"] = mc.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ManagedCluster struct.
+func (mc *ManagedCluster) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var managedClusterProperties ManagedClusterProperties
+ err = json.Unmarshal(*v, &managedClusterProperties)
+ if err != nil {
+ return err
+ }
+ mc.ManagedClusterProperties = &managedClusterProperties
+ }
+ case "identity":
+ if v != nil {
+ var identity ManagedClusterIdentity
+ err = json.Unmarshal(*v, &identity)
+ if err != nil {
+ return err
+ }
+ mc.Identity = &identity
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ mc.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ mc.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ mc.Type = &typeVar
+ }
+ case "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ mc.Location = &location
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ mc.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// ManagedClusterAADProfile aADProfile specifies attributes for Azure Active Directory integration.
+type ManagedClusterAADProfile struct {
+ // ClientAppID - The client AAD application ID.
+ ClientAppID *string `json:"clientAppID,omitempty"`
+ // ServerAppID - The server AAD application ID.
+ ServerAppID *string `json:"serverAppID,omitempty"`
+ // ServerAppSecret - The server AAD application secret.
+ ServerAppSecret *string `json:"serverAppSecret,omitempty"`
+ // TenantID - The AAD tenant ID to use for authentication. If not specified, will use the tenant of the deployment subscription.
+ TenantID *string `json:"tenantID,omitempty"`
+}
+
+// ManagedClusterAccessProfile managed cluster Access Profile.
+type ManagedClusterAccessProfile struct {
+ autorest.Response `json:"-"`
+ // AccessProfile - AccessProfile of a managed cluster.
+ *AccessProfile `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; 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 ManagedClusterAccessProfile.
+func (mcap ManagedClusterAccessProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if mcap.AccessProfile != nil {
+ objectMap["properties"] = mcap.AccessProfile
+ }
+ if mcap.Location != nil {
+ objectMap["location"] = mcap.Location
+ }
+ if mcap.Tags != nil {
+ objectMap["tags"] = mcap.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ManagedClusterAccessProfile struct.
+func (mcap *ManagedClusterAccessProfile) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var accessProfile AccessProfile
+ err = json.Unmarshal(*v, &accessProfile)
+ if err != nil {
+ return err
+ }
+ mcap.AccessProfile = &accessProfile
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ mcap.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ mcap.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ mcap.Type = &typeVar
+ }
+ case "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ mcap.Location = &location
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ mcap.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// ManagedClusterAddonProfile a Kubernetes add-on profile for a managed cluster.
+type ManagedClusterAddonProfile struct {
+ // Enabled - Whether the add-on is enabled or not.
+ Enabled *bool `json:"enabled,omitempty"`
+ // Config - Key-value pairs for configuring an add-on.
+ Config map[string]*string `json:"config"`
+}
+
+// MarshalJSON is the custom marshaler for ManagedClusterAddonProfile.
+func (mcap ManagedClusterAddonProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if mcap.Enabled != nil {
+ objectMap["enabled"] = mcap.Enabled
+ }
+ if mcap.Config != nil {
+ objectMap["config"] = mcap.Config
+ }
+ return json.Marshal(objectMap)
+}
+
+// ManagedClusterAgentPoolProfile profile for the container service agent pool.
+type ManagedClusterAgentPoolProfile struct {
+ // Name - Unique name of the agent pool profile in the context of the subscription and resource group.
+ Name *string `json:"name,omitempty"`
+ // Count - Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.
+ Count *int32 `json:"count,omitempty"`
+ // VMSize - Size of agent VMs. Possible values include: 'VMSizeTypesStandardA1', 'VMSizeTypesStandardA10', 'VMSizeTypesStandardA11', 'VMSizeTypesStandardA1V2', 'VMSizeTypesStandardA2', 'VMSizeTypesStandardA2V2', 'VMSizeTypesStandardA2mV2', 'VMSizeTypesStandardA3', 'VMSizeTypesStandardA4', 'VMSizeTypesStandardA4V2', 'VMSizeTypesStandardA4mV2', 'VMSizeTypesStandardA5', 'VMSizeTypesStandardA6', 'VMSizeTypesStandardA7', 'VMSizeTypesStandardA8', 'VMSizeTypesStandardA8V2', 'VMSizeTypesStandardA8mV2', 'VMSizeTypesStandardA9', 'VMSizeTypesStandardB2ms', 'VMSizeTypesStandardB2s', 'VMSizeTypesStandardB4ms', 'VMSizeTypesStandardB8ms', 'VMSizeTypesStandardD1', 'VMSizeTypesStandardD11', 'VMSizeTypesStandardD11V2', 'VMSizeTypesStandardD11V2Promo', 'VMSizeTypesStandardD12', 'VMSizeTypesStandardD12V2', 'VMSizeTypesStandardD12V2Promo', 'VMSizeTypesStandardD13', 'VMSizeTypesStandardD13V2', 'VMSizeTypesStandardD13V2Promo', 'VMSizeTypesStandardD14', 'VMSizeTypesStandardD14V2', 'VMSizeTypesStandardD14V2Promo', 'VMSizeTypesStandardD15V2', 'VMSizeTypesStandardD16V3', 'VMSizeTypesStandardD16sV3', 'VMSizeTypesStandardD1V2', 'VMSizeTypesStandardD2', 'VMSizeTypesStandardD2V2', 'VMSizeTypesStandardD2V2Promo', 'VMSizeTypesStandardD2V3', 'VMSizeTypesStandardD2sV3', 'VMSizeTypesStandardD3', 'VMSizeTypesStandardD32V3', 'VMSizeTypesStandardD32sV3', 'VMSizeTypesStandardD3V2', 'VMSizeTypesStandardD3V2Promo', 'VMSizeTypesStandardD4', 'VMSizeTypesStandardD4V2', 'VMSizeTypesStandardD4V2Promo', 'VMSizeTypesStandardD4V3', 'VMSizeTypesStandardD4sV3', 'VMSizeTypesStandardD5V2', 'VMSizeTypesStandardD5V2Promo', 'VMSizeTypesStandardD64V3', 'VMSizeTypesStandardD64sV3', 'VMSizeTypesStandardD8V3', 'VMSizeTypesStandardD8sV3', 'VMSizeTypesStandardDS1', 'VMSizeTypesStandardDS11', 'VMSizeTypesStandardDS11V2', 'VMSizeTypesStandardDS11V2Promo', 'VMSizeTypesStandardDS12', 'VMSizeTypesStandardDS12V2', 'VMSizeTypesStandardDS12V2Promo', 'VMSizeTypesStandardDS13', 'VMSizeTypesStandardDS132V2', 'VMSizeTypesStandardDS134V2', 'VMSizeTypesStandardDS13V2', 'VMSizeTypesStandardDS13V2Promo', 'VMSizeTypesStandardDS14', 'VMSizeTypesStandardDS144V2', 'VMSizeTypesStandardDS148V2', 'VMSizeTypesStandardDS14V2', 'VMSizeTypesStandardDS14V2Promo', 'VMSizeTypesStandardDS15V2', 'VMSizeTypesStandardDS1V2', 'VMSizeTypesStandardDS2', 'VMSizeTypesStandardDS2V2', 'VMSizeTypesStandardDS2V2Promo', 'VMSizeTypesStandardDS3', 'VMSizeTypesStandardDS3V2', 'VMSizeTypesStandardDS3V2Promo', 'VMSizeTypesStandardDS4', 'VMSizeTypesStandardDS4V2', 'VMSizeTypesStandardDS4V2Promo', 'VMSizeTypesStandardDS5V2', 'VMSizeTypesStandardDS5V2Promo', 'VMSizeTypesStandardE16V3', 'VMSizeTypesStandardE16sV3', 'VMSizeTypesStandardE2V3', 'VMSizeTypesStandardE2sV3', 'VMSizeTypesStandardE3216sV3', 'VMSizeTypesStandardE328sV3', 'VMSizeTypesStandardE32V3', 'VMSizeTypesStandardE32sV3', 'VMSizeTypesStandardE4V3', 'VMSizeTypesStandardE4sV3', 'VMSizeTypesStandardE6416sV3', 'VMSizeTypesStandardE6432sV3', 'VMSizeTypesStandardE64V3', 'VMSizeTypesStandardE64sV3', 'VMSizeTypesStandardE8V3', 'VMSizeTypesStandardE8sV3', 'VMSizeTypesStandardF1', 'VMSizeTypesStandardF16', 'VMSizeTypesStandardF16s', 'VMSizeTypesStandardF16sV2', 'VMSizeTypesStandardF1s', 'VMSizeTypesStandardF2', 'VMSizeTypesStandardF2s', 'VMSizeTypesStandardF2sV2', 'VMSizeTypesStandardF32sV2', 'VMSizeTypesStandardF4', 'VMSizeTypesStandardF4s', 'VMSizeTypesStandardF4sV2', 'VMSizeTypesStandardF64sV2', 'VMSizeTypesStandardF72sV2', 'VMSizeTypesStandardF8', 'VMSizeTypesStandardF8s', 'VMSizeTypesStandardF8sV2', 'VMSizeTypesStandardG1', 'VMSizeTypesStandardG2', 'VMSizeTypesStandardG3', 'VMSizeTypesStandardG4', 'VMSizeTypesStandardG5', 'VMSizeTypesStandardGS1', 'VMSizeTypesStandardGS2', 'VMSizeTypesStandardGS3', 'VMSizeTypesStandardGS4', 'VMSizeTypesStandardGS44', 'VMSizeTypesStandardGS48', 'VMSizeTypesStandardGS5', 'VMSizeTypesStandardGS516', 'VMSizeTypesStandardGS58', 'VMSizeTypesStandardH16', 'VMSizeTypesStandardH16m', 'VMSizeTypesStandardH16mr', 'VMSizeTypesStandardH16r', 'VMSizeTypesStandardH8', 'VMSizeTypesStandardH8m', 'VMSizeTypesStandardL16s', 'VMSizeTypesStandardL32s', 'VMSizeTypesStandardL4s', 'VMSizeTypesStandardL8s', 'VMSizeTypesStandardM12832ms', 'VMSizeTypesStandardM12864ms', 'VMSizeTypesStandardM128ms', 'VMSizeTypesStandardM128s', 'VMSizeTypesStandardM6416ms', 'VMSizeTypesStandardM6432ms', 'VMSizeTypesStandardM64ms', 'VMSizeTypesStandardM64s', 'VMSizeTypesStandardNC12', 'VMSizeTypesStandardNC12sV2', 'VMSizeTypesStandardNC12sV3', 'VMSizeTypesStandardNC24', 'VMSizeTypesStandardNC24r', 'VMSizeTypesStandardNC24rsV2', 'VMSizeTypesStandardNC24rsV3', 'VMSizeTypesStandardNC24sV2', 'VMSizeTypesStandardNC24sV3', 'VMSizeTypesStandardNC6', 'VMSizeTypesStandardNC6sV2', 'VMSizeTypesStandardNC6sV3', 'VMSizeTypesStandardND12s', 'VMSizeTypesStandardND24rs', 'VMSizeTypesStandardND24s', 'VMSizeTypesStandardND6s', 'VMSizeTypesStandardNV12', 'VMSizeTypesStandardNV24', 'VMSizeTypesStandardNV6'
+ VMSize VMSizeTypes `json:"vmSize,omitempty"`
+ // OsDiskSizeGB - OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified.
+ OsDiskSizeGB *int32 `json:"osDiskSizeGB,omitempty"`
+ // VnetSubnetID - VNet SubnetID specifies the VNet's subnet identifier.
+ VnetSubnetID *string `json:"vnetSubnetID,omitempty"`
+ // MaxPods - Maximum number of pods that can run on a node.
+ MaxPods *int32 `json:"maxPods,omitempty"`
+ // OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
+ OsType OSType `json:"osType,omitempty"`
+ // MaxCount - Maximum number of nodes for auto-scaling
+ MaxCount *int32 `json:"maxCount,omitempty"`
+ // MinCount - Minimum number of nodes for auto-scaling
+ MinCount *int32 `json:"minCount,omitempty"`
+ // EnableAutoScaling - Whether to enable auto-scaler
+ EnableAutoScaling *bool `json:"enableAutoScaling,omitempty"`
+ // Type - AgentPoolType represents types of an agent pool. Possible values include: 'VirtualMachineScaleSets', 'AvailabilitySet'
+ Type AgentPoolType `json:"type,omitempty"`
+ // OrchestratorVersion - Version of orchestrator specified when creating the managed cluster.
+ OrchestratorVersion *string `json:"orchestratorVersion,omitempty"`
+ // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty"`
+ // AvailabilityZones - (PREVIEW) Availability zones for nodes. Must use VirtualMachineScaleSets AgentPoolType.
+ AvailabilityZones *[]string `json:"availabilityZones,omitempty"`
+ // EnableNodePublicIP - Enable public IP for nodes
+ EnableNodePublicIP *bool `json:"enableNodePublicIP,omitempty"`
+ // ScaleSetPriority - ScaleSetPriority to be used to specify virtual machine scale set priority. Default to regular. Possible values include: 'Low', 'Regular'
+ ScaleSetPriority ScaleSetPriority `json:"scaleSetPriority,omitempty"`
+ // ScaleSetEvictionPolicy - ScaleSetEvictionPolicy to be used to specify eviction policy for low priority virtual machine scale set. Default to Delete. Possible values include: 'Delete', 'Deallocate'
+ ScaleSetEvictionPolicy ScaleSetEvictionPolicy `json:"scaleSetEvictionPolicy,omitempty"`
+ // NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
+ NodeTaints *[]string `json:"nodeTaints,omitempty"`
+}
+
+// ManagedClusterAgentPoolProfileProperties properties for the container service agent pool profile.
+type ManagedClusterAgentPoolProfileProperties struct {
+ // Count - Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.
+ Count *int32 `json:"count,omitempty"`
+ // VMSize - Size of agent VMs. Possible values include: 'VMSizeTypesStandardA1', 'VMSizeTypesStandardA10', 'VMSizeTypesStandardA11', 'VMSizeTypesStandardA1V2', 'VMSizeTypesStandardA2', 'VMSizeTypesStandardA2V2', 'VMSizeTypesStandardA2mV2', 'VMSizeTypesStandardA3', 'VMSizeTypesStandardA4', 'VMSizeTypesStandardA4V2', 'VMSizeTypesStandardA4mV2', 'VMSizeTypesStandardA5', 'VMSizeTypesStandardA6', 'VMSizeTypesStandardA7', 'VMSizeTypesStandardA8', 'VMSizeTypesStandardA8V2', 'VMSizeTypesStandardA8mV2', 'VMSizeTypesStandardA9', 'VMSizeTypesStandardB2ms', 'VMSizeTypesStandardB2s', 'VMSizeTypesStandardB4ms', 'VMSizeTypesStandardB8ms', 'VMSizeTypesStandardD1', 'VMSizeTypesStandardD11', 'VMSizeTypesStandardD11V2', 'VMSizeTypesStandardD11V2Promo', 'VMSizeTypesStandardD12', 'VMSizeTypesStandardD12V2', 'VMSizeTypesStandardD12V2Promo', 'VMSizeTypesStandardD13', 'VMSizeTypesStandardD13V2', 'VMSizeTypesStandardD13V2Promo', 'VMSizeTypesStandardD14', 'VMSizeTypesStandardD14V2', 'VMSizeTypesStandardD14V2Promo', 'VMSizeTypesStandardD15V2', 'VMSizeTypesStandardD16V3', 'VMSizeTypesStandardD16sV3', 'VMSizeTypesStandardD1V2', 'VMSizeTypesStandardD2', 'VMSizeTypesStandardD2V2', 'VMSizeTypesStandardD2V2Promo', 'VMSizeTypesStandardD2V3', 'VMSizeTypesStandardD2sV3', 'VMSizeTypesStandardD3', 'VMSizeTypesStandardD32V3', 'VMSizeTypesStandardD32sV3', 'VMSizeTypesStandardD3V2', 'VMSizeTypesStandardD3V2Promo', 'VMSizeTypesStandardD4', 'VMSizeTypesStandardD4V2', 'VMSizeTypesStandardD4V2Promo', 'VMSizeTypesStandardD4V3', 'VMSizeTypesStandardD4sV3', 'VMSizeTypesStandardD5V2', 'VMSizeTypesStandardD5V2Promo', 'VMSizeTypesStandardD64V3', 'VMSizeTypesStandardD64sV3', 'VMSizeTypesStandardD8V3', 'VMSizeTypesStandardD8sV3', 'VMSizeTypesStandardDS1', 'VMSizeTypesStandardDS11', 'VMSizeTypesStandardDS11V2', 'VMSizeTypesStandardDS11V2Promo', 'VMSizeTypesStandardDS12', 'VMSizeTypesStandardDS12V2', 'VMSizeTypesStandardDS12V2Promo', 'VMSizeTypesStandardDS13', 'VMSizeTypesStandardDS132V2', 'VMSizeTypesStandardDS134V2', 'VMSizeTypesStandardDS13V2', 'VMSizeTypesStandardDS13V2Promo', 'VMSizeTypesStandardDS14', 'VMSizeTypesStandardDS144V2', 'VMSizeTypesStandardDS148V2', 'VMSizeTypesStandardDS14V2', 'VMSizeTypesStandardDS14V2Promo', 'VMSizeTypesStandardDS15V2', 'VMSizeTypesStandardDS1V2', 'VMSizeTypesStandardDS2', 'VMSizeTypesStandardDS2V2', 'VMSizeTypesStandardDS2V2Promo', 'VMSizeTypesStandardDS3', 'VMSizeTypesStandardDS3V2', 'VMSizeTypesStandardDS3V2Promo', 'VMSizeTypesStandardDS4', 'VMSizeTypesStandardDS4V2', 'VMSizeTypesStandardDS4V2Promo', 'VMSizeTypesStandardDS5V2', 'VMSizeTypesStandardDS5V2Promo', 'VMSizeTypesStandardE16V3', 'VMSizeTypesStandardE16sV3', 'VMSizeTypesStandardE2V3', 'VMSizeTypesStandardE2sV3', 'VMSizeTypesStandardE3216sV3', 'VMSizeTypesStandardE328sV3', 'VMSizeTypesStandardE32V3', 'VMSizeTypesStandardE32sV3', 'VMSizeTypesStandardE4V3', 'VMSizeTypesStandardE4sV3', 'VMSizeTypesStandardE6416sV3', 'VMSizeTypesStandardE6432sV3', 'VMSizeTypesStandardE64V3', 'VMSizeTypesStandardE64sV3', 'VMSizeTypesStandardE8V3', 'VMSizeTypesStandardE8sV3', 'VMSizeTypesStandardF1', 'VMSizeTypesStandardF16', 'VMSizeTypesStandardF16s', 'VMSizeTypesStandardF16sV2', 'VMSizeTypesStandardF1s', 'VMSizeTypesStandardF2', 'VMSizeTypesStandardF2s', 'VMSizeTypesStandardF2sV2', 'VMSizeTypesStandardF32sV2', 'VMSizeTypesStandardF4', 'VMSizeTypesStandardF4s', 'VMSizeTypesStandardF4sV2', 'VMSizeTypesStandardF64sV2', 'VMSizeTypesStandardF72sV2', 'VMSizeTypesStandardF8', 'VMSizeTypesStandardF8s', 'VMSizeTypesStandardF8sV2', 'VMSizeTypesStandardG1', 'VMSizeTypesStandardG2', 'VMSizeTypesStandardG3', 'VMSizeTypesStandardG4', 'VMSizeTypesStandardG5', 'VMSizeTypesStandardGS1', 'VMSizeTypesStandardGS2', 'VMSizeTypesStandardGS3', 'VMSizeTypesStandardGS4', 'VMSizeTypesStandardGS44', 'VMSizeTypesStandardGS48', 'VMSizeTypesStandardGS5', 'VMSizeTypesStandardGS516', 'VMSizeTypesStandardGS58', 'VMSizeTypesStandardH16', 'VMSizeTypesStandardH16m', 'VMSizeTypesStandardH16mr', 'VMSizeTypesStandardH16r', 'VMSizeTypesStandardH8', 'VMSizeTypesStandardH8m', 'VMSizeTypesStandardL16s', 'VMSizeTypesStandardL32s', 'VMSizeTypesStandardL4s', 'VMSizeTypesStandardL8s', 'VMSizeTypesStandardM12832ms', 'VMSizeTypesStandardM12864ms', 'VMSizeTypesStandardM128ms', 'VMSizeTypesStandardM128s', 'VMSizeTypesStandardM6416ms', 'VMSizeTypesStandardM6432ms', 'VMSizeTypesStandardM64ms', 'VMSizeTypesStandardM64s', 'VMSizeTypesStandardNC12', 'VMSizeTypesStandardNC12sV2', 'VMSizeTypesStandardNC12sV3', 'VMSizeTypesStandardNC24', 'VMSizeTypesStandardNC24r', 'VMSizeTypesStandardNC24rsV2', 'VMSizeTypesStandardNC24rsV3', 'VMSizeTypesStandardNC24sV2', 'VMSizeTypesStandardNC24sV3', 'VMSizeTypesStandardNC6', 'VMSizeTypesStandardNC6sV2', 'VMSizeTypesStandardNC6sV3', 'VMSizeTypesStandardND12s', 'VMSizeTypesStandardND24rs', 'VMSizeTypesStandardND24s', 'VMSizeTypesStandardND6s', 'VMSizeTypesStandardNV12', 'VMSizeTypesStandardNV24', 'VMSizeTypesStandardNV6'
+ VMSize VMSizeTypes `json:"vmSize,omitempty"`
+ // OsDiskSizeGB - OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified.
+ OsDiskSizeGB *int32 `json:"osDiskSizeGB,omitempty"`
+ // VnetSubnetID - VNet SubnetID specifies the VNet's subnet identifier.
+ VnetSubnetID *string `json:"vnetSubnetID,omitempty"`
+ // MaxPods - Maximum number of pods that can run on a node.
+ MaxPods *int32 `json:"maxPods,omitempty"`
+ // OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
+ OsType OSType `json:"osType,omitempty"`
+ // MaxCount - Maximum number of nodes for auto-scaling
+ MaxCount *int32 `json:"maxCount,omitempty"`
+ // MinCount - Minimum number of nodes for auto-scaling
+ MinCount *int32 `json:"minCount,omitempty"`
+ // EnableAutoScaling - Whether to enable auto-scaler
+ EnableAutoScaling *bool `json:"enableAutoScaling,omitempty"`
+ // Type - AgentPoolType represents types of an agent pool. Possible values include: 'VirtualMachineScaleSets', 'AvailabilitySet'
+ Type AgentPoolType `json:"type,omitempty"`
+ // OrchestratorVersion - Version of orchestrator specified when creating the managed cluster.
+ OrchestratorVersion *string `json:"orchestratorVersion,omitempty"`
+ // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty"`
+ // AvailabilityZones - (PREVIEW) Availability zones for nodes. Must use VirtualMachineScaleSets AgentPoolType.
+ AvailabilityZones *[]string `json:"availabilityZones,omitempty"`
+ // EnableNodePublicIP - Enable public IP for nodes
+ EnableNodePublicIP *bool `json:"enableNodePublicIP,omitempty"`
+ // ScaleSetPriority - ScaleSetPriority to be used to specify virtual machine scale set priority. Default to regular. Possible values include: 'Low', 'Regular'
+ ScaleSetPriority ScaleSetPriority `json:"scaleSetPriority,omitempty"`
+ // ScaleSetEvictionPolicy - ScaleSetEvictionPolicy to be used to specify eviction policy for low priority virtual machine scale set. Default to Delete. Possible values include: 'Delete', 'Deallocate'
+ ScaleSetEvictionPolicy ScaleSetEvictionPolicy `json:"scaleSetEvictionPolicy,omitempty"`
+ // NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
+ NodeTaints *[]string `json:"nodeTaints,omitempty"`
+}
+
+// ManagedClusterAPIServerAccessProfile access profile for managed cluster API server.
+type ManagedClusterAPIServerAccessProfile struct {
+ // AuthorizedIPRanges - Authorized IP Ranges to kubernetes API server.
+ AuthorizedIPRanges *[]string `json:"authorizedIPRanges,omitempty"`
+ // EnablePrivateCluster - Whether to create the cluster as a private cluster or not.
+ EnablePrivateCluster *bool `json:"enablePrivateCluster,omitempty"`
+}
+
+// ManagedClusterIdentity identity for the managed cluster.
+type ManagedClusterIdentity struct {
+ // PrincipalID - READ-ONLY; The principal id of the system assigned identity which is used by master components.
+ PrincipalID *string `json:"principalId,omitempty"`
+ // TenantID - READ-ONLY; The tenant id of the system assigned identity which is used by master components.
+ TenantID *string `json:"tenantId,omitempty"`
+ // Type - The type of identity used for the managed cluster. Type 'SystemAssigned' will use an implicitly created identity in master components and an auto-created user assigned identity in MC_ resource group in agent nodes. Type 'None' will not use MSI for the managed cluster, service principal will be used instead. Possible values include: 'SystemAssigned', 'None'
+ Type ResourceIdentityType `json:"type,omitempty"`
+}
+
+// ManagedClusterListResult the response from the List Managed Clusters operation.
+type ManagedClusterListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of managed clusters.
+ Value *[]ManagedCluster `json:"value,omitempty"`
+ // NextLink - READ-ONLY; The URL to get the next set of managed cluster results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// ManagedClusterListResultIterator provides access to a complete listing of ManagedCluster values.
+type ManagedClusterListResultIterator struct {
+ i int
+ page ManagedClusterListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *ManagedClusterListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClusterListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *ManagedClusterListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter ManagedClusterListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter ManagedClusterListResultIterator) Response() ManagedClusterListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter ManagedClusterListResultIterator) Value() ManagedCluster {
+ if !iter.page.NotDone() {
+ return ManagedCluster{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the ManagedClusterListResultIterator type.
+func NewManagedClusterListResultIterator(page ManagedClusterListResultPage) ManagedClusterListResultIterator {
+ return ManagedClusterListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (mclr ManagedClusterListResult) IsEmpty() bool {
+ return mclr.Value == nil || len(*mclr.Value) == 0
+}
+
+// managedClusterListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (mclr ManagedClusterListResult) managedClusterListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if mclr.NextLink == nil || len(to.String(mclr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(mclr.NextLink)))
+}
+
+// ManagedClusterListResultPage contains a page of ManagedCluster values.
+type ManagedClusterListResultPage struct {
+ fn func(context.Context, ManagedClusterListResult) (ManagedClusterListResult, error)
+ mclr ManagedClusterListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *ManagedClusterListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ManagedClusterListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.mclr)
+ if err != nil {
+ return err
+ }
+ page.mclr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *ManagedClusterListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page ManagedClusterListResultPage) NotDone() bool {
+ return !page.mclr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page ManagedClusterListResultPage) Response() ManagedClusterListResult {
+ return page.mclr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page ManagedClusterListResultPage) Values() []ManagedCluster {
+ if page.mclr.IsEmpty() {
+ return nil
+ }
+ return *page.mclr.Value
+}
+
+// Creates a new instance of the ManagedClusterListResultPage type.
+func NewManagedClusterListResultPage(getNextPage func(context.Context, ManagedClusterListResult) (ManagedClusterListResult, error)) ManagedClusterListResultPage {
+ return ManagedClusterListResultPage{fn: getNextPage}
+}
+
+// ManagedClusterLoadBalancerProfile profile of the managed cluster load balancer
+type ManagedClusterLoadBalancerProfile struct {
+ // ManagedOutboundIPs - Desired managed outbound IPs for the cluster load balancer.
+ ManagedOutboundIPs *ManagedClusterLoadBalancerProfileManagedOutboundIPs `json:"managedOutboundIPs,omitempty"`
+ // OutboundIPPrefixes - Desired outbound IP Prefix resources for the cluster load balancer.
+ OutboundIPPrefixes *ManagedClusterLoadBalancerProfileOutboundIPPrefixes `json:"outboundIPPrefixes,omitempty"`
+ // OutboundIPs - Desired outbound IP resources for the cluster load balancer.
+ OutboundIPs *ManagedClusterLoadBalancerProfileOutboundIPs `json:"outboundIPs,omitempty"`
+ // EffectiveOutboundIPs - The effective outbound IP resources of the cluster load balancer.
+ EffectiveOutboundIPs *[]ResourceReference `json:"effectiveOutboundIPs,omitempty"`
+}
+
+// ManagedClusterLoadBalancerProfileManagedOutboundIPs desired managed outbound IPs for the cluster load
+// balancer.
+type ManagedClusterLoadBalancerProfileManagedOutboundIPs struct {
+ // Count - Desired number of outbound IP created/managed by Azure for the cluster load balancer. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.
+ Count *int32 `json:"count,omitempty"`
+}
+
+// ManagedClusterLoadBalancerProfileOutboundIPPrefixes desired outbound IP Prefix resources for the cluster
+// load balancer.
+type ManagedClusterLoadBalancerProfileOutboundIPPrefixes struct {
+ // PublicIPPrefixes - A list of public IP prefix resources.
+ PublicIPPrefixes *[]ResourceReference `json:"publicIPPrefixes,omitempty"`
+}
+
+// ManagedClusterLoadBalancerProfileOutboundIPs desired outbound IP resources for the cluster load
+// balancer.
+type ManagedClusterLoadBalancerProfileOutboundIPs struct {
+ // PublicIPs - A list of public IP resources.
+ PublicIPs *[]ResourceReference `json:"publicIPs,omitempty"`
+}
+
+// ManagedClusterPoolUpgradeProfile the list of available upgrade versions.
+type ManagedClusterPoolUpgradeProfile struct {
+ // KubernetesVersion - Kubernetes version (major, minor, patch).
+ KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
+ // Name - Pool name.
+ Name *string `json:"name,omitempty"`
+ // OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
+ OsType OSType `json:"osType,omitempty"`
+ // Upgrades - List of orchestrator types and versions available for upgrade.
+ Upgrades *[]ManagedClusterPoolUpgradeProfileUpgradesItem `json:"upgrades,omitempty"`
+}
+
+// ManagedClusterPoolUpgradeProfileUpgradesItem ...
+type ManagedClusterPoolUpgradeProfileUpgradesItem struct {
+ // KubernetesVersion - Kubernetes version (major, minor, patch).
+ KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
+ // IsPreview - Whether Kubernetes version is currently in preview.
+ IsPreview *bool `json:"isPreview,omitempty"`
+}
+
+// ManagedClusterProperties properties of the managed cluster.
+type ManagedClusterProperties struct {
+ // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty"`
+ // MaxAgentPools - READ-ONLY; The max number of agent pools for the managed cluster.
+ MaxAgentPools *int32 `json:"maxAgentPools,omitempty"`
+ // KubernetesVersion - Version of Kubernetes specified when creating the managed cluster.
+ KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
+ // DNSPrefix - DNS prefix specified when creating the managed cluster.
+ DNSPrefix *string `json:"dnsPrefix,omitempty"`
+ // Fqdn - READ-ONLY; FQDN for the master pool.
+ Fqdn *string `json:"fqdn,omitempty"`
+ // AgentPoolProfiles - Properties of the agent pool.
+ AgentPoolProfiles *[]ManagedClusterAgentPoolProfile `json:"agentPoolProfiles,omitempty"`
+ // LinuxProfile - Profile for Linux VMs in the container service cluster.
+ LinuxProfile *LinuxProfile `json:"linuxProfile,omitempty"`
+ // WindowsProfile - Profile for Windows VMs in the container service cluster.
+ WindowsProfile *ManagedClusterWindowsProfile `json:"windowsProfile,omitempty"`
+ // ServicePrincipalProfile - Information about a service principal identity for the cluster to use for manipulating Azure APIs.
+ ServicePrincipalProfile *ManagedClusterServicePrincipalProfile `json:"servicePrincipalProfile,omitempty"`
+ // AddonProfiles - Profile of managed cluster add-on.
+ AddonProfiles map[string]*ManagedClusterAddonProfile `json:"addonProfiles"`
+ // NodeResourceGroup - Name of the resource group containing agent pool nodes.
+ NodeResourceGroup *string `json:"nodeResourceGroup,omitempty"`
+ // EnableRBAC - Whether to enable Kubernetes Role-Based Access Control.
+ EnableRBAC *bool `json:"enableRBAC,omitempty"`
+ // EnablePodSecurityPolicy - (PREVIEW) Whether to enable Kubernetes Pod security policy.
+ EnablePodSecurityPolicy *bool `json:"enablePodSecurityPolicy,omitempty"`
+ // NetworkProfile - Profile of network configuration.
+ NetworkProfile *NetworkProfileType `json:"networkProfile,omitempty"`
+ // AadProfile - Profile of Azure Active Directory configuration.
+ AadProfile *ManagedClusterAADProfile `json:"aadProfile,omitempty"`
+ // APIServerAccessProfile - Access profile for managed cluster API server.
+ APIServerAccessProfile *ManagedClusterAPIServerAccessProfile `json:"apiServerAccessProfile,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ManagedClusterProperties.
+func (mcp ManagedClusterProperties) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if mcp.KubernetesVersion != nil {
+ objectMap["kubernetesVersion"] = mcp.KubernetesVersion
+ }
+ if mcp.DNSPrefix != nil {
+ objectMap["dnsPrefix"] = mcp.DNSPrefix
+ }
+ if mcp.AgentPoolProfiles != nil {
+ objectMap["agentPoolProfiles"] = mcp.AgentPoolProfiles
+ }
+ if mcp.LinuxProfile != nil {
+ objectMap["linuxProfile"] = mcp.LinuxProfile
+ }
+ if mcp.WindowsProfile != nil {
+ objectMap["windowsProfile"] = mcp.WindowsProfile
+ }
+ if mcp.ServicePrincipalProfile != nil {
+ objectMap["servicePrincipalProfile"] = mcp.ServicePrincipalProfile
+ }
+ if mcp.AddonProfiles != nil {
+ objectMap["addonProfiles"] = mcp.AddonProfiles
+ }
+ if mcp.NodeResourceGroup != nil {
+ objectMap["nodeResourceGroup"] = mcp.NodeResourceGroup
+ }
+ if mcp.EnableRBAC != nil {
+ objectMap["enableRBAC"] = mcp.EnableRBAC
+ }
+ if mcp.EnablePodSecurityPolicy != nil {
+ objectMap["enablePodSecurityPolicy"] = mcp.EnablePodSecurityPolicy
+ }
+ if mcp.NetworkProfile != nil {
+ objectMap["networkProfile"] = mcp.NetworkProfile
+ }
+ if mcp.AadProfile != nil {
+ objectMap["aadProfile"] = mcp.AadProfile
+ }
+ if mcp.APIServerAccessProfile != nil {
+ objectMap["apiServerAccessProfile"] = mcp.APIServerAccessProfile
+ }
+ return json.Marshal(objectMap)
+}
+
+// ManagedClustersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ManagedClustersCreateOrUpdateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ManagedClustersCreateOrUpdateFuture) Result(client ManagedClustersClient) (mc ManagedCluster, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersCreateOrUpdateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.ManagedClustersCreateOrUpdateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if mc.Response.Response, err = future.GetResult(sender); err == nil && mc.Response.Response.StatusCode != http.StatusNoContent {
+ mc, err = client.CreateOrUpdateResponder(mc.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersCreateOrUpdateFuture", "Result", mc.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// ManagedClustersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type ManagedClustersDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ManagedClustersDeleteFuture) Result(client ManagedClustersClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.ManagedClustersDeleteFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// ManagedClusterServicePrincipalProfile information about a service principal identity for the cluster to
+// use for manipulating Azure APIs.
+type ManagedClusterServicePrincipalProfile struct {
+ // ClientID - The ID for the service principal.
+ ClientID *string `json:"clientId,omitempty"`
+ // Secret - The secret password associated with the service principal in plain text.
+ Secret *string `json:"secret,omitempty"`
+}
+
+// ManagedClustersResetAADProfileFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ManagedClustersResetAADProfileFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ManagedClustersResetAADProfileFuture) Result(client ManagedClustersClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersResetAADProfileFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.ManagedClustersResetAADProfileFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// ManagedClustersResetServicePrincipalProfileFuture an abstraction for monitoring and retrieving the
+// results of a long-running operation.
+type ManagedClustersResetServicePrincipalProfileFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ManagedClustersResetServicePrincipalProfileFuture) Result(client ManagedClustersClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersResetServicePrincipalProfileFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.ManagedClustersResetServicePrincipalProfileFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// ManagedClustersRotateClusterCertificatesFuture an abstraction for monitoring and retrieving the results
+// of a long-running operation.
+type ManagedClustersRotateClusterCertificatesFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ManagedClustersRotateClusterCertificatesFuture) Result(client ManagedClustersClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersRotateClusterCertificatesFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.ManagedClustersRotateClusterCertificatesFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// ManagedClustersUpdateTagsFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ManagedClustersUpdateTagsFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ManagedClustersUpdateTagsFuture) Result(client ManagedClustersClient) (mc ManagedCluster, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersUpdateTagsFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.ManagedClustersUpdateTagsFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if mc.Response.Response, err = future.GetResult(sender); err == nil && mc.Response.Response.StatusCode != http.StatusNoContent {
+ mc, err = client.UpdateTagsResponder(mc.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.ManagedClustersUpdateTagsFuture", "Result", mc.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// ManagedClusterUpgradeProfile the list of available upgrades for compute pools.
+type ManagedClusterUpgradeProfile struct {
+ autorest.Response `json:"-"`
+ // ID - READ-ONLY; Id of upgrade profile.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of upgrade profile.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of upgrade profile.
+ Type *string `json:"type,omitempty"`
+ // ManagedClusterUpgradeProfileProperties - Properties of upgrade profile.
+ *ManagedClusterUpgradeProfileProperties `json:"properties,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ManagedClusterUpgradeProfile.
+func (mcup ManagedClusterUpgradeProfile) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if mcup.ManagedClusterUpgradeProfileProperties != nil {
+ objectMap["properties"] = mcup.ManagedClusterUpgradeProfileProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ManagedClusterUpgradeProfile struct.
+func (mcup *ManagedClusterUpgradeProfile) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ mcup.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ mcup.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ mcup.Type = &typeVar
+ }
+ case "properties":
+ if v != nil {
+ var managedClusterUpgradeProfileProperties ManagedClusterUpgradeProfileProperties
+ err = json.Unmarshal(*v, &managedClusterUpgradeProfileProperties)
+ if err != nil {
+ return err
+ }
+ mcup.ManagedClusterUpgradeProfileProperties = &managedClusterUpgradeProfileProperties
+ }
+ }
+ }
+
+ return nil
+}
+
+// ManagedClusterUpgradeProfileProperties control plane and agent pool upgrade profiles.
+type ManagedClusterUpgradeProfileProperties struct {
+ // ControlPlaneProfile - The list of available upgrade versions for the control plane.
+ ControlPlaneProfile *ManagedClusterPoolUpgradeProfile `json:"controlPlaneProfile,omitempty"`
+ // AgentPoolProfiles - The list of available upgrade versions for agent pools.
+ AgentPoolProfiles *[]ManagedClusterPoolUpgradeProfile `json:"agentPoolProfiles,omitempty"`
+}
+
+// ManagedClusterWindowsProfile profile for Windows VMs in the container service cluster.
+type ManagedClusterWindowsProfile struct {
+ // AdminUsername - The administrator username to use for Windows VMs.
+ AdminUsername *string `json:"adminUsername,omitempty"`
+ // AdminPassword - The administrator password to use for Windows VMs.
+ AdminPassword *string `json:"adminPassword,omitempty"`
+}
+
+// MasterProfile profile for the container service master.
+type MasterProfile struct {
+ // Count - Number of masters (VMs) in the container service cluster. Allowed values are 1, 3, and 5. The default value is 1.
+ Count *int32 `json:"count,omitempty"`
+ // DNSPrefix - DNS prefix to be used to create the FQDN for the master pool.
+ DNSPrefix *string `json:"dnsPrefix,omitempty"`
+ // VMSize - Size of agent VMs. Possible values include: 'VMSizeTypesStandardA1', 'VMSizeTypesStandardA10', 'VMSizeTypesStandardA11', 'VMSizeTypesStandardA1V2', 'VMSizeTypesStandardA2', 'VMSizeTypesStandardA2V2', 'VMSizeTypesStandardA2mV2', 'VMSizeTypesStandardA3', 'VMSizeTypesStandardA4', 'VMSizeTypesStandardA4V2', 'VMSizeTypesStandardA4mV2', 'VMSizeTypesStandardA5', 'VMSizeTypesStandardA6', 'VMSizeTypesStandardA7', 'VMSizeTypesStandardA8', 'VMSizeTypesStandardA8V2', 'VMSizeTypesStandardA8mV2', 'VMSizeTypesStandardA9', 'VMSizeTypesStandardB2ms', 'VMSizeTypesStandardB2s', 'VMSizeTypesStandardB4ms', 'VMSizeTypesStandardB8ms', 'VMSizeTypesStandardD1', 'VMSizeTypesStandardD11', 'VMSizeTypesStandardD11V2', 'VMSizeTypesStandardD11V2Promo', 'VMSizeTypesStandardD12', 'VMSizeTypesStandardD12V2', 'VMSizeTypesStandardD12V2Promo', 'VMSizeTypesStandardD13', 'VMSizeTypesStandardD13V2', 'VMSizeTypesStandardD13V2Promo', 'VMSizeTypesStandardD14', 'VMSizeTypesStandardD14V2', 'VMSizeTypesStandardD14V2Promo', 'VMSizeTypesStandardD15V2', 'VMSizeTypesStandardD16V3', 'VMSizeTypesStandardD16sV3', 'VMSizeTypesStandardD1V2', 'VMSizeTypesStandardD2', 'VMSizeTypesStandardD2V2', 'VMSizeTypesStandardD2V2Promo', 'VMSizeTypesStandardD2V3', 'VMSizeTypesStandardD2sV3', 'VMSizeTypesStandardD3', 'VMSizeTypesStandardD32V3', 'VMSizeTypesStandardD32sV3', 'VMSizeTypesStandardD3V2', 'VMSizeTypesStandardD3V2Promo', 'VMSizeTypesStandardD4', 'VMSizeTypesStandardD4V2', 'VMSizeTypesStandardD4V2Promo', 'VMSizeTypesStandardD4V3', 'VMSizeTypesStandardD4sV3', 'VMSizeTypesStandardD5V2', 'VMSizeTypesStandardD5V2Promo', 'VMSizeTypesStandardD64V3', 'VMSizeTypesStandardD64sV3', 'VMSizeTypesStandardD8V3', 'VMSizeTypesStandardD8sV3', 'VMSizeTypesStandardDS1', 'VMSizeTypesStandardDS11', 'VMSizeTypesStandardDS11V2', 'VMSizeTypesStandardDS11V2Promo', 'VMSizeTypesStandardDS12', 'VMSizeTypesStandardDS12V2', 'VMSizeTypesStandardDS12V2Promo', 'VMSizeTypesStandardDS13', 'VMSizeTypesStandardDS132V2', 'VMSizeTypesStandardDS134V2', 'VMSizeTypesStandardDS13V2', 'VMSizeTypesStandardDS13V2Promo', 'VMSizeTypesStandardDS14', 'VMSizeTypesStandardDS144V2', 'VMSizeTypesStandardDS148V2', 'VMSizeTypesStandardDS14V2', 'VMSizeTypesStandardDS14V2Promo', 'VMSizeTypesStandardDS15V2', 'VMSizeTypesStandardDS1V2', 'VMSizeTypesStandardDS2', 'VMSizeTypesStandardDS2V2', 'VMSizeTypesStandardDS2V2Promo', 'VMSizeTypesStandardDS3', 'VMSizeTypesStandardDS3V2', 'VMSizeTypesStandardDS3V2Promo', 'VMSizeTypesStandardDS4', 'VMSizeTypesStandardDS4V2', 'VMSizeTypesStandardDS4V2Promo', 'VMSizeTypesStandardDS5V2', 'VMSizeTypesStandardDS5V2Promo', 'VMSizeTypesStandardE16V3', 'VMSizeTypesStandardE16sV3', 'VMSizeTypesStandardE2V3', 'VMSizeTypesStandardE2sV3', 'VMSizeTypesStandardE3216sV3', 'VMSizeTypesStandardE328sV3', 'VMSizeTypesStandardE32V3', 'VMSizeTypesStandardE32sV3', 'VMSizeTypesStandardE4V3', 'VMSizeTypesStandardE4sV3', 'VMSizeTypesStandardE6416sV3', 'VMSizeTypesStandardE6432sV3', 'VMSizeTypesStandardE64V3', 'VMSizeTypesStandardE64sV3', 'VMSizeTypesStandardE8V3', 'VMSizeTypesStandardE8sV3', 'VMSizeTypesStandardF1', 'VMSizeTypesStandardF16', 'VMSizeTypesStandardF16s', 'VMSizeTypesStandardF16sV2', 'VMSizeTypesStandardF1s', 'VMSizeTypesStandardF2', 'VMSizeTypesStandardF2s', 'VMSizeTypesStandardF2sV2', 'VMSizeTypesStandardF32sV2', 'VMSizeTypesStandardF4', 'VMSizeTypesStandardF4s', 'VMSizeTypesStandardF4sV2', 'VMSizeTypesStandardF64sV2', 'VMSizeTypesStandardF72sV2', 'VMSizeTypesStandardF8', 'VMSizeTypesStandardF8s', 'VMSizeTypesStandardF8sV2', 'VMSizeTypesStandardG1', 'VMSizeTypesStandardG2', 'VMSizeTypesStandardG3', 'VMSizeTypesStandardG4', 'VMSizeTypesStandardG5', 'VMSizeTypesStandardGS1', 'VMSizeTypesStandardGS2', 'VMSizeTypesStandardGS3', 'VMSizeTypesStandardGS4', 'VMSizeTypesStandardGS44', 'VMSizeTypesStandardGS48', 'VMSizeTypesStandardGS5', 'VMSizeTypesStandardGS516', 'VMSizeTypesStandardGS58', 'VMSizeTypesStandardH16', 'VMSizeTypesStandardH16m', 'VMSizeTypesStandardH16mr', 'VMSizeTypesStandardH16r', 'VMSizeTypesStandardH8', 'VMSizeTypesStandardH8m', 'VMSizeTypesStandardL16s', 'VMSizeTypesStandardL32s', 'VMSizeTypesStandardL4s', 'VMSizeTypesStandardL8s', 'VMSizeTypesStandardM12832ms', 'VMSizeTypesStandardM12864ms', 'VMSizeTypesStandardM128ms', 'VMSizeTypesStandardM128s', 'VMSizeTypesStandardM6416ms', 'VMSizeTypesStandardM6432ms', 'VMSizeTypesStandardM64ms', 'VMSizeTypesStandardM64s', 'VMSizeTypesStandardNC12', 'VMSizeTypesStandardNC12sV2', 'VMSizeTypesStandardNC12sV3', 'VMSizeTypesStandardNC24', 'VMSizeTypesStandardNC24r', 'VMSizeTypesStandardNC24rsV2', 'VMSizeTypesStandardNC24rsV3', 'VMSizeTypesStandardNC24sV2', 'VMSizeTypesStandardNC24sV3', 'VMSizeTypesStandardNC6', 'VMSizeTypesStandardNC6sV2', 'VMSizeTypesStandardNC6sV3', 'VMSizeTypesStandardND12s', 'VMSizeTypesStandardND24rs', 'VMSizeTypesStandardND24s', 'VMSizeTypesStandardND6s', 'VMSizeTypesStandardNV12', 'VMSizeTypesStandardNV24', 'VMSizeTypesStandardNV6'
+ VMSize VMSizeTypes `json:"vmSize,omitempty"`
+ // OsDiskSizeGB - OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified.
+ OsDiskSizeGB *int32 `json:"osDiskSizeGB,omitempty"`
+ // VnetSubnetID - VNet SubnetID specifies the VNet's subnet identifier.
+ VnetSubnetID *string `json:"vnetSubnetID,omitempty"`
+ // FirstConsecutiveStaticIP - FirstConsecutiveStaticIP used to specify the first static ip of masters.
+ FirstConsecutiveStaticIP *string `json:"firstConsecutiveStaticIP,omitempty"`
+ // StorageProfile - Storage profile specifies what kind of storage used. Choose from StorageAccount and ManagedDisks. Leave it empty, we will choose for you based on the orchestrator choice. Possible values include: 'StorageAccount', 'ManagedDisks'
+ StorageProfile StorageProfileTypes `json:"storageProfile,omitempty"`
+ // Fqdn - READ-ONLY; FQDN for the master pool.
+ Fqdn *string `json:"fqdn,omitempty"`
+}
+
+// NetworkProfile represents the OpenShift networking configuration
+type NetworkProfile struct {
+ // VnetCidr - CIDR for the OpenShift Vnet.
+ VnetCidr *string `json:"vnetCidr,omitempty"`
+ // PeerVnetID - CIDR of the Vnet to peer.
+ PeerVnetID *string `json:"peerVnetId,omitempty"`
+ // VnetID - ID of the Vnet created for OSA cluster.
+ VnetID *string `json:"vnetId,omitempty"`
+}
+
+// NetworkProfileType profile of network configuration.
+type NetworkProfileType struct {
+ // NetworkPlugin - Network plugin used for building Kubernetes network. Possible values include: 'Azure', 'Kubenet'
+ NetworkPlugin NetworkPlugin `json:"networkPlugin,omitempty"`
+ // NetworkPolicy - Network policy used for building Kubernetes network. Possible values include: 'NetworkPolicyCalico', 'NetworkPolicyAzure'
+ NetworkPolicy NetworkPolicy `json:"networkPolicy,omitempty"`
+ // PodCidr - A CIDR notation IP range from which to assign pod IPs when kubenet is used.
+ PodCidr *string `json:"podCidr,omitempty"`
+ // ServiceCidr - A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges.
+ ServiceCidr *string `json:"serviceCidr,omitempty"`
+ // DNSServiceIP - An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr.
+ DNSServiceIP *string `json:"dnsServiceIP,omitempty"`
+ // DockerBridgeCidr - A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range.
+ DockerBridgeCidr *string `json:"dockerBridgeCidr,omitempty"`
+ // LoadBalancerSku - The load balancer sku for the managed cluster. Possible values include: 'Standard', 'Basic'
+ LoadBalancerSku LoadBalancerSku `json:"loadBalancerSku,omitempty"`
+ // LoadBalancerProfile - Profile of the cluster load balancer.
+ LoadBalancerProfile *ManagedClusterLoadBalancerProfile `json:"loadBalancerProfile,omitempty"`
+}
+
+// OpenShiftManagedCluster openShift Managed cluster.
+type OpenShiftManagedCluster struct {
+ autorest.Response `json:"-"`
+ // Plan - Define the resource plan as required by ARM for billing purposes
+ Plan *PurchasePlan `json:"plan,omitempty"`
+ // OpenShiftManagedClusterProperties - Properties of a OpenShift managed cluster.
+ *OpenShiftManagedClusterProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; 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 OpenShiftManagedCluster.
+func (osmc OpenShiftManagedCluster) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if osmc.Plan != nil {
+ objectMap["plan"] = osmc.Plan
+ }
+ if osmc.OpenShiftManagedClusterProperties != nil {
+ objectMap["properties"] = osmc.OpenShiftManagedClusterProperties
+ }
+ if osmc.Location != nil {
+ objectMap["location"] = osmc.Location
+ }
+ if osmc.Tags != nil {
+ objectMap["tags"] = osmc.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for OpenShiftManagedCluster struct.
+func (osmc *OpenShiftManagedCluster) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "plan":
+ if v != nil {
+ var plan PurchasePlan
+ err = json.Unmarshal(*v, &plan)
+ if err != nil {
+ return err
+ }
+ osmc.Plan = &plan
+ }
+ case "properties":
+ if v != nil {
+ var openShiftManagedClusterProperties OpenShiftManagedClusterProperties
+ err = json.Unmarshal(*v, &openShiftManagedClusterProperties)
+ if err != nil {
+ return err
+ }
+ osmc.OpenShiftManagedClusterProperties = &openShiftManagedClusterProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ osmc.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ osmc.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ osmc.Type = &typeVar
+ }
+ case "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ osmc.Location = &location
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ osmc.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// OpenShiftManagedClusterAADIdentityProvider defines the Identity provider for MS AAD.
+type OpenShiftManagedClusterAADIdentityProvider struct {
+ // ClientID - The clientId password associated with the provider.
+ ClientID *string `json:"clientId,omitempty"`
+ // Secret - The secret password associated with the provider.
+ Secret *string `json:"secret,omitempty"`
+ // TenantID - The tenantId associated with the provider.
+ TenantID *string `json:"tenantId,omitempty"`
+ // CustomerAdminGroupID - The groupId to be granted cluster admin role.
+ CustomerAdminGroupID *string `json:"customerAdminGroupId,omitempty"`
+ // Kind - Possible values include: 'KindOpenShiftManagedClusterBaseIdentityProvider', 'KindAADIdentityProvider'
+ Kind Kind `json:"kind,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for OpenShiftManagedClusterAADIdentityProvider.
+func (osmcaip OpenShiftManagedClusterAADIdentityProvider) MarshalJSON() ([]byte, error) {
+ osmcaip.Kind = KindAADIdentityProvider
+ objectMap := make(map[string]interface{})
+ if osmcaip.ClientID != nil {
+ objectMap["clientId"] = osmcaip.ClientID
+ }
+ if osmcaip.Secret != nil {
+ objectMap["secret"] = osmcaip.Secret
+ }
+ if osmcaip.TenantID != nil {
+ objectMap["tenantId"] = osmcaip.TenantID
+ }
+ if osmcaip.CustomerAdminGroupID != nil {
+ objectMap["customerAdminGroupId"] = osmcaip.CustomerAdminGroupID
+ }
+ if osmcaip.Kind != "" {
+ objectMap["kind"] = osmcaip.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsOpenShiftManagedClusterAADIdentityProvider is the BasicOpenShiftManagedClusterBaseIdentityProvider implementation for OpenShiftManagedClusterAADIdentityProvider.
+func (osmcaip OpenShiftManagedClusterAADIdentityProvider) AsOpenShiftManagedClusterAADIdentityProvider() (*OpenShiftManagedClusterAADIdentityProvider, bool) {
+ return &osmcaip, true
+}
+
+// AsOpenShiftManagedClusterBaseIdentityProvider is the BasicOpenShiftManagedClusterBaseIdentityProvider implementation for OpenShiftManagedClusterAADIdentityProvider.
+func (osmcaip OpenShiftManagedClusterAADIdentityProvider) AsOpenShiftManagedClusterBaseIdentityProvider() (*OpenShiftManagedClusterBaseIdentityProvider, bool) {
+ return nil, false
+}
+
+// AsBasicOpenShiftManagedClusterBaseIdentityProvider is the BasicOpenShiftManagedClusterBaseIdentityProvider implementation for OpenShiftManagedClusterAADIdentityProvider.
+func (osmcaip OpenShiftManagedClusterAADIdentityProvider) AsBasicOpenShiftManagedClusterBaseIdentityProvider() (BasicOpenShiftManagedClusterBaseIdentityProvider, bool) {
+ return &osmcaip, true
+}
+
+// OpenShiftManagedClusterAgentPoolProfile defines the configuration of the OpenShift cluster VMs.
+type OpenShiftManagedClusterAgentPoolProfile struct {
+ // Name - Unique name of the pool profile in the context of the subscription and resource group.
+ Name *string `json:"name,omitempty"`
+ // Count - Number of agents (VMs) to host docker containers.
+ Count *int32 `json:"count,omitempty"`
+ // VMSize - Size of agent VMs. Possible values include: 'StandardD2sV3', 'StandardD4sV3', 'StandardD8sV3', 'StandardD16sV3', 'StandardD32sV3', 'StandardD64sV3', 'StandardDS4V2', 'StandardDS5V2', 'StandardF8sV2', 'StandardF16sV2', 'StandardF32sV2', 'StandardF64sV2', 'StandardF72sV2', 'StandardF8s', 'StandardF16s', 'StandardE4sV3', 'StandardE8sV3', 'StandardE16sV3', 'StandardE20sV3', 'StandardE32sV3', 'StandardE64sV3', 'StandardGS2', 'StandardGS3', 'StandardGS4', 'StandardGS5', 'StandardDS12V2', 'StandardDS13V2', 'StandardDS14V2', 'StandardDS15V2', 'StandardL4s', 'StandardL8s', 'StandardL16s', 'StandardL32s'
+ VMSize OpenShiftContainerServiceVMSize `json:"vmSize,omitempty"`
+ // SubnetCidr - Subnet CIDR for the peering.
+ SubnetCidr *string `json:"subnetCidr,omitempty"`
+ // OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
+ OsType OSType `json:"osType,omitempty"`
+ // Role - Define the role of the AgentPoolProfile. Possible values include: 'Compute', 'Infra'
+ Role OpenShiftAgentPoolProfileRole `json:"role,omitempty"`
+}
+
+// OpenShiftManagedClusterAuthProfile defines all possible authentication profiles for the OpenShift
+// cluster.
+type OpenShiftManagedClusterAuthProfile struct {
+ // IdentityProviders - Type of authentication profile to use.
+ IdentityProviders *[]OpenShiftManagedClusterIdentityProvider `json:"identityProviders,omitempty"`
+}
+
+// BasicOpenShiftManagedClusterBaseIdentityProvider structure for any Identity provider.
+type BasicOpenShiftManagedClusterBaseIdentityProvider interface {
+ AsOpenShiftManagedClusterAADIdentityProvider() (*OpenShiftManagedClusterAADIdentityProvider, bool)
+ AsOpenShiftManagedClusterBaseIdentityProvider() (*OpenShiftManagedClusterBaseIdentityProvider, bool)
+}
+
+// OpenShiftManagedClusterBaseIdentityProvider structure for any Identity provider.
+type OpenShiftManagedClusterBaseIdentityProvider struct {
+ // Kind - Possible values include: 'KindOpenShiftManagedClusterBaseIdentityProvider', 'KindAADIdentityProvider'
+ Kind Kind `json:"kind,omitempty"`
+}
+
+func unmarshalBasicOpenShiftManagedClusterBaseIdentityProvider(body []byte) (BasicOpenShiftManagedClusterBaseIdentityProvider, error) {
+ var m map[string]interface{}
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return nil, err
+ }
+
+ switch m["kind"] {
+ case string(KindAADIdentityProvider):
+ var osmcaip OpenShiftManagedClusterAADIdentityProvider
+ err := json.Unmarshal(body, &osmcaip)
+ return osmcaip, err
+ default:
+ var osmcbip OpenShiftManagedClusterBaseIdentityProvider
+ err := json.Unmarshal(body, &osmcbip)
+ return osmcbip, err
+ }
+}
+func unmarshalBasicOpenShiftManagedClusterBaseIdentityProviderArray(body []byte) ([]BasicOpenShiftManagedClusterBaseIdentityProvider, error) {
+ var rawMessages []*json.RawMessage
+ err := json.Unmarshal(body, &rawMessages)
+ if err != nil {
+ return nil, err
+ }
+
+ osmcbipArray := make([]BasicOpenShiftManagedClusterBaseIdentityProvider, len(rawMessages))
+
+ for index, rawMessage := range rawMessages {
+ osmcbip, err := unmarshalBasicOpenShiftManagedClusterBaseIdentityProvider(*rawMessage)
+ if err != nil {
+ return nil, err
+ }
+ osmcbipArray[index] = osmcbip
+ }
+ return osmcbipArray, nil
+}
+
+// MarshalJSON is the custom marshaler for OpenShiftManagedClusterBaseIdentityProvider.
+func (osmcbip OpenShiftManagedClusterBaseIdentityProvider) MarshalJSON() ([]byte, error) {
+ osmcbip.Kind = KindOpenShiftManagedClusterBaseIdentityProvider
+ objectMap := make(map[string]interface{})
+ if osmcbip.Kind != "" {
+ objectMap["kind"] = osmcbip.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsOpenShiftManagedClusterAADIdentityProvider is the BasicOpenShiftManagedClusterBaseIdentityProvider implementation for OpenShiftManagedClusterBaseIdentityProvider.
+func (osmcbip OpenShiftManagedClusterBaseIdentityProvider) AsOpenShiftManagedClusterAADIdentityProvider() (*OpenShiftManagedClusterAADIdentityProvider, bool) {
+ return nil, false
+}
+
+// AsOpenShiftManagedClusterBaseIdentityProvider is the BasicOpenShiftManagedClusterBaseIdentityProvider implementation for OpenShiftManagedClusterBaseIdentityProvider.
+func (osmcbip OpenShiftManagedClusterBaseIdentityProvider) AsOpenShiftManagedClusterBaseIdentityProvider() (*OpenShiftManagedClusterBaseIdentityProvider, bool) {
+ return &osmcbip, true
+}
+
+// AsBasicOpenShiftManagedClusterBaseIdentityProvider is the BasicOpenShiftManagedClusterBaseIdentityProvider implementation for OpenShiftManagedClusterBaseIdentityProvider.
+func (osmcbip OpenShiftManagedClusterBaseIdentityProvider) AsBasicOpenShiftManagedClusterBaseIdentityProvider() (BasicOpenShiftManagedClusterBaseIdentityProvider, bool) {
+ return &osmcbip, true
+}
+
+// OpenShiftManagedClusterIdentityProvider defines the configuration of the identity providers to be used
+// in the OpenShift cluster.
+type OpenShiftManagedClusterIdentityProvider struct {
+ // Name - Name of the provider.
+ Name *string `json:"name,omitempty"`
+ // Provider - Configuration of the provider.
+ Provider BasicOpenShiftManagedClusterBaseIdentityProvider `json:"provider,omitempty"`
+}
+
+// UnmarshalJSON is the custom unmarshaler for OpenShiftManagedClusterIdentityProvider struct.
+func (osmcip *OpenShiftManagedClusterIdentityProvider) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ osmcip.Name = &name
+ }
+ case "provider":
+ if v != nil {
+ provider, err := unmarshalBasicOpenShiftManagedClusterBaseIdentityProvider(*v)
+ if err != nil {
+ return err
+ }
+ osmcip.Provider = provider
+ }
+ }
+ }
+
+ return nil
+}
+
+// OpenShiftManagedClusterListResult the response from the List OpenShift Managed Clusters operation.
+type OpenShiftManagedClusterListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of OpenShift managed clusters.
+ Value *[]OpenShiftManagedCluster `json:"value,omitempty"`
+ // NextLink - READ-ONLY; The URL to get the next set of OpenShift managed cluster results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// OpenShiftManagedClusterListResultIterator provides access to a complete listing of
+// OpenShiftManagedCluster values.
+type OpenShiftManagedClusterListResultIterator struct {
+ i int
+ page OpenShiftManagedClusterListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *OpenShiftManagedClusterListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClusterListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *OpenShiftManagedClusterListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter OpenShiftManagedClusterListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter OpenShiftManagedClusterListResultIterator) Response() OpenShiftManagedClusterListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter OpenShiftManagedClusterListResultIterator) Value() OpenShiftManagedCluster {
+ if !iter.page.NotDone() {
+ return OpenShiftManagedCluster{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the OpenShiftManagedClusterListResultIterator type.
+func NewOpenShiftManagedClusterListResultIterator(page OpenShiftManagedClusterListResultPage) OpenShiftManagedClusterListResultIterator {
+ return OpenShiftManagedClusterListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (osmclr OpenShiftManagedClusterListResult) IsEmpty() bool {
+ return osmclr.Value == nil || len(*osmclr.Value) == 0
+}
+
+// openShiftManagedClusterListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (osmclr OpenShiftManagedClusterListResult) openShiftManagedClusterListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if osmclr.NextLink == nil || len(to.String(osmclr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(osmclr.NextLink)))
+}
+
+// OpenShiftManagedClusterListResultPage contains a page of OpenShiftManagedCluster values.
+type OpenShiftManagedClusterListResultPage struct {
+ fn func(context.Context, OpenShiftManagedClusterListResult) (OpenShiftManagedClusterListResult, error)
+ osmclr OpenShiftManagedClusterListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *OpenShiftManagedClusterListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClusterListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.osmclr)
+ if err != nil {
+ return err
+ }
+ page.osmclr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *OpenShiftManagedClusterListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page OpenShiftManagedClusterListResultPage) NotDone() bool {
+ return !page.osmclr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page OpenShiftManagedClusterListResultPage) Response() OpenShiftManagedClusterListResult {
+ return page.osmclr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page OpenShiftManagedClusterListResultPage) Values() []OpenShiftManagedCluster {
+ if page.osmclr.IsEmpty() {
+ return nil
+ }
+ return *page.osmclr.Value
+}
+
+// Creates a new instance of the OpenShiftManagedClusterListResultPage type.
+func NewOpenShiftManagedClusterListResultPage(getNextPage func(context.Context, OpenShiftManagedClusterListResult) (OpenShiftManagedClusterListResult, error)) OpenShiftManagedClusterListResultPage {
+ return OpenShiftManagedClusterListResultPage{fn: getNextPage}
+}
+
+// OpenShiftManagedClusterMasterPoolProfile openShiftManagedClusterMaterPoolProfile contains configuration
+// for OpenShift master VMs.
+type OpenShiftManagedClusterMasterPoolProfile struct {
+ // Name - Unique name of the master pool profile in the context of the subscription and resource group.
+ Name *string `json:"name,omitempty"`
+ // Count - Number of masters (VMs) to host docker containers. The default value is 3.
+ Count *int32 `json:"count,omitempty"`
+ // VMSize - Size of agent VMs. Possible values include: 'StandardD2sV3', 'StandardD4sV3', 'StandardD8sV3', 'StandardD16sV3', 'StandardD32sV3', 'StandardD64sV3', 'StandardDS4V2', 'StandardDS5V2', 'StandardF8sV2', 'StandardF16sV2', 'StandardF32sV2', 'StandardF64sV2', 'StandardF72sV2', 'StandardF8s', 'StandardF16s', 'StandardE4sV3', 'StandardE8sV3', 'StandardE16sV3', 'StandardE20sV3', 'StandardE32sV3', 'StandardE64sV3', 'StandardGS2', 'StandardGS3', 'StandardGS4', 'StandardGS5', 'StandardDS12V2', 'StandardDS13V2', 'StandardDS14V2', 'StandardDS15V2', 'StandardL4s', 'StandardL8s', 'StandardL16s', 'StandardL32s'
+ VMSize OpenShiftContainerServiceVMSize `json:"vmSize,omitempty"`
+ // SubnetCidr - Subnet CIDR for the peering.
+ SubnetCidr *string `json:"subnetCidr,omitempty"`
+ // OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
+ OsType OSType `json:"osType,omitempty"`
+}
+
+// OpenShiftManagedClusterMonitorProfile defines the configuration for Log Analytics integration.
+type OpenShiftManagedClusterMonitorProfile struct {
+ // WorkspaceResourceID - Azure Resource Manager Resource ID for the Log Analytics workspace to integrate with.
+ WorkspaceResourceID *string `json:"workspaceResourceID,omitempty"`
+ // Enabled - If the Log analytics integration should be turned on or off
+ Enabled *bool `json:"enabled,omitempty"`
+}
+
+// OpenShiftManagedClusterProperties properties of the OpenShift managed cluster.
+type OpenShiftManagedClusterProperties struct {
+ // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty"`
+ // OpenShiftVersion - Version of OpenShift specified when creating the cluster.
+ OpenShiftVersion *string `json:"openShiftVersion,omitempty"`
+ // ClusterVersion - READ-ONLY; Version of OpenShift specified when creating the cluster.
+ ClusterVersion *string `json:"clusterVersion,omitempty"`
+ // PublicHostname - READ-ONLY; Service generated FQDN for OpenShift API server.
+ PublicHostname *string `json:"publicHostname,omitempty"`
+ // Fqdn - READ-ONLY; Service generated FQDN for OpenShift API server loadbalancer internal hostname.
+ Fqdn *string `json:"fqdn,omitempty"`
+ // NetworkProfile - Configuration for OpenShift networking.
+ NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"`
+ // RouterProfiles - Configuration for OpenShift router(s).
+ RouterProfiles *[]OpenShiftRouterProfile `json:"routerProfiles,omitempty"`
+ // MasterPoolProfile - Configuration for OpenShift master VMs.
+ MasterPoolProfile *OpenShiftManagedClusterMasterPoolProfile `json:"masterPoolProfile,omitempty"`
+ // AgentPoolProfiles - Configuration of OpenShift cluster VMs.
+ AgentPoolProfiles *[]OpenShiftManagedClusterAgentPoolProfile `json:"agentPoolProfiles,omitempty"`
+ // AuthProfile - Configures OpenShift authentication.
+ AuthProfile *OpenShiftManagedClusterAuthProfile `json:"authProfile,omitempty"`
+ // MonitorProfile - Configures Log Analytics integration.
+ MonitorProfile *OpenShiftManagedClusterMonitorProfile `json:"monitorProfile,omitempty"`
+}
+
+// OpenShiftManagedClustersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of
+// a long-running operation.
+type OpenShiftManagedClustersCreateOrUpdateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *OpenShiftManagedClustersCreateOrUpdateFuture) Result(client OpenShiftManagedClustersClient) (osmc OpenShiftManagedCluster, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersCreateOrUpdateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.OpenShiftManagedClustersCreateOrUpdateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if osmc.Response.Response, err = future.GetResult(sender); err == nil && osmc.Response.Response.StatusCode != http.StatusNoContent {
+ osmc, err = client.CreateOrUpdateResponder(osmc.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersCreateOrUpdateFuture", "Result", osmc.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// OpenShiftManagedClustersDeleteFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type OpenShiftManagedClustersDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *OpenShiftManagedClustersDeleteFuture) Result(client OpenShiftManagedClustersClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.OpenShiftManagedClustersDeleteFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
+// OpenShiftManagedClustersUpdateTagsFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type OpenShiftManagedClustersUpdateTagsFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *OpenShiftManagedClustersUpdateTagsFuture) Result(client OpenShiftManagedClustersClient) (osmc OpenShiftManagedCluster, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersUpdateTagsFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("containerservice.OpenShiftManagedClustersUpdateTagsFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if osmc.Response.Response, err = future.GetResult(sender); err == nil && osmc.Response.Response.StatusCode != http.StatusNoContent {
+ osmc, err = client.UpdateTagsResponder(osmc.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersUpdateTagsFuture", "Result", osmc.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// OpenShiftRouterProfile represents an OpenShift router
+type OpenShiftRouterProfile struct {
+ // Name - Name of the router profile.
+ Name *string `json:"name,omitempty"`
+ // PublicSubdomain - READ-ONLY; DNS subdomain for OpenShift router.
+ PublicSubdomain *string `json:"publicSubdomain,omitempty"`
+ // Fqdn - READ-ONLY; Auto-allocated FQDN for the OpenShift router.
+ Fqdn *string `json:"fqdn,omitempty"`
+}
+
+// OperationListResult the List Compute Operation operation response.
+type OperationListResult struct {
+ autorest.Response `json:"-"`
+ // Value - READ-ONLY; The list of compute operations
+ Value *[]OperationValue `json:"value,omitempty"`
+}
+
+// OperationValue describes the properties of a Compute Operation value.
+type OperationValue struct {
+ // Origin - READ-ONLY; The origin of the compute operation.
+ Origin *string `json:"origin,omitempty"`
+ // Name - READ-ONLY; The name of the compute operation.
+ Name *string `json:"name,omitempty"`
+ // OperationValueDisplay - Describes the properties of a Compute Operation Value Display.
+ *OperationValueDisplay `json:"display,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for OperationValue.
+func (ov OperationValue) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if ov.OperationValueDisplay != nil {
+ objectMap["display"] = ov.OperationValueDisplay
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for OperationValue struct.
+func (ov *OperationValue) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "origin":
+ if v != nil {
+ var origin string
+ err = json.Unmarshal(*v, &origin)
+ if err != nil {
+ return err
+ }
+ ov.Origin = &origin
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ov.Name = &name
+ }
+ case "display":
+ if v != nil {
+ var operationValueDisplay OperationValueDisplay
+ err = json.Unmarshal(*v, &operationValueDisplay)
+ if err != nil {
+ return err
+ }
+ ov.OperationValueDisplay = &operationValueDisplay
+ }
+ }
+ }
+
+ return nil
+}
+
+// OperationValueDisplay describes the properties of a Compute Operation Value Display.
+type OperationValueDisplay struct {
+ // Operation - READ-ONLY; The display name of the compute operation.
+ Operation *string `json:"operation,omitempty"`
+ // Resource - READ-ONLY; The display name of the resource the operation applies to.
+ Resource *string `json:"resource,omitempty"`
+ // Description - READ-ONLY; The description of the operation.
+ Description *string `json:"description,omitempty"`
+ // Provider - READ-ONLY; The resource provider for the operation.
+ Provider *string `json:"provider,omitempty"`
+}
+
+// OrchestratorProfile contains information about orchestrator.
+type OrchestratorProfile struct {
+ // OrchestratorType - Orchestrator type.
+ OrchestratorType *string `json:"orchestratorType,omitempty"`
+ // OrchestratorVersion - Orchestrator version (major, minor, patch).
+ OrchestratorVersion *string `json:"orchestratorVersion,omitempty"`
+ // IsPreview - Whether Kubernetes version is currently in preview.
+ IsPreview *bool `json:"isPreview,omitempty"`
+}
+
+// OrchestratorProfileType profile for the container service orchestrator.
+type OrchestratorProfileType struct {
+ // OrchestratorType - The orchestrator to use to manage container service cluster resources. Valid values are Kubernetes, Swarm, DCOS, DockerCE and Custom. Possible values include: 'Kubernetes', 'Swarm', 'DCOS', 'DockerCE', 'Custom'
+ OrchestratorType OrchestratorTypes `json:"orchestratorType,omitempty"`
+ // OrchestratorVersion - The version of the orchestrator to use. You can specify the major.minor.patch part of the actual version.For example, you can specify version as "1.6.11".
+ OrchestratorVersion *string `json:"orchestratorVersion,omitempty"`
+}
+
+// OrchestratorVersionProfile the profile of an orchestrator and its available versions.
+type OrchestratorVersionProfile struct {
+ // OrchestratorType - Orchestrator type.
+ OrchestratorType *string `json:"orchestratorType,omitempty"`
+ // OrchestratorVersion - Orchestrator version (major, minor, patch).
+ OrchestratorVersion *string `json:"orchestratorVersion,omitempty"`
+ // Default - Installed by default if version is not specified.
+ Default *bool `json:"default,omitempty"`
+ // IsPreview - Whether Kubernetes version is currently in preview.
+ IsPreview *bool `json:"isPreview,omitempty"`
+ // Upgrades - The list of available upgrade versions.
+ Upgrades *[]OrchestratorProfile `json:"upgrades,omitempty"`
+}
+
+// OrchestratorVersionProfileListResult the list of versions for supported orchestrators.
+type OrchestratorVersionProfileListResult struct {
+ autorest.Response `json:"-"`
+ // ID - READ-ONLY; Id of the orchestrator version profile list result.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the orchestrator version profile list result.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the orchestrator version profile list result.
+ Type *string `json:"type,omitempty"`
+ // OrchestratorVersionProfileProperties - The properties of an orchestrator version profile.
+ *OrchestratorVersionProfileProperties `json:"properties,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for OrchestratorVersionProfileListResult.
+func (ovplr OrchestratorVersionProfileListResult) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if ovplr.OrchestratorVersionProfileProperties != nil {
+ objectMap["properties"] = ovplr.OrchestratorVersionProfileProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for OrchestratorVersionProfileListResult struct.
+func (ovplr *OrchestratorVersionProfileListResult) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ ovplr.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ovplr.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ ovplr.Type = &typeVar
+ }
+ case "properties":
+ if v != nil {
+ var orchestratorVersionProfileProperties OrchestratorVersionProfileProperties
+ err = json.Unmarshal(*v, &orchestratorVersionProfileProperties)
+ if err != nil {
+ return err
+ }
+ ovplr.OrchestratorVersionProfileProperties = &orchestratorVersionProfileProperties
+ }
+ }
+ }
+
+ return nil
+}
+
+// OrchestratorVersionProfileProperties the properties of an orchestrator version profile.
+type OrchestratorVersionProfileProperties struct {
+ // Orchestrators - List of orchestrator version profiles.
+ Orchestrators *[]OrchestratorVersionProfile `json:"orchestrators,omitempty"`
+}
+
+// Properties properties of the container service.
+type Properties struct {
+ // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty"`
+ // OrchestratorProfile - Profile for the container service orchestrator.
+ OrchestratorProfile *OrchestratorProfileType `json:"orchestratorProfile,omitempty"`
+ // CustomProfile - Properties to configure a custom container service cluster.
+ CustomProfile *CustomProfile `json:"customProfile,omitempty"`
+ // ServicePrincipalProfile - Information about a service principal identity for the cluster to use for manipulating Azure APIs. Exact one of secret or keyVaultSecretRef need to be specified.
+ ServicePrincipalProfile *ServicePrincipalProfile `json:"servicePrincipalProfile,omitempty"`
+ // MasterProfile - Profile for the container service master.
+ MasterProfile *MasterProfile `json:"masterProfile,omitempty"`
+ // AgentPoolProfiles - Properties of the agent pool.
+ AgentPoolProfiles *[]AgentPoolProfile `json:"agentPoolProfiles,omitempty"`
+ // WindowsProfile - Profile for Windows VMs in the container service cluster.
+ WindowsProfile *WindowsProfile `json:"windowsProfile,omitempty"`
+ // LinuxProfile - Profile for Linux VMs in the container service cluster.
+ LinuxProfile *LinuxProfile `json:"linuxProfile,omitempty"`
+ // DiagnosticsProfile - Profile for diagnostics in the container service cluster.
+ DiagnosticsProfile *DiagnosticsProfile `json:"diagnosticsProfile,omitempty"`
+}
+
+// PurchasePlan used for establishing the purchase context of any 3rd Party artifact through MarketPlace.
+type PurchasePlan struct {
+ // Name - The plan ID.
+ Name *string `json:"name,omitempty"`
+ // Product - Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
+ Product *string `json:"product,omitempty"`
+ // PromotionCode - The promotion code.
+ PromotionCode *string `json:"promotionCode,omitempty"`
+ // Publisher - The plan ID.
+ Publisher *string `json:"publisher,omitempty"`
+}
+
+// Resource the Resource model definition.
+type Resource struct {
+ // ID - READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; 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.Location != nil {
+ objectMap["location"] = r.Location
+ }
+ if r.Tags != nil {
+ objectMap["tags"] = r.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// ResourceReference a reference to an Azure resource.
+type ResourceReference struct {
+ // ID - The fully qualified Azure resource id.
+ ID *string `json:"id,omitempty"`
+}
+
+// ServicePrincipalProfile information about a service principal identity for the cluster to use for
+// manipulating Azure APIs. Either secret or keyVaultSecretRef must be specified.
+type ServicePrincipalProfile struct {
+ // ClientID - The ID for the service principal.
+ ClientID *string `json:"clientId,omitempty"`
+ // Secret - The secret password associated with the service principal in plain text.
+ Secret *string `json:"secret,omitempty"`
+ // KeyVaultSecretRef - Reference to a secret stored in Azure Key Vault.
+ KeyVaultSecretRef *KeyVaultSecretRef `json:"keyVaultSecretRef,omitempty"`
+}
+
+// SSHConfiguration SSH configuration for Linux-based VMs running on Azure.
+type SSHConfiguration struct {
+ // PublicKeys - The list of SSH public keys used to authenticate with Linux-based VMs. Only expect one key specified.
+ PublicKeys *[]SSHPublicKey `json:"publicKeys,omitempty"`
+}
+
+// SSHPublicKey contains information about SSH certificate public key data.
+type SSHPublicKey struct {
+ // KeyData - Certificate public key used to authenticate with VMs through SSH. The certificate must be in PEM format with or without headers.
+ KeyData *string `json:"keyData,omitempty"`
+}
+
+// SubResource reference to another subresource.
+type SubResource struct {
+ // ID - READ-ONLY; Resource ID.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; The name of the resource that is unique within a resource group. This name can be used to access the resource.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type
+ Type *string `json:"type,omitempty"`
+}
+
+// TagsObject tags object for patch operations.
+type TagsObject struct {
+ // Tags - Resource tags.
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for TagsObject.
+func (toVar TagsObject) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if toVar.Tags != nil {
+ objectMap["tags"] = toVar.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// VMDiagnostics profile for diagnostics on the container service VMs.
+type VMDiagnostics struct {
+ // Enabled - Whether the VM diagnostic agent is provisioned on the VM.
+ Enabled *bool `json:"enabled,omitempty"`
+ // StorageURI - READ-ONLY; The URI of the storage account where diagnostics are stored.
+ StorageURI *string `json:"storageUri,omitempty"`
+}
+
+// WindowsProfile profile for Windows VMs in the container service cluster.
+type WindowsProfile struct {
+ // AdminUsername - The administrator username to use for Windows VMs.
+ AdminUsername *string `json:"adminUsername,omitempty"`
+ // AdminPassword - The administrator password to use for Windows VMs.
+ AdminPassword *string `json:"adminPassword,omitempty"`
+}
diff --git a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/openshiftmanagedclusters.go b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/openshiftmanagedclusters.go
new file mode 100644
index 000000000000..4208abf82afd
--- /dev/null
+++ b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/openshiftmanagedclusters.go
@@ -0,0 +1,617 @@
+package containerservice
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// OpenShiftManagedClustersClient is the the Container Service Client.
+type OpenShiftManagedClustersClient struct {
+ BaseClient
+}
+
+// NewOpenShiftManagedClustersClient creates an instance of the OpenShiftManagedClustersClient client.
+func NewOpenShiftManagedClustersClient(subscriptionID string) OpenShiftManagedClustersClient {
+ return NewOpenShiftManagedClustersClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewOpenShiftManagedClustersClientWithBaseURI creates an instance of the OpenShiftManagedClustersClient client.
+func NewOpenShiftManagedClustersClientWithBaseURI(baseURI string, subscriptionID string) OpenShiftManagedClustersClient {
+ return OpenShiftManagedClustersClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or updates a OpenShift managed cluster with the specified configuration for agents and
+// OpenShift version.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the OpenShift managed cluster resource.
+// parameters - parameters supplied to the Create or Update an OpenShift Managed Cluster operation.
+func (client OpenShiftManagedClustersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, parameters OpenShiftManagedCluster) (result OpenShiftManagedClustersCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClustersClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}},
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.OpenShiftManagedClusterProperties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.OpenShiftManagedClusterProperties.OpenShiftVersion", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.OpenShiftManagedClusterProperties.MasterPoolProfile", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.OpenShiftManagedClusterProperties.MasterPoolProfile.Count", Name: validation.Null, Rule: true, Chain: nil}}},
+ }}}}}); err != nil {
+ return result, validation.NewError("containerservice.OpenShiftManagedClustersClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, resourceName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client OpenShiftManagedClustersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters OpenShiftManagedCluster) (*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 = "2019-09-30-preview"
+ 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.ContainerService/openShiftManagedClusters/{resourceName}", pathParameters),
+ autorest.WithJSON(parameters),
+ 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 OpenShiftManagedClustersClient) CreateOrUpdateSender(req *http.Request) (future OpenShiftManagedClustersCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client OpenShiftManagedClustersClient) CreateOrUpdateResponder(resp *http.Response) (result OpenShiftManagedCluster, 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 deletes the OpenShift managed cluster with a specified resource group and name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the OpenShift managed cluster resource.
+func (client OpenShiftManagedClustersClient) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result OpenShiftManagedClustersDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClustersClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.OpenShiftManagedClustersClient", "Delete", err.Error())
+ }
+
+ req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client OpenShiftManagedClustersClient) 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 = "2019-09-30-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{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 OpenShiftManagedClustersClient) DeleteSender(req *http.Request) (future OpenShiftManagedClustersDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client OpenShiftManagedClustersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the details of the managed OpenShift cluster with a specified resource group and name.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the OpenShift managed cluster resource.
+func (client OpenShiftManagedClustersClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result OpenShiftManagedCluster, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClustersClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.OpenShiftManagedClustersClient", "Get", err.Error())
+ }
+
+ req, err := client.GetPreparer(ctx, resourceGroupName, resourceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client OpenShiftManagedClustersClient) 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 = "2019-09-30-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{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 OpenShiftManagedClustersClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client OpenShiftManagedClustersClient) GetResponder(resp *http.Response) (result OpenShiftManagedCluster, 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 OpenShift managed clusters in the specified subscription. The operation returns properties of
+// each OpenShift managed cluster.
+func (client OpenShiftManagedClustersClient) List(ctx context.Context) (result OpenShiftManagedClusterListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClustersClient.List")
+ defer func() {
+ sc := -1
+ if result.osmclr.Response.Response != nil {
+ sc = result.osmclr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.osmclr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.osmclr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client OpenShiftManagedClustersClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-30-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/openShiftManagedClusters", 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 OpenShiftManagedClustersClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client OpenShiftManagedClustersClient) ListResponder(resp *http.Response) (result OpenShiftManagedClusterListResult, 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 OpenShiftManagedClustersClient) listNextResults(ctx context.Context, lastResults OpenShiftManagedClusterListResult) (result OpenShiftManagedClusterListResult, err error) {
+ req, err := lastResults.openShiftManagedClusterListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "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, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client OpenShiftManagedClustersClient) ListComplete(ctx context.Context) (result OpenShiftManagedClusterListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClustersClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx)
+ return
+}
+
+// ListByResourceGroup lists OpenShift managed clusters in the specified subscription and resource group. The operation
+// returns properties of each OpenShift managed cluster.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client OpenShiftManagedClustersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result OpenShiftManagedClusterListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClustersClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.osmclr.Response.Response != nil {
+ sc = result.osmclr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", err.Error())
+ }
+
+ result.fn = client.listByResourceGroupNextResults
+ req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.osmclr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.osmclr, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client OpenShiftManagedClustersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-30-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client OpenShiftManagedClustersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client OpenShiftManagedClustersClient) ListByResourceGroupResponder(resp *http.Response) (result OpenShiftManagedClusterListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByResourceGroupNextResults retrieves the next set of results, if any.
+func (client OpenShiftManagedClustersClient) listByResourceGroupNextResults(ctx context.Context, lastResults OpenShiftManagedClusterListResult) (result OpenShiftManagedClusterListResult, err error) {
+ req, err := lastResults.openShiftManagedClusterListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client OpenShiftManagedClustersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result OpenShiftManagedClusterListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClustersClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByResourceGroup(ctx, resourceGroupName)
+ return
+}
+
+// UpdateTags updates an OpenShift managed cluster with the specified tags.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// resourceName - the name of the OpenShift managed cluster resource.
+// parameters - parameters supplied to the Update OpenShift Managed Cluster Tags operation.
+func (client OpenShiftManagedClustersClient) UpdateTags(ctx context.Context, resourceGroupName string, resourceName string, parameters TagsObject) (result OpenShiftManagedClustersUpdateTagsFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OpenShiftManagedClustersClient.UpdateTags")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: resourceGroupName,
+ Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("containerservice.OpenShiftManagedClustersClient", "UpdateTags", err.Error())
+ }
+
+ req, err := client.UpdateTagsPreparer(ctx, resourceGroupName, resourceName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "UpdateTags", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.UpdateTagsSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OpenShiftManagedClustersClient", "UpdateTags", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// UpdateTagsPreparer prepares the UpdateTags request.
+func (client OpenShiftManagedClustersClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, resourceName string, parameters TagsObject) (*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 = "2019-09-30-preview"
+ 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.ContainerService/openShiftManagedClusters/{resourceName}", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UpdateTagsSender sends the UpdateTags request. The method will close the
+// http.Response Body if it receives an error.
+func (client OpenShiftManagedClustersClient) UpdateTagsSender(req *http.Request) (future OpenShiftManagedClustersUpdateTagsFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// UpdateTagsResponder handles the response to the UpdateTags request. The method always
+// closes the http.Response Body.
+func (client OpenShiftManagedClustersClient) UpdateTagsResponder(resp *http.Response) (result OpenShiftManagedCluster, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/operations.go b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/operations.go
new file mode 100644
index 000000000000..a61a628971f6
--- /dev/null
+++ b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/operations.go
@@ -0,0 +1,109 @@
+package containerservice
+
+// 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/tracing"
+ "net/http"
+)
+
+// OperationsClient is the the Container Service Client.
+type OperationsClient struct {
+ BaseClient
+}
+
+// NewOperationsClient creates an instance of the OperationsClient client.
+func NewOperationsClient(subscriptionID string) OperationsClient {
+ return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
+ return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List gets a list of compute operations.
+func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "containerservice.OperationsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ const APIVersion = "2019-08-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPath("/providers/Microsoft.ContainerService/operations"),
+ 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 OperationsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/version.go b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/version.go
new file mode 100644
index 000000000000..b33e1e056038
--- /dev/null
+++ b/services/preview/containerservice/mgmt/2019-09-30-preview/containerservice/version.go
@@ -0,0 +1,30 @@
+package containerservice
+
+import "github.com/Azure/azure-sdk-for-go/version"
+
+// 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.
+
+// UserAgent returns the UserAgent string to use when sending http.Requests.
+func UserAgent() string {
+ return "Azure-SDK-For-Go/" + version.Number + " containerservice/2019-09-30-preview"
+}
+
+// Version returns the semantic version (see http://semver.org) of the client.
+func Version() string {
+ return version.Number
+}
diff --git a/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/client.go b/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/client.go
new file mode 100644
index 000000000000..4b604b5ee4e5
--- /dev/null
+++ b/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/client.go
@@ -0,0 +1,51 @@
+// Package costmanagement implements the Azure ARM Costmanagement service API version 2019-10-01.
+//
+//
+package costmanagement
+
+// 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 (
+ "github.com/Azure/go-autorest/autorest"
+)
+
+const (
+ // DefaultBaseURI is the default URI used for the service Costmanagement
+ DefaultBaseURI = "https://management.azure.com"
+)
+
+// BaseClient is the base client for Costmanagement.
+type BaseClient struct {
+ autorest.Client
+ BaseURI string
+ SubscriptionID string
+}
+
+// New creates an instance of the BaseClient client.
+func New(subscriptionID string) BaseClient {
+ return NewWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewWithBaseURI creates an instance of the BaseClient client.
+func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
+ return BaseClient{
+ Client: autorest.NewClientWithUserAgent(UserAgent()),
+ BaseURI: baseURI,
+ SubscriptionID: subscriptionID,
+ }
+}
diff --git a/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/costmanagementapi/interfaces.go b/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/costmanagementapi/interfaces.go
new file mode 100644
index 000000000000..255d2b21caf9
--- /dev/null
+++ b/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/costmanagementapi/interfaces.go
@@ -0,0 +1,57 @@
+package costmanagementapi
+
+// 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/azure-sdk-for-go/services/preview/costmanagement/mgmt/2019-10-01/costmanagement"
+ "github.com/Azure/go-autorest/autorest"
+)
+
+// DimensionsClientAPI contains the set of methods on the DimensionsClient type.
+type DimensionsClientAPI interface {
+ ListByScope(ctx context.Context, scope string, filter string, expand string, skiptoken string, top *int32) (result costmanagement.DimensionsListResult, err error)
+}
+
+var _ DimensionsClientAPI = (*costmanagement.DimensionsClient)(nil)
+
+// QueryClientAPI contains the set of methods on the QueryClient type.
+type QueryClientAPI interface {
+ UsageByScope(ctx context.Context, scope string, parameters costmanagement.QueryDefinition) (result costmanagement.QueryResult, err error)
+}
+
+var _ QueryClientAPI = (*costmanagement.QueryClient)(nil)
+
+// ExportsClientAPI contains the set of methods on the ExportsClient type.
+type ExportsClientAPI interface {
+ CreateOrUpdate(ctx context.Context, scope string, exportName string, parameters costmanagement.Export) (result costmanagement.Export, err error)
+ Delete(ctx context.Context, scope string, exportName string) (result autorest.Response, err error)
+ Execute(ctx context.Context, scope string, exportName string) (result autorest.Response, err error)
+ Get(ctx context.Context, scope string, exportName string) (result costmanagement.Export, err error)
+ GetExecutionHistory(ctx context.Context, scope string, exportName string) (result costmanagement.ExportExecutionListResult, err error)
+ List(ctx context.Context, scope string) (result costmanagement.ExportListResult, err error)
+}
+
+var _ ExportsClientAPI = (*costmanagement.ExportsClient)(nil)
+
+// OperationsClientAPI contains the set of methods on the OperationsClient type.
+type OperationsClientAPI interface {
+ List(ctx context.Context) (result costmanagement.OperationListResultPage, err error)
+}
+
+var _ OperationsClientAPI = (*costmanagement.OperationsClient)(nil)
diff --git a/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/dimensions.go b/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/dimensions.go
new file mode 100644
index 000000000000..16a57299d662
--- /dev/null
+++ b/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/dimensions.go
@@ -0,0 +1,158 @@
+package costmanagement
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// DimensionsClient is the client for the Dimensions methods of the Costmanagement service.
+type DimensionsClient struct {
+ BaseClient
+}
+
+// NewDimensionsClient creates an instance of the DimensionsClient client.
+func NewDimensionsClient(subscriptionID string) DimensionsClient {
+ return NewDimensionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewDimensionsClientWithBaseURI creates an instance of the DimensionsClient client.
+func NewDimensionsClientWithBaseURI(baseURI string, subscriptionID string) DimensionsClient {
+ return DimensionsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// ListByScope lists the dimensions by the defined scope.
+// Parameters:
+// scope - the scope associated with dimension operations. This includes '/subscriptions/{subscriptionId}/' for
+// subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup
+// scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department
+// scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
+// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for
+// Management Group scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for
+// billingProfile scope,
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
+// for invoiceSection scope, and
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
+// partners.
+// filter - may be used to filter dimensions by properties/category, properties/usageStart,
+// properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.
+// expand - may be used to expand the properties/data within a dimension category. By default, data is not
+// included when listing dimensions.
+// skiptoken - skiptoken is only used if a previous operation returned a partial result. If a previous response
+// contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that
+// specifies a starting point to use for subsequent calls.
+// top - may be used to limit the number of results to the most recent N dimension data.
+func (client DimensionsClient) ListByScope(ctx context.Context, scope string, filter string, expand string, skiptoken string, top *int32) (result DimensionsListResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/DimensionsClient.ListByScope")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: top,
+ Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMaximum, Rule: int64(1000), Chain: nil},
+ {Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("costmanagement.DimensionsClient", "ListByScope", err.Error())
+ }
+
+ req, err := client.ListByScopePreparer(ctx, scope, filter, expand, skiptoken, top)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.DimensionsClient", "ListByScope", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByScopeSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "costmanagement.DimensionsClient", "ListByScope", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListByScopeResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.DimensionsClient", "ListByScope", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByScopePreparer prepares the ListByScope request.
+func (client DimensionsClient) ListByScopePreparer(ctx context.Context, scope string, filter string, expand string, skiptoken string, top *int32) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "scope": scope,
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(filter) > 0 {
+ queryParameters["$filter"] = autorest.Encode("query", filter)
+ }
+ if len(expand) > 0 {
+ queryParameters["$expand"] = autorest.Encode("query", expand)
+ }
+ if len(skiptoken) > 0 {
+ queryParameters["$skiptoken"] = autorest.Encode("query", skiptoken)
+ }
+ if top != nil {
+ queryParameters["$top"] = autorest.Encode("query", *top)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{scope}/providers/Microsoft.CostManagement/dimensions", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByScopeSender sends the ListByScope request. The method will close the
+// http.Response Body if it receives an error.
+func (client DimensionsClient) ListByScopeSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByScopeResponder handles the response to the ListByScope request. The method always
+// closes the http.Response Body.
+func (client DimensionsClient) ListByScopeResponder(resp *http.Response) (result DimensionsListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/exports.go b/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/exports.go
new file mode 100644
index 000000000000..9042b6af21cc
--- /dev/null
+++ b/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/exports.go
@@ -0,0 +1,593 @@
+package costmanagement
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ExportsClient is the client for the Exports methods of the Costmanagement service.
+type ExportsClient struct {
+ BaseClient
+}
+
+// NewExportsClient creates an instance of the ExportsClient client.
+func NewExportsClient(subscriptionID string) ExportsClient {
+ return NewExportsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewExportsClientWithBaseURI creates an instance of the ExportsClient client.
+func NewExportsClientWithBaseURI(baseURI string, subscriptionID string) ExportsClient {
+ return ExportsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate the operation to create or update a export. Update operation requires latest eTag to be set in the
+// request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.
+// Parameters:
+// scope - the scope associated with query and export operations. This includes
+// '/subscriptions/{subscriptionId}/' for subscription scope,
+// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department
+// scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
+// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for
+// Management Group scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for
+// billingProfile scope,
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
+// for invoiceSection scope, and
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
+// partners.
+// exportName - export Name.
+// parameters - parameters supplied to the CreateOrUpdate Export operation.
+func (client ExportsClient) CreateOrUpdate(ctx context.Context, scope string, exportName string, parameters Export) (result Export, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExportsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.ExportProperties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ExportProperties.Schedule", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ExportProperties.Schedule.RecurrencePeriod", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.ExportProperties.Schedule.RecurrencePeriod.From", Name: validation.Null, Rule: true, Chain: nil}}},
+ }},
+ }}}}}); err != nil {
+ return result, validation.NewError("costmanagement.ExportsClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, scope, exportName, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateOrUpdateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "CreateOrUpdate", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "CreateOrUpdate", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ExportsClient) CreateOrUpdatePreparer(ctx context.Context, scope string, exportName string, parameters Export) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "exportName": autorest.Encode("path", exportName),
+ "scope": scope,
+ }
+
+ const APIVersion = "2019-10-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("/{scope}/providers/Microsoft.CostManagement/exports/{exportName}", pathParameters),
+ autorest.WithJSON(parameters),
+ 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 ExportsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ExportsClient) CreateOrUpdateResponder(resp *http.Response) (result Export, 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 the operation to delete a export.
+// Parameters:
+// scope - the scope associated with query and export operations. This includes
+// '/subscriptions/{subscriptionId}/' for subscription scope,
+// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department
+// scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
+// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for
+// Management Group scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for
+// billingProfile scope,
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
+// for invoiceSection scope, and
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
+// partners.
+// exportName - export Name.
+func (client ExportsClient) Delete(ctx context.Context, scope string, exportName string) (result autorest.Response, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExportsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response != nil {
+ sc = result.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, scope, exportName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Delete", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Delete", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ExportsClient) DeletePreparer(ctx context.Context, scope string, exportName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "exportName": autorest.Encode("path", exportName),
+ "scope": scope,
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{scope}/providers/Microsoft.CostManagement/exports/{exportName}", 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 ExportsClient) DeleteSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ExportsClient) 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
+}
+
+// Execute the operation to execute a export.
+// Parameters:
+// scope - the scope associated with query and export operations. This includes
+// '/subscriptions/{subscriptionId}/' for subscription scope,
+// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department
+// scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
+// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for
+// Management Group scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for
+// billingProfile scope,
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
+// for invoiceSection scope, and
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
+// partners.
+// exportName - export Name.
+func (client ExportsClient) Execute(ctx context.Context, scope string, exportName string) (result autorest.Response, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExportsClient.Execute")
+ defer func() {
+ sc := -1
+ if result.Response != nil {
+ sc = result.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ExecutePreparer(ctx, scope, exportName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Execute", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ExecuteSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Execute", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ExecuteResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Execute", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ExecutePreparer prepares the Execute request.
+func (client ExportsClient) ExecutePreparer(ctx context.Context, scope string, exportName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "exportName": autorest.Encode("path", exportName),
+ "scope": scope,
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsPost(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ 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 ExportsClient) ExecuteSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ExecuteResponder handles the response to the Execute request. The method always
+// closes the http.Response Body.
+func (client ExportsClient) ExecuteResponder(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 the operation to get the export for the defined scope by export name.
+// Parameters:
+// scope - the scope associated with query and export operations. This includes
+// '/subscriptions/{subscriptionId}/' for subscription scope,
+// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department
+// scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
+// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for
+// Management Group scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for
+// billingProfile scope,
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
+// for invoiceSection scope, and
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
+// partners.
+// exportName - export Name.
+func (client ExportsClient) Get(ctx context.Context, scope string, exportName string) (result Export, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExportsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, scope, exportName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ExportsClient) GetPreparer(ctx context.Context, scope string, exportName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "exportName": autorest.Encode("path", exportName),
+ "scope": scope,
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{scope}/providers/Microsoft.CostManagement/exports/{exportName}", 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 ExportsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ExportsClient) GetResponder(resp *http.Response) (result Export, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// GetExecutionHistory the operation to get the execution history of an export for the defined scope by export name.
+// Parameters:
+// scope - the scope associated with query and export operations. This includes
+// '/subscriptions/{subscriptionId}/' for subscription scope,
+// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department
+// scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
+// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for
+// Management Group scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for
+// billingProfile scope,
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
+// for invoiceSection scope, and
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
+// partners.
+// exportName - export Name.
+func (client ExportsClient) GetExecutionHistory(ctx context.Context, scope string, exportName string) (result ExportExecutionListResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExportsClient.GetExecutionHistory")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetExecutionHistoryPreparer(ctx, scope, exportName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "GetExecutionHistory", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetExecutionHistorySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "GetExecutionHistory", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetExecutionHistoryResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "GetExecutionHistory", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetExecutionHistoryPreparer prepares the GetExecutionHistory request.
+func (client ExportsClient) GetExecutionHistoryPreparer(ctx context.Context, scope string, exportName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "exportName": autorest.Encode("path", exportName),
+ "scope": scope,
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// GetExecutionHistorySender sends the GetExecutionHistory request. The method will close the
+// http.Response Body if it receives an error.
+func (client ExportsClient) GetExecutionHistorySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetExecutionHistoryResponder handles the response to the GetExecutionHistory request. The method always
+// closes the http.Response Body.
+func (client ExportsClient) GetExecutionHistoryResponder(resp *http.Response) (result ExportExecutionListResult, 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 the operation to list all exports at the given scope.
+// Parameters:
+// scope - the scope associated with query and export operations. This includes
+// '/subscriptions/{subscriptionId}/' for subscription scope,
+// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department
+// scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
+// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for
+// Management Group scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for
+// billingProfile scope,
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
+// for invoiceSection scope, and
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
+// partners.
+func (client ExportsClient) List(ctx context.Context, scope string) (result ExportListResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ExportsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListPreparer(ctx, scope)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.ExportsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ExportsClient) ListPreparer(ctx context.Context, scope string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "scope": scope,
+ }
+
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/{scope}/providers/Microsoft.CostManagement/exports", 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 ExportsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ExportsClient) ListResponder(resp *http.Response) (result ExportListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/models.go b/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/models.go
new file mode 100644
index 000000000000..a59a87209b6a
--- /dev/null
+++ b/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/models.go
@@ -0,0 +1,966 @@
+package costmanagement
+
+// 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"
+ "encoding/json"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/date"
+ "github.com/Azure/go-autorest/autorest/to"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// The package's fully qualified name.
+const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/costmanagement/mgmt/2019-10-01/costmanagement"
+
+// ExecutionStatus enumerates the values for execution status.
+type ExecutionStatus string
+
+const (
+ // Completed ...
+ Completed ExecutionStatus = "Completed"
+ // DataNotAvailable ...
+ DataNotAvailable ExecutionStatus = "DataNotAvailable"
+ // Failed ...
+ Failed ExecutionStatus = "Failed"
+ // InProgress ...
+ InProgress ExecutionStatus = "InProgress"
+ // NewDataNotAvailable ...
+ NewDataNotAvailable ExecutionStatus = "NewDataNotAvailable"
+ // Queued ...
+ Queued ExecutionStatus = "Queued"
+ // Timeout ...
+ Timeout ExecutionStatus = "Timeout"
+)
+
+// PossibleExecutionStatusValues returns an array of possible values for the ExecutionStatus const type.
+func PossibleExecutionStatusValues() []ExecutionStatus {
+ return []ExecutionStatus{Completed, DataNotAvailable, Failed, InProgress, NewDataNotAvailable, Queued, Timeout}
+}
+
+// ExecutionType enumerates the values for execution type.
+type ExecutionType string
+
+const (
+ // OnDemand ...
+ OnDemand ExecutionType = "OnDemand"
+ // Scheduled ...
+ Scheduled ExecutionType = "Scheduled"
+)
+
+// PossibleExecutionTypeValues returns an array of possible values for the ExecutionType const type.
+func PossibleExecutionTypeValues() []ExecutionType {
+ return []ExecutionType{OnDemand, Scheduled}
+}
+
+// FormatType enumerates the values for format type.
+type FormatType string
+
+const (
+ // Csv ...
+ Csv FormatType = "Csv"
+)
+
+// PossibleFormatTypeValues returns an array of possible values for the FormatType const type.
+func PossibleFormatTypeValues() []FormatType {
+ return []FormatType{Csv}
+}
+
+// GranularityType enumerates the values for granularity type.
+type GranularityType string
+
+const (
+ // Daily ...
+ Daily GranularityType = "Daily"
+ // Hourly ...
+ Hourly GranularityType = "Hourly"
+)
+
+// PossibleGranularityTypeValues returns an array of possible values for the GranularityType const type.
+func PossibleGranularityTypeValues() []GranularityType {
+ return []GranularityType{Daily, Hourly}
+}
+
+// QueryColumnType enumerates the values for query column type.
+type QueryColumnType string
+
+const (
+ // QueryColumnTypeDimension ...
+ QueryColumnTypeDimension QueryColumnType = "Dimension"
+ // QueryColumnTypeTag ...
+ QueryColumnTypeTag QueryColumnType = "Tag"
+)
+
+// PossibleQueryColumnTypeValues returns an array of possible values for the QueryColumnType const type.
+func PossibleQueryColumnTypeValues() []QueryColumnType {
+ return []QueryColumnType{QueryColumnTypeDimension, QueryColumnTypeTag}
+}
+
+// RecurrenceType enumerates the values for recurrence type.
+type RecurrenceType string
+
+const (
+ // RecurrenceTypeAnnually ...
+ RecurrenceTypeAnnually RecurrenceType = "Annually"
+ // RecurrenceTypeDaily ...
+ RecurrenceTypeDaily RecurrenceType = "Daily"
+ // RecurrenceTypeMonthly ...
+ RecurrenceTypeMonthly RecurrenceType = "Monthly"
+ // RecurrenceTypeWeekly ...
+ RecurrenceTypeWeekly RecurrenceType = "Weekly"
+)
+
+// PossibleRecurrenceTypeValues returns an array of possible values for the RecurrenceType const type.
+func PossibleRecurrenceTypeValues() []RecurrenceType {
+ return []RecurrenceType{RecurrenceTypeAnnually, RecurrenceTypeDaily, RecurrenceTypeMonthly, RecurrenceTypeWeekly}
+}
+
+// SortDirection enumerates the values for sort direction.
+type SortDirection string
+
+const (
+ // Ascending ...
+ Ascending SortDirection = "Ascending"
+ // Descending ...
+ Descending SortDirection = "Descending"
+)
+
+// PossibleSortDirectionValues returns an array of possible values for the SortDirection const type.
+func PossibleSortDirectionValues() []SortDirection {
+ return []SortDirection{Ascending, Descending}
+}
+
+// StatusType enumerates the values for status type.
+type StatusType string
+
+const (
+ // Active ...
+ Active StatusType = "Active"
+ // Inactive ...
+ Inactive StatusType = "Inactive"
+)
+
+// PossibleStatusTypeValues returns an array of possible values for the StatusType const type.
+func PossibleStatusTypeValues() []StatusType {
+ return []StatusType{Active, Inactive}
+}
+
+// TimeframeType enumerates the values for timeframe type.
+type TimeframeType string
+
+const (
+ // Custom ...
+ Custom TimeframeType = "Custom"
+ // MonthToDate ...
+ MonthToDate TimeframeType = "MonthToDate"
+ // TheLastMonth ...
+ TheLastMonth TimeframeType = "TheLastMonth"
+ // TheLastWeek ...
+ TheLastWeek TimeframeType = "TheLastWeek"
+ // TheLastYear ...
+ TheLastYear TimeframeType = "TheLastYear"
+ // WeekToDate ...
+ WeekToDate TimeframeType = "WeekToDate"
+ // YearToDate ...
+ YearToDate TimeframeType = "YearToDate"
+)
+
+// PossibleTimeframeTypeValues returns an array of possible values for the TimeframeType const type.
+func PossibleTimeframeTypeValues() []TimeframeType {
+ return []TimeframeType{Custom, MonthToDate, TheLastMonth, TheLastWeek, TheLastYear, WeekToDate, YearToDate}
+}
+
+// CommonExportProperties the common properties of the export.
+type CommonExportProperties struct {
+ // Format - The format of the export being delivered. Possible values include: 'Csv'
+ Format FormatType `json:"format,omitempty"`
+ // DeliveryInfo - Has delivery information for the export.
+ DeliveryInfo *ExportDeliveryInfo `json:"deliveryInfo,omitempty"`
+ // Definition - Has definition for the export.
+ Definition *QueryDefinition `json:"definition,omitempty"`
+}
+
+// Dimension ...
+type Dimension struct {
+ *DimensionProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource Id.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty"`
+ // Tags - READ-ONLY; Resource tags.
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for Dimension.
+func (d Dimension) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if d.DimensionProperties != nil {
+ objectMap["properties"] = d.DimensionProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for Dimension struct.
+func (d *Dimension) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var dimensionProperties DimensionProperties
+ err = json.Unmarshal(*v, &dimensionProperties)
+ if err != nil {
+ return err
+ }
+ d.DimensionProperties = &dimensionProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ d.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ d.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ d.Type = &typeVar
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ d.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// DimensionProperties ...
+type DimensionProperties struct {
+ // Description - READ-ONLY; Dimension description.
+ Description *string `json:"description,omitempty"`
+ // FilterEnabled - READ-ONLY; Filter enabled.
+ FilterEnabled *bool `json:"filterEnabled,omitempty"`
+ // GroupingEnabled - READ-ONLY; Grouping enabled.
+ GroupingEnabled *bool `json:"groupingEnabled,omitempty"`
+ Data *[]string `json:"data,omitempty"`
+ // Total - READ-ONLY; Total number of data for the dimension.
+ Total *int32 `json:"total,omitempty"`
+ // Category - READ-ONLY; Dimension category.
+ Category *string `json:"category,omitempty"`
+ // UsageStart - READ-ONLY; Usage start.
+ UsageStart *date.Time `json:"usageStart,omitempty"`
+ // UsageEnd - READ-ONLY; Usage end.
+ UsageEnd *date.Time `json:"usageEnd,omitempty"`
+ // NextLink - READ-ONLY; The link (url) to the next page of results.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// DimensionsListResult result of listing dimensions. It contains a list of available dimensions.
+type DimensionsListResult struct {
+ autorest.Response `json:"-"`
+ // Value - READ-ONLY; The list of dimensions.
+ Value *[]Dimension `json:"value,omitempty"`
+}
+
+// ErrorDetails the details of the error.
+type ErrorDetails struct {
+ // Code - READ-ONLY; Error code.
+ Code *string `json:"code,omitempty"`
+ // Message - READ-ONLY; Error message indicating why the operation failed.
+ Message *string `json:"message,omitempty"`
+}
+
+// ErrorResponse error response indicates that the service is not able to process the incoming request. The
+// reason is provided in the error message.
+type ErrorResponse struct {
+ // Error - The details of the error.
+ Error *ErrorDetails `json:"error,omitempty"`
+}
+
+// Export a export resource.
+type Export struct {
+ autorest.Response `json:"-"`
+ *ExportProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource Id.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty"`
+ // Tags - READ-ONLY; Resource tags.
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for Export.
+func (e Export) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if e.ExportProperties != nil {
+ objectMap["properties"] = e.ExportProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for Export struct.
+func (e *Export) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var exportProperties ExportProperties
+ err = json.Unmarshal(*v, &exportProperties)
+ if err != nil {
+ return err
+ }
+ e.ExportProperties = &exportProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ e.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ e.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ e.Type = &typeVar
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ e.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// ExportDeliveryDestination the destination information for the delivery of the export.
+type ExportDeliveryDestination struct {
+ // ResourceID - The resource id of the storage account where exports will be delivered.
+ ResourceID *string `json:"resourceId,omitempty"`
+ // Container - The name of the container where exports will be uploaded.
+ Container *string `json:"container,omitempty"`
+ // RootFolderPath - The name of the directory where exports will be uploaded.
+ RootFolderPath *string `json:"rootFolderPath,omitempty"`
+}
+
+// ExportDeliveryInfo the delivery information associated with a export.
+type ExportDeliveryInfo struct {
+ // Destination - Has destination for the export being delivered.
+ Destination *ExportDeliveryDestination `json:"destination,omitempty"`
+}
+
+// ExportExecution a export execution.
+type ExportExecution struct {
+ *ExportExecutionProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource Id.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty"`
+ // Tags - READ-ONLY; Resource tags.
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for ExportExecution.
+func (ee ExportExecution) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if ee.ExportExecutionProperties != nil {
+ objectMap["properties"] = ee.ExportExecutionProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ExportExecution struct.
+func (ee *ExportExecution) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var exportExecutionProperties ExportExecutionProperties
+ err = json.Unmarshal(*v, &exportExecutionProperties)
+ if err != nil {
+ return err
+ }
+ ee.ExportExecutionProperties = &exportExecutionProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ ee.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ee.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ ee.Type = &typeVar
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ ee.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// ExportExecutionListResult result of listing exports execution history of a export by name
+type ExportExecutionListResult struct {
+ autorest.Response `json:"-"`
+ // Value - READ-ONLY; The list of export executions.
+ Value *[]ExportExecution `json:"value,omitempty"`
+}
+
+// ExportExecutionProperties the properties of the export execution.
+type ExportExecutionProperties struct {
+ // ExecutionType - The type of the export execution. Possible values include: 'OnDemand', 'Scheduled'
+ ExecutionType ExecutionType `json:"executionType,omitempty"`
+ // Status - The status of the export execution. Possible values include: 'Queued', 'InProgress', 'Completed', 'Failed', 'Timeout', 'NewDataNotAvailable', 'DataNotAvailable'
+ Status ExecutionStatus `json:"status,omitempty"`
+ // SubmittedBy - The identifier for the entity that executed the export. For OnDemand executions, it is the email id. For Scheduled executions, it is the constant value - System.
+ SubmittedBy *string `json:"submittedBy,omitempty"`
+ // SubmittedTime - The time when export was queued to be executed.
+ SubmittedTime *date.Time `json:"submittedTime,omitempty"`
+ // ProcessingStartTime - The time when export was picked up to be executed.
+ ProcessingStartTime *date.Time `json:"processingStartTime,omitempty"`
+ // ProcessingEndTime - The time when export execution finished.
+ ProcessingEndTime *date.Time `json:"processingEndTime,omitempty"`
+ // FileName - The name of the file export got written to.
+ FileName *string `json:"fileName,omitempty"`
+ RunSettings *CommonExportProperties `json:"runSettings,omitempty"`
+}
+
+// ExportListResult result of listing exports. It contains a list of available exports in the scope
+// provided.
+type ExportListResult struct {
+ autorest.Response `json:"-"`
+ // Value - READ-ONLY; The list of exports.
+ Value *[]Export `json:"value,omitempty"`
+}
+
+// ExportProperties the properties of the export.
+type ExportProperties struct {
+ // Schedule - Has schedule information for the export.
+ Schedule *ExportSchedule `json:"schedule,omitempty"`
+ // Format - The format of the export being delivered. Possible values include: 'Csv'
+ Format FormatType `json:"format,omitempty"`
+ // DeliveryInfo - Has delivery information for the export.
+ DeliveryInfo *ExportDeliveryInfo `json:"deliveryInfo,omitempty"`
+ // Definition - Has definition for the export.
+ Definition *QueryDefinition `json:"definition,omitempty"`
+}
+
+// ExportRecurrencePeriod the start and end date for recurrence schedule.
+type ExportRecurrencePeriod struct {
+ // From - The start date of recurrence.
+ From *date.Time `json:"from,omitempty"`
+ // To - The end date of recurrence.
+ To *date.Time `json:"to,omitempty"`
+}
+
+// ExportSchedule the schedule associated with a export.
+type ExportSchedule struct {
+ // Status - The status of the schedule. Whether active or not. If inactive, the export's scheduled execution is paused. Possible values include: 'Active', 'Inactive'
+ Status StatusType `json:"status,omitempty"`
+ // Recurrence - The schedule recurrence. Possible values include: 'RecurrenceTypeDaily', 'RecurrenceTypeWeekly', 'RecurrenceTypeMonthly', 'RecurrenceTypeAnnually'
+ Recurrence RecurrenceType `json:"recurrence,omitempty"`
+ // RecurrencePeriod - Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
+ RecurrencePeriod *ExportRecurrencePeriod `json:"recurrencePeriod,omitempty"`
+}
+
+// Operation a Cost management REST API operation.
+type Operation struct {
+ // Name - READ-ONLY; Operation name: {provider}/{resource}/{operation}.
+ Name *string `json:"name,omitempty"`
+ // Display - The object that represents the operation.
+ Display *OperationDisplay `json:"display,omitempty"`
+}
+
+// OperationDisplay the object that represents the operation.
+type OperationDisplay struct {
+ // Provider - READ-ONLY; Service provider: Microsoft.CostManagement.
+ Provider *string `json:"provider,omitempty"`
+ // Resource - READ-ONLY; Resource on which the operation is performed: Dimensions, Query.
+ Resource *string `json:"resource,omitempty"`
+ // Operation - READ-ONLY; Operation type: Read, write, delete, etc.
+ Operation *string `json:"operation,omitempty"`
+}
+
+// OperationListResult result of listing cost management operations. It contains a list of operations and a
+// URL link to get the next set of results.
+type OperationListResult struct {
+ autorest.Response `json:"-"`
+ // Value - READ-ONLY; List of cost management operations supported by the Microsoft.CostManagement resource provider.
+ Value *[]Operation `json:"value,omitempty"`
+ // NextLink - READ-ONLY; URL to get the next set of operation list results if there are any.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// OperationListResultIterator provides access to a complete listing of Operation values.
+type OperationListResultIterator struct {
+ i int
+ page OperationListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *OperationListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter OperationListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter OperationListResultIterator) Response() OperationListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter OperationListResultIterator) Value() Operation {
+ if !iter.page.NotDone() {
+ return Operation{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the OperationListResultIterator type.
+func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator {
+ return OperationListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (olr OperationListResult) IsEmpty() bool {
+ return olr.Value == nil || len(*olr.Value) == 0
+}
+
+// operationListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (olr OperationListResult) operationListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if olr.NextLink == nil || len(to.String(olr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(olr.NextLink)))
+}
+
+// OperationListResultPage contains a page of Operation values.
+type OperationListResultPage struct {
+ fn func(context.Context, OperationListResult) (OperationListResult, error)
+ olr OperationListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.olr)
+ if err != nil {
+ return err
+ }
+ page.olr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *OperationListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page OperationListResultPage) NotDone() bool {
+ return !page.olr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page OperationListResultPage) Response() OperationListResult {
+ return page.olr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page OperationListResultPage) Values() []Operation {
+ if page.olr.IsEmpty() {
+ return nil
+ }
+ return *page.olr.Value
+}
+
+// Creates a new instance of the OperationListResultPage type.
+func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage {
+ return OperationListResultPage{fn: getNextPage}
+}
+
+// QueryAggregation the aggregation expression to be used in the query.
+type QueryAggregation struct {
+ // Name - The name of the column to aggregate.
+ Name *string `json:"name,omitempty"`
+ // Function - The name of the aggregation function to use.
+ Function *string `json:"function,omitempty"`
+}
+
+// QueryColumn ...
+type QueryColumn struct {
+ // Name - The name of column.
+ Name *string `json:"name,omitempty"`
+ // Type - The type of column.
+ Type *string `json:"type,omitempty"`
+}
+
+// QueryComparisonExpression the comparison expression to be used in the query.
+type QueryComparisonExpression struct {
+ // Name - The name of the column to use in comparison.
+ Name *string `json:"name,omitempty"`
+ // Operator - The operator to use for comparison.
+ Operator *string `json:"operator,omitempty"`
+ // Values - Array of values to use for comparison
+ Values *[]string `json:"values,omitempty"`
+}
+
+// QueryDataset the definition of data present in the query.
+type QueryDataset struct {
+ // Granularity - The granularity of rows in the query. Possible values include: 'Daily', 'Hourly'
+ Granularity GranularityType `json:"granularity,omitempty"`
+ // Configuration - Has configuration information for the data in the export. The configuration will be ignored if aggregation and grouping are provided.
+ Configuration *QueryDatasetConfiguration `json:"configuration,omitempty"`
+ // Aggregation - Dictionary of aggregation expression to use in the query. The key of each item in the dictionary is the alias for the aggregated column. Query can have up to 2 aggregation clauses.
+ Aggregation map[string]*QueryAggregation `json:"aggregation"`
+ // Grouping - Array of group by expression to use in the query. Query can have up to 2 group by clauses.
+ Grouping *[]QueryGrouping `json:"grouping,omitempty"`
+ // Sorting - Array of sorting by columns in query.
+ Sorting *[]QuerySortingConfiguration `json:"sorting,omitempty"`
+ // Filter - Has filter expression to use in the query.
+ Filter *QueryFilter `json:"filter,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for QueryDataset.
+func (qd QueryDataset) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if qd.Granularity != "" {
+ objectMap["granularity"] = qd.Granularity
+ }
+ if qd.Configuration != nil {
+ objectMap["configuration"] = qd.Configuration
+ }
+ if qd.Aggregation != nil {
+ objectMap["aggregation"] = qd.Aggregation
+ }
+ if qd.Grouping != nil {
+ objectMap["grouping"] = qd.Grouping
+ }
+ if qd.Sorting != nil {
+ objectMap["sorting"] = qd.Sorting
+ }
+ if qd.Filter != nil {
+ objectMap["filter"] = qd.Filter
+ }
+ return json.Marshal(objectMap)
+}
+
+// QueryDatasetConfiguration the configuration of dataset in the query.
+type QueryDatasetConfiguration struct {
+ // Columns - Array of column names to be included in the query. Any valid query column name is allowed. If not provided, then query includes all columns.
+ Columns *[]string `json:"columns,omitempty"`
+}
+
+// QueryDefinition the definition of a query.
+type QueryDefinition struct {
+ // Type - The type of the query.
+ Type *string `json:"type,omitempty"`
+ // Timeframe - The time frame for pulling data for the query. If custom, then a specific time period must be provided. Possible values include: 'WeekToDate', 'MonthToDate', 'YearToDate', 'TheLastWeek', 'TheLastMonth', 'TheLastYear', 'Custom'
+ Timeframe TimeframeType `json:"timeframe,omitempty"`
+ // TimePeriod - Has time period for pulling data for the query.
+ TimePeriod *QueryTimePeriod `json:"timePeriod,omitempty"`
+ // Dataset - Has definition for data in this query.
+ Dataset *QueryDataset `json:"dataset,omitempty"`
+}
+
+// QueryFilter the filter expression to be used in the export.
+type QueryFilter struct {
+ // And - The logical "AND" expression. Must have at least 2 items.
+ And *[]QueryFilter `json:"and,omitempty"`
+ // Or - The logical "OR" expression. Must have at least 2 items.
+ Or *[]QueryFilter `json:"or,omitempty"`
+ // Not - The logical "NOT" expression.
+ Not *QueryFilter `json:"not,omitempty"`
+ // Dimension - Has comparison expression for a dimension
+ Dimension *QueryComparisonExpression `json:"dimension,omitempty"`
+ // Tag - Has comparison expression for a tag
+ Tag *QueryComparisonExpression `json:"tag,omitempty"`
+}
+
+// QueryGrouping the group by expression to be used in the query.
+type QueryGrouping struct {
+ // Type - Has type of the column to group. Possible values include: 'QueryColumnTypeTag', 'QueryColumnTypeDimension'
+ Type QueryColumnType `json:"type,omitempty"`
+ // Name - The name of the column to group.
+ Name *string `json:"name,omitempty"`
+}
+
+// QueryProperties ...
+type QueryProperties struct {
+ // NextLink - The link (url) to the next page of results.
+ NextLink *string `json:"nextLink,omitempty"`
+ // Columns - Array of columns
+ Columns *[]QueryColumn `json:"columns,omitempty"`
+ // Rows - Array of rows
+ Rows *[][]interface{} `json:"rows,omitempty"`
+}
+
+// QueryResult result of query. It contains all columns listed under groupings and aggregation.
+type QueryResult struct {
+ autorest.Response `json:"-"`
+ *QueryProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource Id.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty"`
+ // Tags - READ-ONLY; Resource tags.
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for QueryResult.
+func (qr QueryResult) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if qr.QueryProperties != nil {
+ objectMap["properties"] = qr.QueryProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for QueryResult struct.
+func (qr *QueryResult) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var queryProperties QueryProperties
+ err = json.Unmarshal(*v, &queryProperties)
+ if err != nil {
+ return err
+ }
+ qr.QueryProperties = &queryProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ qr.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ qr.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ qr.Type = &typeVar
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ qr.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// QuerySortingConfiguration the configuration for sorting in the query.
+type QuerySortingConfiguration struct {
+ // QuerySortingDirection - The sorting direction. Possible values include: 'Ascending', 'Descending'
+ QuerySortingDirection SortDirection `json:"querySortingDirection,omitempty"`
+ // Name - The name of the column to use in sorting.
+ Name *string `json:"name,omitempty"`
+}
+
+// QueryTimePeriod the start and end date for pulling data for the query.
+type QueryTimePeriod struct {
+ // From - The start date to pull data from.
+ From *date.Time `json:"from,omitempty"`
+ // To - The end date to pull data to.
+ To *date.Time `json:"to,omitempty"`
+}
+
+// Resource the Resource model definition.
+type Resource struct {
+ // ID - READ-ONLY; Resource Id.
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty"`
+ // Tags - READ-ONLY; 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{})
+ return json.Marshal(objectMap)
+}
diff --git a/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/operations.go b/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/operations.go
new file mode 100644
index 000000000000..d8eb4bd62a9d
--- /dev/null
+++ b/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/operations.go
@@ -0,0 +1,147 @@
+package costmanagement
+
+// 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/tracing"
+ "net/http"
+)
+
+// OperationsClient is the client for the Operations methods of the Costmanagement service.
+type OperationsClient struct {
+ BaseClient
+}
+
+// NewOperationsClient creates an instance of the OperationsClient client.
+func NewOperationsClient(subscriptionID string) OperationsClient {
+ return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
+ return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List lists all of the available cost management REST API operations.
+func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List")
+ defer func() {
+ sc := -1
+ if result.olr.Response.Response != nil {
+ sc = result.olr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.olr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.olr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ const APIVersion = "2019-10-01"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPath("/providers/Microsoft.CostManagement/operations"),
+ 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 OperationsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, 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 OperationsClient) listNextResults(ctx context.Context, lastResults OperationListResult) (result OperationListResult, err error) {
+ req, err := lastResults.operationListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "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, "costmanagement.OperationsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.OperationsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx)
+ return
+}
diff --git a/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/query.go b/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/query.go
new file mode 100644
index 000000000000..bc517d718696
--- /dev/null
+++ b/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/query.go
@@ -0,0 +1,166 @@
+package costmanagement
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// QueryClient is the client for the Query methods of the Costmanagement service.
+type QueryClient struct {
+ BaseClient
+}
+
+// NewQueryClient creates an instance of the QueryClient client.
+func NewQueryClient(subscriptionID string) QueryClient {
+ return NewQueryClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewQueryClientWithBaseURI creates an instance of the QueryClient client.
+func NewQueryClientWithBaseURI(baseURI string, subscriptionID string) QueryClient {
+ return QueryClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// UsageByScope query the usage data for scope defined.
+// Parameters:
+// scope - the scope associated with query and export operations. This includes
+// '/subscriptions/{subscriptionId}/' for subscription scope,
+// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department
+// scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
+// for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for
+// Management Group scope,
+// '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for
+// billingProfile scope,
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
+// for invoiceSection scope, and
+// 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
+// partners.
+// parameters - parameters supplied to the CreateOrUpdate Query Config operation.
+func (client QueryClient) UsageByScope(ctx context.Context, scope string, parameters QueryDefinition) (result QueryResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/QueryClient.UsageByScope")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: parameters,
+ Constraints: []validation.Constraint{{Target: "parameters.Type", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.TimePeriod", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.TimePeriod.From", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.TimePeriod.To", Name: validation.Null, Rule: true, Chain: nil},
+ }},
+ {Target: "parameters.Dataset", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Dataset.Grouping", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Dataset.Grouping", Name: validation.MaxItems, Rule: 2, Chain: nil}}},
+ {Target: "parameters.Dataset.Filter", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Dataset.Filter.And", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Dataset.Filter.And", Name: validation.MinItems, Rule: 2, Chain: nil}}},
+ {Target: "parameters.Dataset.Filter.Or", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Dataset.Filter.Or", Name: validation.MinItems, Rule: 2, Chain: nil}}},
+ {Target: "parameters.Dataset.Filter.Not", Name: validation.Null, Rule: false, Chain: nil},
+ {Target: "parameters.Dataset.Filter.Dimension", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Dataset.Filter.Dimension.Name", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.Dataset.Filter.Dimension.Operator", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.Dataset.Filter.Dimension.Values", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.Dataset.Filter.Dimension.Values", Name: validation.MinItems, Rule: 1, Chain: nil}}},
+ }},
+ {Target: "parameters.Dataset.Filter.Tag", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "parameters.Dataset.Filter.Tag.Name", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.Dataset.Filter.Tag.Operator", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "parameters.Dataset.Filter.Tag.Values", Name: validation.Null, Rule: true,
+ Chain: []validation.Constraint{{Target: "parameters.Dataset.Filter.Tag.Values", Name: validation.MinItems, Rule: 1, Chain: nil}}},
+ }},
+ }},
+ }}}}}); err != nil {
+ return result, validation.NewError("costmanagement.QueryClient", "UsageByScope", err.Error())
+ }
+
+ req, err := client.UsageByScopePreparer(ctx, scope, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.QueryClient", "UsageByScope", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UsageByScopeSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "costmanagement.QueryClient", "UsageByScope", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UsageByScopeResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "costmanagement.QueryClient", "UsageByScope", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UsageByScopePreparer prepares the UsageByScope request.
+func (client QueryClient) UsageByScopePreparer(ctx context.Context, scope string, parameters QueryDefinition) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "scope": scope,
+ }
+
+ const APIVersion = "2019-10-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("/{scope}/providers/Microsoft.CostManagement/query", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// UsageByScopeSender sends the UsageByScope request. The method will close the
+// http.Response Body if it receives an error.
+func (client QueryClient) UsageByScopeSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UsageByScopeResponder handles the response to the UsageByScope request. The method always
+// closes the http.Response Body.
+func (client QueryClient) UsageByScopeResponder(resp *http.Response) (result QueryResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/version.go b/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/version.go
new file mode 100644
index 000000000000..f1711e9d07e1
--- /dev/null
+++ b/services/preview/costmanagement/mgmt/2019-10-01/costmanagement/version.go
@@ -0,0 +1,30 @@
+package costmanagement
+
+import "github.com/Azure/azure-sdk-for-go/version"
+
+// 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.
+
+// UserAgent returns the UserAgent string to use when sending http.Requests.
+func UserAgent() string {
+ return "Azure-SDK-For-Go/" + version.Number + " costmanagement/2019-10-01"
+}
+
+// Version returns the semantic version (see http://semver.org) of the client.
+func Version() string {
+ return version.Number
+}
diff --git a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/models.go b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/models.go
index b207dd6b13b7..5541101fd47e 100644
--- a/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/models.go
+++ b/services/preview/datafactory/mgmt/2017-09-01-preview/datafactory/models.go
@@ -19133,6 +19133,8 @@ type BlobEventsTriggerTypeProperties struct {
BlobPathBeginsWith *string `json:"blobPathBeginsWith,omitempty"`
// BlobPathEndsWith - The blob path must end with the pattern provided for trigger to fire. For example, 'december/boxes.csv' will only fire the trigger for blobs named boxes in a december folder. At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith.
BlobPathEndsWith *string `json:"blobPathEndsWith,omitempty"`
+ // IgnoreEmptyBlobs - If set to true, blobs with zero bytes will be ignored.
+ IgnoreEmptyBlobs *bool `json:"ignoreEmptyBlobs,omitempty"`
// Events - The type of events that cause this trigger to fire.
Events *[]BlobEventTypes `json:"events,omitempty"`
// Scope - The ARM resource ID of the Storage Account.
diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datasetmappings.go b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datasetmappings.go
index 1bc643740fbf..632d75aba2cf 100644
--- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datasetmappings.go
+++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datasetmappings.go
@@ -45,7 +45,7 @@ func NewDataSetMappingsClientWithBaseURI(baseURI string, subscriptionID string)
// resourceGroupName - the resource group name.
// accountName - the name of the share account.
// shareSubscriptionName - the name of the share subscription which will hold the data set sink.
-// dataSetMappingName - the Id of the source data set being mapped.
+// dataSetMappingName - the name of the data set mapping to be created.
// dataSetMapping - destination data set configuration details.
func (client DataSetMappingsClient) Create(ctx context.Context, resourceGroupName string, accountName string, shareSubscriptionName string, dataSetMappingName string, dataSetMapping BasicDataSetMapping) (result DataSetMappingModel, err error) {
if tracing.IsEnabled() {
diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datasets.go b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datasets.go
index 4a08ddace234..47bee16b75c2 100644
--- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datasets.go
+++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datasets.go
@@ -130,13 +130,13 @@ func (client DataSetsClient) CreateResponder(resp *http.Response) (result DataSe
// accountName - the name of the share account.
// shareName - the name of the share.
// dataSetName - the name of the dataSet.
-func (client DataSetsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string, dataSetName string) (result autorest.Response, err error) {
+func (client DataSetsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string, dataSetName string) (result DataSetsDeleteFuture, err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/DataSetsClient.Delete")
defer func() {
sc := -1
- if result.Response != nil {
- sc = result.Response.StatusCode
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
}
tracing.EndSpan(ctx, sc, err)
}()
@@ -147,18 +147,12 @@ func (client DataSetsClient) Delete(ctx context.Context, resourceGroupName strin
return
}
- resp, err := client.DeleteSender(req)
+ result, err = client.DeleteSender(req)
if err != nil {
- result.Response = resp
- err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "Delete", resp, "Failure sending request")
+ err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "Delete", result.Response(), "Failure sending request")
return
}
- result, err = client.DeleteResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "datashare.DataSetsClient", "Delete", resp, "Failure responding to request")
- }
-
return
}
@@ -187,9 +181,15 @@ func (client DataSetsClient) DeletePreparer(ctx context.Context, resourceGroupNa
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
-func (client DataSetsClient) DeleteSender(req *http.Request) (*http.Response, error) {
+func (client DataSetsClient) DeleteSender(req *http.Request) (future DataSetsDeleteFuture, err error) {
sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
}
// DeleteResponder handles the response to the Delete request. The method always
@@ -198,7 +198,7 @@ func (client DataSetsClient) DeleteResponder(resp *http.Response) (result autore
err = autorest.Respond(
resp,
client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
autorest.ByClosing())
result.Response = resp
return
diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datashareapi/interfaces.go b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datashareapi/interfaces.go
index 80094b3f09a3..cde7671b16c2 100644
--- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datashareapi/interfaces.go
+++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/datashareapi/interfaces.go
@@ -47,7 +47,7 @@ var _ ConsumerInvitationsClientAPI = (*datashare.ConsumerInvitationsClient)(nil)
// DataSetsClientAPI contains the set of methods on the DataSetsClient type.
type DataSetsClientAPI interface {
Create(ctx context.Context, resourceGroupName string, accountName string, shareName string, dataSetName string, dataSet datashare.BasicDataSet) (result datashare.DataSetModel, err error)
- Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string, dataSetName string) (result autorest.Response, err error)
+ Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string, dataSetName string) (result datashare.DataSetsDeleteFuture, err error)
Get(ctx context.Context, resourceGroupName string, accountName string, shareName string, dataSetName string) (result datashare.DataSetModel, err error)
ListByShare(ctx context.Context, resourceGroupName string, accountName string, shareName string, skipToken string) (result datashare.DataSetListPage, err error)
}
diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/models.go b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/models.go
index 8fd86e2e13ae..69f7c1eac0ee 100644
--- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/models.go
+++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/models.go
@@ -66,6 +66,10 @@ const (
BlobFolder DataSetType = "BlobFolder"
// Container ...
Container DataSetType = "Container"
+ // KustoCluster ...
+ KustoCluster DataSetType = "KustoCluster"
+ // KustoDatabase ...
+ KustoDatabase DataSetType = "KustoDatabase"
// SQLDBTable ...
SQLDBTable DataSetType = "SqlDBTable"
// SQLDWTable ...
@@ -74,7 +78,7 @@ const (
// PossibleDataSetTypeValues returns an array of possible values for the DataSetType const type.
func PossibleDataSetTypeValues() []DataSetType {
- return []DataSetType{AdlsGen1File, AdlsGen1Folder, AdlsGen2File, AdlsGen2FileSystem, AdlsGen2Folder, Blob, BlobFolder, Container, SQLDBTable, SQLDWTable}
+ return []DataSetType{AdlsGen1File, AdlsGen1Folder, AdlsGen2File, AdlsGen2FileSystem, AdlsGen2Folder, Blob, BlobFolder, Container, KustoCluster, KustoDatabase, SQLDBTable, SQLDWTable}
}
// InvitationStatus enumerates the values for invitation status.
@@ -118,6 +122,10 @@ const (
KindContainer Kind = "Container"
// KindDataSet ...
KindDataSet Kind = "DataSet"
+ // KindKustoCluster ...
+ KindKustoCluster Kind = "KustoCluster"
+ // KindKustoDatabase ...
+ KindKustoDatabase Kind = "KustoDatabase"
// KindSQLDBTable ...
KindSQLDBTable Kind = "SqlDBTable"
// KindSQLDWTable ...
@@ -126,7 +134,7 @@ const (
// PossibleKindValues returns an array of possible values for the Kind const type.
func PossibleKindValues() []Kind {
- return []Kind{KindAdlsGen1File, KindAdlsGen1Folder, KindAdlsGen2File, KindAdlsGen2FileSystem, KindAdlsGen2Folder, KindBlob, KindBlobFolder, KindContainer, KindDataSet, KindSQLDBTable, KindSQLDWTable}
+ return []Kind{KindAdlsGen1File, KindAdlsGen1Folder, KindAdlsGen2File, KindAdlsGen2FileSystem, KindAdlsGen2Folder, KindBlob, KindBlobFolder, KindContainer, KindDataSet, KindKustoCluster, KindKustoDatabase, KindSQLDBTable, KindSQLDWTable}
}
// KindBasicDataSetMapping enumerates the values for kind basic data set mapping.
@@ -147,6 +155,10 @@ const (
KindBasicDataSetMappingKindContainer KindBasicDataSetMapping = "Container"
// KindBasicDataSetMappingKindDataSetMapping ...
KindBasicDataSetMappingKindDataSetMapping KindBasicDataSetMapping = "DataSetMapping"
+ // KindBasicDataSetMappingKindKustoCluster ...
+ KindBasicDataSetMappingKindKustoCluster KindBasicDataSetMapping = "KustoCluster"
+ // KindBasicDataSetMappingKindKustoDatabase ...
+ KindBasicDataSetMappingKindKustoDatabase KindBasicDataSetMapping = "KustoDatabase"
// KindBasicDataSetMappingKindSQLDBTable ...
KindBasicDataSetMappingKindSQLDBTable KindBasicDataSetMapping = "SqlDBTable"
// KindBasicDataSetMappingKindSQLDWTable ...
@@ -155,7 +167,7 @@ const (
// PossibleKindBasicDataSetMappingValues returns an array of possible values for the KindBasicDataSetMapping const type.
func PossibleKindBasicDataSetMappingValues() []KindBasicDataSetMapping {
- return []KindBasicDataSetMapping{KindBasicDataSetMappingKindAdlsGen2File, KindBasicDataSetMappingKindAdlsGen2FileSystem, KindBasicDataSetMappingKindAdlsGen2Folder, KindBasicDataSetMappingKindBlob, KindBasicDataSetMappingKindBlobFolder, KindBasicDataSetMappingKindContainer, KindBasicDataSetMappingKindDataSetMapping, KindBasicDataSetMappingKindSQLDBTable, KindBasicDataSetMappingKindSQLDWTable}
+ return []KindBasicDataSetMapping{KindBasicDataSetMappingKindAdlsGen2File, KindBasicDataSetMappingKindAdlsGen2FileSystem, KindBasicDataSetMappingKindAdlsGen2Folder, KindBasicDataSetMappingKindBlob, KindBasicDataSetMappingKindBlobFolder, KindBasicDataSetMappingKindContainer, KindBasicDataSetMappingKindDataSetMapping, KindBasicDataSetMappingKindKustoCluster, KindBasicDataSetMappingKindKustoDatabase, KindBasicDataSetMappingKindSQLDBTable, KindBasicDataSetMappingKindSQLDWTable}
}
// KindBasicSourceShareSynchronizationSetting enumerates the values for kind basic source share synchronization
@@ -261,11 +273,13 @@ type ShareKind string
const (
// CopyBased ...
CopyBased ShareKind = "CopyBased"
+ // InPlace ...
+ InPlace ShareKind = "InPlace"
)
// PossibleShareKindValues returns an array of possible values for the ShareKind const type.
func PossibleShareKindValues() []ShareKind {
- return []ShareKind{CopyBased}
+ return []ShareKind{CopyBased, InPlace}
}
// ShareSubscriptionStatus enumerates the values for share subscription status.
@@ -620,10 +634,12 @@ func NewAccountListPage(getNextPage func(context.Context, AccountList) (AccountL
type AccountProperties struct {
// CreatedAt - READ-ONLY; Time at which the account was created.
CreatedAt *date.Time `json:"createdAt,omitempty"`
- // CreatedBy - READ-ONLY; Name of the user who created the account.
- CreatedBy *string `json:"createdBy,omitempty"`
// ProvisioningState - READ-ONLY; Provisioning state of the Account. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+ // UserEmail - READ-ONLY; Email of the user who created the resource
+ UserEmail *string `json:"userEmail,omitempty"`
+ // UserName - READ-ONLY; Name of the user who created the resource
+ UserName *string `json:"userName,omitempty"`
}
// AccountsCreateFuture an abstraction for monitoring and retrieving the results of a long-running
@@ -699,9 +715,9 @@ func (aup AccountUpdateParameters) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap)
}
-// ADLSGen1FileDataSet an ADLS Gen 1 file dataset.
+// ADLSGen1FileDataSet an ADLS Gen 1 file data set.
type ADLSGen1FileDataSet struct {
- // ADLSGen1FileProperties - ADLS Gen 1 file dataset properties.
+ // ADLSGen1FileProperties - ADLS Gen 1 file data set properties.
*ADLSGen1FileProperties `json:"properties,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -709,7 +725,7 @@ type ADLSGen1FileDataSet struct {
Name *string `json:"name,omitempty"`
// Type - READ-ONLY; Type of the azure resource
Type *string `json:"type,omitempty"`
- // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindSQLDWTable', 'KindSQLDBTable'
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
Kind Kind `json:"kind,omitempty"`
}
@@ -766,6 +782,16 @@ func (ag1fds ADLSGen1FileDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet,
return &ag1fds, true
}
+// AsKustoClusterDataSet is the BasicDataSet implementation for ADLSGen1FileDataSet.
+func (ag1fds ADLSGen1FileDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for ADLSGen1FileDataSet.
+func (ag1fds ADLSGen1FileDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSet is the BasicDataSet implementation for ADLSGen1FileDataSet.
func (ag1fds ADLSGen1FileDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
return nil, false
@@ -862,11 +888,11 @@ type ADLSGen1FileProperties struct {
SubscriptionID *string `json:"subscriptionId,omitempty"`
}
-// ADLSGen1FolderDataSet an ADLS Gen 1 folder dataset.
+// ADLSGen1FolderDataSet an ADLS Gen 1 folder data set.
type ADLSGen1FolderDataSet struct {
- // ADLSGen1FolderProperties - ADLS Gen 1 folder dataset properties.
+ // ADLSGen1FolderProperties - ADLS Gen 1 folder data set properties.
*ADLSGen1FolderProperties `json:"properties,omitempty"`
- // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindSQLDWTable', 'KindSQLDBTable'
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
Kind Kind `json:"kind,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -929,6 +955,16 @@ func (ag1fds ADLSGen1FolderDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSe
return nil, false
}
+// AsKustoClusterDataSet is the BasicDataSet implementation for ADLSGen1FolderDataSet.
+func (ag1fds ADLSGen1FolderDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for ADLSGen1FolderDataSet.
+func (ag1fds ADLSGen1FolderDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSet is the BasicDataSet implementation for ADLSGen1FolderDataSet.
func (ag1fds ADLSGen1FolderDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
return nil, false
@@ -1023,11 +1059,11 @@ type ADLSGen1FolderProperties struct {
SubscriptionID *string `json:"subscriptionId,omitempty"`
}
-// ADLSGen2FileDataSet an ADLS Gen 2 file dataset.
+// ADLSGen2FileDataSet an ADLS Gen 2 file data set.
type ADLSGen2FileDataSet struct {
- // ADLSGen2FileProperties - ADLS Gen 2 file dataset properties.
+ // ADLSGen2FileProperties - ADLS Gen 2 file data set properties.
*ADLSGen2FileProperties `json:"properties,omitempty"`
- // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindSQLDWTable', 'KindSQLDBTable'
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
Kind Kind `json:"kind,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -1090,6 +1126,16 @@ func (ag2fds ADLSGen2FileDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet,
return nil, false
}
+// AsKustoClusterDataSet is the BasicDataSet implementation for ADLSGen2FileDataSet.
+func (ag2fds ADLSGen2FileDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for ADLSGen2FileDataSet.
+func (ag2fds ADLSGen2FileDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSet is the BasicDataSet implementation for ADLSGen2FileDataSet.
func (ag2fds ADLSGen2FileDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
return nil, false
@@ -1170,9 +1216,9 @@ func (ag2fds *ADLSGen2FileDataSet) UnmarshalJSON(body []byte) error {
return nil
}
-// ADLSGen2FileDataSetMapping an ADLS Gen2 file dataset mapping.
+// ADLSGen2FileDataSetMapping an ADLS Gen2 file data set mapping.
type ADLSGen2FileDataSetMapping struct {
- // ADLSGen2FileDataSetMappingProperties - ADLS Gen2 file dataset mapping properties.
+ // ADLSGen2FileDataSetMappingProperties - ADLS Gen2 file data set mapping properties.
*ADLSGen2FileDataSetMappingProperties `json:"properties,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -1180,7 +1226,7 @@ type ADLSGen2FileDataSetMapping struct {
Name *string `json:"name,omitempty"`
// Type - READ-ONLY; Type of the azure resource
Type *string `json:"type,omitempty"`
- // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
Kind KindBasicDataSetMapping `json:"kind,omitempty"`
}
@@ -1227,6 +1273,16 @@ func (ag2fdsm ADLSGen2FileDataSetMapping) AsADLSGen2FileSystemDataSetMapping() (
return nil, false
}
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileDataSetMapping.
+func (ag2fdsm ADLSGen2FileDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileDataSetMapping.
+func (ag2fdsm ADLSGen2FileDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileDataSetMapping.
func (ag2fdsm ADLSGen2FileDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
return nil, false
@@ -1307,11 +1363,11 @@ func (ag2fdsm *ADLSGen2FileDataSetMapping) UnmarshalJSON(body []byte) error {
return nil
}
-// ADLSGen2FileDataSetMappingProperties ADLS Gen 2 file dataset mapping property bag.
+// ADLSGen2FileDataSetMappingProperties ADLS Gen 2 file data set mapping property bag.
type ADLSGen2FileDataSetMappingProperties struct {
- // DataSetID - Gets the id of source dataset.
+ // DataSetID - The id of the source data set.
DataSetID *string `json:"dataSetId,omitempty"`
- // DataSetMappingStatus - Gets the status of the dataset mapping. Possible values include: 'Ok', 'Broken'
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
// FilePath - File path within the file system.
FilePath *string `json:"filePath,omitempty"`
@@ -1319,6 +1375,8 @@ type ADLSGen2FileDataSetMappingProperties struct {
FileSystem *string `json:"fileSystem,omitempty"`
// OutputType - Type of output file. Possible values include: 'Csv', 'Parquet'
OutputType OutputType `json:"outputType,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
// ResourceGroup - Resource group of storage account.
ResourceGroup *string `json:"resourceGroup,omitempty"`
// StorageAccountName - Storage account name of the source data set.
@@ -1343,11 +1401,11 @@ type ADLSGen2FileProperties struct {
SubscriptionID *string `json:"subscriptionId,omitempty"`
}
-// ADLSGen2FileSystemDataSet an ADLS Gen 2 file system dataset.
+// ADLSGen2FileSystemDataSet an ADLS Gen 2 file system data set.
type ADLSGen2FileSystemDataSet struct {
- // ADLSGen2FileSystemProperties - ADLS Gen 2 file system dataset properties.
+ // ADLSGen2FileSystemProperties - ADLS Gen 2 file system data set properties.
*ADLSGen2FileSystemProperties `json:"properties,omitempty"`
- // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindSQLDWTable', 'KindSQLDBTable'
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
Kind Kind `json:"kind,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -1410,6 +1468,16 @@ func (ag2fsds ADLSGen2FileSystemDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileD
return nil, false
}
+// AsKustoClusterDataSet is the BasicDataSet implementation for ADLSGen2FileSystemDataSet.
+func (ag2fsds ADLSGen2FileSystemDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for ADLSGen2FileSystemDataSet.
+func (ag2fsds ADLSGen2FileSystemDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSet is the BasicDataSet implementation for ADLSGen2FileSystemDataSet.
func (ag2fsds ADLSGen2FileSystemDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
return nil, false
@@ -1490,11 +1558,11 @@ func (ag2fsds *ADLSGen2FileSystemDataSet) UnmarshalJSON(body []byte) error {
return nil
}
-// ADLSGen2FileSystemDataSetMapping an ADLS Gen2 file system dataset mapping.
+// ADLSGen2FileSystemDataSetMapping an ADLS Gen2 file system data set mapping.
type ADLSGen2FileSystemDataSetMapping struct {
- // ADLSGen2FileSystemDataSetMappingProperties - ADLS Gen2 file system dataset mapping properties.
+ // ADLSGen2FileSystemDataSetMappingProperties - ADLS Gen2 file system data set mapping properties.
*ADLSGen2FileSystemDataSetMappingProperties `json:"properties,omitempty"`
- // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
Kind KindBasicDataSetMapping `json:"kind,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -1547,6 +1615,16 @@ func (ag2fsdsm ADLSGen2FileSystemDataSetMapping) AsADLSGen2FileSystemDataSetMapp
return &ag2fsdsm, true
}
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileSystemDataSetMapping.
+func (ag2fsdsm ADLSGen2FileSystemDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileSystemDataSetMapping.
+func (ag2fsdsm ADLSGen2FileSystemDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FileSystemDataSetMapping.
func (ag2fsdsm ADLSGen2FileSystemDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
return nil, false
@@ -1627,14 +1705,16 @@ func (ag2fsdsm *ADLSGen2FileSystemDataSetMapping) UnmarshalJSON(body []byte) err
return nil
}
-// ADLSGen2FileSystemDataSetMappingProperties ADLS Gen 2 file system dataset mapping property bag.
+// ADLSGen2FileSystemDataSetMappingProperties ADLS Gen 2 file system data set mapping property bag.
type ADLSGen2FileSystemDataSetMappingProperties struct {
- // DataSetID - Gets the id of source dataset.
+ // DataSetID - The id of the source data set.
DataSetID *string `json:"dataSetId,omitempty"`
- // DataSetMappingStatus - Gets the status of the dataset mapping. Possible values include: 'Ok', 'Broken'
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
// FileSystem - The file system name.
FileSystem *string `json:"fileSystem,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
// ResourceGroup - Resource group of storage account.
ResourceGroup *string `json:"resourceGroup,omitempty"`
// StorageAccountName - Storage account name of the source data set.
@@ -1657,11 +1737,11 @@ type ADLSGen2FileSystemProperties struct {
SubscriptionID *string `json:"subscriptionId,omitempty"`
}
-// ADLSGen2FolderDataSet an ADLS Gen 2 folder dataset.
+// ADLSGen2FolderDataSet an ADLS Gen 2 folder data set.
type ADLSGen2FolderDataSet struct {
- // ADLSGen2FolderProperties - ADLS Gen 2 folder dataset properties.
+ // ADLSGen2FolderProperties - ADLS Gen 2 folder data set properties.
*ADLSGen2FolderProperties `json:"properties,omitempty"`
- // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindSQLDWTable', 'KindSQLDBTable'
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
Kind Kind `json:"kind,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -1724,6 +1804,16 @@ func (ag2fds ADLSGen2FolderDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSe
return nil, false
}
+// AsKustoClusterDataSet is the BasicDataSet implementation for ADLSGen2FolderDataSet.
+func (ag2fds ADLSGen2FolderDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for ADLSGen2FolderDataSet.
+func (ag2fds ADLSGen2FolderDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSet is the BasicDataSet implementation for ADLSGen2FolderDataSet.
func (ag2fds ADLSGen2FolderDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
return nil, false
@@ -1804,11 +1894,11 @@ func (ag2fds *ADLSGen2FolderDataSet) UnmarshalJSON(body []byte) error {
return nil
}
-// ADLSGen2FolderDataSetMapping an ADLS Gen2 folder dataset mapping.
+// ADLSGen2FolderDataSetMapping an ADLS Gen2 folder data set mapping.
type ADLSGen2FolderDataSetMapping struct {
- // ADLSGen2FolderDataSetMappingProperties - ADLS Gen2 folder dataset mapping properties.
+ // ADLSGen2FolderDataSetMappingProperties - ADLS Gen2 folder data set mapping properties.
*ADLSGen2FolderDataSetMappingProperties `json:"properties,omitempty"`
- // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
Kind KindBasicDataSetMapping `json:"kind,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -1861,6 +1951,16 @@ func (ag2fdsm ADLSGen2FolderDataSetMapping) AsADLSGen2FileSystemDataSetMapping()
return nil, false
}
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FolderDataSetMapping.
+func (ag2fdsm ADLSGen2FolderDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FolderDataSetMapping.
+func (ag2fdsm ADLSGen2FolderDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for ADLSGen2FolderDataSetMapping.
func (ag2fdsm ADLSGen2FolderDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
return nil, false
@@ -1941,16 +2041,18 @@ func (ag2fdsm *ADLSGen2FolderDataSetMapping) UnmarshalJSON(body []byte) error {
return nil
}
-// ADLSGen2FolderDataSetMappingProperties ADLS Gen 2 folder dataset mapping property bag.
+// ADLSGen2FolderDataSetMappingProperties ADLS Gen 2 folder data set mapping property bag.
type ADLSGen2FolderDataSetMappingProperties struct {
- // DataSetID - Gets the id of source dataset.
+ // DataSetID - The id of the source data set.
DataSetID *string `json:"dataSetId,omitempty"`
- // DataSetMappingStatus - Gets the status of the dataset mapping. Possible values include: 'Ok', 'Broken'
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
// FileSystem - File system to which the folder belongs.
FileSystem *string `json:"fileSystem,omitempty"`
// FolderPath - Folder path within the file system.
FolderPath *string `json:"folderPath,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
// ResourceGroup - Resource group of storage account.
ResourceGroup *string `json:"resourceGroup,omitempty"`
// StorageAccountName - Storage account name of the source data set.
@@ -1975,11 +2077,11 @@ type ADLSGen2FolderProperties struct {
SubscriptionID *string `json:"subscriptionId,omitempty"`
}
-// BlobContainerDataSet an Azure storage blob container dataset.
+// BlobContainerDataSet an Azure storage blob container data set.
type BlobContainerDataSet struct {
- // BlobContainerProperties - Blob container dataset properties.
+ // BlobContainerProperties - Blob container data set properties.
*BlobContainerProperties `json:"properties,omitempty"`
- // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindSQLDWTable', 'KindSQLDBTable'
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
Kind Kind `json:"kind,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -2042,6 +2144,16 @@ func (bcds BlobContainerDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet,
return nil, false
}
+// AsKustoClusterDataSet is the BasicDataSet implementation for BlobContainerDataSet.
+func (bcds BlobContainerDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for BlobContainerDataSet.
+func (bcds BlobContainerDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSet is the BasicDataSet implementation for BlobContainerDataSet.
func (bcds BlobContainerDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
return nil, false
@@ -2122,11 +2234,11 @@ func (bcds *BlobContainerDataSet) UnmarshalJSON(body []byte) error {
return nil
}
-// BlobContainerDataSetMapping a Blob container dataset mapping.
+// BlobContainerDataSetMapping a Blob container data set mapping.
type BlobContainerDataSetMapping struct {
- // BlobContainerMappingProperties - Blob container dataset mapping properties.
+ // BlobContainerMappingProperties - Blob container data set mapping properties.
*BlobContainerMappingProperties `json:"properties,omitempty"`
- // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
Kind KindBasicDataSetMapping `json:"kind,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -2179,6 +2291,16 @@ func (bcdsm BlobContainerDataSetMapping) AsADLSGen2FileSystemDataSetMapping() (*
return nil, false
}
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for BlobContainerDataSetMapping.
+func (bcdsm BlobContainerDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for BlobContainerDataSetMapping.
+func (bcdsm BlobContainerDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for BlobContainerDataSetMapping.
func (bcdsm BlobContainerDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
return nil, false
@@ -2259,14 +2381,16 @@ func (bcdsm *BlobContainerDataSetMapping) UnmarshalJSON(body []byte) error {
return nil
}
-// BlobContainerMappingProperties azure storage Blob container dataset mapping property bag.
+// BlobContainerMappingProperties azure storage Blob container data set mapping property bag.
type BlobContainerMappingProperties struct {
// ContainerName - BLOB Container name.
ContainerName *string `json:"containerName,omitempty"`
- // DataSetID - Gets the id of source dataset.
+ // DataSetID - The id of the source data set.
DataSetID *string `json:"dataSetId,omitempty"`
- // DataSetMappingStatus - Gets the status of the dataset mapping. Possible values include: 'Ok', 'Broken'
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
// ResourceGroup - Resource group of storage account.
ResourceGroup *string `json:"resourceGroup,omitempty"`
// StorageAccountName - Storage account name of the source data set.
@@ -2289,11 +2413,11 @@ type BlobContainerProperties struct {
SubscriptionID *string `json:"subscriptionId,omitempty"`
}
-// BlobDataSet an Azure storage blob dataset.
+// BlobDataSet an Azure storage blob data set.
type BlobDataSet struct {
- // BlobProperties - Blob dataset properties.
+ // BlobProperties - Blob data set properties.
*BlobProperties `json:"properties,omitempty"`
- // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindSQLDWTable', 'KindSQLDBTable'
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
Kind Kind `json:"kind,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -2356,6 +2480,16 @@ func (bds BlobDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool) {
return nil, false
}
+// AsKustoClusterDataSet is the BasicDataSet implementation for BlobDataSet.
+func (bds BlobDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for BlobDataSet.
+func (bds BlobDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSet is the BasicDataSet implementation for BlobDataSet.
func (bds BlobDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
return nil, false
@@ -2436,11 +2570,11 @@ func (bds *BlobDataSet) UnmarshalJSON(body []byte) error {
return nil
}
-// BlobDataSetMapping a Blob dataset mapping.
+// BlobDataSetMapping a Blob data set mapping.
type BlobDataSetMapping struct {
- // BlobMappingProperties - Blob dataset mapping properties.
+ // BlobMappingProperties - Blob data set mapping properties.
*BlobMappingProperties `json:"properties,omitempty"`
- // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
Kind KindBasicDataSetMapping `json:"kind,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -2493,6 +2627,16 @@ func (bdsm BlobDataSetMapping) AsADLSGen2FileSystemDataSetMapping() (*ADLSGen2Fi
return nil, false
}
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for BlobDataSetMapping.
+func (bdsm BlobDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for BlobDataSetMapping.
+func (bdsm BlobDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for BlobDataSetMapping.
func (bdsm BlobDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
return nil, false
@@ -2573,11 +2717,11 @@ func (bdsm *BlobDataSetMapping) UnmarshalJSON(body []byte) error {
return nil
}
-// BlobFolderDataSet an Azure storage blob folder dataset.
+// BlobFolderDataSet an Azure storage blob folder data set.
type BlobFolderDataSet struct {
- // BlobFolderProperties - Blob folder dataset properties.
+ // BlobFolderProperties - Blob folder data set properties.
*BlobFolderProperties `json:"properties,omitempty"`
- // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindSQLDWTable', 'KindSQLDBTable'
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
Kind Kind `json:"kind,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -2640,6 +2784,16 @@ func (bfds BlobFolderDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, boo
return nil, false
}
+// AsKustoClusterDataSet is the BasicDataSet implementation for BlobFolderDataSet.
+func (bfds BlobFolderDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for BlobFolderDataSet.
+func (bfds BlobFolderDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSet is the BasicDataSet implementation for BlobFolderDataSet.
func (bfds BlobFolderDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
return nil, false
@@ -2720,11 +2874,11 @@ func (bfds *BlobFolderDataSet) UnmarshalJSON(body []byte) error {
return nil
}
-// BlobFolderDataSetMapping a Blob folder dataset mapping.
+// BlobFolderDataSetMapping a Blob folder data set mapping.
type BlobFolderDataSetMapping struct {
- // BlobFolderMappingProperties - Blob folder dataset mapping properties.
+ // BlobFolderMappingProperties - Blob folder data set mapping properties.
*BlobFolderMappingProperties `json:"properties,omitempty"`
- // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
Kind KindBasicDataSetMapping `json:"kind,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -2777,6 +2931,16 @@ func (bfdsm BlobFolderDataSetMapping) AsADLSGen2FileSystemDataSetMapping() (*ADL
return nil, false
}
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for BlobFolderDataSetMapping.
+func (bfdsm BlobFolderDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for BlobFolderDataSetMapping.
+func (bfdsm BlobFolderDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for BlobFolderDataSetMapping.
func (bfdsm BlobFolderDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
return nil, false
@@ -2857,16 +3021,18 @@ func (bfdsm *BlobFolderDataSetMapping) UnmarshalJSON(body []byte) error {
return nil
}
-// BlobFolderMappingProperties azure storage Blob folder dataset mapping property bag.
+// BlobFolderMappingProperties azure storage Blob folder data set mapping property bag.
type BlobFolderMappingProperties struct {
// ContainerName - Container that has the file path.
ContainerName *string `json:"containerName,omitempty"`
- // DataSetID - Gets the id of source dataset.
+ // DataSetID - The id of the source data set.
DataSetID *string `json:"dataSetId,omitempty"`
- // DataSetMappingStatus - Gets the status of the dataset mapping. Possible values include: 'Ok', 'Broken'
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
// Prefix - Prefix for blob folder
Prefix *string `json:"prefix,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
// ResourceGroup - Resource group of storage account.
ResourceGroup *string `json:"resourceGroup,omitempty"`
// StorageAccountName - Storage account name of the source data set.
@@ -2891,18 +3057,20 @@ type BlobFolderProperties struct {
SubscriptionID *string `json:"subscriptionId,omitempty"`
}
-// BlobMappingProperties azure storage Blob dataset mapping property bag.
+// BlobMappingProperties azure storage Blob data set mapping property bag.
type BlobMappingProperties struct {
// ContainerName - Container that has the file path.
ContainerName *string `json:"containerName,omitempty"`
- // DataSetID - Gets the id of source dataset.
+ // DataSetID - The id of the source data set.
DataSetID *string `json:"dataSetId,omitempty"`
- // DataSetMappingStatus - Gets the status of the dataset mapping. Possible values include: 'Ok', 'Broken'
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
// FilePath - File path within the source data set
FilePath *string `json:"filePath,omitempty"`
// OutputType - File output type. Possible values include: 'Csv', 'Parquet'
OutputType OutputType `json:"outputType,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
// ResourceGroup - Resource group of storage account.
ResourceGroup *string `json:"resourceGroup,omitempty"`
// StorageAccountName - Storage account name of the source data set.
@@ -3158,18 +3326,24 @@ type ConsumerInvitationProperties struct {
InvitationStatus InvitationStatus `json:"invitationStatus,omitempty"`
// Location - READ-ONLY; invitation location
Location *string `json:"location,omitempty"`
+ // ProviderEmail - READ-ONLY; Email of the provider who created the resource
+ ProviderEmail *string `json:"providerEmail,omitempty"`
+ // ProviderName - READ-ONLY; Name of the provider who created the resource
+ ProviderName *string `json:"providerName,omitempty"`
+ // ProviderTenantName - READ-ONLY; Tenant name of the provider who created the resource
+ ProviderTenantName *string `json:"providerTenantName,omitempty"`
// RespondedAt - READ-ONLY; The time the recipient responded to the invitation.
RespondedAt *date.Time `json:"respondedAt,omitempty"`
- // Sender - READ-ONLY; Gets the name of the sender.
- Sender *string `json:"sender,omitempty"`
- // SenderCompanyName - READ-ONLY; Gets the company name of the sender.
- SenderCompanyName *string `json:"senderCompanyName,omitempty"`
// SentAt - READ-ONLY; Gets the time at which the invitation was sent.
SentAt *date.Time `json:"sentAt,omitempty"`
// ShareName - READ-ONLY; Gets the source share Name.
ShareName *string `json:"shareName,omitempty"`
// TermsOfUse - READ-ONLY; Terms of use shared when the invitation was created
TermsOfUse *string `json:"termsOfUse,omitempty"`
+ // UserEmail - READ-ONLY; Email of the user who created the resource
+ UserEmail *string `json:"userEmail,omitempty"`
+ // UserName - READ-ONLY; Name of the user who created the resource
+ UserName *string `json:"userName,omitempty"`
}
// ConsumerSourceDataSet a consumer side dataSet data transfer object.
@@ -3394,9 +3568,13 @@ func NewConsumerSourceDataSetListPage(getNextPage func(context.Context, Consumer
type ConsumerSourceDataSetProperties struct {
// DataSetID - READ-ONLY; DataSet Id
DataSetID *string `json:"dataSetId,omitempty"`
+ // DataSetLocation - READ-ONLY; Location of the data set.
+ DataSetLocation *string `json:"dataSetLocation,omitempty"`
// DataSetName - READ-ONLY; DataSet name
DataSetName *string `json:"dataSetName,omitempty"`
- // DataSetType - READ-ONLY; Type of dataSet. Possible values include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'SQLDBTable', 'SQLDWTable'
+ // DataSetPath - READ-ONLY; DataSet path
+ DataSetPath *string `json:"dataSetPath,omitempty"`
+ // DataSetType - READ-ONLY; Type of data set. Possible values include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SQLDBTable', 'SQLDWTable'
DataSetType DataSetType `json:"dataSetType,omitempty"`
}
@@ -3410,6 +3588,8 @@ type BasicDataSet interface {
AsADLSGen2FileSystemDataSet() (*ADLSGen2FileSystemDataSet, bool)
AsADLSGen1FolderDataSet() (*ADLSGen1FolderDataSet, bool)
AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool)
+ AsKustoClusterDataSet() (*KustoClusterDataSet, bool)
+ AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool)
AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool)
AsSQLDBTableDataSet() (*SQLDBTableDataSet, bool)
AsDataSet() (*DataSet, bool)
@@ -3418,7 +3598,7 @@ type BasicDataSet interface {
// DataSet a DataSet data transfer object.
type DataSet struct {
autorest.Response `json:"-"`
- // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindSQLDWTable', 'KindSQLDBTable'
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
Kind Kind `json:"kind,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -3468,6 +3648,14 @@ func unmarshalBasicDataSet(body []byte) (BasicDataSet, error) {
var ag1fds ADLSGen1FileDataSet
err := json.Unmarshal(body, &ag1fds)
return ag1fds, err
+ case string(KindKustoCluster):
+ var kcds KustoClusterDataSet
+ err := json.Unmarshal(body, &kcds)
+ return kcds, err
+ case string(KindKustoDatabase):
+ var kdds KustoDatabaseDataSet
+ err := json.Unmarshal(body, &kdds)
+ return kdds, err
case string(KindSQLDWTable):
var sdtds SQLDWTableDataSet
err := json.Unmarshal(body, &sdtds)
@@ -3551,6 +3739,16 @@ func (ds DataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool) {
return nil, false
}
+// AsKustoClusterDataSet is the BasicDataSet implementation for DataSet.
+func (ds DataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for DataSet.
+func (ds DataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSet is the BasicDataSet implementation for DataSet.
func (ds DataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
return nil, false
@@ -3749,7 +3947,7 @@ func NewDataSetListPage(getNextPage func(context.Context, DataSetList) (DataSetL
return DataSetListPage{fn: getNextPage}
}
-// BasicDataSetMapping a dataset mapping data transfer object.
+// BasicDataSetMapping a data set mapping data transfer object.
type BasicDataSetMapping interface {
AsBlobDataSetMapping() (*BlobDataSetMapping, bool)
AsBlobFolderDataSetMapping() (*BlobFolderDataSetMapping, bool)
@@ -3757,15 +3955,17 @@ type BasicDataSetMapping interface {
AsADLSGen2FileDataSetMapping() (*ADLSGen2FileDataSetMapping, bool)
AsADLSGen2FolderDataSetMapping() (*ADLSGen2FolderDataSetMapping, bool)
AsADLSGen2FileSystemDataSetMapping() (*ADLSGen2FileSystemDataSetMapping, bool)
+ AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool)
+ AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool)
AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool)
AsSQLDBTableDataSetMapping() (*SQLDBTableDataSetMapping, bool)
AsDataSetMapping() (*DataSetMapping, bool)
}
-// DataSetMapping a dataset mapping data transfer object.
+// DataSetMapping a data set mapping data transfer object.
type DataSetMapping struct {
autorest.Response `json:"-"`
- // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
Kind KindBasicDataSetMapping `json:"kind,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -3807,6 +4007,14 @@ func unmarshalBasicDataSetMapping(body []byte) (BasicDataSetMapping, error) {
var ag2fsdsm ADLSGen2FileSystemDataSetMapping
err := json.Unmarshal(body, &ag2fsdsm)
return ag2fsdsm, err
+ case string(KindBasicDataSetMappingKindKustoCluster):
+ var kcdsm KustoClusterDataSetMapping
+ err := json.Unmarshal(body, &kcdsm)
+ return kcdsm, err
+ case string(KindBasicDataSetMappingKindKustoDatabase):
+ var kddsm KustoDatabaseDataSetMapping
+ err := json.Unmarshal(body, &kddsm)
+ return kddsm, err
case string(KindBasicDataSetMappingKindSQLDWTable):
var sdtdsm SQLDWTableDataSetMapping
err := json.Unmarshal(body, &sdtdsm)
@@ -3880,6 +4088,16 @@ func (dsm DataSetMapping) AsADLSGen2FileSystemDataSetMapping() (*ADLSGen2FileSys
return nil, false
}
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for DataSetMapping.
+func (dsm DataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for DataSetMapping.
+func (dsm DataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for DataSetMapping.
func (dsm DataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
return nil, false
@@ -4112,6 +4330,29 @@ func (dsm *DataSetModel) UnmarshalJSON(body []byte) error {
return nil
}
+// DataSetsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running
+// operation.
+type DataSetsDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *DataSetsDeleteFuture) Result(client DataSetsClient) (ar autorest.Response, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "datashare.DataSetsDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("datashare.DataSetsDeleteFuture")
+ return
+ }
+ ar.Response = future.Response()
+ return
+}
+
// DefaultDto base data transfer object implementation for default resources.
type DefaultDto struct {
// ID - READ-ONLY; The resource id of the azure resource
@@ -4401,8 +4642,6 @@ type InvitationProperties struct {
InvitationStatus InvitationStatus `json:"invitationStatus,omitempty"`
// RespondedAt - READ-ONLY; The time the recipient responded to the invitation.
RespondedAt *date.Time `json:"respondedAt,omitempty"`
- // Sender - READ-ONLY; Gets the name of the sender.
- Sender *string `json:"sender,omitempty"`
// SentAt - READ-ONLY; Gets the time at which the invitation was sent.
SentAt *date.Time `json:"sentAt,omitempty"`
// TargetActiveDirectoryID - The target Azure AD Id. Can't be combined with email.
@@ -4413,158 +4652,822 @@ type InvitationProperties struct {
// Must be specified along TargetActiveDirectoryId. This enables sending
// invitations to specific users or applications in an AD tenant.
TargetObjectID *string `json:"targetObjectId,omitempty"`
+ // UserEmail - READ-ONLY; Email of the user who created the resource
+ UserEmail *string `json:"userEmail,omitempty"`
+ // UserName - READ-ONLY; Name of the user who created the resource
+ UserName *string `json:"userName,omitempty"`
}
-// OperationList list response for get operations.
-type OperationList struct {
- autorest.Response `json:"-"`
- // NextLink - The Url of next result page.
- NextLink *string `json:"nextLink,omitempty"`
- // Value - Collection of items of type DataTransferObjects.
- Value *[]OperationModel `json:"value,omitempty"`
-}
-
-// OperationListIterator provides access to a complete listing of OperationModel values.
-type OperationListIterator struct {
- i int
- page OperationListPage
+// KustoClusterDataSet a kusto cluster data set.
+type KustoClusterDataSet struct {
+ // KustoClusterDataSetProperties - Kusto cluster data set properties.
+ *KustoClusterDataSetProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
+ Kind Kind `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
}
-// NextWithContext advances to the next value. If there was an error making
-// the request the iterator does not advance and the error is returned.
-func (iter *OperationListIterator) NextWithContext(ctx context.Context) (err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/OperationListIterator.NextWithContext")
- defer func() {
- sc := -1
- if iter.Response().Response.Response != nil {
- sc = iter.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- iter.i++
- if iter.i < len(iter.page.Values()) {
- return nil
+// MarshalJSON is the custom marshaler for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) MarshalJSON() ([]byte, error) {
+ kcds.Kind = KindKustoCluster
+ objectMap := make(map[string]interface{})
+ if kcds.KustoClusterDataSetProperties != nil {
+ objectMap["properties"] = kcds.KustoClusterDataSetProperties
}
- err = iter.page.NextWithContext(ctx)
- if err != nil {
- iter.i--
- return err
+ if kcds.Kind != "" {
+ objectMap["kind"] = kcds.Kind
}
- iter.i = 0
- return nil
+ return json.Marshal(objectMap)
}
-// Next advances to the next value. If there was an error making
-// the request the iterator does not advance and the error is returned.
-// Deprecated: Use NextWithContext() instead.
-func (iter *OperationListIterator) Next() error {
- return iter.NextWithContext(context.Background())
+// AsBlobDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsBlobDataSet() (*BlobDataSet, bool) {
+ return nil, false
}
-// NotDone returns true if the enumeration should be started or is not yet complete.
-func (iter OperationListIterator) NotDone() bool {
- return iter.page.NotDone() && iter.i < len(iter.page.Values())
+// AsBlobFolderDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsBlobFolderDataSet() (*BlobFolderDataSet, bool) {
+ return nil, false
}
-// Response returns the raw server response from the last page request.
-func (iter OperationListIterator) Response() OperationList {
- return iter.page.Response()
+// AsBlobContainerDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsBlobContainerDataSet() (*BlobContainerDataSet, bool) {
+ return nil, false
}
-// Value returns the current value or a zero-initialized value if the
-// iterator has advanced beyond the end of the collection.
-func (iter OperationListIterator) Value() OperationModel {
- if !iter.page.NotDone() {
- return OperationModel{}
- }
- return iter.page.Values()[iter.i]
+// AsADLSGen2FileDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsADLSGen2FileDataSet() (*ADLSGen2FileDataSet, bool) {
+ return nil, false
}
-// Creates a new instance of the OperationListIterator type.
-func NewOperationListIterator(page OperationListPage) OperationListIterator {
- return OperationListIterator{page: page}
+// AsADLSGen2FolderDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsADLSGen2FolderDataSet() (*ADLSGen2FolderDataSet, bool) {
+ return nil, false
}
-// IsEmpty returns true if the ListResult contains no values.
-func (ol OperationList) IsEmpty() bool {
- return ol.Value == nil || len(*ol.Value) == 0
+// AsADLSGen2FileSystemDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsADLSGen2FileSystemDataSet() (*ADLSGen2FileSystemDataSet, bool) {
+ return nil, false
}
-// operationListPreparer prepares a request to retrieve the next set of results.
-// It returns nil if no more results exist.
-func (ol OperationList) operationListPreparer(ctx context.Context) (*http.Request, error) {
- if ol.NextLink == nil || len(to.String(ol.NextLink)) < 1 {
- return nil, nil
- }
- return autorest.Prepare((&http.Request{}).WithContext(ctx),
- autorest.AsJSON(),
- autorest.AsGet(),
- autorest.WithBaseURL(to.String(ol.NextLink)))
+// AsADLSGen1FolderDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsADLSGen1FolderDataSet() (*ADLSGen1FolderDataSet, bool) {
+ return nil, false
}
-// OperationListPage contains a page of OperationModel values.
-type OperationListPage struct {
- fn func(context.Context, OperationList) (OperationList, error)
- ol OperationList
+// AsADLSGen1FileDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool) {
+ return nil, false
}
-// NextWithContext advances to the next page of values. If there was an error making
-// the request the page does not advance and the error is returned.
-func (page *OperationListPage) NextWithContext(ctx context.Context) (err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/OperationListPage.NextWithContext")
- defer func() {
- sc := -1
- if page.Response().Response.Response != nil {
- sc = page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- next, err := page.fn(ctx, page.ol)
- if err != nil {
- return err
- }
- page.ol = next
- return nil
+// AsKustoClusterDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return &kcds, true
}
-// Next advances to the next page of values. If there was an error making
-// the request the page does not advance and the error is returned.
-// Deprecated: Use NextWithContext() instead.
-func (page *OperationListPage) Next() error {
- return page.NextWithContext(context.Background())
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
}
-// NotDone returns true if the page enumeration should be started or is not yet complete.
-func (page OperationListPage) NotDone() bool {
- return !page.ol.IsEmpty()
+// AsSQLDWTableDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
+ return nil, false
}
-// Response returns the raw server response from the last page request.
-func (page OperationListPage) Response() OperationList {
- return page.ol
+// AsSQLDBTableDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsSQLDBTableDataSet() (*SQLDBTableDataSet, bool) {
+ return nil, false
}
-// Values returns the slice of values for the current page or nil if there are no values.
-func (page OperationListPage) Values() []OperationModel {
- if page.ol.IsEmpty() {
- return nil
- }
- return *page.ol.Value
+// AsDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsDataSet() (*DataSet, bool) {
+ return nil, false
}
-// Creates a new instance of the OperationListPage type.
-func NewOperationListPage(getNextPage func(context.Context, OperationList) (OperationList, error)) OperationListPage {
- return OperationListPage{fn: getNextPage}
+// AsBasicDataSet is the BasicDataSet implementation for KustoClusterDataSet.
+func (kcds KustoClusterDataSet) AsBasicDataSet() (BasicDataSet, bool) {
+ return &kcds, true
}
-// OperationMetaLogSpecification log specifications for operation api
-type OperationMetaLogSpecification struct {
- // BlobDuration - blob duration of the log
- BlobDuration *string `json:"blobDuration,omitempty"`
+// UnmarshalJSON is the custom unmarshaler for KustoClusterDataSet struct.
+func (kcds *KustoClusterDataSet) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var kustoClusterDataSetProperties KustoClusterDataSetProperties
+ err = json.Unmarshal(*v, &kustoClusterDataSetProperties)
+ if err != nil {
+ return err
+ }
+ kcds.KustoClusterDataSetProperties = &kustoClusterDataSetProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind Kind
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ kcds.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ kcds.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ kcds.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ kcds.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// KustoClusterDataSetMapping a Kusto cluster data set mapping
+type KustoClusterDataSetMapping struct {
+ // KustoClusterDataSetMappingProperties - Kusto cluster data set mapping properties.
+ *KustoClusterDataSetMappingProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ Kind KindBasicDataSetMapping `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) MarshalJSON() ([]byte, error) {
+ kcdsm.Kind = KindBasicDataSetMappingKindKustoCluster
+ objectMap := make(map[string]interface{})
+ if kcdsm.KustoClusterDataSetMappingProperties != nil {
+ objectMap["properties"] = kcdsm.KustoClusterDataSetMappingProperties
+ }
+ if kcdsm.Kind != "" {
+ objectMap["kind"] = kcdsm.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsBlobDataSetMapping() (*BlobDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsBlobFolderDataSetMapping() (*BlobFolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsBlobContainerDataSetMapping() (*BlobContainerDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsADLSGen2FileDataSetMapping() (*ADLSGen2FileDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsADLSGen2FolderDataSetMapping() (*ADLSGen2FolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsADLSGen2FileSystemDataSetMapping() (*ADLSGen2FileSystemDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return &kcdsm, true
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsSQLDBTableDataSetMapping() (*SQLDBTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsDataSetMapping() (*DataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBasicDataSetMapping is the BasicDataSetMapping implementation for KustoClusterDataSetMapping.
+func (kcdsm KustoClusterDataSetMapping) AsBasicDataSetMapping() (BasicDataSetMapping, bool) {
+ return &kcdsm, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for KustoClusterDataSetMapping struct.
+func (kcdsm *KustoClusterDataSetMapping) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var kustoClusterDataSetMappingProperties KustoClusterDataSetMappingProperties
+ err = json.Unmarshal(*v, &kustoClusterDataSetMappingProperties)
+ if err != nil {
+ return err
+ }
+ kcdsm.KustoClusterDataSetMappingProperties = &kustoClusterDataSetMappingProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind KindBasicDataSetMapping
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ kcdsm.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ kcdsm.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ kcdsm.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ kcdsm.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// KustoClusterDataSetMappingProperties properties of the Kusto cluster data set mapping
+type KustoClusterDataSetMappingProperties struct {
+ // DataSetID - The id of the source data set.
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
+ DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
+ // KustoClusterResourceID - Resource id of the sink kusto cluster.
+ KustoClusterResourceID *string `json:"kustoClusterResourceId,omitempty"`
+ // Location - READ-ONLY; Location of the sink kusto cluster.
+ Location *string `json:"location,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+}
+
+// KustoClusterDataSetProperties properties of the kusto cluster data set.
+type KustoClusterDataSetProperties struct {
+ // DataSetID - READ-ONLY; Unique id for identifying a data set resource
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // KustoClusterResourceID - Resource id of the kusto cluster.
+ KustoClusterResourceID *string `json:"kustoClusterResourceId,omitempty"`
+ // Location - READ-ONLY; Location of the kusto cluster.
+ Location *string `json:"location,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the kusto cluster data set. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+}
+
+// KustoDatabaseDataSet a kusto database data set.
+type KustoDatabaseDataSet struct {
+ // KustoDatabaseDataSetProperties - Kusto database data set properties.
+ *KustoDatabaseDataSetProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
+ Kind Kind `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) MarshalJSON() ([]byte, error) {
+ kdds.Kind = KindKustoDatabase
+ objectMap := make(map[string]interface{})
+ if kdds.KustoDatabaseDataSetProperties != nil {
+ objectMap["properties"] = kdds.KustoDatabaseDataSetProperties
+ }
+ if kdds.Kind != "" {
+ objectMap["kind"] = kdds.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsBlobDataSet() (*BlobDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsBlobFolderDataSet() (*BlobFolderDataSet, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsBlobContainerDataSet() (*BlobContainerDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsADLSGen2FileDataSet() (*ADLSGen2FileDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsADLSGen2FolderDataSet() (*ADLSGen2FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsADLSGen2FileSystemDataSet() (*ADLSGen2FileSystemDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FolderDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsADLSGen1FolderDataSet() (*ADLSGen1FolderDataSet, bool) {
+ return nil, false
+}
+
+// AsADLSGen1FileDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return &kdds, true
+}
+
+// AsSQLDWTableDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsSQLDBTableDataSet() (*SQLDBTableDataSet, bool) {
+ return nil, false
+}
+
+// AsDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsDataSet() (*DataSet, bool) {
+ return nil, false
+}
+
+// AsBasicDataSet is the BasicDataSet implementation for KustoDatabaseDataSet.
+func (kdds KustoDatabaseDataSet) AsBasicDataSet() (BasicDataSet, bool) {
+ return &kdds, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for KustoDatabaseDataSet struct.
+func (kdds *KustoDatabaseDataSet) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var kustoDatabaseDataSetProperties KustoDatabaseDataSetProperties
+ err = json.Unmarshal(*v, &kustoDatabaseDataSetProperties)
+ if err != nil {
+ return err
+ }
+ kdds.KustoDatabaseDataSetProperties = &kustoDatabaseDataSetProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind Kind
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ kdds.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ kdds.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ kdds.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ kdds.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// KustoDatabaseDataSetMapping a Kusto database data set mapping
+type KustoDatabaseDataSetMapping struct {
+ // KustoDatabaseDataSetMappingProperties - Kusto database data set mapping properties.
+ *KustoDatabaseDataSetMappingProperties `json:"properties,omitempty"`
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ Kind KindBasicDataSetMapping `json:"kind,omitempty"`
+ // ID - READ-ONLY; The resource id of the azure resource
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Name of the azure resource
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Type of the azure resource
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) MarshalJSON() ([]byte, error) {
+ kddsm.Kind = KindBasicDataSetMappingKindKustoDatabase
+ objectMap := make(map[string]interface{})
+ if kddsm.KustoDatabaseDataSetMappingProperties != nil {
+ objectMap["properties"] = kddsm.KustoDatabaseDataSetMappingProperties
+ }
+ if kddsm.Kind != "" {
+ objectMap["kind"] = kddsm.Kind
+ }
+ return json.Marshal(objectMap)
+}
+
+// AsBlobDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsBlobDataSetMapping() (*BlobDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobFolderDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsBlobFolderDataSetMapping() (*BlobFolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBlobContainerDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsBlobContainerDataSetMapping() (*BlobContainerDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsADLSGen2FileDataSetMapping() (*ADLSGen2FileDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FolderDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsADLSGen2FolderDataSetMapping() (*ADLSGen2FolderDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsADLSGen2FileSystemDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsADLSGen2FileSystemDataSetMapping() (*ADLSGen2FileSystemDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return &kddsm, true
+}
+
+// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsSQLDBTableDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsSQLDBTableDataSetMapping() (*SQLDBTableDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsDataSetMapping() (*DataSetMapping, bool) {
+ return nil, false
+}
+
+// AsBasicDataSetMapping is the BasicDataSetMapping implementation for KustoDatabaseDataSetMapping.
+func (kddsm KustoDatabaseDataSetMapping) AsBasicDataSetMapping() (BasicDataSetMapping, bool) {
+ return &kddsm, true
+}
+
+// UnmarshalJSON is the custom unmarshaler for KustoDatabaseDataSetMapping struct.
+func (kddsm *KustoDatabaseDataSetMapping) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var kustoDatabaseDataSetMappingProperties KustoDatabaseDataSetMappingProperties
+ err = json.Unmarshal(*v, &kustoDatabaseDataSetMappingProperties)
+ if err != nil {
+ return err
+ }
+ kddsm.KustoDatabaseDataSetMappingProperties = &kustoDatabaseDataSetMappingProperties
+ }
+ case "kind":
+ if v != nil {
+ var kind KindBasicDataSetMapping
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ kddsm.Kind = kind
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ kddsm.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ kddsm.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ kddsm.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// KustoDatabaseDataSetMappingProperties properties of the Kusto database data set mapping
+type KustoDatabaseDataSetMappingProperties struct {
+ // DataSetID - The id of the source data set.
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
+ DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
+ // KustoClusterResourceID - Resource id of the sink kusto cluster.
+ KustoClusterResourceID *string `json:"kustoClusterResourceId,omitempty"`
+ // Location - READ-ONLY; Location of the sink kusto cluster.
+ Location *string `json:"location,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+}
+
+// KustoDatabaseDataSetProperties properties of the kusto database data set.
+type KustoDatabaseDataSetProperties struct {
+ // DataSetID - READ-ONLY; Unique id for identifying a data set resource
+ DataSetID *string `json:"dataSetId,omitempty"`
+ // KustoDatabaseResourceID - Resource id of the kusto database.
+ KustoDatabaseResourceID *string `json:"kustoDatabaseResourceId,omitempty"`
+ // Location - READ-ONLY; Location of the kusto cluster.
+ Location *string `json:"location,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the kusto database data set. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+}
+
+// OperationList list response for get operations.
+type OperationList struct {
+ autorest.Response `json:"-"`
+ // NextLink - The Url of next result page.
+ NextLink *string `json:"nextLink,omitempty"`
+ // Value - Collection of items of type DataTransferObjects.
+ Value *[]OperationModel `json:"value,omitempty"`
+}
+
+// OperationListIterator provides access to a complete listing of OperationModel values.
+type OperationListIterator struct {
+ i int
+ page OperationListPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *OperationListIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationListIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *OperationListIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter OperationListIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter OperationListIterator) Response() OperationList {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter OperationListIterator) Value() OperationModel {
+ if !iter.page.NotDone() {
+ return OperationModel{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the OperationListIterator type.
+func NewOperationListIterator(page OperationListPage) OperationListIterator {
+ return OperationListIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (ol OperationList) IsEmpty() bool {
+ return ol.Value == nil || len(*ol.Value) == 0
+}
+
+// operationListPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (ol OperationList) operationListPreparer(ctx context.Context) (*http.Request, error) {
+ if ol.NextLink == nil || len(to.String(ol.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(ol.NextLink)))
+}
+
+// OperationListPage contains a page of OperationModel values.
+type OperationListPage struct {
+ fn func(context.Context, OperationList) (OperationList, error)
+ ol OperationList
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *OperationListPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationListPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.ol)
+ if err != nil {
+ return err
+ }
+ page.ol = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *OperationListPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page OperationListPage) NotDone() bool {
+ return !page.ol.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page OperationListPage) Response() OperationList {
+ return page.ol
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page OperationListPage) Values() []OperationModel {
+ if page.ol.IsEmpty() {
+ return nil
+ }
+ return *page.ol.Value
+}
+
+// Creates a new instance of the OperationListPage type.
+func NewOperationListPage(getNextPage func(context.Context, OperationList) (OperationList, error)) OperationListPage {
+ return OperationListPage{fn: getNextPage}
+}
+
+// OperationMetaLogSpecification log specifications for operation api
+type OperationMetaLogSpecification struct {
+ // BlobDuration - blob duration of the log
+ BlobDuration *string `json:"blobDuration,omitempty"`
// DisplayName - localized name of the log category
DisplayName *string `json:"displayName,omitempty"`
// Name - name of the log category
@@ -4939,16 +5842,18 @@ func NewProviderShareSubscriptionListPage(getNextPage func(context.Context, Prov
// ProviderShareSubscriptionProperties provider share subscription properties
type ProviderShareSubscriptionProperties struct {
- // Company - READ-ONLY; Company name
- Company *string `json:"company,omitempty"`
+ // ConsumerEmail - READ-ONLY; Email of the consumer who created the share subscription
+ ConsumerEmail *string `json:"consumerEmail,omitempty"`
+ // ConsumerName - READ-ONLY; Name of the consumer who created the share subscription
+ ConsumerName *string `json:"consumerName,omitempty"`
+ // ConsumerTenantName - READ-ONLY; Tenant name of the consumer who created the share subscription
+ ConsumerTenantName *string `json:"consumerTenantName,omitempty"`
// CreatedAt - READ-ONLY; created at
CreatedAt *date.Time `json:"createdAt,omitempty"`
- // CreatedBy - READ-ONLY; Created by
- CreatedBy *string `json:"createdBy,omitempty"`
+ // ProviderName - READ-ONLY; Name of the provider who created the share
+ ProviderName *string `json:"providerName,omitempty"`
// SharedAt - READ-ONLY; Shared at
SharedAt *date.Time `json:"sharedAt,omitempty"`
- // SharedBy - READ-ONLY; Shared by
- SharedBy *string `json:"sharedBy,omitempty"`
// ShareSubscriptionObjectID - READ-ONLY; share Subscription Object Id
ShareSubscriptionObjectID *string `json:"shareSubscriptionObjectId,omitempty"`
// ShareSubscriptionStatus - READ-ONLY; Gets the status of share subscription. Possible values include: 'Active', 'Revoked', 'SourceDeleted', 'Revoking'
@@ -5178,14 +6083,14 @@ func (sss *ScheduledSynchronizationSetting) UnmarshalJSON(body []byte) error {
type ScheduledSynchronizationSettingProperties struct {
// CreatedAt - READ-ONLY; Time at which the synchronization setting was created.
CreatedAt *date.Time `json:"createdAt,omitempty"`
- // CreatedBy - READ-ONLY; Name of the user who created the synchronization setting.
- CreatedBy *string `json:"createdBy,omitempty"`
// ProvisioningState - READ-ONLY; Gets or sets the provisioning state. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
// RecurrenceInterval - Recurrence Interval. Possible values include: 'Hour', 'Day'
RecurrenceInterval RecurrenceInterval `json:"recurrenceInterval,omitempty"`
// SynchronizationTime - Synchronization time
SynchronizationTime *date.Time `json:"synchronizationTime,omitempty"`
+ // UserName - READ-ONLY; Name of the user who created the synchronization setting.
+ UserName *string `json:"userName,omitempty"`
}
// ScheduledTrigger a type of trigger based on schedule
@@ -5294,8 +6199,6 @@ func (st *ScheduledTrigger) UnmarshalJSON(body []byte) error {
type ScheduledTriggerProperties struct {
// CreatedAt - READ-ONLY; Time at which the trigger was created.
CreatedAt *date.Time `json:"createdAt,omitempty"`
- // CreatedBy - READ-ONLY; Name of the user who created the trigger.
- CreatedBy *string `json:"createdBy,omitempty"`
// ProvisioningState - READ-ONLY; Gets the provisioning state. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
// RecurrenceInterval - Recurrence Interval. Possible values include: 'Hour', 'Day'
@@ -5306,6 +6209,8 @@ type ScheduledTriggerProperties struct {
SynchronizationTime *date.Time `json:"synchronizationTime,omitempty"`
// TriggerStatus - READ-ONLY; Gets the trigger state. Possible values include: 'TriggerStatusActive', 'TriggerStatusInactive', 'TriggerStatusSourceSynchronizationSettingDeleted'
TriggerStatus TriggerStatus `json:"triggerStatus,omitempty"`
+ // UserName - READ-ONLY; Name of the user who created the trigger.
+ UserName *string `json:"userName,omitempty"`
}
// Share a share data transfer object.
@@ -5531,16 +6436,18 @@ func NewShareListPage(getNextPage func(context.Context, ShareList) (ShareList, e
type ShareProperties struct {
// CreatedAt - READ-ONLY; Time at which the share was created.
CreatedAt *date.Time `json:"createdAt,omitempty"`
- // CreatedBy - READ-ONLY; Name of the user who created the share.
- CreatedBy *string `json:"createdBy,omitempty"`
// Description - Share description.
Description *string `json:"description,omitempty"`
// ProvisioningState - READ-ONLY; Gets or sets the provisioning state. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
- // ShareKind - Share kind. Possible values include: 'CopyBased'
+ // ShareKind - Share kind. Possible values include: 'CopyBased', 'InPlace'
ShareKind ShareKind `json:"shareKind,omitempty"`
// Terms - Share terms.
Terms *string `json:"terms,omitempty"`
+ // UserEmail - READ-ONLY; Email of the user who created the resource
+ UserEmail *string `json:"userEmail,omitempty"`
+ // UserName - READ-ONLY; Name of the user who created the resource
+ UserName *string `json:"userName,omitempty"`
}
// SharesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
@@ -5794,26 +6701,30 @@ func NewShareSubscriptionListPage(getNextPage func(context.Context, ShareSubscri
type ShareSubscriptionProperties struct {
// CreatedAt - READ-ONLY; Time at which the share subscription was created.
CreatedAt *date.Time `json:"createdAt,omitempty"`
- // CreatedBy - READ-ONLY; The user who created the share subscription.
- CreatedBy *string `json:"createdBy,omitempty"`
// InvitationID - The invitation id.
InvitationID *string `json:"invitationId,omitempty"`
+ // ProviderEmail - READ-ONLY; Email of the provider who created the resource
+ ProviderEmail *string `json:"providerEmail,omitempty"`
+ // ProviderName - READ-ONLY; Name of the provider who created the resource
+ ProviderName *string `json:"providerName,omitempty"`
+ // ProviderTenantName - READ-ONLY; Tenant name of the provider who created the resource
+ ProviderTenantName *string `json:"providerTenantName,omitempty"`
// ProvisioningState - READ-ONLY; Provisioning state of the share subscription. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
// ShareDescription - READ-ONLY; Description of share
ShareDescription *string `json:"shareDescription,omitempty"`
- // ShareKind - READ-ONLY; Kind of share. Possible values include: 'CopyBased'
+ // ShareKind - READ-ONLY; Kind of share. Possible values include: 'CopyBased', 'InPlace'
ShareKind ShareKind `json:"shareKind,omitempty"`
// ShareName - READ-ONLY; Name of the share
ShareName *string `json:"shareName,omitempty"`
- // ShareSender - READ-ONLY; Sender of the share
- ShareSender *string `json:"shareSender,omitempty"`
- // ShareSenderCompanyName - READ-ONLY; Company name of the share sender
- ShareSenderCompanyName *string `json:"shareSenderCompanyName,omitempty"`
// ShareSubscriptionStatus - READ-ONLY; Gets the current status of share subscription. Possible values include: 'Active', 'Revoked', 'SourceDeleted', 'Revoking'
ShareSubscriptionStatus ShareSubscriptionStatus `json:"shareSubscriptionStatus,omitempty"`
// ShareTerms - READ-ONLY; Terms of a share
ShareTerms *string `json:"shareTerms,omitempty"`
+ // UserEmail - READ-ONLY; Email of the user who created the resource
+ UserEmail *string `json:"userEmail,omitempty"`
+ // UserName - READ-ONLY; Name of the user who created the resource
+ UserName *string `json:"userName,omitempty"`
}
// ShareSubscriptionsCancelSynchronizationFuture an abstraction for monitoring and retrieving the results
@@ -5918,6 +6829,8 @@ type ShareSubscriptionSynchronization struct {
Status *string `json:"status,omitempty"`
// SynchronizationID - Synchronization id
SynchronizationID *string `json:"synchronizationId,omitempty"`
+ // SynchronizationMode - READ-ONLY; Synchronization Mode. Possible values include: 'Incremental', 'FullSync'
+ SynchronizationMode SynchronizationMode `json:"synchronizationMode,omitempty"`
}
// ShareSubscriptionSynchronizationList a consumer side list of share subscription synchronizations
@@ -6069,22 +6982,26 @@ func NewShareSubscriptionSynchronizationListPage(getNextPage func(context.Contex
// ShareSynchronization a ShareSynchronization data transfer object.
type ShareSynchronization struct {
- // Company - Company name
- Company *string `json:"company,omitempty"`
+ // ConsumerEmail - Email of the user who created the synchronization
+ ConsumerEmail *string `json:"consumerEmail,omitempty"`
+ // ConsumerName - Name of the user who created the synchronization
+ ConsumerName *string `json:"consumerName,omitempty"`
+ // ConsumerTenantName - Tenant name of the consumer who created the synchronization
+ ConsumerTenantName *string `json:"consumerTenantName,omitempty"`
// DurationMs - synchronization duration
DurationMs *int32 `json:"durationMs,omitempty"`
// EndTime - End time of synchronization
EndTime *date.Time `json:"endTime,omitempty"`
// Message - message of synchronization
Message *string `json:"message,omitempty"`
- // Recipient - Recipient id
- Recipient *string `json:"recipient,omitempty"`
// StartTime - start time of synchronization
StartTime *date.Time `json:"startTime,omitempty"`
// Status - Raw Status
Status *string `json:"status,omitempty"`
// SynchronizationID - Synchronization id
SynchronizationID *string `json:"synchronizationId,omitempty"`
+ // SynchronizationMode - READ-ONLY; Synchronization mode. Possible values include: 'Incremental', 'FullSync'
+ SynchronizationMode SynchronizationMode `json:"synchronizationMode,omitempty"`
}
// ShareSynchronizationList list response for get ShareSynchronization.
@@ -6487,11 +7404,11 @@ func NewSourceShareSynchronizationSettingListPage(getNextPage func(context.Conte
return SourceShareSynchronizationSettingListPage{fn: getNextPage}
}
-// SQLDBTableDataSet a SQL DB table dataset.
+// SQLDBTableDataSet a SQL DB table data set.
type SQLDBTableDataSet struct {
- // SQLDBTableProperties - SQL DB table dataset properties.
+ // SQLDBTableProperties - SQL DB table data set properties.
*SQLDBTableProperties `json:"properties,omitempty"`
- // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindSQLDWTable', 'KindSQLDBTable'
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
Kind Kind `json:"kind,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -6554,6 +7471,16 @@ func (sdtds SQLDBTableDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bo
return nil, false
}
+// AsKustoClusterDataSet is the BasicDataSet implementation for SQLDBTableDataSet.
+func (sdtds SQLDBTableDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for SQLDBTableDataSet.
+func (sdtds SQLDBTableDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSet is the BasicDataSet implementation for SQLDBTableDataSet.
func (sdtds SQLDBTableDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
return nil, false
@@ -6634,11 +7561,11 @@ func (sdtds *SQLDBTableDataSet) UnmarshalJSON(body []byte) error {
return nil
}
-// SQLDBTableDataSetMapping a SQL DB Table dataset mapping.
+// SQLDBTableDataSetMapping a SQL DB Table data set mapping.
type SQLDBTableDataSetMapping struct {
- // SQLDBTableDataSetMappingProperties - Sql DB dataset mapping properties.
+ // SQLDBTableDataSetMappingProperties - Sql DB data set mapping properties.
*SQLDBTableDataSetMappingProperties `json:"properties,omitempty"`
- // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
Kind KindBasicDataSetMapping `json:"kind,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -6691,6 +7618,16 @@ func (sdtdsm SQLDBTableDataSetMapping) AsADLSGen2FileSystemDataSetMapping() (*AD
return nil, false
}
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for SQLDBTableDataSetMapping.
+func (sdtdsm SQLDBTableDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for SQLDBTableDataSetMapping.
+func (sdtdsm SQLDBTableDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for SQLDBTableDataSetMapping.
func (sdtdsm SQLDBTableDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
return nil, false
@@ -6775,10 +7712,14 @@ func (sdtdsm *SQLDBTableDataSetMapping) UnmarshalJSON(body []byte) error {
type SQLDBTableDataSetMappingProperties struct {
// DatabaseName - DatabaseName name of the sink data set
DatabaseName *string `json:"databaseName,omitempty"`
- // DataSetID - Gets the id of source dataset.
+ // DataSetID - The id of the source data set.
DataSetID *string `json:"dataSetId,omitempty"`
- // DataSetMappingStatus - Gets the status of the dataset mapping. Possible values include: 'Ok', 'Broken'
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+ // SchemaName - Schema of the table. Default value is dbo.
+ SchemaName *string `json:"schemaName,omitempty"`
// SQLServerResourceID - Resource id of SQL server
SQLServerResourceID *string `json:"sqlServerResourceId,omitempty"`
// TableName - SQL DB table name.
@@ -6791,17 +7732,19 @@ type SQLDBTableProperties struct {
DatabaseName *string `json:"databaseName,omitempty"`
// DataSetID - READ-ONLY; Unique id for identifying a data set resource
DataSetID *string `json:"dataSetId,omitempty"`
+ // SchemaName - Schema of the table. Default value is dbo.
+ SchemaName *string `json:"schemaName,omitempty"`
// SQLServerResourceID - Resource id of SQL server
SQLServerResourceID *string `json:"sqlServerResourceId,omitempty"`
// TableName - SQL DB table name.
TableName *string `json:"tableName,omitempty"`
}
-// SQLDWTableDataSet a SQL DW table dataset.
+// SQLDWTableDataSet a SQL DW table data set.
type SQLDWTableDataSet struct {
- // SQLDWTableProperties - SQL DW table dataset properties.
+ // SQLDWTableProperties - SQL DW table data set properties.
*SQLDWTableProperties `json:"properties,omitempty"`
- // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindSQLDWTable', 'KindSQLDBTable'
+ // Kind - Possible values include: 'KindDataSet', 'KindBlob', 'KindBlobFolder', 'KindContainer', 'KindAdlsGen2File', 'KindAdlsGen2Folder', 'KindAdlsGen2FileSystem', 'KindAdlsGen1Folder', 'KindAdlsGen1File', 'KindKustoCluster', 'KindKustoDatabase', 'KindSQLDWTable', 'KindSQLDBTable'
Kind Kind `json:"kind,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -6864,6 +7807,16 @@ func (sdtds SQLDWTableDataSet) AsADLSGen1FileDataSet() (*ADLSGen1FileDataSet, bo
return nil, false
}
+// AsKustoClusterDataSet is the BasicDataSet implementation for SQLDWTableDataSet.
+func (sdtds SQLDWTableDataSet) AsKustoClusterDataSet() (*KustoClusterDataSet, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSet is the BasicDataSet implementation for SQLDWTableDataSet.
+func (sdtds SQLDWTableDataSet) AsKustoDatabaseDataSet() (*KustoDatabaseDataSet, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSet is the BasicDataSet implementation for SQLDWTableDataSet.
func (sdtds SQLDWTableDataSet) AsSQLDWTableDataSet() (*SQLDWTableDataSet, bool) {
return &sdtds, true
@@ -6944,11 +7897,11 @@ func (sdtds *SQLDWTableDataSet) UnmarshalJSON(body []byte) error {
return nil
}
-// SQLDWTableDataSetMapping a SQL DW Table dataset mapping.
+// SQLDWTableDataSetMapping a SQL DW Table data set mapping.
type SQLDWTableDataSetMapping struct {
- // SQLDWTableDataSetMappingProperties - Sql DW dataset mapping properties.
+ // SQLDWTableDataSetMappingProperties - Sql DW data set mapping properties.
*SQLDWTableDataSetMappingProperties `json:"properties,omitempty"`
- // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
+ // Kind - Possible values include: 'KindBasicDataSetMappingKindDataSetMapping', 'KindBasicDataSetMappingKindBlob', 'KindBasicDataSetMappingKindBlobFolder', 'KindBasicDataSetMappingKindContainer', 'KindBasicDataSetMappingKindAdlsGen2File', 'KindBasicDataSetMappingKindAdlsGen2Folder', 'KindBasicDataSetMappingKindAdlsGen2FileSystem', 'KindBasicDataSetMappingKindKustoCluster', 'KindBasicDataSetMappingKindKustoDatabase', 'KindBasicDataSetMappingKindSQLDWTable', 'KindBasicDataSetMappingKindSQLDBTable'
Kind KindBasicDataSetMapping `json:"kind,omitempty"`
// ID - READ-ONLY; The resource id of the azure resource
ID *string `json:"id,omitempty"`
@@ -7001,6 +7954,16 @@ func (sdtdsm SQLDWTableDataSetMapping) AsADLSGen2FileSystemDataSetMapping() (*AD
return nil, false
}
+// AsKustoClusterDataSetMapping is the BasicDataSetMapping implementation for SQLDWTableDataSetMapping.
+func (sdtdsm SQLDWTableDataSetMapping) AsKustoClusterDataSetMapping() (*KustoClusterDataSetMapping, bool) {
+ return nil, false
+}
+
+// AsKustoDatabaseDataSetMapping is the BasicDataSetMapping implementation for SQLDWTableDataSetMapping.
+func (sdtdsm SQLDWTableDataSetMapping) AsKustoDatabaseDataSetMapping() (*KustoDatabaseDataSetMapping, bool) {
+ return nil, false
+}
+
// AsSQLDWTableDataSetMapping is the BasicDataSetMapping implementation for SQLDWTableDataSetMapping.
func (sdtdsm SQLDWTableDataSetMapping) AsSQLDWTableDataSetMapping() (*SQLDWTableDataSetMapping, bool) {
return &sdtdsm, true
@@ -7083,12 +8046,16 @@ func (sdtdsm *SQLDWTableDataSetMapping) UnmarshalJSON(body []byte) error {
// SQLDWTableDataSetMappingProperties properties of the SQL DW table data set mapping.
type SQLDWTableDataSetMappingProperties struct {
- // DataSetID - Gets the id of source dataset.
+ // DataSetID - The id of the source data set.
DataSetID *string `json:"dataSetId,omitempty"`
- // DataSetMappingStatus - Gets the status of the dataset mapping. Possible values include: 'Ok', 'Broken'
+ // DataSetMappingStatus - READ-ONLY; Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'
DataSetMappingStatus DataSetMappingStatus `json:"dataSetMappingStatus,omitempty"`
// DataWarehouseName - DataWarehouse name of the source data set
DataWarehouseName *string `json:"dataWarehouseName,omitempty"`
+ // ProvisioningState - READ-ONLY; Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+ // SchemaName - Schema of the table. Default value is dbo.
+ SchemaName *string `json:"schemaName,omitempty"`
// SQLServerResourceID - Resource id of SQL server
SQLServerResourceID *string `json:"sqlServerResourceId,omitempty"`
// TableName - SQL DW table name.
@@ -7101,43 +8068,45 @@ type SQLDWTableProperties struct {
DataSetID *string `json:"dataSetId,omitempty"`
// DataWarehouseName - DataWarehouse name of the source data set
DataWarehouseName *string `json:"dataWarehouseName,omitempty"`
+ // SchemaName - Schema of the table. Default value is dbo.
+ SchemaName *string `json:"schemaName,omitempty"`
// SQLServerResourceID - Resource id of SQL server
SQLServerResourceID *string `json:"sqlServerResourceId,omitempty"`
// TableName - SQL DW table name.
TableName *string `json:"tableName,omitempty"`
}
-// SynchronizationDetails synchronization details at dataset level
+// SynchronizationDetails synchronization details at data set level
type SynchronizationDetails struct {
- // DataSetID - READ-ONLY; id of dataSet
+ // DataSetID - READ-ONLY; Id of data set
DataSetID *string `json:"dataSetId,omitempty"`
- // DataSetType - READ-ONLY; type of DataSet. Possible values include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'SQLDBTable', 'SQLDWTable'
+ // DataSetType - READ-ONLY; Type of the data set. Possible values include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SQLDBTable', 'SQLDWTable'
DataSetType DataSetType `json:"dataSetType,omitempty"`
- // DurationMs - READ-ONLY; duration of dataset level copy
+ // DurationMs - READ-ONLY; Duration of data set level copy
DurationMs *int32 `json:"durationMs,omitempty"`
- // EndTime - READ-ONLY; End time of dataset level copy
+ // EndTime - READ-ONLY; End time of data set level copy
EndTime *date.Time `json:"endTime,omitempty"`
- // FilesRead - READ-ONLY; The number of files read from the source dataset.
+ // FilesRead - READ-ONLY; The number of files read from the source data set
FilesRead *int64 `json:"filesRead,omitempty"`
- // FilesWritten - READ-ONLY; The number of files written into the sink dataset.
+ // FilesWritten - READ-ONLY; The number of files written into the sink data set
FilesWritten *int64 `json:"filesWritten,omitempty"`
- // Message - READ-ONLY; Error Message if any
+ // Message - READ-ONLY; Error message if any
Message *string `json:"message,omitempty"`
- // Name - READ-ONLY; name of dataSet
+ // Name - READ-ONLY; Name of the data set
Name *string `json:"name,omitempty"`
- // RowsCopied - READ-ONLY; The number of files copied into the sink dataset.
+ // RowsCopied - READ-ONLY; The number of files copied into the sink data set
RowsCopied *int64 `json:"rowsCopied,omitempty"`
- // RowsRead - READ-ONLY; The number of rows read from the source dataset.
+ // RowsRead - READ-ONLY; The number of rows read from the source data set.
RowsRead *int64 `json:"rowsRead,omitempty"`
- // SizeRead - READ-ONLY; The size of the data read from the source dataset in bytes.
+ // SizeRead - READ-ONLY; The size of the data read from the source data set in bytes
SizeRead *int64 `json:"sizeRead,omitempty"`
- // SizeWritten - READ-ONLY; The size of the data written into the sink dataset in bytes.
+ // SizeWritten - READ-ONLY; The size of the data written into the sink data set in bytes
SizeWritten *int64 `json:"sizeWritten,omitempty"`
- // StartTime - READ-ONLY; start time of dataset level copy
+ // StartTime - READ-ONLY; Start time of data set level copy
StartTime *date.Time `json:"startTime,omitempty"`
// Status - READ-ONLY; Raw Status
Status *string `json:"status,omitempty"`
- // VCore - READ-ONLY; The vCore units consumed for the dataset synchronization.
+ // VCore - READ-ONLY; The vCore units consumed for the data set synchronization
VCore *int64 `json:"vCore,omitempty"`
}
diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/shares.go b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/shares.go
index 4befdf3f4996..a097385910d9 100644
--- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/shares.go
+++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/shares.go
@@ -456,6 +456,7 @@ func (client SharesClient) ListSynchronizationDetailsPreparer(ctx context.Contex
queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
}
+ shareSynchronization.SynchronizationMode = ""
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPost(),
diff --git a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/sharesubscriptions.go b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/sharesubscriptions.go
index 6a543e2b4837..b55873cc2cbd 100644
--- a/services/preview/datashare/mgmt/2018-11-01-preview/datashare/sharesubscriptions.go
+++ b/services/preview/datashare/mgmt/2018-11-01-preview/datashare/sharesubscriptions.go
@@ -98,6 +98,7 @@ func (client ShareSubscriptionsClient) CancelSynchronizationPreparer(ctx context
shareSubscriptionSynchronization.Message = nil
shareSubscriptionSynchronization.StartTime = nil
shareSubscriptionSynchronization.Status = nil
+ shareSubscriptionSynchronization.SynchronizationMode = ""
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPost(),
@@ -689,6 +690,7 @@ func (client ShareSubscriptionsClient) ListSynchronizationDetailsPreparer(ctx co
shareSubscriptionSynchronization.Message = nil
shareSubscriptionSynchronization.StartTime = nil
shareSubscriptionSynchronization.Status = nil
+ shareSubscriptionSynchronization.SynchronizationMode = ""
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPost(),
diff --git a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/models.go b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/models.go
index 8a3ad3c6d17c..c0e01c5e8f76 100644
--- a/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/models.go
+++ b/services/preview/eventhub/mgmt/2018-01-01-preview/eventhub/models.go
@@ -46,6 +46,19 @@ func PossibleDefaultActionValues() []DefaultAction {
return []DefaultAction{Allow, Deny}
}
+// IdentityType enumerates the values for identity type.
+type IdentityType string
+
+const (
+ // SystemAssigned ...
+ SystemAssigned IdentityType = "SystemAssigned"
+)
+
+// PossibleIdentityTypeValues returns an array of possible values for the IdentityType const type.
+func PossibleIdentityTypeValues() []IdentityType {
+ return []IdentityType{SystemAssigned}
+}
+
// IPAction enumerates the values for ip action.
type IPAction string
@@ -61,6 +74,19 @@ func PossibleIPActionValues() []IPAction {
return []IPAction{Accept, Reject}
}
+// KeySource enumerates the values for key source.
+type KeySource string
+
+const (
+ // MicrosoftKeyVault ...
+ MicrosoftKeyVault KeySource = "Microsoft.KeyVault"
+)
+
+// PossibleKeySourceValues returns an array of possible values for the KeySource const type.
+func PossibleKeySourceValues() []KeySource {
+ return []KeySource{MicrosoftKeyVault}
+}
+
// NetworkRuleIPAction enumerates the values for network rule ip action.
type NetworkRuleIPAction string
@@ -778,6 +804,8 @@ type EHNamespaceProperties struct {
UpdatedAt *date.Time `json:"updatedAt,omitempty"`
// ServiceBusEndpoint - READ-ONLY; Endpoint you can use to perform Service Bus operations.
ServiceBusEndpoint *string `json:"serviceBusEndpoint,omitempty"`
+ // ClusterArmID - Cluster ARM ID of the Namespace.
+ ClusterArmID *string `json:"clusterArmId,omitempty"`
// MetricID - READ-ONLY; Identifier for Azure Insights metrics.
MetricID *string `json:"metricId,omitempty"`
// IsAutoInflateEnabled - Value that indicates whether AutoInflate is enabled for eventhub namespace.
@@ -788,6 +816,18 @@ type EHNamespaceProperties struct {
KafkaEnabled *bool `json:"kafkaEnabled,omitempty"`
// ZoneRedundant - Enabling this property creates a Standard Event Hubs Namespace in regions supported availability zones.
ZoneRedundant *bool `json:"zoneRedundant,omitempty"`
+ // Identity - Properties of BYOK Identity description
+ Identity *Identity `json:"identity,omitempty"`
+ // Encryption - Properties of BYOK Encryption description
+ Encryption *Encryption `json:"encryption,omitempty"`
+}
+
+// Encryption properties to configure Encryption
+type Encryption struct {
+ // KeyVaultProperties - Properties of KeyVault
+ KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"`
+ // KeySource - Enumerates the possible value of keySource for Encryption. Possible values include: 'MicrosoftKeyVault'
+ KeySource KeySource `json:"keySource,omitempty"`
}
// ErrorResponse error response that indicates the service is not able to process the incoming request. The
@@ -799,6 +839,16 @@ type ErrorResponse struct {
Message *string `json:"message,omitempty"`
}
+// Identity properties to configure Identity for Bring your Own Keys
+type Identity struct {
+ // PrincipalID - ObjectId from the KeyVault
+ PrincipalID *string `json:"principalId,omitempty"`
+ // TenantID - TenantId from the KeyVault
+ TenantID *string `json:"tenantId,omitempty"`
+ // Type - Enumerates the possible value Identity type, which currently supports only 'SystemAssigned'. Possible values include: 'SystemAssigned'
+ Type IdentityType `json:"type,omitempty"`
+}
+
// IPFilterRule single item in a List or Get IpFilterRules operation
type IPFilterRule struct {
autorest.Response `json:"-"`
@@ -1028,6 +1078,14 @@ type IPFilterRuleProperties struct {
FilterName *string `json:"filterName,omitempty"`
}
+// KeyVaultProperties properties to configure keyVault Properties
+type KeyVaultProperties struct {
+ // KeyName - Name of the Key from KeyVault
+ KeyName *string `json:"keyName,omitempty"`
+ // KeyVaultURI - Uri of KeyVault
+ KeyVaultURI *string `json:"keyVaultUri,omitempty"`
+}
+
// NamespacesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a
// long-running operation.
type NamespacesCreateOrUpdateFuture struct {
diff --git a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/models.go b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/models.go
index 9bb620534336..d4cc4f5a350d 100644
--- a/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/models.go
+++ b/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight/models.go
@@ -30,34 +30,6 @@ import (
// The package's fully qualified name.
const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight"
-// ApplicationHTTPSEndpointAccessMode enumerates the values for application https endpoint access mode.
-type ApplicationHTTPSEndpointAccessMode string
-
-const (
- // WebPage ...
- WebPage ApplicationHTTPSEndpointAccessMode = "WebPage"
-)
-
-// PossibleApplicationHTTPSEndpointAccessModeValues returns an array of possible values for the ApplicationHTTPSEndpointAccessMode const type.
-func PossibleApplicationHTTPSEndpointAccessModeValues() []ApplicationHTTPSEndpointAccessMode {
- return []ApplicationHTTPSEndpointAccessMode{WebPage}
-}
-
-// ApplicationType enumerates the values for application type.
-type ApplicationType string
-
-const (
- // CustomApplication ...
- CustomApplication ApplicationType = "CustomApplication"
- // RServer ...
- RServer ApplicationType = "RServer"
-)
-
-// PossibleApplicationTypeValues returns an array of possible values for the ApplicationType const type.
-func PossibleApplicationTypeValues() []ApplicationType {
- return []ApplicationType{CustomApplication, RServer}
-}
-
// AsyncOperationState enumerates the values for async operation state.
type AsyncOperationState string
@@ -260,7 +232,7 @@ type ApplicationGetEndpoint struct {
// ApplicationGetHTTPSEndpoint gets the application HTTP endpoints.
type ApplicationGetHTTPSEndpoint struct {
// AccessModes - The list of access modes for the application.
- AccessModes *[]ApplicationHTTPSEndpointAccessMode `json:"accessModes,omitempty"`
+ AccessModes *[]string `json:"accessModes,omitempty"`
// Location - The location of the endpoint.
Location *string `json:"location,omitempty"`
// DestinationPort - The destination port to connect to.
@@ -434,8 +406,8 @@ type ApplicationProperties struct {
SSHEndpoints *[]ApplicationGetEndpoint `json:"sshEndpoints,omitempty"`
// ProvisioningState - READ-ONLY; The provisioning state of the application.
ProvisioningState *string `json:"provisioningState,omitempty"`
- // ApplicationType - The application type. Possible values include: 'CustomApplication', 'RServer'
- ApplicationType ApplicationType `json:"applicationType,omitempty"`
+ // ApplicationType - The application type.
+ ApplicationType *string `json:"applicationType,omitempty"`
// ApplicationState - READ-ONLY; The application state.
ApplicationState *string `json:"applicationState,omitempty"`
// Errors - The list of errors.
diff --git a/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight/models.go b/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight/models.go
index c8679a059aff..ec244d5e7a5c 100644
--- a/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight/models.go
+++ b/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight/models.go
@@ -30,34 +30,6 @@ import (
// The package's fully qualified name.
const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight"
-// ApplicationHTTPSEndpointAccessMode enumerates the values for application https endpoint access mode.
-type ApplicationHTTPSEndpointAccessMode string
-
-const (
- // WebPage ...
- WebPage ApplicationHTTPSEndpointAccessMode = "WebPage"
-)
-
-// PossibleApplicationHTTPSEndpointAccessModeValues returns an array of possible values for the ApplicationHTTPSEndpointAccessMode const type.
-func PossibleApplicationHTTPSEndpointAccessModeValues() []ApplicationHTTPSEndpointAccessMode {
- return []ApplicationHTTPSEndpointAccessMode{WebPage}
-}
-
-// ApplicationType enumerates the values for application type.
-type ApplicationType string
-
-const (
- // CustomApplication ...
- CustomApplication ApplicationType = "CustomApplication"
- // RServer ...
- RServer ApplicationType = "RServer"
-)
-
-// PossibleApplicationTypeValues returns an array of possible values for the ApplicationType const type.
-func PossibleApplicationTypeValues() []ApplicationType {
- return []ApplicationType{CustomApplication, RServer}
-}
-
// AsyncOperationState enumerates the values for async operation state.
type AsyncOperationState string
@@ -260,7 +232,7 @@ type ApplicationGetEndpoint struct {
// ApplicationGetHTTPSEndpoint gets the application HTTP endpoints.
type ApplicationGetHTTPSEndpoint struct {
// AccessModes - The list of access modes for the application.
- AccessModes *[]ApplicationHTTPSEndpointAccessMode `json:"accessModes,omitempty"`
+ AccessModes *[]string `json:"accessModes,omitempty"`
// Location - The location of the endpoint.
Location *string `json:"location,omitempty"`
// DestinationPort - The destination port to connect to.
@@ -434,8 +406,8 @@ type ApplicationProperties struct {
SSHEndpoints *[]ApplicationGetEndpoint `json:"sshEndpoints,omitempty"`
// ProvisioningState - READ-ONLY; The provisioning state of the application.
ProvisioningState *string `json:"provisioningState,omitempty"`
- // ApplicationType - The application type. Possible values include: 'CustomApplication', 'RServer'
- ApplicationType ApplicationType `json:"applicationType,omitempty"`
+ // ApplicationType - The application type.
+ ApplicationType *string `json:"applicationType,omitempty"`
// ApplicationState - READ-ONLY; The application state.
ApplicationState *string `json:"applicationState,omitempty"`
// Errors - The list of errors.
diff --git a/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute/client.go b/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute/client.go
new file mode 100644
index 000000000000..12a0d603aee4
--- /dev/null
+++ b/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute/client.go
@@ -0,0 +1,51 @@
+// Package hybridcompute implements the Azure ARM Hybridcompute service API version 2019-03-18-preview.
+//
+// The Hybrid Compute Management Client.
+package hybridcompute
+
+// 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 (
+ "github.com/Azure/go-autorest/autorest"
+)
+
+const (
+ // DefaultBaseURI is the default URI used for the service Hybridcompute
+ DefaultBaseURI = "https://management.azure.com"
+)
+
+// BaseClient is the base client for Hybridcompute.
+type BaseClient struct {
+ autorest.Client
+ BaseURI string
+ SubscriptionID string
+}
+
+// New creates an instance of the BaseClient client.
+func New(subscriptionID string) BaseClient {
+ return NewWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewWithBaseURI creates an instance of the BaseClient client.
+func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
+ return BaseClient{
+ Client: autorest.NewClientWithUserAgent(UserAgent()),
+ BaseURI: baseURI,
+ SubscriptionID: subscriptionID,
+ }
+}
diff --git a/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute/hybridcomputeapi/interfaces.go b/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute/hybridcomputeapi/interfaces.go
new file mode 100644
index 000000000000..3624060b7804
--- /dev/null
+++ b/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute/hybridcomputeapi/interfaces.go
@@ -0,0 +1,44 @@
+package hybridcomputeapi
+
+// 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/azure-sdk-for-go/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute"
+ "github.com/Azure/go-autorest/autorest"
+)
+
+// MachinesClientAPI contains the set of methods on the MachinesClient type.
+type MachinesClientAPI interface {
+ CreateOrUpdate(ctx context.Context, resourceGroupName string, name string, parameters hybridcompute.Machine) (result hybridcompute.Machine, err error)
+ Delete(ctx context.Context, resourceGroupName string, name string) (result autorest.Response, err error)
+ Get(ctx context.Context, resourceGroupName string, name string, expand hybridcompute.InstanceViewTypes) (result hybridcompute.Machine, err error)
+ ListByResourceGroup(ctx context.Context, resourceGroupName string) (result hybridcompute.MachineListResultPage, err error)
+ ListBySubscription(ctx context.Context) (result hybridcompute.MachineListResultPage, err error)
+ Reconnect(ctx context.Context, resourceGroupName string, name string, parameters hybridcompute.MachineReconnect) (result hybridcompute.Machine, err error)
+ Update(ctx context.Context, resourceGroupName string, name string, parameters hybridcompute.MachineUpdate) (result hybridcompute.Machine, err error)
+}
+
+var _ MachinesClientAPI = (*hybridcompute.MachinesClient)(nil)
+
+// OperationsClientAPI contains the set of methods on the OperationsClient type.
+type OperationsClientAPI interface {
+ List(ctx context.Context) (result hybridcompute.OperationListResult, err error)
+}
+
+var _ OperationsClientAPI = (*hybridcompute.OperationsClient)(nil)
diff --git a/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute/machines.go b/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute/machines.go
new file mode 100644
index 000000000000..0fe8112e987a
--- /dev/null
+++ b/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute/machines.go
@@ -0,0 +1,663 @@
+package hybridcompute
+
+// 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/tracing"
+ "net/http"
+)
+
+// MachinesClient is the the Hybrid Compute Management Client.
+type MachinesClient struct {
+ BaseClient
+}
+
+// NewMachinesClient creates an instance of the MachinesClient client.
+func NewMachinesClient(subscriptionID string) MachinesClient {
+ return NewMachinesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewMachinesClientWithBaseURI creates an instance of the MachinesClient client.
+func NewMachinesClientWithBaseURI(baseURI string, subscriptionID string) MachinesClient {
+ return MachinesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate the operation to create or update a hybrid machine resource identity in Azure.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// name - the name of the hybrid machine.
+// parameters - parameters supplied to the Create hybrid machine operation.
+func (client MachinesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, name string, parameters Machine) (result Machine, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/MachinesClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, name, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateOrUpdateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "CreateOrUpdate", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "CreateOrUpdate", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client MachinesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, name string, parameters Machine) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "name": autorest.Encode("path", name),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-03-18-preview"
+ 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.HybridCompute/machines/{name}", pathParameters),
+ autorest.WithJSON(parameters),
+ 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 MachinesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client MachinesClient) CreateOrUpdateResponder(resp *http.Response) (result Machine, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Delete the operation to remove a hybrid machine identity in Azure.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// name - the name of the hybrid machine.
+func (client MachinesClient) Delete(ctx context.Context, resourceGroupName string, name string) (result autorest.Response, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/MachinesClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response != nil {
+ sc = result.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, name)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "Delete", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "Delete", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client MachinesClient) DeletePreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "name": autorest.Encode("path", name),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-03-18-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}", 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 MachinesClient) DeleteSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client MachinesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get retrieves information about the model view or the instance view of a hybrid machine.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// name - the name of the hybrid machine.
+// expand - the expand expression to apply on the operation.
+func (client MachinesClient) Get(ctx context.Context, resourceGroupName string, name string, expand InstanceViewTypes) (result Machine, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/MachinesClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, name, expand)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client MachinesClient) GetPreparer(ctx context.Context, resourceGroupName string, name string, expand InstanceViewTypes) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "name": autorest.Encode("path", name),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-03-18-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(string(expand)) > 0 {
+ queryParameters["$expand"] = autorest.Encode("query", expand)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}", 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 MachinesClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client MachinesClient) GetResponder(resp *http.Response) (result Machine, 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 lists all the hybrid machines in the specified resource group. Use the nextLink property in the
+// response to get the next page of hybrid machines.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client MachinesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result MachineListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/MachinesClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.mlr.Response.Response != nil {
+ sc = result.mlr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByResourceGroupNextResults
+ req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.mlr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.mlr, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client MachinesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-03-18-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client MachinesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client MachinesClient) ListByResourceGroupResponder(resp *http.Response) (result MachineListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByResourceGroupNextResults retrieves the next set of results, if any.
+func (client MachinesClient) listByResourceGroupNextResults(ctx context.Context, lastResults MachineListResult) (result MachineListResult, err error) {
+ req, err := lastResults.machineListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client MachinesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result MachineListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/MachinesClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByResourceGroup(ctx, resourceGroupName)
+ return
+}
+
+// ListBySubscription lists all the hybrid machines in the specified subscription. Use the nextLink property in the
+// response to get the next page of hybrid machines.
+func (client MachinesClient) ListBySubscription(ctx context.Context) (result MachineListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/MachinesClient.ListBySubscription")
+ defer func() {
+ sc := -1
+ if result.mlr.Response.Response != nil {
+ sc = result.mlr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listBySubscriptionNextResults
+ req, err := client.ListBySubscriptionPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "ListBySubscription", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListBySubscriptionSender(req)
+ if err != nil {
+ result.mlr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "ListBySubscription", resp, "Failure sending request")
+ return
+ }
+
+ result.mlr, err = client.ListBySubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "ListBySubscription", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListBySubscriptionPreparer prepares the ListBySubscription request.
+func (client MachinesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-03-18-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/machines", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListBySubscriptionSender sends the ListBySubscription request. The method will close the
+// http.Response Body if it receives an error.
+func (client MachinesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always
+// closes the http.Response Body.
+func (client MachinesClient) ListBySubscriptionResponder(resp *http.Response) (result MachineListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listBySubscriptionNextResults retrieves the next set of results, if any.
+func (client MachinesClient) listBySubscriptionNextResults(ctx context.Context, lastResults MachineListResult) (result MachineListResult, err error) {
+ req, err := lastResults.machineListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "listBySubscriptionNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListBySubscriptionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "listBySubscriptionNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListBySubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
+func (client MachinesClient) ListBySubscriptionComplete(ctx context.Context) (result MachineListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/MachinesClient.ListBySubscription")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListBySubscription(ctx)
+ return
+}
+
+// Reconnect the operation to reconnect a hybrid machine resource to its identity in Azure.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// name - the name of the hybrid machine.
+// parameters - parameters supplied to the Reconnect hybrid machine operation.
+func (client MachinesClient) Reconnect(ctx context.Context, resourceGroupName string, name string, parameters MachineReconnect) (result Machine, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/MachinesClient.Reconnect")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ReconnectPreparer(ctx, resourceGroupName, name, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "Reconnect", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ReconnectSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "Reconnect", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ReconnectResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "Reconnect", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ReconnectPreparer prepares the Reconnect request.
+func (client MachinesClient) ReconnectPreparer(ctx context.Context, resourceGroupName string, name string, parameters MachineReconnect) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "name": autorest.Encode("path", name),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-03-18-preview"
+ 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("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/reconnect", pathParameters),
+ autorest.WithJSON(parameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ReconnectSender sends the Reconnect request. The method will close the
+// http.Response Body if it receives an error.
+func (client MachinesClient) ReconnectSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ReconnectResponder handles the response to the Reconnect request. The method always
+// closes the http.Response Body.
+func (client MachinesClient) ReconnectResponder(resp *http.Response) (result Machine, 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 the operation to update a hybrid machine.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// name - the name of the hybrid machine.
+// parameters - parameters supplied to the Update hybrid machine operation.
+func (client MachinesClient) Update(ctx context.Context, resourceGroupName string, name string, parameters MachineUpdate) (result Machine, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/MachinesClient.Update")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdatePreparer(ctx, resourceGroupName, name, parameters)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "Update", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "Update", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "hybridcompute.MachinesClient", "Update", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdatePreparer prepares the Update request.
+func (client MachinesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, name string, parameters MachineUpdate) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "name": autorest.Encode("path", name),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-03-18-preview"
+ 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.HybridCompute/machines/{name}", pathParameters),
+ autorest.WithJSON(parameters),
+ 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 MachinesClient) UpdateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateResponder handles the response to the Update request. The method always
+// closes the http.Response Body.
+func (client MachinesClient) UpdateResponder(resp *http.Response) (result Machine, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute/models.go b/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute/models.go
new file mode 100644
index 000000000000..afe793fd4bc7
--- /dev/null
+++ b/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute/models.go
@@ -0,0 +1,701 @@
+package hybridcompute
+
+// 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"
+ "encoding/json"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/date"
+ "github.com/Azure/go-autorest/autorest/to"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// The package's fully qualified name.
+const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute"
+
+// InstanceViewTypes enumerates the values for instance view types.
+type InstanceViewTypes string
+
+const (
+ // InstanceView ...
+ InstanceView InstanceViewTypes = "instanceView"
+)
+
+// PossibleInstanceViewTypesValues returns an array of possible values for the InstanceViewTypes const type.
+func PossibleInstanceViewTypesValues() []InstanceViewTypes {
+ return []InstanceViewTypes{InstanceView}
+}
+
+// StatusTypes enumerates the values for status types.
+type StatusTypes string
+
+const (
+ // Connected ...
+ Connected StatusTypes = "Connected"
+ // Disconnected ...
+ Disconnected StatusTypes = "Disconnected"
+ // Error ...
+ Error StatusTypes = "Error"
+)
+
+// PossibleStatusTypesValues returns an array of possible values for the StatusTypes const type.
+func PossibleStatusTypesValues() []StatusTypes {
+ return []StatusTypes{Connected, Disconnected, Error}
+}
+
+// ErrorDetail ...
+type ErrorDetail struct {
+ // Code - The error's code.
+ Code *string `json:"code,omitempty"`
+ // Message - A human readable error message.
+ Message *string `json:"message,omitempty"`
+ // Target - Indicates which property in the request is responsible for the error.
+ Target *string `json:"target,omitempty"`
+ // Details - Additional error details.
+ Details *[]ErrorDetail `json:"details,omitempty"`
+}
+
+// ErrorResponse contains details when the response code indicates an error.
+type ErrorResponse struct {
+ // Error - The error details.
+ Error *ErrorDetail `json:"error,omitempty"`
+}
+
+// Identity ...
+type Identity struct {
+ // Type - The identity type.
+ Type *string `json:"type,omitempty"`
+ // PrincipalID - READ-ONLY; The identity's principal id.
+ PrincipalID *string `json:"principalId,omitempty"`
+ // TenantID - READ-ONLY; The identity's tenant id.
+ TenantID *string `json:"tenantId,omitempty"`
+}
+
+// Machine describes a hybrid machine.
+type Machine struct {
+ autorest.Response `json:"-"`
+ // MachineProperties - Hybrid Compute Machine properties
+ *MachineProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type
+ Type *string `json:"type,omitempty"`
+ // Location - Resource location
+ Location *string `json:"location,omitempty"`
+ // Tags - Resource tags
+ Tags map[string]*string `json:"tags"`
+ // Identity - Hybrid Compute Machine Managed Identity
+ *Identity `json:"identity,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for Machine.
+func (mVar Machine) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if mVar.MachineProperties != nil {
+ objectMap["properties"] = mVar.MachineProperties
+ }
+ if mVar.Location != nil {
+ objectMap["location"] = mVar.Location
+ }
+ if mVar.Tags != nil {
+ objectMap["tags"] = mVar.Tags
+ }
+ if mVar.Identity != nil {
+ objectMap["identity"] = mVar.Identity
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for Machine struct.
+func (mVar *Machine) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var machineProperties MachineProperties
+ err = json.Unmarshal(*v, &machineProperties)
+ if err != nil {
+ return err
+ }
+ mVar.MachineProperties = &machineProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ mVar.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ mVar.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ mVar.Type = &typeVar
+ }
+ case "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ mVar.Location = &location
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ mVar.Tags = tags
+ }
+ case "identity":
+ if v != nil {
+ var identity Identity
+ err = json.Unmarshal(*v, &identity)
+ if err != nil {
+ return err
+ }
+ mVar.Identity = &identity
+ }
+ }
+ }
+
+ return nil
+}
+
+// MachineListResult the List hybrid machine operation response.
+type MachineListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of hybrid machines.
+ Value *[]Machine `json:"value,omitempty"`
+ // NextLink - The URI to fetch the next page of VMs. Call ListNext() with this URI to fetch the next page of hybrid machines.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// MachineListResultIterator provides access to a complete listing of Machine values.
+type MachineListResultIterator struct {
+ i int
+ page MachineListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *MachineListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/MachineListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *MachineListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter MachineListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter MachineListResultIterator) Response() MachineListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter MachineListResultIterator) Value() Machine {
+ if !iter.page.NotDone() {
+ return Machine{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the MachineListResultIterator type.
+func NewMachineListResultIterator(page MachineListResultPage) MachineListResultIterator {
+ return MachineListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (mlr MachineListResult) IsEmpty() bool {
+ return mlr.Value == nil || len(*mlr.Value) == 0
+}
+
+// machineListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (mlr MachineListResult) machineListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if mlr.NextLink == nil || len(to.String(mlr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(mlr.NextLink)))
+}
+
+// MachineListResultPage contains a page of Machine values.
+type MachineListResultPage struct {
+ fn func(context.Context, MachineListResult) (MachineListResult, error)
+ mlr MachineListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *MachineListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/MachineListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.mlr)
+ if err != nil {
+ return err
+ }
+ page.mlr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *MachineListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page MachineListResultPage) NotDone() bool {
+ return !page.mlr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page MachineListResultPage) Response() MachineListResult {
+ return page.mlr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page MachineListResultPage) Values() []Machine {
+ if page.mlr.IsEmpty() {
+ return nil
+ }
+ return *page.mlr.Value
+}
+
+// Creates a new instance of the MachineListResultPage type.
+func NewMachineListResultPage(getNextPage func(context.Context, MachineListResult) (MachineListResult, error)) MachineListResultPage {
+ return MachineListResultPage{fn: getNextPage}
+}
+
+// MachineProperties describes the properties of a hybrid machine.
+type MachineProperties struct {
+ // OsProfile - Specifies the operating system settings for the hybrid machine.
+ OsProfile *OSProfile `json:"osProfile,omitempty"`
+ // ProvisioningState - READ-ONLY; The provisioning state, which only appears in the response.
+ ProvisioningState *string `json:"provisioningState,omitempty"`
+ // Status - READ-ONLY; The status of the hybrid machine agent. Possible values include: 'Connected', 'Disconnected', 'Error'
+ Status StatusTypes `json:"status,omitempty"`
+ // LastStatusChange - READ-ONLY; The time of the last status change.
+ LastStatusChange *date.Time `json:"lastStatusChange,omitempty"`
+ // ErrorDetails - READ-ONLY; Details about the error state.
+ ErrorDetails *[]ErrorDetail `json:"errorDetails,omitempty"`
+ // AgentVersion - READ-ONLY; The hybrid machine agent full version.
+ AgentVersion *string `json:"agentVersion,omitempty"`
+ // VMID - READ-ONLY; Specifies the hybrid machine unique ID.
+ VMID *string `json:"vmId,omitempty"`
+ // DisplayName - READ-ONLY; Specifies the hybrid machine display name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // MachineFqdn - READ-ONLY; Specifies the hybrid machine FQDN.
+ MachineFqdn *string `json:"machineFqdn,omitempty"`
+ // PhysicalLocation - Resource's Physical Location
+ PhysicalLocation *string `json:"physicalLocation,omitempty"`
+ // ClientPublicKey - Public Key that the client provides to be used during initial resource onboarding
+ ClientPublicKey *string `json:"clientPublicKey,omitempty"`
+ // OsName - READ-ONLY; The Operating System running on the hybrid machine.
+ OsName *string `json:"osName,omitempty"`
+ // OsVersion - READ-ONLY; The version of Operating System running on the hybrid machine.
+ OsVersion *string `json:"osVersion,omitempty"`
+}
+
+// MachineReconnect describes a hybrid machine reconnect.
+type MachineReconnect struct {
+ // MachineReconnectProperties - Hybrid Compute Machine properties
+ *MachineReconnectProperties `json:"properties,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for MachineReconnect.
+func (mr MachineReconnect) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if mr.MachineReconnectProperties != nil {
+ objectMap["properties"] = mr.MachineReconnectProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for MachineReconnect struct.
+func (mr *MachineReconnect) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var machineReconnectProperties MachineReconnectProperties
+ err = json.Unmarshal(*v, &machineReconnectProperties)
+ if err != nil {
+ return err
+ }
+ mr.MachineReconnectProperties = &machineReconnectProperties
+ }
+ }
+ }
+
+ return nil
+}
+
+// MachineReconnectProperties describes the properties required to reconnect a hybrid machine.
+type MachineReconnectProperties struct {
+ // VMID - Specifies the hybrid machine unique ID.
+ VMID *string `json:"vmId,omitempty"`
+ // ClientPublicKey - Public Key that the client provides to be used during initial resource onboarding.
+ ClientPublicKey *string `json:"clientPublicKey,omitempty"`
+}
+
+// MachineUpdate describes a hybrid machine Update.
+type MachineUpdate struct {
+ // Identity - Hybrid Compute Machine Managed Identity
+ *Identity `json:"identity,omitempty"`
+ // MachineUpdateProperties - Hybrid Compute Machine properties
+ *MachineUpdateProperties `json:"properties,omitempty"`
+ // Tags - Resource tags
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for MachineUpdate.
+func (mu MachineUpdate) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if mu.Identity != nil {
+ objectMap["identity"] = mu.Identity
+ }
+ if mu.MachineUpdateProperties != nil {
+ objectMap["properties"] = mu.MachineUpdateProperties
+ }
+ if mu.Tags != nil {
+ objectMap["tags"] = mu.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for MachineUpdate struct.
+func (mu *MachineUpdate) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "identity":
+ if v != nil {
+ var identity Identity
+ err = json.Unmarshal(*v, &identity)
+ if err != nil {
+ return err
+ }
+ mu.Identity = &identity
+ }
+ case "properties":
+ if v != nil {
+ var machineUpdateProperties MachineUpdateProperties
+ err = json.Unmarshal(*v, &machineUpdateProperties)
+ if err != nil {
+ return err
+ }
+ mu.MachineUpdateProperties = &machineUpdateProperties
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ mu.Tags = tags
+ }
+ }
+ }
+
+ return nil
+}
+
+// MachineUpdateProperties describes the ARM updatable properties of a hybrid machine.
+type MachineUpdateProperties struct {
+ // PhysicalLocation - Resource's Physical Location
+ PhysicalLocation *string `json:"physicalLocation,omitempty"`
+}
+
+// OperationListResult the List Compute Operation operation response.
+type OperationListResult struct {
+ autorest.Response `json:"-"`
+ // Value - READ-ONLY; The list of compute operations
+ Value *[]OperationValue `json:"value,omitempty"`
+}
+
+// OperationValue describes the properties of a Compute Operation value.
+type OperationValue struct {
+ // Origin - READ-ONLY; The origin of the compute operation.
+ Origin *string `json:"origin,omitempty"`
+ // Name - READ-ONLY; The name of the compute operation.
+ Name *string `json:"name,omitempty"`
+ // OperationValueDisplay - Display properties
+ *OperationValueDisplay `json:"display,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for OperationValue.
+func (ov OperationValue) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if ov.OperationValueDisplay != nil {
+ objectMap["display"] = ov.OperationValueDisplay
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for OperationValue struct.
+func (ov *OperationValue) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "origin":
+ if v != nil {
+ var origin string
+ err = json.Unmarshal(*v, &origin)
+ if err != nil {
+ return err
+ }
+ ov.Origin = &origin
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ ov.Name = &name
+ }
+ case "display":
+ if v != nil {
+ var operationValueDisplay OperationValueDisplay
+ err = json.Unmarshal(*v, &operationValueDisplay)
+ if err != nil {
+ return err
+ }
+ ov.OperationValueDisplay = &operationValueDisplay
+ }
+ }
+ }
+
+ return nil
+}
+
+// OperationValueDisplay describes the properties of a Hybrid Compute Operation Value Display.
+type OperationValueDisplay struct {
+ // Operation - READ-ONLY; The display name of the compute operation.
+ Operation *string `json:"operation,omitempty"`
+ // Resource - READ-ONLY; The display name of the resource the operation applies to.
+ Resource *string `json:"resource,omitempty"`
+ // Description - READ-ONLY; The description of the operation.
+ Description *string `json:"description,omitempty"`
+ // Provider - READ-ONLY; The resource provider for the operation.
+ Provider *string `json:"provider,omitempty"`
+}
+
+// OSProfile specifies the operating system settings for the hybrid machine.
+type OSProfile struct {
+ // ComputerName - READ-ONLY; Specifies the host OS name of the hybrid machine.
+ ComputerName *string `json:"computerName,omitempty"`
+}
+
+// Resource the Resource model definition.
+type Resource struct {
+ // ID - READ-ONLY; Resource Id
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type
+ Type *string `json:"type,omitempty"`
+ // Location - Resource location
+ Location *string `json:"location,omitempty"`
+ // Tags - Resource tags
+ Tags map[string]*string `json:"tags"`
+ // Identity - Hybrid Compute Machine Managed Identity
+ *Identity `json:"identity,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for Resource.
+func (r Resource) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if r.Location != nil {
+ objectMap["location"] = r.Location
+ }
+ if r.Tags != nil {
+ objectMap["tags"] = r.Tags
+ }
+ if r.Identity != nil {
+ objectMap["identity"] = r.Identity
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for Resource struct.
+func (r *Resource) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ r.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ r.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ r.Type = &typeVar
+ }
+ case "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ r.Location = &location
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ r.Tags = tags
+ }
+ case "identity":
+ if v != nil {
+ var identity Identity
+ err = json.Unmarshal(*v, &identity)
+ if err != nil {
+ return err
+ }
+ r.Identity = &identity
+ }
+ }
+ }
+
+ return nil
+}
+
+// UpdateResource the Update Resource model definition.
+type UpdateResource struct {
+ // Tags - Resource tags
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for UpdateResource.
+func (ur UpdateResource) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if ur.Tags != nil {
+ objectMap["tags"] = ur.Tags
+ }
+ return json.Marshal(objectMap)
+}
diff --git a/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute/operations.go b/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute/operations.go
new file mode 100644
index 000000000000..a019c1f54d75
--- /dev/null
+++ b/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute/operations.go
@@ -0,0 +1,109 @@
+package hybridcompute
+
+// 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/tracing"
+ "net/http"
+)
+
+// OperationsClient is the the Hybrid Compute Management Client.
+type OperationsClient struct {
+ BaseClient
+}
+
+// NewOperationsClient creates an instance of the OperationsClient client.
+func NewOperationsClient(subscriptionID string) OperationsClient {
+ return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
+func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
+ return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List gets a list of hybrid compute operations.
+func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "hybridcompute.OperationsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "hybridcompute.OperationsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "hybridcompute.OperationsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ const APIVersion = "2019-03-18-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPath("/providers/Microsoft.HybridCompute/operations"),
+ 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 OperationsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute/version.go b/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute/version.go
new file mode 100644
index 000000000000..e24833452815
--- /dev/null
+++ b/services/preview/hybridcompute/mgmt/2019-03-18-preview/hybridcompute/version.go
@@ -0,0 +1,30 @@
+package hybridcompute
+
+import "github.com/Azure/azure-sdk-for-go/version"
+
+// 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.
+
+// UserAgent returns the UserAgent string to use when sending http.Requests.
+func UserAgent() string {
+ return "Azure-SDK-For-Go/" + version.Number + " hybridcompute/2019-03-18-preview"
+}
+
+// Version returns the semantic version (see http://semver.org) of the client.
+func Version() string {
+ return version.Number
+}
diff --git a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/models.go b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/models.go
index 92d6a398523f..504b3d0d5f8e 100644
--- a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/models.go
+++ b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/models.go
@@ -25,6 +25,7 @@ import (
"github.com/Azure/go-autorest/autorest/date"
"github.com/Azure/go-autorest/autorest/to"
"github.com/Azure/go-autorest/tracing"
+ "github.com/satori/go.uuid"
"net/http"
)
@@ -948,6 +949,156 @@ func (s *Server) UnmarshalJSON(body []byte) error {
return nil
}
+// ServerAdministratorProperties the properties of an server Administrator.
+type ServerAdministratorProperties struct {
+ // AdministratorType - The type of administrator.
+ AdministratorType *string `json:"administratorType,omitempty"`
+ // Login - The server administrator login value.
+ Login *string `json:"login,omitempty"`
+ // Sid - The server administrator Sid (Secure ID).
+ Sid *uuid.UUID `json:"sid,omitempty"`
+ // TenantID - The server Active Directory Administrator tenant id.
+ TenantID *uuid.UUID `json:"tenantId,omitempty"`
+}
+
+// ServerAdministratorResource represents a and external administrator to be created.
+type ServerAdministratorResource struct {
+ autorest.Response `json:"-"`
+ // ServerAdministratorProperties - Properties of the server AAD administrator.
+ *ServerAdministratorProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource ID
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ServerAdministratorResource.
+func (sar ServerAdministratorResource) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if sar.ServerAdministratorProperties != nil {
+ objectMap["properties"] = sar.ServerAdministratorProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ServerAdministratorResource struct.
+func (sar *ServerAdministratorResource) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var serverAdministratorProperties ServerAdministratorProperties
+ err = json.Unmarshal(*v, &serverAdministratorProperties)
+ if err != nil {
+ return err
+ }
+ sar.ServerAdministratorProperties = &serverAdministratorProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ sar.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ sar.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ sar.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ServerAdministratorResourceListResult the response to a list Active Directory Administrators request.
+type ServerAdministratorResourceListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of server Active Directory Administrators for the server.
+ Value *[]ServerAdministratorResource `json:"value,omitempty"`
+}
+
+// ServerAdministratorsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ServerAdministratorsCreateOrUpdateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ServerAdministratorsCreateOrUpdateFuture) Result(client ServerAdministratorsClient) (sar ServerAdministratorResource, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("mysql.ServerAdministratorsCreateOrUpdateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if sar.Response.Response, err = future.GetResult(sender); err == nil && sar.Response.Response.StatusCode != http.StatusNoContent {
+ sar, err = client.CreateOrUpdateResponder(sar.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsCreateOrUpdateFuture", "Result", sar.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// ServerAdministratorsDeleteFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ServerAdministratorsDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ServerAdministratorsDeleteFuture) Result(client ServerAdministratorsClient) (sar ServerAdministratorResource, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("mysql.ServerAdministratorsDeleteFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if sar.Response.Response, err = future.GetResult(sender); err == nil && sar.Response.Response.StatusCode != http.StatusNoContent {
+ sar, err = client.DeleteResponder(sar.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsDeleteFuture", "Result", sar.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
// ServerForCreate represents a server to be created.
type ServerForCreate struct {
// Sku - The SKU (pricing tier) of the server.
diff --git a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/mysqlapi/interfaces.go b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/mysqlapi/interfaces.go
index 4c90ae8ef5c7..2ad7af82c238 100644
--- a/services/preview/mysql/mgmt/2017-12-01-preview/mysql/mysqlapi/interfaces.go
+++ b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/mysqlapi/interfaces.go
@@ -88,6 +88,16 @@ type LogFilesClientAPI interface {
var _ LogFilesClientAPI = (*mysql.LogFilesClient)(nil)
+// ServerAdministratorsClientAPI contains the set of methods on the ServerAdministratorsClient type.
+type ServerAdministratorsClientAPI interface {
+ CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, properties mysql.ServerAdministratorResource) (result mysql.ServerAdministratorsCreateOrUpdateFuture, err error)
+ Delete(ctx context.Context, resourceGroupName string, serverName string) (result mysql.ServerAdministratorsDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, serverName string) (result mysql.ServerAdministratorResource, err error)
+ ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result mysql.ServerAdministratorResourceListResult, err error)
+}
+
+var _ ServerAdministratorsClientAPI = (*mysql.ServerAdministratorsClient)(nil)
+
// LocationBasedPerformanceTierClientAPI contains the set of methods on the LocationBasedPerformanceTierClient type.
type LocationBasedPerformanceTierClientAPI interface {
List(ctx context.Context, locationName string) (result mysql.PerformanceTierListResult, err error)
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/serverkeys.go b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/serveradministrators.go
similarity index 53%
rename from services/preview/sql/mgmt/2018-06-15-preview/sql/serverkeys.go
rename to services/preview/mysql/mgmt/2017-12-01-preview/mysql/serveradministrators.go
index 9e9e38abbe15..890be04cb44c 100644
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/serverkeys.go
+++ b/services/preview/mysql/mgmt/2017-12-01-preview/mysql/serveradministrators.go
@@ -1,4 +1,4 @@
-package sql
+package mysql
// Copyright (c) Microsoft and contributors. All rights reserved.
//
@@ -21,40 +21,38 @@ import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
+ "github.com/Azure/go-autorest/autorest/validation"
"github.com/Azure/go-autorest/tracing"
"net/http"
)
-// ServerKeysClient is the the Azure SQL Database management API provides a RESTful set of web services that interact
-// with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and
-// delete databases.
-type ServerKeysClient struct {
+// ServerAdministratorsClient is the the Microsoft Azure management API provides create, read, update, and delete
+// functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and
+// configurations with new business model.
+type ServerAdministratorsClient struct {
BaseClient
}
-// NewServerKeysClient creates an instance of the ServerKeysClient client.
-func NewServerKeysClient(subscriptionID string) ServerKeysClient {
- return NewServerKeysClientWithBaseURI(DefaultBaseURI, subscriptionID)
+// NewServerAdministratorsClient creates an instance of the ServerAdministratorsClient client.
+func NewServerAdministratorsClient(subscriptionID string) ServerAdministratorsClient {
+ return NewServerAdministratorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewServerKeysClientWithBaseURI creates an instance of the ServerKeysClient client.
-func NewServerKeysClientWithBaseURI(baseURI string, subscriptionID string) ServerKeysClient {
- return ServerKeysClient{NewWithBaseURI(baseURI, subscriptionID)}
+// NewServerAdministratorsClientWithBaseURI creates an instance of the ServerAdministratorsClient client.
+func NewServerAdministratorsClientWithBaseURI(baseURI string, subscriptionID string) ServerAdministratorsClient {
+ return ServerAdministratorsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// CreateOrUpdate creates or updates a server key.
+// CreateOrUpdate creates or update active directory administrator on an existing server. The update action will
+// overwrite the existing administrator.
// Parameters:
// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
// from the Azure Resource Manager API or the portal.
// serverName - the name of the server.
-// keyName - the name of the server key to be operated on (updated or created). The key name is required to be
-// in the format of 'vault_key_version'. For example, if the keyId is
-// https://YourVaultName.vault.azure.net/keys/YourKeyName/01234567890123456789012345678901, then the server key
-// name should be formatted as: YourVaultName_YourKeyName_01234567890123456789012345678901
-// parameters - the requested server key resource state.
-func (client ServerKeysClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, keyName string, parameters ServerKey) (result ServerKeysCreateOrUpdateFuture, err error) {
+// properties - the required parameters for creating or updating an AAD server administrator.
+func (client ServerAdministratorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, properties ServerAdministratorResource) (result ServerAdministratorsCreateOrUpdateFuture, err error) {
if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ServerKeysClient.CreateOrUpdate")
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServerAdministratorsClient.CreateOrUpdate")
defer func() {
sc := -1
if result.Response() != nil {
@@ -63,15 +61,26 @@ func (client ServerKeysClient) CreateOrUpdate(ctx context.Context, resourceGroup
tracing.EndSpan(ctx, sc, err)
}()
}
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, keyName, parameters)
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: properties,
+ Constraints: []validation.Constraint{{Target: "properties.ServerAdministratorProperties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "properties.ServerAdministratorProperties.AdministratorType", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "properties.ServerAdministratorProperties.Login", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "properties.ServerAdministratorProperties.Sid", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "properties.ServerAdministratorProperties.TenantID", Name: validation.Null, Rule: true, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("mysql.ServerAdministratorsClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, properties)
if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "CreateOrUpdate", nil, "Failure preparing request")
+ err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsClient", "CreateOrUpdate", nil, "Failure preparing request")
return
}
result, err = client.CreateOrUpdateSender(req)
if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
return
}
@@ -79,33 +88,31 @@ func (client ServerKeysClient) CreateOrUpdate(ctx context.Context, resourceGroup
}
// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client ServerKeysClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, keyName string, parameters ServerKey) (*http.Request, error) {
+func (client ServerAdministratorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, properties ServerAdministratorResource) (*http.Request, error) {
pathParameters := map[string]interface{}{
- "keyName": autorest.Encode("path", keyName),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"serverName": autorest.Encode("path", serverName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2015-05-01-preview"
+ const APIVersion = "2017-12-01-preview"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
- parameters.Location = nil
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPut(),
autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/keys/{keyName}", pathParameters),
- autorest.WithJSON(parameters),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/Administrators/activeDirectory", pathParameters),
+ autorest.WithJSON(properties),
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 ServerKeysClient) CreateOrUpdateSender(req *http.Request) (future ServerKeysCreateOrUpdateFuture, err error) {
+func (client ServerAdministratorsClient) CreateOrUpdateSender(req *http.Request) (future ServerAdministratorsCreateOrUpdateFuture, err error) {
sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
var resp *http.Response
resp, err = autorest.SendWithSender(client, req, sd...)
@@ -118,26 +125,25 @@ func (client ServerKeysClient) CreateOrUpdateSender(req *http.Request) (future S
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
// closes the http.Response Body.
-func (client ServerKeysClient) CreateOrUpdateResponder(resp *http.Response) (result ServerKey, err error) {
+func (client ServerAdministratorsClient) CreateOrUpdateResponder(resp *http.Response) (result ServerAdministratorResource, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
-// Delete deletes the server key with the given name.
+// Delete deletes AAD Administrator.
// Parameters:
// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
// from the Azure Resource Manager API or the portal.
// serverName - the name of the server.
-// keyName - the name of the server key to be deleted.
-func (client ServerKeysClient) Delete(ctx context.Context, resourceGroupName string, serverName string, keyName string) (result ServerKeysDeleteFuture, err error) {
+func (client ServerAdministratorsClient) Delete(ctx context.Context, resourceGroupName string, serverName string) (result ServerAdministratorsDeleteFuture, err error) {
if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ServerKeysClient.Delete")
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServerAdministratorsClient.Delete")
defer func() {
sc := -1
if result.Response() != nil {
@@ -146,15 +152,15 @@ func (client ServerKeysClient) Delete(ctx context.Context, resourceGroupName str
tracing.EndSpan(ctx, sc, err)
}()
}
- req, err := client.DeletePreparer(ctx, resourceGroupName, serverName, keyName)
+ req, err := client.DeletePreparer(ctx, resourceGroupName, serverName)
if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "Delete", nil, "Failure preparing request")
+ err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsClient", "Delete", nil, "Failure preparing request")
return
}
result, err = client.DeleteSender(req)
if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "Delete", result.Response(), "Failure sending request")
+ err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsClient", "Delete", result.Response(), "Failure sending request")
return
}
@@ -162,15 +168,14 @@ func (client ServerKeysClient) Delete(ctx context.Context, resourceGroupName str
}
// DeletePreparer prepares the Delete request.
-func (client ServerKeysClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, keyName string) (*http.Request, error) {
+func (client ServerAdministratorsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
- "keyName": autorest.Encode("path", keyName),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"serverName": autorest.Encode("path", serverName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2015-05-01-preview"
+ const APIVersion = "2017-12-01-preview"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -178,14 +183,14 @@ func (client ServerKeysClient) DeletePreparer(ctx context.Context, resourceGroup
preparer := autorest.CreatePreparer(
autorest.AsDelete(),
autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/keys/{keyName}", pathParameters),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/Administrators/activeDirectory", 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 ServerKeysClient) DeleteSender(req *http.Request) (future ServerKeysDeleteFuture, err error) {
+func (client ServerAdministratorsClient) DeleteSender(req *http.Request) (future ServerAdministratorsDeleteFuture, err error) {
sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
var resp *http.Response
resp, err = autorest.SendWithSender(client, req, sd...)
@@ -198,25 +203,25 @@ func (client ServerKeysClient) DeleteSender(req *http.Request) (future ServerKey
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
-func (client ServerKeysClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+func (client ServerAdministratorsClient) DeleteResponder(resp *http.Response) (result ServerAdministratorResource, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
- result.Response = resp
+ result.Response = autorest.Response{Response: resp}
return
}
-// Get gets a server key.
+// Get gets information about a AAD server administrator.
// Parameters:
// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
// from the Azure Resource Manager API or the portal.
// serverName - the name of the server.
-// keyName - the name of the server key to be retrieved.
-func (client ServerKeysClient) Get(ctx context.Context, resourceGroupName string, serverName string, keyName string) (result ServerKey, err error) {
+func (client ServerAdministratorsClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result ServerAdministratorResource, err error) {
if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ServerKeysClient.Get")
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServerAdministratorsClient.Get")
defer func() {
sc := -1
if result.Response.Response != nil {
@@ -225,37 +230,36 @@ func (client ServerKeysClient) Get(ctx context.Context, resourceGroupName string
tracing.EndSpan(ctx, sc, err)
}()
}
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, keyName)
+ req, err := client.GetPreparer(ctx, resourceGroupName, serverName)
if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "Get", nil, "Failure preparing request")
+ err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "Get", resp, "Failure sending request")
+ err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "Get", resp, "Failure responding to request")
+ err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
-func (client ServerKeysClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, keyName string) (*http.Request, error) {
+func (client ServerAdministratorsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
- "keyName": autorest.Encode("path", keyName),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"serverName": autorest.Encode("path", serverName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2015-05-01-preview"
+ const APIVersion = "2017-12-01-preview"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -263,21 +267,21 @@ func (client ServerKeysClient) GetPreparer(ctx context.Context, resourceGroupNam
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/keys/{keyName}", pathParameters),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/Administrators/activeDirectory", 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 ServerKeysClient) GetSender(req *http.Request) (*http.Response, error) {
+func (client ServerAdministratorsClient) GetSender(req *http.Request) (*http.Response, error) {
sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
return autorest.SendWithSender(client, req, sd...)
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
-func (client ServerKeysClient) GetResponder(resp *http.Response) (result ServerKey, err error) {
+func (client ServerAdministratorsClient) GetResponder(resp *http.Response) (result ServerAdministratorResource, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
@@ -288,53 +292,52 @@ func (client ServerKeysClient) GetResponder(resp *http.Response) (result ServerK
return
}
-// ListByServer gets a list of server keys.
+// ListByServer returns a list of server Administrators.
// Parameters:
// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
// from the Azure Resource Manager API or the portal.
// serverName - the name of the server.
-func (client ServerKeysClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerKeyListResultPage, err error) {
+func (client ServerAdministratorsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerAdministratorResourceListResult, err error) {
if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ServerKeysClient.ListByServer")
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServerAdministratorsClient.ListByServer")
defer func() {
sc := -1
- if result.sklr.Response.Response != nil {
- sc = result.sklr.Response.Response.StatusCode
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
}
tracing.EndSpan(ctx, sc, err)
}()
}
- result.fn = client.listByServerNextResults
req, err := client.ListByServerPreparer(ctx, resourceGroupName, serverName)
if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "ListByServer", nil, "Failure preparing request")
+ err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsClient", "ListByServer", nil, "Failure preparing request")
return
}
resp, err := client.ListByServerSender(req)
if err != nil {
- result.sklr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "ListByServer", resp, "Failure sending request")
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsClient", "ListByServer", resp, "Failure sending request")
return
}
- result.sklr, err = client.ListByServerResponder(resp)
+ result, err = client.ListByServerResponder(resp)
if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "ListByServer", resp, "Failure responding to request")
+ err = autorest.NewErrorWithError(err, "mysql.ServerAdministratorsClient", "ListByServer", resp, "Failure responding to request")
}
return
}
// ListByServerPreparer prepares the ListByServer request.
-func (client ServerKeysClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) {
+func (client ServerAdministratorsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"serverName": autorest.Encode("path", serverName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2015-05-01-preview"
+ const APIVersion = "2017-12-01-preview"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -342,21 +345,21 @@ func (client ServerKeysClient) ListByServerPreparer(ctx context.Context, resourc
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/keys", pathParameters),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/administrators", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// ListByServerSender sends the ListByServer request. The method will close the
// http.Response Body if it receives an error.
-func (client ServerKeysClient) ListByServerSender(req *http.Request) (*http.Response, error) {
+func (client ServerAdministratorsClient) ListByServerSender(req *http.Request) (*http.Response, error) {
sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
return autorest.SendWithSender(client, req, sd...)
}
// ListByServerResponder handles the response to the ListByServer request. The method always
// closes the http.Response Body.
-func (client ServerKeysClient) ListByServerResponder(resp *http.Response) (result ServerKeyListResult, err error) {
+func (client ServerAdministratorsClient) ListByServerResponder(resp *http.Response) (result ServerAdministratorResourceListResult, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
@@ -366,40 +369,3 @@ func (client ServerKeysClient) ListByServerResponder(resp *http.Response) (resul
result.Response = autorest.Response{Response: resp}
return
}
-
-// listByServerNextResults retrieves the next set of results, if any.
-func (client ServerKeysClient) listByServerNextResults(ctx context.Context, lastResults ServerKeyListResult) (result ServerKeyListResult, err error) {
- req, err := lastResults.serverKeyListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.ServerKeysClient", "listByServerNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByServerSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.ServerKeysClient", "listByServerNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByServerResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ServerKeysClient", "listByServerNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByServerComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ServerKeysClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result ServerKeyListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ServerKeysClient.ListByServer")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByServer(ctx, resourceGroupName, serverName)
- return
-}
diff --git a/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/models.go b/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/models.go
index b71302b59126..a47383465675 100644
--- a/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/models.go
+++ b/services/preview/operationalinsights/mgmt/2015-11-01-preview/operationalinsights/models.go
@@ -872,11 +872,11 @@ type WorkspaceListUsagesResult struct {
type WorkspaceProperties struct {
// ProvisioningState - The provisioning state of the workspace. Possible values include: 'Creating', 'Succeeded', 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount'
ProvisioningState EntityStatus `json:"provisioningState,omitempty"`
- // Source - The source of the workspace. Source defines where the workspace was created. 'Azure' implies it was created in Azure. 'External' implies it was created via the Operational Insights Portal. This value is set on the service side and read-only on the client side.
+ // Source - READ-ONLY; This is a read-only legacy property. It is always set to 'Azure' by the service. Kept here for backward compatibility.
Source *string `json:"source,omitempty"`
- // CustomerID - The ID associated with the workspace. Setting this value at creation time allows the workspace being created to be linked to an existing workspace.
+ // CustomerID - READ-ONLY; This is a read-only property. Represents the ID associated with the workspace.
CustomerID *string `json:"customerId,omitempty"`
- // PortalURL - The URL of the Operational Insights portal for this workspace. This value is set on the service side and read-only on the client side.
+ // PortalURL - READ-ONLY; This is a legacy property and is not used anymore. Kept here for backward compatibility.
PortalURL *string `json:"portalUrl,omitempty"`
// Sku - The SKU of the workspace.
Sku *Sku `json:"sku,omitempty"`
diff --git a/services/preview/peering/mgmt/2019-08-01-preview/peering/client.go b/services/preview/peering/mgmt/2019-08-01-preview/peering/client.go
index b221a50435f4..bd71733e8b42 100644
--- a/services/preview/peering/mgmt/2019-08-01-preview/peering/client.go
+++ b/services/preview/peering/mgmt/2019-08-01-preview/peering/client.go
@@ -57,8 +57,8 @@ func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
// CheckServiceProviderAvailability checks if the peering service provider is present within 1000 miles of customer's
// location
// Parameters:
-// checkServiceProviderAvailabilityInput - the CheckServiceProviderAvailabilityInput indicating customer
-// location and service provider.
+// checkServiceProviderAvailabilityInput - the CheckServiceProviderAvailabilityInput
+// indicating customer location and service provider.
func (client BaseClient) CheckServiceProviderAvailability(ctx context.Context, checkServiceProviderAvailabilityInput CheckServiceProviderAvailabilityInput) (result String, err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CheckServiceProviderAvailability")
diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/client.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/client.go
new file mode 100644
index 000000000000..0af85a137871
--- /dev/null
+++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/client.go
@@ -0,0 +1,133 @@
+// Package peering implements the Azure ARM Peering service API version 2019-09-01-preview.
+//
+// Peering Client
+package peering
+
+// 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/tracing"
+ "net/http"
+)
+
+const (
+ // DefaultBaseURI is the default URI used for the service Peering
+ DefaultBaseURI = "https://management.azure.com"
+)
+
+// BaseClient is the base client for Peering.
+type BaseClient struct {
+ autorest.Client
+ BaseURI string
+ SubscriptionID string
+}
+
+// New creates an instance of the BaseClient client.
+func New(subscriptionID string) BaseClient {
+ return NewWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewWithBaseURI creates an instance of the BaseClient client.
+func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
+ return BaseClient{
+ Client: autorest.NewClientWithUserAgent(UserAgent()),
+ BaseURI: baseURI,
+ SubscriptionID: subscriptionID,
+ }
+}
+
+// CheckServiceProviderAvailability checks if the peering service provider is present within 1000 miles of customer's
+// location
+// Parameters:
+// checkServiceProviderAvailabilityInput - the CheckServiceProviderAvailabilityInput indicating customer
+// location and service provider.
+func (client BaseClient) CheckServiceProviderAvailability(ctx context.Context, checkServiceProviderAvailabilityInput CheckServiceProviderAvailabilityInput) (result String, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/BaseClient.CheckServiceProviderAvailability")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CheckServiceProviderAvailabilityPreparer(ctx, checkServiceProviderAvailabilityInput)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.BaseClient", "CheckServiceProviderAvailability", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CheckServiceProviderAvailabilitySender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.BaseClient", "CheckServiceProviderAvailability", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CheckServiceProviderAvailabilityResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.BaseClient", "CheckServiceProviderAvailability", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CheckServiceProviderAvailabilityPreparer prepares the CheckServiceProviderAvailability request.
+func (client BaseClient) CheckServiceProviderAvailabilityPreparer(ctx context.Context, checkServiceProviderAvailabilityInput CheckServiceProviderAvailabilityInput) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ 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("/subscriptions/{subscriptionId}/providers/Microsoft.Peering/CheckServiceProviderAvailability", pathParameters),
+ autorest.WithJSON(checkServiceProviderAvailabilityInput),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// CheckServiceProviderAvailabilitySender sends the CheckServiceProviderAvailability request. The method will close the
+// http.Response Body if it receives an error.
+func (client BaseClient) CheckServiceProviderAvailabilitySender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CheckServiceProviderAvailabilityResponder handles the response to the CheckServiceProviderAvailability request. The method always
+// closes the http.Response Body.
+func (client BaseClient) CheckServiceProviderAvailabilityResponder(resp *http.Response) (result String, 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
+}
diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/legacypeerings.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/legacypeerings.go
new file mode 100644
index 000000000000..b5230ef184ea
--- /dev/null
+++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/legacypeerings.go
@@ -0,0 +1,156 @@
+package peering
+
+// 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/tracing"
+ "net/http"
+)
+
+// LegacyPeeringsClient is the peering Client
+type LegacyPeeringsClient struct {
+ BaseClient
+}
+
+// NewLegacyPeeringsClient creates an instance of the LegacyPeeringsClient client.
+func NewLegacyPeeringsClient(subscriptionID string) LegacyPeeringsClient {
+ return NewLegacyPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewLegacyPeeringsClientWithBaseURI creates an instance of the LegacyPeeringsClient client.
+func NewLegacyPeeringsClientWithBaseURI(baseURI string, subscriptionID string) LegacyPeeringsClient {
+ return LegacyPeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List lists all of the legacy peerings under the given subscription matching the specified kind and location.
+// Parameters:
+// peeringLocation - the location of the peering.
+// kind - the kind of the peering.
+func (client LegacyPeeringsClient) List(ctx context.Context, peeringLocation string, kind string) (result ListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LegacyPeeringsClient.List")
+ defer func() {
+ sc := -1
+ if result.lr.Response.Response != nil {
+ sc = result.lr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, peeringLocation, kind)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.LegacyPeeringsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.lr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.LegacyPeeringsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.lr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.LegacyPeeringsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client LegacyPeeringsClient) ListPreparer(ctx context.Context, peeringLocation string, kind string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ "kind": autorest.Encode("query", kind),
+ "peeringLocation": autorest.Encode("query", peeringLocation),
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Peering/legacyPeerings", 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 LegacyPeeringsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client LegacyPeeringsClient) ListResponder(resp *http.Response) (result ListResult, 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 LegacyPeeringsClient) listNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) {
+ req, err := lastResults.listResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "peering.LegacyPeeringsClient", "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, "peering.LegacyPeeringsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.LegacyPeeringsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client LegacyPeeringsClient) ListComplete(ctx context.Context, peeringLocation string, kind string) (result ListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LegacyPeeringsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, peeringLocation, kind)
+ return
+}
diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/locations.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/locations.go
new file mode 100644
index 000000000000..b9ef1363bcc6
--- /dev/null
+++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/locations.go
@@ -0,0 +1,158 @@
+package peering
+
+// 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/tracing"
+ "net/http"
+)
+
+// LocationsClient is the peering Client
+type LocationsClient struct {
+ BaseClient
+}
+
+// NewLocationsClient creates an instance of the LocationsClient client.
+func NewLocationsClient(subscriptionID string) LocationsClient {
+ return NewLocationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewLocationsClientWithBaseURI creates an instance of the LocationsClient client.
+func NewLocationsClientWithBaseURI(baseURI string, subscriptionID string) LocationsClient {
+ return LocationsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List lists all of the available peering locations for the specified kind of peering.
+// Parameters:
+// kind - the kind of the peering.
+// directPeeringType - the type of direct peering.
+func (client LocationsClient) List(ctx context.Context, kind string, directPeeringType string) (result LocationListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LocationsClient.List")
+ defer func() {
+ sc := -1
+ if result.llr.Response.Response != nil {
+ sc = result.llr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx, kind, directPeeringType)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.LocationsClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.llr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.LocationsClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.llr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.LocationsClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client LocationsClient) ListPreparer(ctx context.Context, kind string, directPeeringType string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ "kind": autorest.Encode("query", kind),
+ }
+ if len(string(directPeeringType)) > 0 {
+ queryParameters["directPeeringType"] = autorest.Encode("query", directPeeringType)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peeringLocations", 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 LocationsClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client LocationsClient) ListResponder(resp *http.Response) (result LocationListResult, 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 LocationsClient) listNextResults(ctx context.Context, lastResults LocationListResult) (result LocationListResult, err error) {
+ req, err := lastResults.locationListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "peering.LocationsClient", "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, "peering.LocationsClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.LocationsClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client LocationsClient) ListComplete(ctx context.Context, kind string, directPeeringType string) (result LocationListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LocationsClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx, kind, directPeeringType)
+ return
+}
diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/models.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/models.go
new file mode 100644
index 000000000000..bbf47ea3d27d
--- /dev/null
+++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/models.go
@@ -0,0 +1,2426 @@
+package peering
+
+// 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"
+ "encoding/json"
+ "github.com/Azure/go-autorest/autorest"
+ "github.com/Azure/go-autorest/autorest/date"
+ "github.com/Azure/go-autorest/autorest/to"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// The package's fully qualified name.
+const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/peering/mgmt/2019-09-01-preview/peering"
+
+// ConnectionState enumerates the values for connection state.
+type ConnectionState string
+
+const (
+ // Active ...
+ Active ConnectionState = "Active"
+ // Approved ...
+ Approved ConnectionState = "Approved"
+ // None ...
+ None ConnectionState = "None"
+ // PendingApproval ...
+ PendingApproval ConnectionState = "PendingApproval"
+ // ProvisioningCompleted ...
+ ProvisioningCompleted ConnectionState = "ProvisioningCompleted"
+ // ProvisioningFailed ...
+ ProvisioningFailed ConnectionState = "ProvisioningFailed"
+ // ProvisioningStarted ...
+ ProvisioningStarted ConnectionState = "ProvisioningStarted"
+ // Validating ...
+ Validating ConnectionState = "Validating"
+)
+
+// PossibleConnectionStateValues returns an array of possible values for the ConnectionState const type.
+func PossibleConnectionStateValues() []ConnectionState {
+ return []ConnectionState{Active, Approved, None, PendingApproval, ProvisioningCompleted, ProvisioningFailed, ProvisioningStarted, Validating}
+}
+
+// DirectPeeringType enumerates the values for direct peering type.
+type DirectPeeringType string
+
+const (
+ // Cdn ...
+ Cdn DirectPeeringType = "Cdn"
+ // Edge ...
+ Edge DirectPeeringType = "Edge"
+ // Internal ...
+ Internal DirectPeeringType = "Internal"
+ // Transit ...
+ Transit DirectPeeringType = "Transit"
+)
+
+// PossibleDirectPeeringTypeValues returns an array of possible values for the DirectPeeringType const type.
+func PossibleDirectPeeringTypeValues() []DirectPeeringType {
+ return []DirectPeeringType{Cdn, Edge, Internal, Transit}
+}
+
+// Family enumerates the values for family.
+type Family string
+
+const (
+ // Direct ...
+ Direct Family = "Direct"
+ // Exchange ...
+ Exchange Family = "Exchange"
+)
+
+// PossibleFamilyValues returns an array of possible values for the Family const type.
+func PossibleFamilyValues() []Family {
+ return []Family{Direct, Exchange}
+}
+
+// Kind enumerates the values for kind.
+type Kind string
+
+const (
+ // KindDirect ...
+ KindDirect Kind = "Direct"
+ // KindExchange ...
+ KindExchange Kind = "Exchange"
+)
+
+// PossibleKindValues returns an array of possible values for the Kind const type.
+func PossibleKindValues() []Kind {
+ return []Kind{KindDirect, KindExchange}
+}
+
+// LearnedType enumerates the values for learned type.
+type LearnedType string
+
+const (
+ // LearnedTypeNone ...
+ LearnedTypeNone LearnedType = "None"
+ // LearnedTypeViaServiceProvider ...
+ LearnedTypeViaServiceProvider LearnedType = "ViaServiceProvider"
+ // LearnedTypeViaSession ...
+ LearnedTypeViaSession LearnedType = "ViaSession"
+)
+
+// PossibleLearnedTypeValues returns an array of possible values for the LearnedType const type.
+func PossibleLearnedTypeValues() []LearnedType {
+ return []LearnedType{LearnedTypeNone, LearnedTypeViaServiceProvider, LearnedTypeViaSession}
+}
+
+// Name enumerates the values for name.
+type Name string
+
+const (
+ // BasicDirectFree ...
+ BasicDirectFree Name = "Basic_Direct_Free"
+ // BasicExchangeFree ...
+ BasicExchangeFree Name = "Basic_Exchange_Free"
+ // PremiumDirectFree ...
+ PremiumDirectFree Name = "Premium_Direct_Free"
+ // PremiumDirectMetered ...
+ PremiumDirectMetered Name = "Premium_Direct_Metered"
+ // PremiumDirectUnlimited ...
+ PremiumDirectUnlimited Name = "Premium_Direct_Unlimited"
+ // PremiumExchangeMetered ...
+ PremiumExchangeMetered Name = "Premium_Exchange_Metered"
+)
+
+// PossibleNameValues returns an array of possible values for the Name const type.
+func PossibleNameValues() []Name {
+ return []Name{BasicDirectFree, BasicExchangeFree, PremiumDirectFree, PremiumDirectMetered, PremiumDirectUnlimited, PremiumExchangeMetered}
+}
+
+// PrefixValidationState enumerates the values for prefix validation state.
+type PrefixValidationState string
+
+const (
+ // PrefixValidationStateFailed ...
+ PrefixValidationStateFailed PrefixValidationState = "Failed"
+ // PrefixValidationStateInvalid ...
+ PrefixValidationStateInvalid PrefixValidationState = "Invalid"
+ // PrefixValidationStateNone ...
+ PrefixValidationStateNone PrefixValidationState = "None"
+ // PrefixValidationStatePending ...
+ PrefixValidationStatePending PrefixValidationState = "Pending"
+ // PrefixValidationStateUnknown ...
+ PrefixValidationStateUnknown PrefixValidationState = "Unknown"
+ // PrefixValidationStateVerified ...
+ PrefixValidationStateVerified PrefixValidationState = "Verified"
+ // PrefixValidationStateWarning ...
+ PrefixValidationStateWarning PrefixValidationState = "Warning"
+)
+
+// PossiblePrefixValidationStateValues returns an array of possible values for the PrefixValidationState const type.
+func PossiblePrefixValidationStateValues() []PrefixValidationState {
+ return []PrefixValidationState{PrefixValidationStateFailed, PrefixValidationStateInvalid, PrefixValidationStateNone, PrefixValidationStatePending, PrefixValidationStateUnknown, PrefixValidationStateVerified, PrefixValidationStateWarning}
+}
+
+// ProvisioningState enumerates the values for provisioning state.
+type ProvisioningState string
+
+const (
+ // Deleting ...
+ Deleting ProvisioningState = "Deleting"
+ // Failed ...
+ Failed ProvisioningState = "Failed"
+ // Succeeded ...
+ Succeeded ProvisioningState = "Succeeded"
+ // Updating ...
+ Updating ProvisioningState = "Updating"
+)
+
+// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
+func PossibleProvisioningStateValues() []ProvisioningState {
+ return []ProvisioningState{Deleting, Failed, Succeeded, Updating}
+}
+
+// SessionAddressProvider enumerates the values for session address provider.
+type SessionAddressProvider string
+
+const (
+ // Microsoft ...
+ Microsoft SessionAddressProvider = "Microsoft"
+ // Peer ...
+ Peer SessionAddressProvider = "Peer"
+)
+
+// PossibleSessionAddressProviderValues returns an array of possible values for the SessionAddressProvider const type.
+func PossibleSessionAddressProviderValues() []SessionAddressProvider {
+ return []SessionAddressProvider{Microsoft, Peer}
+}
+
+// SessionStateV4 enumerates the values for session state v4.
+type SessionStateV4 string
+
+const (
+ // SessionStateV4Active ...
+ SessionStateV4Active SessionStateV4 = "Active"
+ // SessionStateV4Connect ...
+ SessionStateV4Connect SessionStateV4 = "Connect"
+ // SessionStateV4Established ...
+ SessionStateV4Established SessionStateV4 = "Established"
+ // SessionStateV4Idle ...
+ SessionStateV4Idle SessionStateV4 = "Idle"
+ // SessionStateV4None ...
+ SessionStateV4None SessionStateV4 = "None"
+ // SessionStateV4OpenConfirm ...
+ SessionStateV4OpenConfirm SessionStateV4 = "OpenConfirm"
+ // SessionStateV4OpenReceived ...
+ SessionStateV4OpenReceived SessionStateV4 = "OpenReceived"
+ // SessionStateV4OpenSent ...
+ SessionStateV4OpenSent SessionStateV4 = "OpenSent"
+ // SessionStateV4PendingAdd ...
+ SessionStateV4PendingAdd SessionStateV4 = "PendingAdd"
+ // SessionStateV4PendingRemove ...
+ SessionStateV4PendingRemove SessionStateV4 = "PendingRemove"
+ // SessionStateV4PendingUpdate ...
+ SessionStateV4PendingUpdate SessionStateV4 = "PendingUpdate"
+)
+
+// PossibleSessionStateV4Values returns an array of possible values for the SessionStateV4 const type.
+func PossibleSessionStateV4Values() []SessionStateV4 {
+ return []SessionStateV4{SessionStateV4Active, SessionStateV4Connect, SessionStateV4Established, SessionStateV4Idle, SessionStateV4None, SessionStateV4OpenConfirm, SessionStateV4OpenReceived, SessionStateV4OpenSent, SessionStateV4PendingAdd, SessionStateV4PendingRemove, SessionStateV4PendingUpdate}
+}
+
+// SessionStateV6 enumerates the values for session state v6.
+type SessionStateV6 string
+
+const (
+ // SessionStateV6Active ...
+ SessionStateV6Active SessionStateV6 = "Active"
+ // SessionStateV6Connect ...
+ SessionStateV6Connect SessionStateV6 = "Connect"
+ // SessionStateV6Established ...
+ SessionStateV6Established SessionStateV6 = "Established"
+ // SessionStateV6Idle ...
+ SessionStateV6Idle SessionStateV6 = "Idle"
+ // SessionStateV6None ...
+ SessionStateV6None SessionStateV6 = "None"
+ // SessionStateV6OpenConfirm ...
+ SessionStateV6OpenConfirm SessionStateV6 = "OpenConfirm"
+ // SessionStateV6OpenReceived ...
+ SessionStateV6OpenReceived SessionStateV6 = "OpenReceived"
+ // SessionStateV6OpenSent ...
+ SessionStateV6OpenSent SessionStateV6 = "OpenSent"
+ // SessionStateV6PendingAdd ...
+ SessionStateV6PendingAdd SessionStateV6 = "PendingAdd"
+ // SessionStateV6PendingRemove ...
+ SessionStateV6PendingRemove SessionStateV6 = "PendingRemove"
+ // SessionStateV6PendingUpdate ...
+ SessionStateV6PendingUpdate SessionStateV6 = "PendingUpdate"
+)
+
+// PossibleSessionStateV6Values returns an array of possible values for the SessionStateV6 const type.
+func PossibleSessionStateV6Values() []SessionStateV6 {
+ return []SessionStateV6{SessionStateV6Active, SessionStateV6Connect, SessionStateV6Established, SessionStateV6Idle, SessionStateV6None, SessionStateV6OpenConfirm, SessionStateV6OpenReceived, SessionStateV6OpenSent, SessionStateV6PendingAdd, SessionStateV6PendingRemove, SessionStateV6PendingUpdate}
+}
+
+// Size enumerates the values for size.
+type Size string
+
+const (
+ // Free ...
+ Free Size = "Free"
+ // Metered ...
+ Metered Size = "Metered"
+ // Unlimited ...
+ Unlimited Size = "Unlimited"
+)
+
+// PossibleSizeValues returns an array of possible values for the Size const type.
+func PossibleSizeValues() []Size {
+ return []Size{Free, Metered, Unlimited}
+}
+
+// Tier enumerates the values for tier.
+type Tier string
+
+const (
+ // Basic ...
+ Basic Tier = "Basic"
+ // Premium ...
+ Premium Tier = "Premium"
+)
+
+// PossibleTierValues returns an array of possible values for the Tier const type.
+func PossibleTierValues() []Tier {
+ return []Tier{Basic, Premium}
+}
+
+// ValidationState enumerates the values for validation state.
+type ValidationState string
+
+const (
+ // ValidationStateApproved ...
+ ValidationStateApproved ValidationState = "Approved"
+ // ValidationStateFailed ...
+ ValidationStateFailed ValidationState = "Failed"
+ // ValidationStateNone ...
+ ValidationStateNone ValidationState = "None"
+ // ValidationStatePending ...
+ ValidationStatePending ValidationState = "Pending"
+)
+
+// PossibleValidationStateValues returns an array of possible values for the ValidationState const type.
+func PossibleValidationStateValues() []ValidationState {
+ return []ValidationState{ValidationStateApproved, ValidationStateFailed, ValidationStateNone, ValidationStatePending}
+}
+
+// BandwidthOffer the properties that define a peering bandwidth offer.
+type BandwidthOffer struct {
+ // OfferName - The name of the bandwidth offer.
+ OfferName *string `json:"offerName,omitempty"`
+ // ValueInMbps - The value of the bandwidth offer in Mbps.
+ ValueInMbps *int32 `json:"valueInMbps,omitempty"`
+}
+
+// BgpSession the properties that define a BGP session.
+type BgpSession struct {
+ // SessionPrefixV4 - The IPv4 prefix that contains both ends' IPv4 addresses.
+ SessionPrefixV4 *string `json:"sessionPrefixV4,omitempty"`
+ // SessionPrefixV6 - The IPv6 prefix that contains both ends' IPv6 addresses.
+ SessionPrefixV6 *string `json:"sessionPrefixV6,omitempty"`
+ // MicrosoftSessionIPv4Address - READ-ONLY; The IPv4 session address on Microsoft's end.
+ MicrosoftSessionIPv4Address *string `json:"microsoftSessionIPv4Address,omitempty"`
+ // MicrosoftSessionIPv6Address - READ-ONLY; The IPv6 session address on Microsoft's end.
+ MicrosoftSessionIPv6Address *string `json:"microsoftSessionIPv6Address,omitempty"`
+ // PeerSessionIPv4Address - The IPv4 session address on peer's end.
+ PeerSessionIPv4Address *string `json:"peerSessionIPv4Address,omitempty"`
+ // PeerSessionIPv6Address - The IPv6 session address on peer's end.
+ PeerSessionIPv6Address *string `json:"peerSessionIPv6Address,omitempty"`
+ // SessionStateV4 - READ-ONLY; The state of the IPv4 session. Possible values include: 'SessionStateV4None', 'SessionStateV4Idle', 'SessionStateV4Connect', 'SessionStateV4Active', 'SessionStateV4OpenSent', 'SessionStateV4OpenConfirm', 'SessionStateV4OpenReceived', 'SessionStateV4Established', 'SessionStateV4PendingAdd', 'SessionStateV4PendingUpdate', 'SessionStateV4PendingRemove'
+ SessionStateV4 SessionStateV4 `json:"sessionStateV4,omitempty"`
+ // SessionStateV6 - READ-ONLY; The state of the IPv6 session. Possible values include: 'SessionStateV6None', 'SessionStateV6Idle', 'SessionStateV6Connect', 'SessionStateV6Active', 'SessionStateV6OpenSent', 'SessionStateV6OpenConfirm', 'SessionStateV6OpenReceived', 'SessionStateV6Established', 'SessionStateV6PendingAdd', 'SessionStateV6PendingUpdate', 'SessionStateV6PendingRemove'
+ SessionStateV6 SessionStateV6 `json:"sessionStateV6,omitempty"`
+ // MaxPrefixesAdvertisedV4 - The maximum number of prefixes advertised over the IPv4 session.
+ MaxPrefixesAdvertisedV4 *int32 `json:"maxPrefixesAdvertisedV4,omitempty"`
+ // MaxPrefixesAdvertisedV6 - The maximum number of prefixes advertised over the IPv6 session.
+ MaxPrefixesAdvertisedV6 *int32 `json:"maxPrefixesAdvertisedV6,omitempty"`
+ // Md5AuthenticationKey - The MD5 authentication key of the session.
+ Md5AuthenticationKey *string `json:"md5AuthenticationKey,omitempty"`
+}
+
+// CheckServiceProviderAvailabilityInput class for CheckServiceProviderAvailabilityInput
+type CheckServiceProviderAvailabilityInput struct {
+ // PeeringServiceLocation - Gets or sets the PeeringServiceLocation
+ PeeringServiceLocation *string `json:"peeringServiceLocation,omitempty"`
+ // PeeringServiceProvider - Gets or sets the PeeringServiceProvider
+ PeeringServiceProvider *string `json:"peeringServiceProvider,omitempty"`
+}
+
+// ContactInfo the contact information of the peer.
+type ContactInfo struct {
+ // Emails - The list of email addresses.
+ Emails *[]string `json:"emails,omitempty"`
+ // Phone - The list of contact numbers.
+ Phone *[]string `json:"phone,omitempty"`
+}
+
+// DirectConnection the properties that define a direct connection.
+type DirectConnection struct {
+ // BandwidthInMbps - The bandwidth of the connection.
+ BandwidthInMbps *int32 `json:"bandwidthInMbps,omitempty"`
+ // ProvisionedBandwidthInMbps - READ-ONLY; The bandwidth that is actually provisioned.
+ ProvisionedBandwidthInMbps *int32 `json:"provisionedBandwidthInMbps,omitempty"`
+ // SessionAddressProvider - The field indicating if Microsoft provides session ip addresses. Possible values include: 'Microsoft', 'Peer'
+ SessionAddressProvider SessionAddressProvider `json:"sessionAddressProvider,omitempty"`
+ // UseForPeeringService - The flag that indicates whether or not the connection is used for peering service.
+ UseForPeeringService *bool `json:"useForPeeringService,omitempty"`
+ // PeeringDBFacilityID - The PeeringDB.com ID of the facility at which the connection has to be set up.
+ PeeringDBFacilityID *int32 `json:"peeringDBFacilityId,omitempty"`
+ // ConnectionState - READ-ONLY; The state of the connection. Possible values include: 'None', 'PendingApproval', 'Approved', 'ProvisioningStarted', 'ProvisioningFailed', 'ProvisioningCompleted', 'Validating', 'Active'
+ ConnectionState ConnectionState `json:"connectionState,omitempty"`
+ // BgpSession - The BGP session associated with the connection.
+ BgpSession *BgpSession `json:"bgpSession,omitempty"`
+ // ConnectionIdentifier - The unique identifier (GUID) for the connection.
+ ConnectionIdentifier *string `json:"connectionIdentifier,omitempty"`
+ // ErrorMessage - READ-ONLY; The error message related to the connection state, if any.
+ ErrorMessage *string `json:"errorMessage,omitempty"`
+}
+
+// DirectPeeringFacility the properties that define a direct peering facility.
+type DirectPeeringFacility struct {
+ // Address - The address of the direct peering facility.
+ Address *string `json:"address,omitempty"`
+ // DirectPeeringType - The type of the direct peering. Possible values include: 'Edge', 'Transit', 'Cdn', 'Internal'
+ DirectPeeringType DirectPeeringType `json:"directPeeringType,omitempty"`
+ // PeeringDBFacilityID - The PeeringDB.com ID of the facility.
+ PeeringDBFacilityID *int32 `json:"peeringDBFacilityId,omitempty"`
+ // PeeringDBFacilityLink - The PeeringDB.com URL of the facility.
+ PeeringDBFacilityLink *string `json:"peeringDBFacilityLink,omitempty"`
+}
+
+// ErrorResponse the error response that indicates why an operation has failed.
+type ErrorResponse struct {
+ // Code - READ-ONLY; The error code.
+ Code *string `json:"code,omitempty"`
+ // Message - READ-ONLY; The error message.
+ Message *string `json:"message,omitempty"`
+}
+
+// ExchangeConnection the properties that define an exchange connection.
+type ExchangeConnection struct {
+ // PeeringDBFacilityID - The PeeringDB.com ID of the facility at which the connection has to be set up.
+ PeeringDBFacilityID *int32 `json:"peeringDBFacilityId,omitempty"`
+ // ConnectionState - READ-ONLY; The state of the connection. Possible values include: 'None', 'PendingApproval', 'Approved', 'ProvisioningStarted', 'ProvisioningFailed', 'ProvisioningCompleted', 'Validating', 'Active'
+ ConnectionState ConnectionState `json:"connectionState,omitempty"`
+ // BgpSession - The BGP session associated with the connection.
+ BgpSession *BgpSession `json:"bgpSession,omitempty"`
+ // ConnectionIdentifier - The unique identifier (GUID) for the connection.
+ ConnectionIdentifier *string `json:"connectionIdentifier,omitempty"`
+ // ErrorMessage - READ-ONLY; The error message related to the connection state, if any.
+ ErrorMessage *string `json:"errorMessage,omitempty"`
+}
+
+// ExchangePeeringFacility the properties that define an exchange peering facility.
+type ExchangePeeringFacility struct {
+ // ExchangeName - The name of the exchange peering facility.
+ ExchangeName *string `json:"exchangeName,omitempty"`
+ // BandwidthInMbps - The bandwidth of the connection between Microsoft and the exchange peering facility.
+ BandwidthInMbps *int32 `json:"bandwidthInMbps,omitempty"`
+ // MicrosoftIPv4Address - The IPv4 address of Microsoft at the exchange peering facility.
+ MicrosoftIPv4Address *string `json:"microsoftIPv4Address,omitempty"`
+ // MicrosoftIPv6Address - The IPv6 address of Microsoft at the exchange peering facility.
+ MicrosoftIPv6Address *string `json:"microsoftIPv6Address,omitempty"`
+ // FacilityIPv4Prefix - The IPv4 prefixes associated with the exchange peering facility.
+ FacilityIPv4Prefix *string `json:"facilityIPv4Prefix,omitempty"`
+ // FacilityIPv6Prefix - The IPv6 prefixes associated with the exchange peering facility.
+ FacilityIPv6Prefix *string `json:"facilityIPv6Prefix,omitempty"`
+ // PeeringDBFacilityID - The PeeringDB.com ID of the facility.
+ PeeringDBFacilityID *int32 `json:"peeringDBFacilityId,omitempty"`
+ // PeeringDBFacilityLink - The PeeringDB.com URL of the facility.
+ PeeringDBFacilityLink *string `json:"peeringDBFacilityLink,omitempty"`
+}
+
+// ListResult the paginated list of peerings.
+type ListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of peerings.
+ Value *[]Model `json:"value,omitempty"`
+ // NextLink - The link to fetch the next page of peerings.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// ListResultIterator provides access to a complete listing of Model values.
+type ListResultIterator struct {
+ i int
+ page ListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *ListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *ListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter ListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter ListResultIterator) Response() ListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter ListResultIterator) Value() Model {
+ if !iter.page.NotDone() {
+ return Model{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the ListResultIterator type.
+func NewListResultIterator(page ListResultPage) ListResultIterator {
+ return ListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (lr ListResult) IsEmpty() bool {
+ return lr.Value == nil || len(*lr.Value) == 0
+}
+
+// listResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (lr ListResult) listResultPreparer(ctx context.Context) (*http.Request, error) {
+ if lr.NextLink == nil || len(to.String(lr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(lr.NextLink)))
+}
+
+// ListResultPage contains a page of Model values.
+type ListResultPage struct {
+ fn func(context.Context, ListResult) (ListResult, error)
+ lr ListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *ListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.lr)
+ if err != nil {
+ return err
+ }
+ page.lr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *ListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page ListResultPage) NotDone() bool {
+ return !page.lr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page ListResultPage) Response() ListResult {
+ return page.lr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page ListResultPage) Values() []Model {
+ if page.lr.IsEmpty() {
+ return nil
+ }
+ return *page.lr.Value
+}
+
+// Creates a new instance of the ListResultPage type.
+func NewListResultPage(getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage {
+ return ListResultPage{fn: getNextPage}
+}
+
+// Location peering location is where connectivity could be established to the Microsoft Cloud Edge.
+type Location struct {
+ // Kind - The kind of peering that the peering location supports. Possible values include: 'KindDirect', 'KindExchange'
+ Kind Kind `json:"kind,omitempty"`
+ // LocationProperties - The properties that define a peering location.
+ *LocationProperties `json:"properties,omitempty"`
+ // Name - READ-ONLY; The name of the resource.
+ Name *string `json:"name,omitempty"`
+ // ID - READ-ONLY; The ID of the resource.
+ ID *string `json:"id,omitempty"`
+ // Type - READ-ONLY; The type of the resource.
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for Location.
+func (l Location) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if l.Kind != "" {
+ objectMap["kind"] = l.Kind
+ }
+ if l.LocationProperties != nil {
+ objectMap["properties"] = l.LocationProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for Location struct.
+func (l *Location) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "kind":
+ if v != nil {
+ var kind Kind
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ l.Kind = kind
+ }
+ case "properties":
+ if v != nil {
+ var locationProperties LocationProperties
+ err = json.Unmarshal(*v, &locationProperties)
+ if err != nil {
+ return err
+ }
+ l.LocationProperties = &locationProperties
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ l.Name = &name
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ l.ID = &ID
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ l.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// LocationListResult the paginated list of peering locations.
+type LocationListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of peering locations.
+ Value *[]Location `json:"value,omitempty"`
+ // NextLink - The link to fetch the next page of peering locations.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// LocationListResultIterator provides access to a complete listing of Location values.
+type LocationListResultIterator struct {
+ i int
+ page LocationListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *LocationListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LocationListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *LocationListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter LocationListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter LocationListResultIterator) Response() LocationListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter LocationListResultIterator) Value() Location {
+ if !iter.page.NotDone() {
+ return Location{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the LocationListResultIterator type.
+func NewLocationListResultIterator(page LocationListResultPage) LocationListResultIterator {
+ return LocationListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (llr LocationListResult) IsEmpty() bool {
+ return llr.Value == nil || len(*llr.Value) == 0
+}
+
+// locationListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (llr LocationListResult) locationListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if llr.NextLink == nil || len(to.String(llr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(llr.NextLink)))
+}
+
+// LocationListResultPage contains a page of Location values.
+type LocationListResultPage struct {
+ fn func(context.Context, LocationListResult) (LocationListResult, error)
+ llr LocationListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *LocationListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/LocationListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.llr)
+ if err != nil {
+ return err
+ }
+ page.llr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *LocationListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page LocationListResultPage) NotDone() bool {
+ return !page.llr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page LocationListResultPage) Response() LocationListResult {
+ return page.llr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page LocationListResultPage) Values() []Location {
+ if page.llr.IsEmpty() {
+ return nil
+ }
+ return *page.llr.Value
+}
+
+// Creates a new instance of the LocationListResultPage type.
+func NewLocationListResultPage(getNextPage func(context.Context, LocationListResult) (LocationListResult, error)) LocationListResultPage {
+ return LocationListResultPage{fn: getNextPage}
+}
+
+// LocationProperties the properties that define a peering location.
+type LocationProperties struct {
+ // Direct - The properties that define a direct peering location.
+ Direct *LocationPropertiesDirect `json:"direct,omitempty"`
+ // Exchange - The properties that define an exchange peering location.
+ Exchange *LocationPropertiesExchange `json:"exchange,omitempty"`
+ // PeeringLocation - The name of the peering location.
+ PeeringLocation *string `json:"peeringLocation,omitempty"`
+ // Country - The country in which the peering location exists.
+ Country *string `json:"country,omitempty"`
+ // AzureRegion - The Azure region associated with the peering location.
+ AzureRegion *string `json:"azureRegion,omitempty"`
+}
+
+// LocationPropertiesDirect the properties that define a direct peering location.
+type LocationPropertiesDirect struct {
+ // PeeringFacilities - The list of direct peering facilities at the peering location.
+ PeeringFacilities *[]DirectPeeringFacility `json:"peeringFacilities,omitempty"`
+ // BandwidthOffers - The list of bandwidth offers available at the peering location.
+ BandwidthOffers *[]BandwidthOffer `json:"bandwidthOffers,omitempty"`
+}
+
+// LocationPropertiesExchange the properties that define an exchange peering location.
+type LocationPropertiesExchange struct {
+ // PeeringFacilities - The list of exchange peering facilities at the peering location.
+ PeeringFacilities *[]ExchangePeeringFacility `json:"peeringFacilities,omitempty"`
+}
+
+// Model peering is a logical representation of a set of connections to the Microsoft Cloud Edge at a
+// location.
+type Model struct {
+ autorest.Response `json:"-"`
+ // Sku - The SKU that defines the tier and kind of the peering.
+ Sku *Sku `json:"sku,omitempty"`
+ // Kind - The kind of the peering. Possible values include: 'KindDirect', 'KindExchange'
+ Kind Kind `json:"kind,omitempty"`
+ // Properties - The properties that define a peering.
+ *Properties `json:"properties,omitempty"`
+ // Location - The location of the resource.
+ Location *string `json:"location,omitempty"`
+ // Tags - The resource tags.
+ Tags map[string]*string `json:"tags"`
+ // Name - READ-ONLY; The name of the resource.
+ Name *string `json:"name,omitempty"`
+ // ID - READ-ONLY; The ID of the resource.
+ ID *string `json:"id,omitempty"`
+ // Type - READ-ONLY; The type of the resource.
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for Model.
+func (mVar Model) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if mVar.Sku != nil {
+ objectMap["sku"] = mVar.Sku
+ }
+ if mVar.Kind != "" {
+ objectMap["kind"] = mVar.Kind
+ }
+ if mVar.Properties != nil {
+ objectMap["properties"] = mVar.Properties
+ }
+ if mVar.Location != nil {
+ objectMap["location"] = mVar.Location
+ }
+ if mVar.Tags != nil {
+ objectMap["tags"] = mVar.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for Model struct.
+func (mVar *Model) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "sku":
+ if v != nil {
+ var sku Sku
+ err = json.Unmarshal(*v, &sku)
+ if err != nil {
+ return err
+ }
+ mVar.Sku = &sku
+ }
+ case "kind":
+ if v != nil {
+ var kind Kind
+ err = json.Unmarshal(*v, &kind)
+ if err != nil {
+ return err
+ }
+ mVar.Kind = kind
+ }
+ case "properties":
+ if v != nil {
+ var properties Properties
+ err = json.Unmarshal(*v, &properties)
+ if err != nil {
+ return err
+ }
+ mVar.Properties = &properties
+ }
+ case "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ mVar.Location = &location
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ mVar.Tags = tags
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ mVar.Name = &name
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ mVar.ID = &ID
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ mVar.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// Operation the peering API operation.
+type Operation struct {
+ // Name - READ-ONLY; The name of the operation.
+ Name *string `json:"name,omitempty"`
+ // Display - READ-ONLY; The information related to the operation.
+ Display *OperationDisplayInfo `json:"display,omitempty"`
+ // IsDataAction - READ-ONLY; The flag that indicates whether the operation applies to data plane.
+ IsDataAction *bool `json:"isDataAction,omitempty"`
+}
+
+// OperationDisplayInfo the information related to the operation.
+type OperationDisplayInfo struct {
+ // Provider - READ-ONLY; The name of the resource provider.
+ Provider *string `json:"provider,omitempty"`
+ // Resource - READ-ONLY; The type of the resource.
+ Resource *string `json:"resource,omitempty"`
+ // Operation - READ-ONLY; The name of the operation.
+ Operation *string `json:"operation,omitempty"`
+ // Description - READ-ONLY; The description of the operation.
+ Description *string `json:"description,omitempty"`
+}
+
+// OperationListResult the paginated list of peering API operations.
+type OperationListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of peering API operations.
+ Value *[]Operation `json:"value,omitempty"`
+ // NextLink - The link to fetch the next page of peering API operations.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// OperationListResultIterator provides access to a complete listing of Operation values.
+type OperationListResultIterator struct {
+ i int
+ page OperationListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *OperationListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter OperationListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter OperationListResultIterator) Response() OperationListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter OperationListResultIterator) Value() Operation {
+ if !iter.page.NotDone() {
+ return Operation{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the OperationListResultIterator type.
+func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator {
+ return OperationListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (olr OperationListResult) IsEmpty() bool {
+ return olr.Value == nil || len(*olr.Value) == 0
+}
+
+// operationListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (olr OperationListResult) operationListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if olr.NextLink == nil || len(to.String(olr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(olr.NextLink)))
+}
+
+// OperationListResultPage contains a page of Operation values.
+type OperationListResultPage struct {
+ fn func(context.Context, OperationListResult) (OperationListResult, error)
+ olr OperationListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.olr)
+ if err != nil {
+ return err
+ }
+ page.olr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *OperationListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page OperationListResultPage) NotDone() bool {
+ return !page.olr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page OperationListResultPage) Response() OperationListResult {
+ return page.olr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page OperationListResultPage) Values() []Operation {
+ if page.olr.IsEmpty() {
+ return nil
+ }
+ return *page.olr.Value
+}
+
+// Creates a new instance of the OperationListResultPage type.
+func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage {
+ return OperationListResultPage{fn: getNextPage}
+}
+
+// PeerAsn the essential information related to the peer's ASN.
+type PeerAsn struct {
+ autorest.Response `json:"-"`
+ // PeerAsnProperties - The properties that define a peer's ASN.
+ *PeerAsnProperties `json:"properties,omitempty"`
+ // Name - READ-ONLY; The name of the resource.
+ Name *string `json:"name,omitempty"`
+ // ID - READ-ONLY; The ID of the resource.
+ ID *string `json:"id,omitempty"`
+ // Type - READ-ONLY; The type of the resource.
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for PeerAsn.
+func (pa PeerAsn) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if pa.PeerAsnProperties != nil {
+ objectMap["properties"] = pa.PeerAsnProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for PeerAsn struct.
+func (pa *PeerAsn) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var peerAsnProperties PeerAsnProperties
+ err = json.Unmarshal(*v, &peerAsnProperties)
+ if err != nil {
+ return err
+ }
+ pa.PeerAsnProperties = &peerAsnProperties
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ pa.Name = &name
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ pa.ID = &ID
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ pa.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// PeerAsnListResult the paginated list of peer ASNs.
+type PeerAsnListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of peer ASNs.
+ Value *[]PeerAsn `json:"value,omitempty"`
+ // NextLink - The link to fetch the next page of peer ASNs.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// PeerAsnListResultIterator provides access to a complete listing of PeerAsn values.
+type PeerAsnListResultIterator struct {
+ i int
+ page PeerAsnListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *PeerAsnListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PeerAsnListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *PeerAsnListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter PeerAsnListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter PeerAsnListResultIterator) Response() PeerAsnListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter PeerAsnListResultIterator) Value() PeerAsn {
+ if !iter.page.NotDone() {
+ return PeerAsn{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the PeerAsnListResultIterator type.
+func NewPeerAsnListResultIterator(page PeerAsnListResultPage) PeerAsnListResultIterator {
+ return PeerAsnListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (palr PeerAsnListResult) IsEmpty() bool {
+ return palr.Value == nil || len(*palr.Value) == 0
+}
+
+// peerAsnListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (palr PeerAsnListResult) peerAsnListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if palr.NextLink == nil || len(to.String(palr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(palr.NextLink)))
+}
+
+// PeerAsnListResultPage contains a page of PeerAsn values.
+type PeerAsnListResultPage struct {
+ fn func(context.Context, PeerAsnListResult) (PeerAsnListResult, error)
+ palr PeerAsnListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *PeerAsnListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PeerAsnListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.palr)
+ if err != nil {
+ return err
+ }
+ page.palr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *PeerAsnListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page PeerAsnListResultPage) NotDone() bool {
+ return !page.palr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page PeerAsnListResultPage) Response() PeerAsnListResult {
+ return page.palr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page PeerAsnListResultPage) Values() []PeerAsn {
+ if page.palr.IsEmpty() {
+ return nil
+ }
+ return *page.palr.Value
+}
+
+// Creates a new instance of the PeerAsnListResultPage type.
+func NewPeerAsnListResultPage(getNextPage func(context.Context, PeerAsnListResult) (PeerAsnListResult, error)) PeerAsnListResultPage {
+ return PeerAsnListResultPage{fn: getNextPage}
+}
+
+// PeerAsnProperties the properties that define a peer's ASN.
+type PeerAsnProperties struct {
+ // PeerAsn - The Autonomous System Number (ASN) of the peer.
+ PeerAsn *int32 `json:"peerAsn,omitempty"`
+ // PeerContactInfo - The contact information of the peer.
+ PeerContactInfo *ContactInfo `json:"peerContactInfo,omitempty"`
+ // PeerName - The name of the peer.
+ PeerName *string `json:"peerName,omitempty"`
+ // ValidationState - The validation state of the ASN associated with the peer. Possible values include: 'ValidationStateNone', 'ValidationStatePending', 'ValidationStateApproved', 'ValidationStateFailed'
+ ValidationState ValidationState `json:"validationState,omitempty"`
+ // ErrorMessage - READ-ONLY; The error message for the validation state
+ ErrorMessage *string `json:"errorMessage,omitempty"`
+}
+
+// Properties the properties that define connectivity to the Microsoft Cloud Edge.
+type Properties struct {
+ // Direct - The properties that define a direct peering.
+ Direct *PropertiesDirect `json:"direct,omitempty"`
+ // Exchange - The properties that define an exchange peering.
+ Exchange *PropertiesExchange `json:"exchange,omitempty"`
+ // PeeringLocation - The location of the peering.
+ PeeringLocation *string `json:"peeringLocation,omitempty"`
+ // ProvisioningState - READ-ONLY; The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+}
+
+// PropertiesDirect the properties that define a direct peering.
+type PropertiesDirect struct {
+ // Connections - The set of connections that constitute a direct peering.
+ Connections *[]DirectConnection `json:"connections,omitempty"`
+ // UseForPeeringService - READ-ONLY; The flag that indicates whether or not the peering is used for peering service.
+ UseForPeeringService *bool `json:"useForPeeringService,omitempty"`
+ // PeerAsn - The reference of the peer ASN.
+ PeerAsn *SubResource `json:"peerAsn,omitempty"`
+ // DirectPeeringType - The type of direct peering. Possible values include: 'Edge', 'Transit', 'Cdn', 'Internal'
+ DirectPeeringType DirectPeeringType `json:"directPeeringType,omitempty"`
+}
+
+// PropertiesExchange the properties that define an exchange peering.
+type PropertiesExchange struct {
+ // Connections - The set of connections that constitute an exchange peering.
+ Connections *[]ExchangeConnection `json:"connections,omitempty"`
+ // PeerAsn - The reference of the peer ASN.
+ PeerAsn *SubResource `json:"peerAsn,omitempty"`
+}
+
+// Resource the ARM resource class.
+type Resource struct {
+ // Name - READ-ONLY; The name of the resource.
+ Name *string `json:"name,omitempty"`
+ // ID - READ-ONLY; The ID of the resource.
+ ID *string `json:"id,omitempty"`
+ // Type - READ-ONLY; The type of the resource.
+ Type *string `json:"type,omitempty"`
+}
+
+// ResourceTags the resource tags.
+type ResourceTags struct {
+ // Tags - Gets or sets the tags, a dictionary of descriptors arm object
+ Tags map[string]*string `json:"tags"`
+}
+
+// MarshalJSON is the custom marshaler for ResourceTags.
+func (rt ResourceTags) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if rt.Tags != nil {
+ objectMap["tags"] = rt.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// Service peering Service
+type Service struct {
+ autorest.Response `json:"-"`
+ // ServiceProperties - The properties that define a peering service.
+ *ServiceProperties `json:"properties,omitempty"`
+ // Location - The location of the resource.
+ Location *string `json:"location,omitempty"`
+ // Tags - The resource tags.
+ Tags map[string]*string `json:"tags"`
+ // Name - READ-ONLY; The name of the resource.
+ Name *string `json:"name,omitempty"`
+ // ID - READ-ONLY; The ID of the resource.
+ ID *string `json:"id,omitempty"`
+ // Type - READ-ONLY; The type of the resource.
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for Service.
+func (s Service) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if s.ServiceProperties != nil {
+ objectMap["properties"] = s.ServiceProperties
+ }
+ if s.Location != nil {
+ objectMap["location"] = s.Location
+ }
+ if s.Tags != nil {
+ objectMap["tags"] = s.Tags
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for Service struct.
+func (s *Service) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var serviceProperties ServiceProperties
+ err = json.Unmarshal(*v, &serviceProperties)
+ if err != nil {
+ return err
+ }
+ s.ServiceProperties = &serviceProperties
+ }
+ case "location":
+ if v != nil {
+ var location string
+ err = json.Unmarshal(*v, &location)
+ if err != nil {
+ return err
+ }
+ s.Location = &location
+ }
+ case "tags":
+ if v != nil {
+ var tags map[string]*string
+ err = json.Unmarshal(*v, &tags)
+ if err != nil {
+ return err
+ }
+ s.Tags = tags
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ s.Name = &name
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ s.ID = &ID
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ s.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ServiceListResult the paginated list of peering services.
+type ServiceListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of peering services.
+ Value *[]Service `json:"value,omitempty"`
+ // NextLink - The link to fetch the next page of peering services.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// ServiceListResultIterator provides access to a complete listing of Service values.
+type ServiceListResultIterator struct {
+ i int
+ page ServiceListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *ServiceListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServiceListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *ServiceListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter ServiceListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter ServiceListResultIterator) Response() ServiceListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter ServiceListResultIterator) Value() Service {
+ if !iter.page.NotDone() {
+ return Service{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the ServiceListResultIterator type.
+func NewServiceListResultIterator(page ServiceListResultPage) ServiceListResultIterator {
+ return ServiceListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (slr ServiceListResult) IsEmpty() bool {
+ return slr.Value == nil || len(*slr.Value) == 0
+}
+
+// serviceListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (slr ServiceListResult) serviceListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if slr.NextLink == nil || len(to.String(slr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(slr.NextLink)))
+}
+
+// ServiceListResultPage contains a page of Service values.
+type ServiceListResultPage struct {
+ fn func(context.Context, ServiceListResult) (ServiceListResult, error)
+ slr ServiceListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *ServiceListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServiceListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.slr)
+ if err != nil {
+ return err
+ }
+ page.slr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *ServiceListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page ServiceListResultPage) NotDone() bool {
+ return !page.slr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page ServiceListResultPage) Response() ServiceListResult {
+ return page.slr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page ServiceListResultPage) Values() []Service {
+ if page.slr.IsEmpty() {
+ return nil
+ }
+ return *page.slr.Value
+}
+
+// Creates a new instance of the ServiceListResultPage type.
+func NewServiceListResultPage(getNextPage func(context.Context, ServiceListResult) (ServiceListResult, error)) ServiceListResultPage {
+ return ServiceListResultPage{fn: getNextPage}
+}
+
+// ServiceLocation peeringService location
+type ServiceLocation struct {
+ // ServiceLocationProperties - The properties that define a peering service location.
+ *ServiceLocationProperties `json:"properties,omitempty"`
+ // Name - READ-ONLY; The name of the resource.
+ Name *string `json:"name,omitempty"`
+ // ID - READ-ONLY; The ID of the resource.
+ ID *string `json:"id,omitempty"`
+ // Type - READ-ONLY; The type of the resource.
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ServiceLocation.
+func (sl ServiceLocation) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if sl.ServiceLocationProperties != nil {
+ objectMap["properties"] = sl.ServiceLocationProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ServiceLocation struct.
+func (sl *ServiceLocation) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var serviceLocationProperties ServiceLocationProperties
+ err = json.Unmarshal(*v, &serviceLocationProperties)
+ if err != nil {
+ return err
+ }
+ sl.ServiceLocationProperties = &serviceLocationProperties
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ sl.Name = &name
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ sl.ID = &ID
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ sl.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ServiceLocationListResult the paginated list of peering service locations.
+type ServiceLocationListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of peering service locations.
+ Value *[]ServiceLocation `json:"value,omitempty"`
+ // NextLink - The link to fetch the next page of peering service locations.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// ServiceLocationListResultIterator provides access to a complete listing of ServiceLocation values.
+type ServiceLocationListResultIterator struct {
+ i int
+ page ServiceLocationListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *ServiceLocationListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServiceLocationListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *ServiceLocationListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter ServiceLocationListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter ServiceLocationListResultIterator) Response() ServiceLocationListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter ServiceLocationListResultIterator) Value() ServiceLocation {
+ if !iter.page.NotDone() {
+ return ServiceLocation{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the ServiceLocationListResultIterator type.
+func NewServiceLocationListResultIterator(page ServiceLocationListResultPage) ServiceLocationListResultIterator {
+ return ServiceLocationListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (sllr ServiceLocationListResult) IsEmpty() bool {
+ return sllr.Value == nil || len(*sllr.Value) == 0
+}
+
+// serviceLocationListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (sllr ServiceLocationListResult) serviceLocationListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if sllr.NextLink == nil || len(to.String(sllr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(sllr.NextLink)))
+}
+
+// ServiceLocationListResultPage contains a page of ServiceLocation values.
+type ServiceLocationListResultPage struct {
+ fn func(context.Context, ServiceLocationListResult) (ServiceLocationListResult, error)
+ sllr ServiceLocationListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *ServiceLocationListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServiceLocationListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.sllr)
+ if err != nil {
+ return err
+ }
+ page.sllr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *ServiceLocationListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page ServiceLocationListResultPage) NotDone() bool {
+ return !page.sllr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page ServiceLocationListResultPage) Response() ServiceLocationListResult {
+ return page.sllr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page ServiceLocationListResultPage) Values() []ServiceLocation {
+ if page.sllr.IsEmpty() {
+ return nil
+ }
+ return *page.sllr.Value
+}
+
+// Creates a new instance of the ServiceLocationListResultPage type.
+func NewServiceLocationListResultPage(getNextPage func(context.Context, ServiceLocationListResult) (ServiceLocationListResult, error)) ServiceLocationListResultPage {
+ return ServiceLocationListResultPage{fn: getNextPage}
+}
+
+// ServiceLocationProperties the properties that define connectivity to the Peering Service Location.
+type ServiceLocationProperties struct {
+ // Country - Country of the customer
+ Country *string `json:"country,omitempty"`
+ // State - State of the customer
+ State *string `json:"state,omitempty"`
+ // AzureRegion - Azure region for the location
+ AzureRegion *string `json:"azureRegion,omitempty"`
+}
+
+// ServicePrefix the peering service prefix class.
+type ServicePrefix struct {
+ autorest.Response `json:"-"`
+ // ServicePrefixProperties - Gets or sets the peering prefix properties.
+ *ServicePrefixProperties `json:"properties,omitempty"`
+ // Name - READ-ONLY; The name of the resource.
+ Name *string `json:"name,omitempty"`
+ // ID - READ-ONLY; The ID of the resource.
+ ID *string `json:"id,omitempty"`
+ // Type - READ-ONLY; The type of the resource.
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ServicePrefix.
+func (sp ServicePrefix) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if sp.ServicePrefixProperties != nil {
+ objectMap["properties"] = sp.ServicePrefixProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ServicePrefix struct.
+func (sp *ServicePrefix) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var servicePrefixProperties ServicePrefixProperties
+ err = json.Unmarshal(*v, &servicePrefixProperties)
+ if err != nil {
+ return err
+ }
+ sp.ServicePrefixProperties = &servicePrefixProperties
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ sp.Name = &name
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ sp.ID = &ID
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ sp.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ServicePrefixEvent the details of the event associated with a prefix.
+type ServicePrefixEvent struct {
+ // EventTimestamp - READ-ONLY; The timestamp of the event associated with a prefix.
+ EventTimestamp *date.Time `json:"eventTimestamp,omitempty"`
+ // EventType - READ-ONLY; The type of the event associated with a prefix.
+ EventType *string `json:"eventType,omitempty"`
+ // EventSummary - READ-ONLY; The summary of the event associated with a prefix.
+ EventSummary *string `json:"eventSummary,omitempty"`
+ // EventLevel - READ-ONLY; The level of the event associated with a prefix.
+ EventLevel *string `json:"eventLevel,omitempty"`
+ // EventDescription - READ-ONLY; The description of the event associated with a prefix.
+ EventDescription *string `json:"eventDescription,omitempty"`
+}
+
+// ServicePrefixListResult the paginated list of peering service prefixes.
+type ServicePrefixListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of peering service prefixes.
+ Value *[]ServicePrefix `json:"value,omitempty"`
+ // NextLink - The link to fetch the next page of peering service prefixes.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// ServicePrefixListResultIterator provides access to a complete listing of ServicePrefix values.
+type ServicePrefixListResultIterator struct {
+ i int
+ page ServicePrefixListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *ServicePrefixListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServicePrefixListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *ServicePrefixListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter ServicePrefixListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter ServicePrefixListResultIterator) Response() ServicePrefixListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter ServicePrefixListResultIterator) Value() ServicePrefix {
+ if !iter.page.NotDone() {
+ return ServicePrefix{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the ServicePrefixListResultIterator type.
+func NewServicePrefixListResultIterator(page ServicePrefixListResultPage) ServicePrefixListResultIterator {
+ return ServicePrefixListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (splr ServicePrefixListResult) IsEmpty() bool {
+ return splr.Value == nil || len(*splr.Value) == 0
+}
+
+// servicePrefixListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (splr ServicePrefixListResult) servicePrefixListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if splr.NextLink == nil || len(to.String(splr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(splr.NextLink)))
+}
+
+// ServicePrefixListResultPage contains a page of ServicePrefix values.
+type ServicePrefixListResultPage struct {
+ fn func(context.Context, ServicePrefixListResult) (ServicePrefixListResult, error)
+ splr ServicePrefixListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *ServicePrefixListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServicePrefixListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.splr)
+ if err != nil {
+ return err
+ }
+ page.splr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *ServicePrefixListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page ServicePrefixListResultPage) NotDone() bool {
+ return !page.splr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page ServicePrefixListResultPage) Response() ServicePrefixListResult {
+ return page.splr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page ServicePrefixListResultPage) Values() []ServicePrefix {
+ if page.splr.IsEmpty() {
+ return nil
+ }
+ return *page.splr.Value
+}
+
+// Creates a new instance of the ServicePrefixListResultPage type.
+func NewServicePrefixListResultPage(getNextPage func(context.Context, ServicePrefixListResult) (ServicePrefixListResult, error)) ServicePrefixListResultPage {
+ return ServicePrefixListResultPage{fn: getNextPage}
+}
+
+// ServicePrefixProperties the peering service prefix properties class.
+type ServicePrefixProperties struct {
+ // Prefix - The prefix from which your traffic originates.
+ Prefix *string `json:"prefix,omitempty"`
+ // PrefixValidationState - READ-ONLY; The prefix validation state. Possible values include: 'PrefixValidationStateNone', 'PrefixValidationStateInvalid', 'PrefixValidationStateVerified', 'PrefixValidationStateFailed', 'PrefixValidationStatePending', 'PrefixValidationStateWarning', 'PrefixValidationStateUnknown'
+ PrefixValidationState PrefixValidationState `json:"prefixValidationState,omitempty"`
+ // LearnedType - READ-ONLY; The prefix learned type. Possible values include: 'LearnedTypeNone', 'LearnedTypeViaServiceProvider', 'LearnedTypeViaSession'
+ LearnedType LearnedType `json:"learnedType,omitempty"`
+ // ErrorMessage - READ-ONLY; The error message for validation state
+ ErrorMessage *string `json:"errorMessage,omitempty"`
+ // Events - READ-ONLY; The list of events for peering service prefix
+ Events *[]ServicePrefixEvent `json:"events,omitempty"`
+ // ProvisioningState - READ-ONLY; The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+}
+
+// ServiceProperties the properties that define connectivity to the Peering Service.
+type ServiceProperties struct {
+ // PeeringServiceLocation - The PeeringServiceLocation of the Customer.
+ PeeringServiceLocation *string `json:"peeringServiceLocation,omitempty"`
+ // PeeringServiceProvider - The MAPS Provider Name.
+ PeeringServiceProvider *string `json:"peeringServiceProvider,omitempty"`
+ // ProvisioningState - READ-ONLY; The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
+ ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
+}
+
+// ServiceProvider peeringService provider
+type ServiceProvider struct {
+ // ServiceProviderProperties - The properties that define a peering service provider.
+ *ServiceProviderProperties `json:"properties,omitempty"`
+ // Name - READ-ONLY; The name of the resource.
+ Name *string `json:"name,omitempty"`
+ // ID - READ-ONLY; The ID of the resource.
+ ID *string `json:"id,omitempty"`
+ // Type - READ-ONLY; The type of the resource.
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ServiceProvider.
+func (sp ServiceProvider) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if sp.ServiceProviderProperties != nil {
+ objectMap["properties"] = sp.ServiceProviderProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ServiceProvider struct.
+func (sp *ServiceProvider) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var serviceProviderProperties ServiceProviderProperties
+ err = json.Unmarshal(*v, &serviceProviderProperties)
+ if err != nil {
+ return err
+ }
+ sp.ServiceProviderProperties = &serviceProviderProperties
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ sp.Name = &name
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ sp.ID = &ID
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ sp.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ServiceProviderListResult the paginated list of peering service providers.
+type ServiceProviderListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of peering service providers.
+ Value *[]ServiceProvider `json:"value,omitempty"`
+ // NextLink - The link to fetch the next page of peering service providers.
+ NextLink *string `json:"nextLink,omitempty"`
+}
+
+// ServiceProviderListResultIterator provides access to a complete listing of ServiceProvider values.
+type ServiceProviderListResultIterator struct {
+ i int
+ page ServiceProviderListResultPage
+}
+
+// NextWithContext advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+func (iter *ServiceProviderListResultIterator) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServiceProviderListResultIterator.NextWithContext")
+ defer func() {
+ sc := -1
+ if iter.Response().Response.Response != nil {
+ sc = iter.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ iter.i++
+ if iter.i < len(iter.page.Values()) {
+ return nil
+ }
+ err = iter.page.NextWithContext(ctx)
+ if err != nil {
+ iter.i--
+ return err
+ }
+ iter.i = 0
+ return nil
+}
+
+// Next advances to the next value. If there was an error making
+// the request the iterator does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (iter *ServiceProviderListResultIterator) Next() error {
+ return iter.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the enumeration should be started or is not yet complete.
+func (iter ServiceProviderListResultIterator) NotDone() bool {
+ return iter.page.NotDone() && iter.i < len(iter.page.Values())
+}
+
+// Response returns the raw server response from the last page request.
+func (iter ServiceProviderListResultIterator) Response() ServiceProviderListResult {
+ return iter.page.Response()
+}
+
+// Value returns the current value or a zero-initialized value if the
+// iterator has advanced beyond the end of the collection.
+func (iter ServiceProviderListResultIterator) Value() ServiceProvider {
+ if !iter.page.NotDone() {
+ return ServiceProvider{}
+ }
+ return iter.page.Values()[iter.i]
+}
+
+// Creates a new instance of the ServiceProviderListResultIterator type.
+func NewServiceProviderListResultIterator(page ServiceProviderListResultPage) ServiceProviderListResultIterator {
+ return ServiceProviderListResultIterator{page: page}
+}
+
+// IsEmpty returns true if the ListResult contains no values.
+func (splr ServiceProviderListResult) IsEmpty() bool {
+ return splr.Value == nil || len(*splr.Value) == 0
+}
+
+// serviceProviderListResultPreparer prepares a request to retrieve the next set of results.
+// It returns nil if no more results exist.
+func (splr ServiceProviderListResult) serviceProviderListResultPreparer(ctx context.Context) (*http.Request, error) {
+ if splr.NextLink == nil || len(to.String(splr.NextLink)) < 1 {
+ return nil, nil
+ }
+ return autorest.Prepare((&http.Request{}).WithContext(ctx),
+ autorest.AsJSON(),
+ autorest.AsGet(),
+ autorest.WithBaseURL(to.String(splr.NextLink)))
+}
+
+// ServiceProviderListResultPage contains a page of ServiceProvider values.
+type ServiceProviderListResultPage struct {
+ fn func(context.Context, ServiceProviderListResult) (ServiceProviderListResult, error)
+ splr ServiceProviderListResult
+}
+
+// NextWithContext advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+func (page *ServiceProviderListResultPage) NextWithContext(ctx context.Context) (err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServiceProviderListResultPage.NextWithContext")
+ defer func() {
+ sc := -1
+ if page.Response().Response.Response != nil {
+ sc = page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ next, err := page.fn(ctx, page.splr)
+ if err != nil {
+ return err
+ }
+ page.splr = next
+ return nil
+}
+
+// Next advances to the next page of values. If there was an error making
+// the request the page does not advance and the error is returned.
+// Deprecated: Use NextWithContext() instead.
+func (page *ServiceProviderListResultPage) Next() error {
+ return page.NextWithContext(context.Background())
+}
+
+// NotDone returns true if the page enumeration should be started or is not yet complete.
+func (page ServiceProviderListResultPage) NotDone() bool {
+ return !page.splr.IsEmpty()
+}
+
+// Response returns the raw server response from the last page request.
+func (page ServiceProviderListResultPage) Response() ServiceProviderListResult {
+ return page.splr
+}
+
+// Values returns the slice of values for the current page or nil if there are no values.
+func (page ServiceProviderListResultPage) Values() []ServiceProvider {
+ if page.splr.IsEmpty() {
+ return nil
+ }
+ return *page.splr.Value
+}
+
+// Creates a new instance of the ServiceProviderListResultPage type.
+func NewServiceProviderListResultPage(getNextPage func(context.Context, ServiceProviderListResult) (ServiceProviderListResult, error)) ServiceProviderListResultPage {
+ return ServiceProviderListResultPage{fn: getNextPage}
+}
+
+// ServiceProviderProperties the properties that define connectivity to the Peering Service Provider.
+type ServiceProviderProperties struct {
+ // ServiceProviderName - The name of the service provider.
+ ServiceProviderName *string `json:"serviceProviderName,omitempty"`
+}
+
+// Sku the SKU that defines the tier and kind of the peering.
+type Sku struct {
+ // Name - The name of the peering SKU. Possible values include: 'BasicExchangeFree', 'BasicDirectFree', 'PremiumDirectFree', 'PremiumExchangeMetered', 'PremiumDirectMetered', 'PremiumDirectUnlimited'
+ Name Name `json:"name,omitempty"`
+ // Tier - The tier of the peering SKU. Possible values include: 'Basic', 'Premium'
+ Tier Tier `json:"tier,omitempty"`
+ // Family - The family of the peering SKU. Possible values include: 'Direct', 'Exchange'
+ Family Family `json:"family,omitempty"`
+ // Size - The size of the peering SKU. Possible values include: 'Free', 'Metered', 'Unlimited'
+ Size Size `json:"size,omitempty"`
+}
+
+// String ...
+type String struct {
+ autorest.Response `json:"-"`
+ // Value - Possible values include: 'Available', 'Unavailable'
+ Value *string `json:"value,omitempty"`
+}
+
+// SubResource the sub resource.
+type SubResource struct {
+ // ID - The identifier of the referenced resource.
+ ID *string `json:"id,omitempty"`
+}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/operations.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/operations.go
similarity index 79%
rename from services/preview/sql/mgmt/2018-06-15-preview/sql/operations.go
rename to services/preview/peering/mgmt/2019-09-01-preview/peering/operations.go
index bd0657225fde..ae4324c7426a 100644
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/operations.go
+++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/operations.go
@@ -1,4 +1,4 @@
-package sql
+package peering
// Copyright (c) Microsoft and contributors. All rights reserved.
//
@@ -25,9 +25,7 @@ import (
"net/http"
)
-// OperationsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact
-// with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and
-// delete databases.
+// OperationsClient is the peering Client
type OperationsClient struct {
BaseClient
}
@@ -42,7 +40,7 @@ func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) Opera
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// List lists all of the available SQL Rest API operations.
+// List lists all of the available API operations for peering resources.
func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/OperationsClient.List")
@@ -57,20 +55,20 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe
result.fn = client.listNextResults
req, err := client.ListPreparer(ctx)
if err != nil {
- err = autorest.NewErrorWithError(err, "sql.OperationsClient", "List", nil, "Failure preparing request")
+ err = autorest.NewErrorWithError(err, "peering.OperationsClient", "List", nil, "Failure preparing request")
return
}
resp, err := client.ListSender(req)
if err != nil {
result.olr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.OperationsClient", "List", resp, "Failure sending request")
+ err = autorest.NewErrorWithError(err, "peering.OperationsClient", "List", resp, "Failure sending request")
return
}
result.olr, err = client.ListResponder(resp)
if err != nil {
- err = autorest.NewErrorWithError(err, "sql.OperationsClient", "List", resp, "Failure responding to request")
+ err = autorest.NewErrorWithError(err, "peering.OperationsClient", "List", resp, "Failure responding to request")
}
return
@@ -78,7 +76,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe
// ListPreparer prepares the List request.
func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
- const APIVersion = "2015-05-01-preview"
+ const APIVersion = "2019-09-01-preview"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -86,7 +84,7 @@ func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request,
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
- autorest.WithPath("/providers/Microsoft.Sql/operations"),
+ autorest.WithPath("/providers/Microsoft.Peering/operations"),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
@@ -115,7 +113,7 @@ func (client OperationsClient) ListResponder(resp *http.Response) (result Operat
func (client OperationsClient) listNextResults(ctx context.Context, lastResults OperationListResult) (result OperationListResult, err error) {
req, err := lastResults.operationListResultPreparer(ctx)
if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.OperationsClient", "listNextResults", nil, "Failure preparing next results request")
+ return result, autorest.NewErrorWithError(err, "peering.OperationsClient", "listNextResults", nil, "Failure preparing next results request")
}
if req == nil {
return
@@ -123,11 +121,11 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults
resp, err := client.ListSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.OperationsClient", "listNextResults", resp, "Failure sending next results request")
+ return result, autorest.NewErrorWithError(err, "peering.OperationsClient", "listNextResults", resp, "Failure sending next results request")
}
result, err = client.ListResponder(resp)
if err != nil {
- err = autorest.NewErrorWithError(err, "sql.OperationsClient", "listNextResults", resp, "Failure responding to next results request")
+ err = autorest.NewErrorWithError(err, "peering.OperationsClient", "listNextResults", resp, "Failure responding to next results request")
}
return
}
diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/peerasns.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/peerasns.go
new file mode 100644
index 000000000000..14a5e258bd16
--- /dev/null
+++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/peerasns.go
@@ -0,0 +1,379 @@
+package peering
+
+// 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/tracing"
+ "net/http"
+)
+
+// PeerAsnsClient is the peering Client
+type PeerAsnsClient struct {
+ BaseClient
+}
+
+// NewPeerAsnsClient creates an instance of the PeerAsnsClient client.
+func NewPeerAsnsClient(subscriptionID string) PeerAsnsClient {
+ return NewPeerAsnsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewPeerAsnsClientWithBaseURI creates an instance of the PeerAsnsClient client.
+func NewPeerAsnsClientWithBaseURI(baseURI string, subscriptionID string) PeerAsnsClient {
+ return PeerAsnsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates a new peer ASN or updates an existing peer ASN with the specified name under the given
+// subscription.
+// Parameters:
+// peerAsnName - the peer ASN name.
+// peerAsn - the peer ASN.
+func (client PeerAsnsClient) CreateOrUpdate(ctx context.Context, peerAsnName string, peerAsn PeerAsn) (result PeerAsn, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PeerAsnsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdatePreparer(ctx, peerAsnName, peerAsn)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateOrUpdateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "CreateOrUpdate", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "CreateOrUpdate", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client PeerAsnsClient) CreateOrUpdatePreparer(ctx context.Context, peerAsnName string, peerAsn PeerAsn) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "peerAsnName": autorest.Encode("path", peerAsnName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ 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}/providers/Microsoft.Peering/peerAsns/{peerAsnName}", pathParameters),
+ autorest.WithJSON(peerAsn),
+ 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 PeerAsnsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client PeerAsnsClient) CreateOrUpdateResponder(resp *http.Response) (result PeerAsn, 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 deletes an existing peer ASN with the specified name under the given subscription.
+// Parameters:
+// peerAsnName - the peer ASN name.
+func (client PeerAsnsClient) Delete(ctx context.Context, peerAsnName string) (result autorest.Response, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PeerAsnsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response != nil {
+ sc = result.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, peerAsnName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "Delete", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "Delete", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client PeerAsnsClient) DeletePreparer(ctx context.Context, peerAsnName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "peerAsnName": autorest.Encode("path", peerAsnName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerAsns/{peerAsnName}", 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 PeerAsnsClient) DeleteSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client PeerAsnsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets the peer ASN with the specified name under the given subscription.
+// Parameters:
+// peerAsnName - the peer ASN name.
+func (client PeerAsnsClient) Get(ctx context.Context, peerAsnName string) (result PeerAsn, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PeerAsnsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, peerAsnName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client PeerAsnsClient) GetPreparer(ctx context.Context, peerAsnName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "peerAsnName": autorest.Encode("path", peerAsnName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerAsns/{peerAsnName}", 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 PeerAsnsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client PeerAsnsClient) GetResponder(resp *http.Response) (result PeerAsn, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListBySubscription lists all of the peer ASNs under the given subscription.
+func (client PeerAsnsClient) ListBySubscription(ctx context.Context) (result PeerAsnListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PeerAsnsClient.ListBySubscription")
+ defer func() {
+ sc := -1
+ if result.palr.Response.Response != nil {
+ sc = result.palr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listBySubscriptionNextResults
+ req, err := client.ListBySubscriptionPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "ListBySubscription", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListBySubscriptionSender(req)
+ if err != nil {
+ result.palr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "ListBySubscription", resp, "Failure sending request")
+ return
+ }
+
+ result.palr, err = client.ListBySubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "ListBySubscription", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListBySubscriptionPreparer prepares the ListBySubscription request.
+func (client PeerAsnsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerAsns", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListBySubscriptionSender sends the ListBySubscription request. The method will close the
+// http.Response Body if it receives an error.
+func (client PeerAsnsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always
+// closes the http.Response Body.
+func (client PeerAsnsClient) ListBySubscriptionResponder(resp *http.Response) (result PeerAsnListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listBySubscriptionNextResults retrieves the next set of results, if any.
+func (client PeerAsnsClient) listBySubscriptionNextResults(ctx context.Context, lastResults PeerAsnListResult) (result PeerAsnListResult, err error) {
+ req, err := lastResults.peerAsnListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "listBySubscriptionNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListBySubscriptionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "listBySubscriptionNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListBySubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeerAsnsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
+func (client PeerAsnsClient) ListBySubscriptionComplete(ctx context.Context) (result PeerAsnListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PeerAsnsClient.ListBySubscription")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListBySubscription(ctx)
+ return
+}
diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/peeringapi/interfaces.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/peeringapi/interfaces.go
new file mode 100644
index 000000000000..f88926bfe4eb
--- /dev/null
+++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/peeringapi/interfaces.go
@@ -0,0 +1,110 @@
+package peeringapi
+
+// 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/azure-sdk-for-go/services/preview/peering/mgmt/2019-09-01-preview/peering"
+ "github.com/Azure/go-autorest/autorest"
+)
+
+// BaseClientAPI contains the set of methods on the BaseClient type.
+type BaseClientAPI interface {
+ CheckServiceProviderAvailability(ctx context.Context, checkServiceProviderAvailabilityInput peering.CheckServiceProviderAvailabilityInput) (result peering.String, err error)
+}
+
+var _ BaseClientAPI = (*peering.BaseClient)(nil)
+
+// LegacyPeeringsClientAPI contains the set of methods on the LegacyPeeringsClient type.
+type LegacyPeeringsClientAPI interface {
+ List(ctx context.Context, peeringLocation string, kind string) (result peering.ListResultPage, err error)
+}
+
+var _ LegacyPeeringsClientAPI = (*peering.LegacyPeeringsClient)(nil)
+
+// OperationsClientAPI contains the set of methods on the OperationsClient type.
+type OperationsClientAPI interface {
+ List(ctx context.Context) (result peering.OperationListResultPage, err error)
+}
+
+var _ OperationsClientAPI = (*peering.OperationsClient)(nil)
+
+// PeerAsnsClientAPI contains the set of methods on the PeerAsnsClient type.
+type PeerAsnsClientAPI interface {
+ CreateOrUpdate(ctx context.Context, peerAsnName string, peerAsn peering.PeerAsn) (result peering.PeerAsn, err error)
+ Delete(ctx context.Context, peerAsnName string) (result autorest.Response, err error)
+ Get(ctx context.Context, peerAsnName string) (result peering.PeerAsn, err error)
+ ListBySubscription(ctx context.Context) (result peering.PeerAsnListResultPage, err error)
+}
+
+var _ PeerAsnsClientAPI = (*peering.PeerAsnsClient)(nil)
+
+// LocationsClientAPI contains the set of methods on the LocationsClient type.
+type LocationsClientAPI interface {
+ List(ctx context.Context, kind string, directPeeringType string) (result peering.LocationListResultPage, err error)
+}
+
+var _ LocationsClientAPI = (*peering.LocationsClient)(nil)
+
+// PeeringsClientAPI contains the set of methods on the PeeringsClient type.
+type PeeringsClientAPI interface {
+ CreateOrUpdate(ctx context.Context, resourceGroupName string, peeringName string, peering peering.Model) (result peering.Model, err error)
+ Delete(ctx context.Context, resourceGroupName string, peeringName string) (result autorest.Response, err error)
+ Get(ctx context.Context, resourceGroupName string, peeringName string) (result peering.Model, err error)
+ ListByResourceGroup(ctx context.Context, resourceGroupName string) (result peering.ListResultPage, err error)
+ ListBySubscription(ctx context.Context) (result peering.ListResultPage, err error)
+ Update(ctx context.Context, resourceGroupName string, peeringName string, tags peering.ResourceTags) (result peering.Model, err error)
+}
+
+var _ PeeringsClientAPI = (*peering.PeeringsClient)(nil)
+
+// ServiceLocationsClientAPI contains the set of methods on the ServiceLocationsClient type.
+type ServiceLocationsClientAPI interface {
+ List(ctx context.Context) (result peering.ServiceLocationListResultPage, err error)
+}
+
+var _ ServiceLocationsClientAPI = (*peering.ServiceLocationsClient)(nil)
+
+// PrefixesClientAPI contains the set of methods on the PrefixesClient type.
+type PrefixesClientAPI interface {
+ CreateOrUpdate(ctx context.Context, resourceGroupName string, peeringServiceName string, prefixName string, peeringServicePrefix peering.ServicePrefix) (result peering.ServicePrefix, err error)
+ Delete(ctx context.Context, resourceGroupName string, peeringServiceName string, prefixName string) (result autorest.Response, err error)
+ Get(ctx context.Context, resourceGroupName string, peeringServiceName string, prefixName string, expand string) (result peering.ServicePrefix, err error)
+ ListByPeeringService(ctx context.Context, resourceGroupName string, peeringServiceName string, expand string) (result peering.ServicePrefixListResultPage, err error)
+}
+
+var _ PrefixesClientAPI = (*peering.PrefixesClient)(nil)
+
+// ServiceProvidersClientAPI contains the set of methods on the ServiceProvidersClient type.
+type ServiceProvidersClientAPI interface {
+ List(ctx context.Context) (result peering.ServiceProviderListResultPage, err error)
+}
+
+var _ ServiceProvidersClientAPI = (*peering.ServiceProvidersClient)(nil)
+
+// ServicesClientAPI contains the set of methods on the ServicesClient type.
+type ServicesClientAPI interface {
+ CreateOrUpdate(ctx context.Context, resourceGroupName string, peeringServiceName string, peeringService peering.Service) (result peering.Service, err error)
+ Delete(ctx context.Context, resourceGroupName string, peeringServiceName string) (result autorest.Response, err error)
+ Get(ctx context.Context, resourceGroupName string, peeringServiceName string) (result peering.Service, err error)
+ ListByResourceGroup(ctx context.Context, resourceGroupName string) (result peering.ServiceListResultPage, err error)
+ ListBySubscription(ctx context.Context) (result peering.ServiceListResultPage, err error)
+ Update(ctx context.Context, resourceGroupName string, peeringServiceName string, tags peering.ResourceTags) (result peering.Service, err error)
+}
+
+var _ ServicesClientAPI = (*peering.ServicesClient)(nil)
diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/peerings.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/peerings.go
new file mode 100644
index 000000000000..c2906422fc11
--- /dev/null
+++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/peerings.go
@@ -0,0 +1,586 @@
+package peering
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// PeeringsClient is the peering Client
+type PeeringsClient struct {
+ BaseClient
+}
+
+// NewPeeringsClient creates an instance of the PeeringsClient client.
+func NewPeeringsClient(subscriptionID string) PeeringsClient {
+ return NewPeeringsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewPeeringsClientWithBaseURI creates an instance of the PeeringsClient client.
+func NewPeeringsClientWithBaseURI(baseURI string, subscriptionID string) PeeringsClient {
+ return PeeringsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates a new peering or updates an existing peering with the specified name under the given
+// subscription and resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// peeringName - the name of the peering.
+// peering - the properties needed to create or update a peering.
+func (client PeeringsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, peeringName string, peering Model) (result Model, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PeeringsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: peering,
+ Constraints: []validation.Constraint{{Target: "peering.Sku", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "peering.Location", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("peering.PeeringsClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, peeringName, peering)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateOrUpdateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "CreateOrUpdate", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "CreateOrUpdate", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client PeeringsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, peeringName string, peering Model) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ 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.Peering/peerings/{peeringName}", pathParameters),
+ autorest.WithJSON(peering),
+ 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 PeeringsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client PeeringsClient) CreateOrUpdateResponder(resp *http.Response) (result Model, 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 deletes an existing peering with the specified name under the given subscription and resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// peeringName - the name of the peering.
+func (client PeeringsClient) Delete(ctx context.Context, resourceGroupName string, peeringName string) (result autorest.Response, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PeeringsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response != nil {
+ sc = result.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, peeringName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Delete", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Delete", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client PeeringsClient) DeletePreparer(ctx context.Context, resourceGroupName string, peeringName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName}", 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 PeeringsClient) DeleteSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client PeeringsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets an existing peering with the specified name under the given subscription and resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// peeringName - the name of the peering.
+func (client PeeringsClient) Get(ctx context.Context, resourceGroupName string, peeringName string) (result Model, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PeeringsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, peeringName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client PeeringsClient) GetPreparer(ctx context.Context, resourceGroupName string, peeringName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName}", 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 PeeringsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client PeeringsClient) GetResponder(resp *http.Response) (result Model, 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 lists all of the peerings under the given subscription and resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client PeeringsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PeeringsClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.lr.Response.Response != nil {
+ sc = result.lr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByResourceGroupNextResults
+ req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.lr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.lr, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client PeeringsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client PeeringsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client PeeringsClient) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByResourceGroupNextResults retrieves the next set of results, if any.
+func (client PeeringsClient) listByResourceGroupNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) {
+ req, err := lastResults.listResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "peering.PeeringsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "peering.PeeringsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client PeeringsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PeeringsClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByResourceGroup(ctx, resourceGroupName)
+ return
+}
+
+// ListBySubscription lists all of the peerings under the given subscription.
+func (client PeeringsClient) ListBySubscription(ctx context.Context) (result ListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PeeringsClient.ListBySubscription")
+ defer func() {
+ sc := -1
+ if result.lr.Response.Response != nil {
+ sc = result.lr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listBySubscriptionNextResults
+ req, err := client.ListBySubscriptionPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "ListBySubscription", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListBySubscriptionSender(req)
+ if err != nil {
+ result.lr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "ListBySubscription", resp, "Failure sending request")
+ return
+ }
+
+ result.lr, err = client.ListBySubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "ListBySubscription", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListBySubscriptionPreparer prepares the ListBySubscription request.
+func (client PeeringsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peerings", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListBySubscriptionSender sends the ListBySubscription request. The method will close the
+// http.Response Body if it receives an error.
+func (client PeeringsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always
+// closes the http.Response Body.
+func (client PeeringsClient) ListBySubscriptionResponder(resp *http.Response) (result ListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listBySubscriptionNextResults retrieves the next set of results, if any.
+func (client PeeringsClient) listBySubscriptionNextResults(ctx context.Context, lastResults ListResult) (result ListResult, err error) {
+ req, err := lastResults.listResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "peering.PeeringsClient", "listBySubscriptionNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListBySubscriptionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "peering.PeeringsClient", "listBySubscriptionNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListBySubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
+func (client PeeringsClient) ListBySubscriptionComplete(ctx context.Context) (result ListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PeeringsClient.ListBySubscription")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListBySubscription(ctx)
+ return
+}
+
+// Update updates tags for a peering with the specified name under the given subscription and resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// peeringName - the name of the peering.
+// tags - the resource tags.
+func (client PeeringsClient) Update(ctx context.Context, resourceGroupName string, peeringName string, tags ResourceTags) (result Model, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PeeringsClient.Update")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdatePreparer(ctx, resourceGroupName, peeringName, tags)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Update", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Update", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PeeringsClient", "Update", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdatePreparer prepares the Update request.
+func (client PeeringsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, peeringName string, tags ResourceTags) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "peeringName": autorest.Encode("path", peeringName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ 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.Peering/peerings/{peeringName}", pathParameters),
+ autorest.WithJSON(tags),
+ 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 PeeringsClient) UpdateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateResponder handles the response to the Update request. The method always
+// closes the http.Response Body.
+func (client PeeringsClient) UpdateResponder(resp *http.Response) (result Model, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/prefixes.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/prefixes.go
new file mode 100644
index 000000000000..601d96cb54e6
--- /dev/null
+++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/prefixes.go
@@ -0,0 +1,406 @@
+package peering
+
+// 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/tracing"
+ "net/http"
+)
+
+// PrefixesClient is the peering Client
+type PrefixesClient struct {
+ BaseClient
+}
+
+// NewPrefixesClient creates an instance of the PrefixesClient client.
+func NewPrefixesClient(subscriptionID string) PrefixesClient {
+ return NewPrefixesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewPrefixesClientWithBaseURI creates an instance of the PrefixesClient client.
+func NewPrefixesClientWithBaseURI(baseURI string, subscriptionID string) PrefixesClient {
+ return PrefixesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates a new prefix with the specified name under the given subscription, resource group and peering
+// service.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// peeringServiceName - the name of the peering service.
+// prefixName - the name of the prefix.
+// peeringServicePrefix - the properties needed to create a prefix.
+func (client PrefixesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, peeringServiceName string, prefixName string, peeringServicePrefix ServicePrefix) (result ServicePrefix, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PrefixesClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, peeringServiceName, prefixName, peeringServicePrefix)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateOrUpdateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "CreateOrUpdate", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "CreateOrUpdate", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client PrefixesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, peeringServiceName string, prefixName string, peeringServicePrefix ServicePrefix) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "peeringServiceName": autorest.Encode("path", peeringServiceName),
+ "prefixName": autorest.Encode("path", prefixName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ 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.Peering/peeringServices/{peeringServiceName}/prefixes/{prefixName}", pathParameters),
+ autorest.WithJSON(peeringServicePrefix),
+ 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 PrefixesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client PrefixesClient) CreateOrUpdateResponder(resp *http.Response) (result ServicePrefix, 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 deletes an existing prefix with the specified name under the given subscription, resource group and peering
+// service.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// peeringServiceName - the name of the peering service.
+// prefixName - the name of the prefix.
+func (client PrefixesClient) Delete(ctx context.Context, resourceGroupName string, peeringServiceName string, prefixName string) (result autorest.Response, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PrefixesClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response != nil {
+ sc = result.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, peeringServiceName, prefixName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "Delete", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "Delete", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client PrefixesClient) DeletePreparer(ctx context.Context, resourceGroupName string, peeringServiceName string, prefixName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "peeringServiceName": autorest.Encode("path", peeringServiceName),
+ "prefixName": autorest.Encode("path", prefixName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes/{prefixName}", 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 PrefixesClient) DeleteSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client PrefixesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets an existing prefix with the specified name under the given subscription, resource group and peering
+// service.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// peeringServiceName - the name of the peering service.
+// prefixName - the name of the prefix.
+// expand - the properties to be expanded.
+func (client PrefixesClient) Get(ctx context.Context, resourceGroupName string, peeringServiceName string, prefixName string, expand string) (result ServicePrefix, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PrefixesClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, peeringServiceName, prefixName, expand)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client PrefixesClient) GetPreparer(ctx context.Context, resourceGroupName string, peeringServiceName string, prefixName string, expand string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "peeringServiceName": autorest.Encode("path", peeringServiceName),
+ "prefixName": autorest.Encode("path", prefixName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(expand) > 0 {
+ queryParameters["$expand"] = autorest.Encode("query", expand)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes/{prefixName}", 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 PrefixesClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client PrefixesClient) GetResponder(resp *http.Response) (result ServicePrefix, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListByPeeringService lists all prefixes under the given subscription, resource group and peering service.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// peeringServiceName - the name of the peering service.
+// expand - the properties to be expanded.
+func (client PrefixesClient) ListByPeeringService(ctx context.Context, resourceGroupName string, peeringServiceName string, expand string) (result ServicePrefixListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PrefixesClient.ListByPeeringService")
+ defer func() {
+ sc := -1
+ if result.splr.Response.Response != nil {
+ sc = result.splr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByPeeringServiceNextResults
+ req, err := client.ListByPeeringServicePreparer(ctx, resourceGroupName, peeringServiceName, expand)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "ListByPeeringService", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByPeeringServiceSender(req)
+ if err != nil {
+ result.splr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "ListByPeeringService", resp, "Failure sending request")
+ return
+ }
+
+ result.splr, err = client.ListByPeeringServiceResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "ListByPeeringService", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByPeeringServicePreparer prepares the ListByPeeringService request.
+func (client PrefixesClient) ListByPeeringServicePreparer(ctx context.Context, resourceGroupName string, peeringServiceName string, expand string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "peeringServiceName": autorest.Encode("path", peeringServiceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+ if len(expand) > 0 {
+ queryParameters["$expand"] = autorest.Encode("query", expand)
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByPeeringServiceSender sends the ListByPeeringService request. The method will close the
+// http.Response Body if it receives an error.
+func (client PrefixesClient) ListByPeeringServiceSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByPeeringServiceResponder handles the response to the ListByPeeringService request. The method always
+// closes the http.Response Body.
+func (client PrefixesClient) ListByPeeringServiceResponder(resp *http.Response) (result ServicePrefixListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByPeeringServiceNextResults retrieves the next set of results, if any.
+func (client PrefixesClient) listByPeeringServiceNextResults(ctx context.Context, lastResults ServicePrefixListResult) (result ServicePrefixListResult, err error) {
+ req, err := lastResults.servicePrefixListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "peering.PrefixesClient", "listByPeeringServiceNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByPeeringServiceSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "peering.PrefixesClient", "listByPeeringServiceNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByPeeringServiceResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.PrefixesClient", "listByPeeringServiceNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByPeeringServiceComplete enumerates all values, automatically crossing page boundaries as required.
+func (client PrefixesClient) ListByPeeringServiceComplete(ctx context.Context, resourceGroupName string, peeringServiceName string, expand string) (result ServicePrefixListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/PrefixesClient.ListByPeeringService")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByPeeringService(ctx, resourceGroupName, peeringServiceName, expand)
+ return
+}
diff --git a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/privatecloudbyregion.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/servicelocations.go
similarity index 50%
rename from services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/privatecloudbyregion.go
rename to services/preview/peering/mgmt/2019-09-01-preview/peering/servicelocations.go
index d604422c9686..51bb8bc8f450 100644
--- a/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple/privatecloudbyregion.go
+++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/servicelocations.go
@@ -1,4 +1,4 @@
-package vmwarecloudsimple
+package peering
// Copyright (c) Microsoft and contributors. All rights reserved.
//
@@ -25,29 +25,29 @@ import (
"net/http"
)
-// PrivateCloudByRegionClient is the description of the new service
-type PrivateCloudByRegionClient struct {
+// ServiceLocationsClient is the peering Client
+type ServiceLocationsClient struct {
BaseClient
}
-// NewPrivateCloudByRegionClient creates an instance of the PrivateCloudByRegionClient client.
-func NewPrivateCloudByRegionClient(referer string, regionID string, subscriptionID string) PrivateCloudByRegionClient {
- return NewPrivateCloudByRegionClientWithBaseURI(DefaultBaseURI, referer, regionID, subscriptionID)
+// NewServiceLocationsClient creates an instance of the ServiceLocationsClient client.
+func NewServiceLocationsClient(subscriptionID string) ServiceLocationsClient {
+ return NewServiceLocationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
-// NewPrivateCloudByRegionClientWithBaseURI creates an instance of the PrivateCloudByRegionClient client.
-func NewPrivateCloudByRegionClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) PrivateCloudByRegionClient {
- return PrivateCloudByRegionClient{NewWithBaseURI(baseURI, referer, regionID, subscriptionID)}
+// NewServiceLocationsClientWithBaseURI creates an instance of the ServiceLocationsClient client.
+func NewServiceLocationsClientWithBaseURI(baseURI string, subscriptionID string) ServiceLocationsClient {
+ return ServiceLocationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
-// List returns list of private clouds in particular region
-func (client PrivateCloudByRegionClient) List(ctx context.Context) (result PrivateCloudListPage, err error) {
+// List lists all of the available peering service locations for the specified kind of peering.
+func (client ServiceLocationsClient) List(ctx context.Context) (result ServiceLocationListResultPage, err error) {
if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/PrivateCloudByRegionClient.List")
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServiceLocationsClient.List")
defer func() {
sc := -1
- if result.pcl.Response.Response != nil {
- sc = result.pcl.Response.Response.StatusCode
+ if result.sllr.Response.Response != nil {
+ sc = result.sllr.Response.Response.StatusCode
}
tracing.EndSpan(ctx, sc, err)
}()
@@ -55,33 +55,32 @@ func (client PrivateCloudByRegionClient) List(ctx context.Context) (result Priva
result.fn = client.listNextResults
req, err := client.ListPreparer(ctx)
if err != nil {
- err = autorest.NewErrorWithError(err, "vmwarecloudsimple.PrivateCloudByRegionClient", "List", nil, "Failure preparing request")
+ err = autorest.NewErrorWithError(err, "peering.ServiceLocationsClient", "List", nil, "Failure preparing request")
return
}
resp, err := client.ListSender(req)
if err != nil {
- result.pcl.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "vmwarecloudsimple.PrivateCloudByRegionClient", "List", resp, "Failure sending request")
+ result.sllr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.ServiceLocationsClient", "List", resp, "Failure sending request")
return
}
- result.pcl, err = client.ListResponder(resp)
+ result.sllr, err = client.ListResponder(resp)
if err != nil {
- err = autorest.NewErrorWithError(err, "vmwarecloudsimple.PrivateCloudByRegionClient", "List", resp, "Failure responding to request")
+ err = autorest.NewErrorWithError(err, "peering.ServiceLocationsClient", "List", resp, "Failure responding to request")
}
return
}
// ListPreparer prepares the List request.
-func (client PrivateCloudByRegionClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+func (client ServiceLocationsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
pathParameters := map[string]interface{}{
- "regionId": autorest.Encode("path", client.RegionID),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
- const APIVersion = "2019-04-01"
+ const APIVersion = "2019-09-01-preview"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -89,21 +88,21 @@ func (client PrivateCloudByRegionClient) ListPreparer(ctx context.Context) (*htt
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/locations/{regionId}/privateClouds", pathParameters),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peeringServiceLocations", 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 PrivateCloudByRegionClient) ListSender(req *http.Request) (*http.Response, error) {
+func (client ServiceLocationsClient) ListSender(req *http.Request) (*http.Response, error) {
sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
return autorest.SendWithSender(client, req, sd...)
}
// ListResponder handles the response to the List request. The method always
// closes the http.Response Body.
-func (client PrivateCloudByRegionClient) ListResponder(resp *http.Response) (result PrivateCloudList, err error) {
+func (client ServiceLocationsClient) ListResponder(resp *http.Response) (result ServiceLocationListResult, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
@@ -115,10 +114,10 @@ func (client PrivateCloudByRegionClient) ListResponder(resp *http.Response) (res
}
// listNextResults retrieves the next set of results, if any.
-func (client PrivateCloudByRegionClient) listNextResults(ctx context.Context, lastResults PrivateCloudList) (result PrivateCloudList, err error) {
- req, err := lastResults.privateCloudListPreparer(ctx)
+func (client ServiceLocationsClient) listNextResults(ctx context.Context, lastResults ServiceLocationListResult) (result ServiceLocationListResult, err error) {
+ req, err := lastResults.serviceLocationListResultPreparer(ctx)
if err != nil {
- return result, autorest.NewErrorWithError(err, "vmwarecloudsimple.PrivateCloudByRegionClient", "listNextResults", nil, "Failure preparing next results request")
+ return result, autorest.NewErrorWithError(err, "peering.ServiceLocationsClient", "listNextResults", nil, "Failure preparing next results request")
}
if req == nil {
return
@@ -126,19 +125,19 @@ func (client PrivateCloudByRegionClient) listNextResults(ctx context.Context, la
resp, err := client.ListSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "vmwarecloudsimple.PrivateCloudByRegionClient", "listNextResults", resp, "Failure sending next results request")
+ return result, autorest.NewErrorWithError(err, "peering.ServiceLocationsClient", "listNextResults", resp, "Failure sending next results request")
}
result, err = client.ListResponder(resp)
if err != nil {
- err = autorest.NewErrorWithError(err, "vmwarecloudsimple.PrivateCloudByRegionClient", "listNextResults", resp, "Failure responding to next results request")
+ err = autorest.NewErrorWithError(err, "peering.ServiceLocationsClient", "listNextResults", resp, "Failure responding to next results request")
}
return
}
// ListComplete enumerates all values, automatically crossing page boundaries as required.
-func (client PrivateCloudByRegionClient) ListComplete(ctx context.Context) (result PrivateCloudListIterator, err error) {
+func (client ServiceLocationsClient) ListComplete(ctx context.Context) (result ServiceLocationListResultIterator, err error) {
if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/PrivateCloudByRegionClient.List")
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServiceLocationsClient.List")
defer func() {
sc := -1
if result.Response().Response.Response != nil {
diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/serviceproviders.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/serviceproviders.go
new file mode 100644
index 000000000000..cc26d5af1164
--- /dev/null
+++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/serviceproviders.go
@@ -0,0 +1,151 @@
+package peering
+
+// 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/tracing"
+ "net/http"
+)
+
+// ServiceProvidersClient is the peering Client
+type ServiceProvidersClient struct {
+ BaseClient
+}
+
+// NewServiceProvidersClient creates an instance of the ServiceProvidersClient client.
+func NewServiceProvidersClient(subscriptionID string) ServiceProvidersClient {
+ return NewServiceProvidersClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewServiceProvidersClientWithBaseURI creates an instance of the ServiceProvidersClient client.
+func NewServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ServiceProvidersClient {
+ return ServiceProvidersClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// List lists all of the available peering service locations for the specified kind of peering.
+func (client ServiceProvidersClient) List(ctx context.Context) (result ServiceProviderListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServiceProvidersClient.List")
+ defer func() {
+ sc := -1
+ if result.splr.Response.Response != nil {
+ sc = result.splr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listNextResults
+ req, err := client.ListPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.ServiceProvidersClient", "List", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListSender(req)
+ if err != nil {
+ result.splr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.ServiceProvidersClient", "List", resp, "Failure sending request")
+ return
+ }
+
+ result.splr, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.ServiceProvidersClient", "List", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListPreparer prepares the List request.
+func (client ServiceProvidersClient) ListPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peeringServiceProviders", 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 ServiceProvidersClient) ListSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListResponder handles the response to the List request. The method always
+// closes the http.Response Body.
+func (client ServiceProvidersClient) ListResponder(resp *http.Response) (result ServiceProviderListResult, 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 ServiceProvidersClient) listNextResults(ctx context.Context, lastResults ServiceProviderListResult) (result ServiceProviderListResult, err error) {
+ req, err := lastResults.serviceProviderListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "peering.ServiceProvidersClient", "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, "peering.ServiceProvidersClient", "listNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.ServiceProvidersClient", "listNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ServiceProvidersClient) ListComplete(ctx context.Context) (result ServiceProviderListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServiceProvidersClient.List")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.List(ctx)
+ return
+}
diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/services.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/services.go
new file mode 100644
index 000000000000..2fb32fda7dc3
--- /dev/null
+++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/services.go
@@ -0,0 +1,585 @@
+package peering
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ServicesClient is the peering Client
+type ServicesClient struct {
+ BaseClient
+}
+
+// NewServicesClient creates an instance of the ServicesClient client.
+func NewServicesClient(subscriptionID string) ServicesClient {
+ return NewServicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewServicesClientWithBaseURI creates an instance of the ServicesClient client.
+func NewServicesClientWithBaseURI(baseURI string, subscriptionID string) ServicesClient {
+ return ServicesClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates a new peering service or updates an existing peering with the specified name under the given
+// subscription and resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// peeringServiceName - the name of the peering service.
+// peeringService - the properties needed to create or update a peering service.
+func (client ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, peeringServiceName string, peeringService Service) (result Service, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServicesClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: peeringService,
+ Constraints: []validation.Constraint{{Target: "peeringService.Location", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
+ return result, validation.NewError("peering.ServicesClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, peeringServiceName, peeringService)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.CreateOrUpdateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "CreateOrUpdate", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "CreateOrUpdate", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, peeringServiceName string, peeringService Service) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "peeringServiceName": autorest.Encode("path", peeringServiceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ 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.Peering/peeringServices/{peeringServiceName}", pathParameters),
+ autorest.WithJSON(peeringService),
+ 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 ServicesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ServicesClient) CreateOrUpdateResponder(resp *http.Response) (result Service, 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 deletes an existing peering service with the specified name under the given subscription and resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// peeringServiceName - the name of the peering service.
+func (client ServicesClient) Delete(ctx context.Context, resourceGroupName string, peeringServiceName string) (result autorest.Response, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServicesClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response != nil {
+ sc = result.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, peeringServiceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.DeleteSender(req)
+ if err != nil {
+ result.Response = resp
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Delete", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.DeleteResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Delete", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ServicesClient) DeletePreparer(ctx context.Context, resourceGroupName string, peeringServiceName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "peeringServiceName": autorest.Encode("path", peeringServiceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}", 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 ServicesClient) DeleteSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
+ autorest.ByClosing())
+ result.Response = resp
+ return
+}
+
+// Get gets an existing peering service with the specified name under the given subscription and resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// peeringServiceName - the name of the peering.
+func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, peeringServiceName string) (result Service, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServicesClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, peeringServiceName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ServicesClient) GetPreparer(ctx context.Context, resourceGroupName string, peeringServiceName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "peeringServiceName": autorest.Encode("path", peeringServiceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}", 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 ServicesClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ServicesClient) GetResponder(resp *http.Response) (result Service, 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 lists all of the peering services under the given subscription and resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ServiceListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServicesClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.slr.Response.Response != nil {
+ sc = result.slr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listByResourceGroupNextResults
+ req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "ListByResourceGroup", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.slr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "ListByResourceGroup", resp, "Failure sending request")
+ return
+ }
+
+ result.slr, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "ListByResourceGroup", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
+func (client ServicesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
+// http.Response Body if it receives an error.
+func (client ServicesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
+// closes the http.Response Body.
+func (client ServicesClient) ListByResourceGroupResponder(resp *http.Response) (result ServiceListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listByResourceGroupNextResults retrieves the next set of results, if any.
+func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, lastResults ServiceListResult) (result ServiceListResult, err error) {
+ req, err := lastResults.serviceListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "peering.ServicesClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListByResourceGroupSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "peering.ServicesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListByResourceGroupResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ServicesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ServiceListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServicesClient.ListByResourceGroup")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListByResourceGroup(ctx, resourceGroupName)
+ return
+}
+
+// ListBySubscription lists all of the peerings under the given subscription.
+func (client ServicesClient) ListBySubscription(ctx context.Context) (result ServiceListResultPage, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServicesClient.ListBySubscription")
+ defer func() {
+ sc := -1
+ if result.slr.Response.Response != nil {
+ sc = result.slr.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.fn = client.listBySubscriptionNextResults
+ req, err := client.ListBySubscriptionPreparer(ctx)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "ListBySubscription", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListBySubscriptionSender(req)
+ if err != nil {
+ result.slr.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "ListBySubscription", resp, "Failure sending request")
+ return
+ }
+
+ result.slr, err = client.ListBySubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "ListBySubscription", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListBySubscriptionPreparer prepares the ListBySubscription request.
+func (client ServicesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peeringServices", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListBySubscriptionSender sends the ListBySubscription request. The method will close the
+// http.Response Body if it receives an error.
+func (client ServicesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always
+// closes the http.Response Body.
+func (client ServicesClient) ListBySubscriptionResponder(resp *http.Response) (result ServiceListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// listBySubscriptionNextResults retrieves the next set of results, if any.
+func (client ServicesClient) listBySubscriptionNextResults(ctx context.Context, lastResults ServiceListResult) (result ServiceListResult, err error) {
+ req, err := lastResults.serviceListResultPreparer(ctx)
+ if err != nil {
+ return result, autorest.NewErrorWithError(err, "peering.ServicesClient", "listBySubscriptionNextResults", nil, "Failure preparing next results request")
+ }
+ if req == nil {
+ return
+ }
+ resp, err := client.ListBySubscriptionSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ return result, autorest.NewErrorWithError(err, "peering.ServicesClient", "listBySubscriptionNextResults", resp, "Failure sending next results request")
+ }
+ result, err = client.ListBySubscriptionResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "listBySubscriptionNextResults", resp, "Failure responding to next results request")
+ }
+ return
+}
+
+// ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
+func (client ServicesClient) ListBySubscriptionComplete(ctx context.Context) (result ServiceListResultIterator, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServicesClient.ListBySubscription")
+ defer func() {
+ sc := -1
+ if result.Response().Response.Response != nil {
+ sc = result.page.Response().Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ result.page, err = client.ListBySubscription(ctx)
+ return
+}
+
+// Update updates tags for a peering service with the specified name under the given subscription and resource group.
+// Parameters:
+// resourceGroupName - the name of the resource group.
+// peeringServiceName - the name of the peering service.
+// tags - the resource tags.
+func (client ServicesClient) Update(ctx context.Context, resourceGroupName string, peeringServiceName string, tags ResourceTags) (result Service, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServicesClient.Update")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.UpdatePreparer(ctx, resourceGroupName, peeringServiceName, tags)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Update", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.UpdateSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Update", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.UpdateResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "peering.ServicesClient", "Update", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// UpdatePreparer prepares the Update request.
+func (client ServicesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, peeringServiceName string, tags ResourceTags) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "peeringServiceName": autorest.Encode("path", peeringServiceName),
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2019-09-01-preview"
+ 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.Peering/peeringServices/{peeringServiceName}", pathParameters),
+ autorest.WithJSON(tags),
+ 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 ServicesClient) UpdateSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// UpdateResponder handles the response to the Update request. The method always
+// closes the http.Response Body.
+func (client ServicesClient) UpdateResponder(resp *http.Response) (result Service, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/preview/peering/mgmt/2019-09-01-preview/peering/version.go b/services/preview/peering/mgmt/2019-09-01-preview/peering/version.go
new file mode 100644
index 000000000000..4a5c93f82049
--- /dev/null
+++ b/services/preview/peering/mgmt/2019-09-01-preview/peering/version.go
@@ -0,0 +1,30 @@
+package peering
+
+import "github.com/Azure/azure-sdk-for-go/version"
+
+// 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.
+
+// UserAgent returns the UserAgent string to use when sending http.Requests.
+func UserAgent() string {
+ return "Azure-SDK-For-Go/" + version.Number + " peering/2019-09-01-preview"
+}
+
+// Version returns the semantic version (see http://semver.org) of the client.
+func Version() string {
+ return version.Number
+}
diff --git a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/models.go b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/models.go
index 08eefa57999d..853ba11d2c91 100644
--- a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/models.go
+++ b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/models.go
@@ -25,6 +25,7 @@ import (
"github.com/Azure/go-autorest/autorest/date"
"github.com/Azure/go-autorest/autorest/to"
"github.com/Azure/go-autorest/tracing"
+ "github.com/satori/go.uuid"
"net/http"
)
@@ -956,6 +957,156 @@ func (s *Server) UnmarshalJSON(body []byte) error {
return nil
}
+// ServerAdministratorProperties the properties of an server Administrator.
+type ServerAdministratorProperties struct {
+ // AdministratorType - The type of administrator.
+ AdministratorType *string `json:"administratorType,omitempty"`
+ // Login - The server administrator login value.
+ Login *string `json:"login,omitempty"`
+ // Sid - The server administrator Sid (Secure ID).
+ Sid *uuid.UUID `json:"sid,omitempty"`
+ // TenantID - The server Active Directory Administrator tenant id.
+ TenantID *uuid.UUID `json:"tenantId,omitempty"`
+}
+
+// ServerAdministratorResource represents a and external administrator to be created.
+type ServerAdministratorResource struct {
+ autorest.Response `json:"-"`
+ // ServerAdministratorProperties - Properties of the server AAD administrator.
+ *ServerAdministratorProperties `json:"properties,omitempty"`
+ // ID - READ-ONLY; Resource ID
+ ID *string `json:"id,omitempty"`
+ // Name - READ-ONLY; Resource name.
+ Name *string `json:"name,omitempty"`
+ // Type - READ-ONLY; Resource type.
+ Type *string `json:"type,omitempty"`
+}
+
+// MarshalJSON is the custom marshaler for ServerAdministratorResource.
+func (sar ServerAdministratorResource) MarshalJSON() ([]byte, error) {
+ objectMap := make(map[string]interface{})
+ if sar.ServerAdministratorProperties != nil {
+ objectMap["properties"] = sar.ServerAdministratorProperties
+ }
+ return json.Marshal(objectMap)
+}
+
+// UnmarshalJSON is the custom unmarshaler for ServerAdministratorResource struct.
+func (sar *ServerAdministratorResource) UnmarshalJSON(body []byte) error {
+ var m map[string]*json.RawMessage
+ err := json.Unmarshal(body, &m)
+ if err != nil {
+ return err
+ }
+ for k, v := range m {
+ switch k {
+ case "properties":
+ if v != nil {
+ var serverAdministratorProperties ServerAdministratorProperties
+ err = json.Unmarshal(*v, &serverAdministratorProperties)
+ if err != nil {
+ return err
+ }
+ sar.ServerAdministratorProperties = &serverAdministratorProperties
+ }
+ case "id":
+ if v != nil {
+ var ID string
+ err = json.Unmarshal(*v, &ID)
+ if err != nil {
+ return err
+ }
+ sar.ID = &ID
+ }
+ case "name":
+ if v != nil {
+ var name string
+ err = json.Unmarshal(*v, &name)
+ if err != nil {
+ return err
+ }
+ sar.Name = &name
+ }
+ case "type":
+ if v != nil {
+ var typeVar string
+ err = json.Unmarshal(*v, &typeVar)
+ if err != nil {
+ return err
+ }
+ sar.Type = &typeVar
+ }
+ }
+ }
+
+ return nil
+}
+
+// ServerAdministratorResourceListResult the response to a list Active Directory Administrators request.
+type ServerAdministratorResourceListResult struct {
+ autorest.Response `json:"-"`
+ // Value - The list of server Active Directory Administrators for the server.
+ Value *[]ServerAdministratorResource `json:"value,omitempty"`
+}
+
+// ServerAdministratorsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ServerAdministratorsCreateOrUpdateFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ServerAdministratorsCreateOrUpdateFuture) Result(client ServerAdministratorsClient) (sar ServerAdministratorResource, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsCreateOrUpdateFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("postgresql.ServerAdministratorsCreateOrUpdateFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if sar.Response.Response, err = future.GetResult(sender); err == nil && sar.Response.Response.StatusCode != http.StatusNoContent {
+ sar, err = client.CreateOrUpdateResponder(sar.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsCreateOrUpdateFuture", "Result", sar.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
+// ServerAdministratorsDeleteFuture an abstraction for monitoring and retrieving the results of a
+// long-running operation.
+type ServerAdministratorsDeleteFuture struct {
+ azure.Future
+}
+
+// Result returns the result of the asynchronous operation.
+// If the operation has not completed it will return an error.
+func (future *ServerAdministratorsDeleteFuture) Result(client ServerAdministratorsClient) (sar ServerAdministratorResource, err error) {
+ var done bool
+ done, err = future.DoneWithContext(context.Background(), client)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsDeleteFuture", "Result", future.Response(), "Polling failure")
+ return
+ }
+ if !done {
+ err = azure.NewAsyncOpIncompleteError("postgresql.ServerAdministratorsDeleteFuture")
+ return
+ }
+ sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
+ if sar.Response.Response, err = future.GetResult(sender); err == nil && sar.Response.Response.StatusCode != http.StatusNoContent {
+ sar, err = client.DeleteResponder(sar.Response.Response)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsDeleteFuture", "Result", sar.Response.Response, "Failure responding to request")
+ }
+ }
+ return
+}
+
// ServerForCreate represents a server to be created.
type ServerForCreate struct {
// Sku - The SKU (pricing tier) of the server.
diff --git a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/postgresqlapi/interfaces.go b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/postgresqlapi/interfaces.go
index 6d4dc73b9886..07a979d114e8 100644
--- a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/postgresqlapi/interfaces.go
+++ b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/postgresqlapi/interfaces.go
@@ -88,6 +88,16 @@ type LogFilesClientAPI interface {
var _ LogFilesClientAPI = (*postgresql.LogFilesClient)(nil)
+// ServerAdministratorsClientAPI contains the set of methods on the ServerAdministratorsClient type.
+type ServerAdministratorsClientAPI interface {
+ CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, properties postgresql.ServerAdministratorResource) (result postgresql.ServerAdministratorsCreateOrUpdateFuture, err error)
+ Delete(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.ServerAdministratorsDeleteFuture, err error)
+ Get(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.ServerAdministratorResource, err error)
+ ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result postgresql.ServerAdministratorResourceListResult, err error)
+}
+
+var _ ServerAdministratorsClientAPI = (*postgresql.ServerAdministratorsClient)(nil)
+
// LocationBasedPerformanceTierClientAPI contains the set of methods on the LocationBasedPerformanceTierClient type.
type LocationBasedPerformanceTierClientAPI interface {
List(ctx context.Context, locationName string) (result postgresql.PerformanceTierListResult, err error)
diff --git a/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/serveradministrators.go b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/serveradministrators.go
new file mode 100644
index 000000000000..21a99463ac44
--- /dev/null
+++ b/services/preview/postgresql/mgmt/2017-12-01-preview/postgresql/serveradministrators.go
@@ -0,0 +1,371 @@
+package postgresql
+
+// 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"
+ "github.com/Azure/go-autorest/tracing"
+ "net/http"
+)
+
+// ServerAdministratorsClient is the the Microsoft Azure management API provides create, read, update, and delete
+// functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security
+// alert policies, log files and configurations with new business model.
+type ServerAdministratorsClient struct {
+ BaseClient
+}
+
+// NewServerAdministratorsClient creates an instance of the ServerAdministratorsClient client.
+func NewServerAdministratorsClient(subscriptionID string) ServerAdministratorsClient {
+ return NewServerAdministratorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
+}
+
+// NewServerAdministratorsClientWithBaseURI creates an instance of the ServerAdministratorsClient client.
+func NewServerAdministratorsClientWithBaseURI(baseURI string, subscriptionID string) ServerAdministratorsClient {
+ return ServerAdministratorsClient{NewWithBaseURI(baseURI, subscriptionID)}
+}
+
+// CreateOrUpdate creates or update active directory administrator on an existing server. The update action will
+// overwrite the existing administrator.
+// Parameters:
+// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
+// from the Azure Resource Manager API or the portal.
+// serverName - the name of the server.
+// properties - the required parameters for creating or updating an AAD server administrator.
+func (client ServerAdministratorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, properties ServerAdministratorResource) (result ServerAdministratorsCreateOrUpdateFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServerAdministratorsClient.CreateOrUpdate")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ if err := validation.Validate([]validation.Validation{
+ {TargetValue: properties,
+ Constraints: []validation.Constraint{{Target: "properties.ServerAdministratorProperties", Name: validation.Null, Rule: false,
+ Chain: []validation.Constraint{{Target: "properties.ServerAdministratorProperties.AdministratorType", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "properties.ServerAdministratorProperties.Login", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "properties.ServerAdministratorProperties.Sid", Name: validation.Null, Rule: true, Chain: nil},
+ {Target: "properties.ServerAdministratorProperties.TenantID", Name: validation.Null, Rule: true, Chain: nil},
+ }}}}}); err != nil {
+ return result, validation.NewError("postgresql.ServerAdministratorsClient", "CreateOrUpdate", err.Error())
+ }
+
+ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, properties)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsClient", "CreateOrUpdate", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.CreateOrUpdateSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
+func (client ServerAdministratorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, properties ServerAdministratorResource) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "serverName": autorest.Encode("path", serverName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2017-12-01-preview"
+ 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.DBforPostgreSQL/servers/{serverName}/Administrators/activeDirectory", pathParameters),
+ autorest.WithJSON(properties),
+ 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 ServerAdministratorsClient) CreateOrUpdateSender(req *http.Request) (future ServerAdministratorsCreateOrUpdateFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
+// closes the http.Response Body.
+func (client ServerAdministratorsClient) CreateOrUpdateResponder(resp *http.Response) (result ServerAdministratorResource, 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}
+ return
+}
+
+// Delete deletes AAD Administrator.
+// Parameters:
+// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
+// from the Azure Resource Manager API or the portal.
+// serverName - the name of the server.
+func (client ServerAdministratorsClient) Delete(ctx context.Context, resourceGroupName string, serverName string) (result ServerAdministratorsDeleteFuture, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServerAdministratorsClient.Delete")
+ defer func() {
+ sc := -1
+ if result.Response() != nil {
+ sc = result.Response().StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.DeletePreparer(ctx, resourceGroupName, serverName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsClient", "Delete", nil, "Failure preparing request")
+ return
+ }
+
+ result, err = client.DeleteSender(req)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsClient", "Delete", result.Response(), "Failure sending request")
+ return
+ }
+
+ return
+}
+
+// DeletePreparer prepares the Delete request.
+func (client ServerAdministratorsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "serverName": autorest.Encode("path", serverName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2017-12-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsDelete(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/Administrators/activeDirectory", 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 ServerAdministratorsClient) DeleteSender(req *http.Request) (future ServerAdministratorsDeleteFuture, err error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ var resp *http.Response
+ resp, err = autorest.SendWithSender(client, req, sd...)
+ if err != nil {
+ return
+ }
+ future.Future, err = azure.NewFutureFromResponse(resp)
+ return
+}
+
+// DeleteResponder handles the response to the Delete request. The method always
+// closes the http.Response Body.
+func (client ServerAdministratorsClient) DeleteResponder(resp *http.Response) (result ServerAdministratorResource, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// Get gets information about a AAD server administrator.
+// Parameters:
+// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
+// from the Azure Resource Manager API or the portal.
+// serverName - the name of the server.
+func (client ServerAdministratorsClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result ServerAdministratorResource, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServerAdministratorsClient.Get")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.GetPreparer(ctx, resourceGroupName, serverName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsClient", "Get", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.GetSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsClient", "Get", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.GetResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsClient", "Get", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// GetPreparer prepares the Get request.
+func (client ServerAdministratorsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "serverName": autorest.Encode("path", serverName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2017-12-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/Administrators/activeDirectory", 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 ServerAdministratorsClient) GetSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// GetResponder handles the response to the Get request. The method always
+// closes the http.Response Body.
+func (client ServerAdministratorsClient) GetResponder(resp *http.Response) (result ServerAdministratorResource, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
+
+// ListByServer returns a list of server Administrators.
+// Parameters:
+// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
+// from the Azure Resource Manager API or the portal.
+// serverName - the name of the server.
+func (client ServerAdministratorsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerAdministratorResourceListResult, err error) {
+ if tracing.IsEnabled() {
+ ctx = tracing.StartSpan(ctx, fqdn+"/ServerAdministratorsClient.ListByServer")
+ defer func() {
+ sc := -1
+ if result.Response.Response != nil {
+ sc = result.Response.Response.StatusCode
+ }
+ tracing.EndSpan(ctx, sc, err)
+ }()
+ }
+ req, err := client.ListByServerPreparer(ctx, resourceGroupName, serverName)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsClient", "ListByServer", nil, "Failure preparing request")
+ return
+ }
+
+ resp, err := client.ListByServerSender(req)
+ if err != nil {
+ result.Response = autorest.Response{Response: resp}
+ err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsClient", "ListByServer", resp, "Failure sending request")
+ return
+ }
+
+ result, err = client.ListByServerResponder(resp)
+ if err != nil {
+ err = autorest.NewErrorWithError(err, "postgresql.ServerAdministratorsClient", "ListByServer", resp, "Failure responding to request")
+ }
+
+ return
+}
+
+// ListByServerPreparer prepares the ListByServer request.
+func (client ServerAdministratorsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) {
+ pathParameters := map[string]interface{}{
+ "resourceGroupName": autorest.Encode("path", resourceGroupName),
+ "serverName": autorest.Encode("path", serverName),
+ "subscriptionId": autorest.Encode("path", client.SubscriptionID),
+ }
+
+ const APIVersion = "2017-12-01-preview"
+ queryParameters := map[string]interface{}{
+ "api-version": APIVersion,
+ }
+
+ preparer := autorest.CreatePreparer(
+ autorest.AsGet(),
+ autorest.WithBaseURL(client.BaseURI),
+ autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/administrators", pathParameters),
+ autorest.WithQueryParameters(queryParameters))
+ return preparer.Prepare((&http.Request{}).WithContext(ctx))
+}
+
+// ListByServerSender sends the ListByServer request. The method will close the
+// http.Response Body if it receives an error.
+func (client ServerAdministratorsClient) ListByServerSender(req *http.Request) (*http.Response, error) {
+ sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
+ return autorest.SendWithSender(client, req, sd...)
+}
+
+// ListByServerResponder handles the response to the ListByServer request. The method always
+// closes the http.Response Body.
+func (client ServerAdministratorsClient) ListByServerResponder(resp *http.Response) (result ServerAdministratorResourceListResult, err error) {
+ err = autorest.Respond(
+ resp,
+ client.ByInspecting(),
+ azure.WithErrorUnlessStatusCode(http.StatusOK),
+ autorest.ByUnmarshallingJSON(&result),
+ autorest.ByClosing())
+ result.Response = autorest.Response{Response: resp}
+ return
+}
diff --git a/services/preview/reservations/mgmt/2019-04-01/reservations/models.go b/services/preview/reservations/mgmt/2019-04-01/reservations/models.go
index 6e01aed5501e..b457c00410a3 100644
--- a/services/preview/reservations/mgmt/2019-04-01/reservations/models.go
+++ b/services/preview/reservations/mgmt/2019-04-01/reservations/models.go
@@ -415,7 +415,7 @@ type Catalog struct {
// Name - READ-ONLY; The name of SKU
Name *string `json:"name,omitempty"`
// BillingPlans - The billing plan options available for this SKU.
- BillingPlans *[]CatalogBillingPlansItem `json:"billingPlans,omitempty"`
+ BillingPlans map[string][]ReservationBillingPlan `json:"billingPlans"`
// Terms - READ-ONLY; Available reservation terms for this resource
Terms *[]ReservationTerm `json:"terms,omitempty"`
// Locations - READ-ONLY
@@ -426,62 +426,15 @@ type Catalog struct {
Restrictions *[]SkuRestriction `json:"restrictions,omitempty"`
}
-// CatalogBillingPlansItem ...
-type CatalogBillingPlansItem struct {
- // AdditionalProperties - Unmatched properties from the message are deserialized this collection
- AdditionalProperties map[string][]ReservationBillingPlan `json:""`
- // Name - The term for the billing SKU is available for. Possible values include: 'P1Y', 'P3Y'
- Name ReservationTerm `json:"name,omitempty"`
-}
-
-// MarshalJSON is the custom marshaler for CatalogBillingPlansItem.
-func (cPi CatalogBillingPlansItem) MarshalJSON() ([]byte, error) {
+// MarshalJSON is the custom marshaler for Catalog.
+func (c Catalog) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
- if cPi.Name != "" {
- objectMap["name"] = cPi.Name
- }
- for k, v := range cPi.AdditionalProperties {
- objectMap[k] = v
+ if c.BillingPlans != nil {
+ objectMap["billingPlans"] = c.BillingPlans
}
return json.Marshal(objectMap)
}
-// UnmarshalJSON is the custom unmarshaler for CatalogBillingPlansItem struct.
-func (cPi *CatalogBillingPlansItem) UnmarshalJSON(body []byte) error {
- var m map[string]*json.RawMessage
- err := json.Unmarshal(body, &m)
- if err != nil {
- return err
- }
- for k, v := range m {
- switch k {
- default:
- if v != nil {
- var additionalProperties []ReservationBillingPlan
- err = json.Unmarshal(*v, &additionalProperties)
- if err != nil {
- return err
- }
- if cPi.AdditionalProperties == nil {
- cPi.AdditionalProperties = make(map[string][]ReservationBillingPlan)
- }
- cPi.AdditionalProperties[k] = additionalProperties
- }
- case "name":
- if v != nil {
- var name ReservationTerm
- err = json.Unmarshal(*v, &name)
- if err != nil {
- return err
- }
- cPi.Name = name
- }
- }
- }
-
- return nil
-}
-
// Error ...
type Error struct {
Error *ExtendedErrorInfo `json:"error,omitempty"`
diff --git a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutions.go b/services/preview/security/mgmt/v3.0/security/iotsecuritysolutions.go
deleted file mode 100644
index 03b256dad4c7..000000000000
--- a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutions.go
+++ /dev/null
@@ -1,163 +0,0 @@
-package security
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// IoTSecuritySolutionsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider
-type IoTSecuritySolutionsClient struct {
- BaseClient
-}
-
-// NewIoTSecuritySolutionsClient creates an instance of the IoTSecuritySolutionsClient client.
-func NewIoTSecuritySolutionsClient(subscriptionID string, ascLocation string) IoTSecuritySolutionsClient {
- return NewIoTSecuritySolutionsClientWithBaseURI(DefaultBaseURI, subscriptionID, ascLocation)
-}
-
-// NewIoTSecuritySolutionsClientWithBaseURI creates an instance of the IoTSecuritySolutionsClient client.
-func NewIoTSecuritySolutionsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) IoTSecuritySolutionsClient {
- return IoTSecuritySolutionsClient{NewWithBaseURI(baseURI, subscriptionID, ascLocation)}
-}
-
-// List list of security solutions
-// Parameters:
-// filter - filter the Security Solution with OData syntax. supporting filter by iotHubs
-func (client IoTSecuritySolutionsClient) List(ctx context.Context, filter string) (result IoTSecuritySolutionsListPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/IoTSecuritySolutionsClient.List")
- defer func() {
- sc := -1
- if result.itssl.Response.Response != nil {
- sc = result.itssl.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: client.SubscriptionID,
- Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.Pattern, Rule: `^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$`, Chain: nil}}}}); err != nil {
- return result, validation.NewError("security.IoTSecuritySolutionsClient", "List", err.Error())
- }
-
- result.fn = client.listNextResults
- req, err := client.ListPreparer(ctx, filter)
- if err != nil {
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsClient", "List", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListSender(req)
- if err != nil {
- result.itssl.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsClient", "List", resp, "Failure sending request")
- return
- }
-
- result.itssl, err = client.ListResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsClient", "List", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListPreparer prepares the List request.
-func (client IoTSecuritySolutionsClient) ListPreparer(ctx context.Context, filter string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2019-08-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("/subscriptions/{subscriptionId}/providers/Microsoft.Security/iotSecuritySolutions", 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 IoTSecuritySolutionsClient) ListSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListResponder handles the response to the List request. The method always
-// closes the http.Response Body.
-func (client IoTSecuritySolutionsClient) ListResponder(resp *http.Response) (result IoTSecuritySolutionsList, 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 IoTSecuritySolutionsClient) listNextResults(ctx context.Context, lastResults IoTSecuritySolutionsList) (result IoTSecuritySolutionsList, err error) {
- req, err := lastResults.ioTSecuritySolutionsListPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsClient", "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, "security.IoTSecuritySolutionsClient", "listNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsClient", "listNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListComplete enumerates all values, automatically crossing page boundaries as required.
-func (client IoTSecuritySolutionsClient) ListComplete(ctx context.Context, filter string) (result IoTSecuritySolutionsListIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/IoTSecuritySolutionsClient.List")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.List(ctx, filter)
- return
-}
diff --git a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalytics.go b/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalytics.go
deleted file mode 100644
index 22ce11631743..000000000000
--- a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalytics.go
+++ /dev/null
@@ -1,219 +0,0 @@
-package security
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// IoTSecuritySolutionsAnalyticsClient is the API spec for Microsoft.Security (Azure Security Center) resource provider
-type IoTSecuritySolutionsAnalyticsClient struct {
- BaseClient
-}
-
-// NewIoTSecuritySolutionsAnalyticsClient creates an instance of the IoTSecuritySolutionsAnalyticsClient client.
-func NewIoTSecuritySolutionsAnalyticsClient(subscriptionID string, ascLocation string) IoTSecuritySolutionsAnalyticsClient {
- return NewIoTSecuritySolutionsAnalyticsClientWithBaseURI(DefaultBaseURI, subscriptionID, ascLocation)
-}
-
-// NewIoTSecuritySolutionsAnalyticsClientWithBaseURI creates an instance of the IoTSecuritySolutionsAnalyticsClient
-// client.
-func NewIoTSecuritySolutionsAnalyticsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) IoTSecuritySolutionsAnalyticsClient {
- return IoTSecuritySolutionsAnalyticsClient{NewWithBaseURI(baseURI, subscriptionID, ascLocation)}
-}
-
-// GetAll security Analytics of a security solution
-// Parameters:
-// resourceGroupName - the name of the resource group within the user's subscription. The name is case
-// insensitive.
-// solutionName - the solution manager name
-func (client IoTSecuritySolutionsAnalyticsClient) GetAll(ctx context.Context, resourceGroupName string, solutionName string) (result IoTSecuritySolutionAnalyticsModelList, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/IoTSecuritySolutionsAnalyticsClient.GetAll")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: client.SubscriptionID,
- Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.Pattern, Rule: `^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$`, Chain: nil}}},
- {TargetValue: resourceGroupName,
- 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("security.IoTSecuritySolutionsAnalyticsClient", "GetAll", err.Error())
- }
-
- req, err := client.GetAllPreparer(ctx, resourceGroupName, solutionName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsClient", "GetAll", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetAllSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsClient", "GetAll", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetAllResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsClient", "GetAll", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetAllPreparer prepares the GetAll request.
-func (client IoTSecuritySolutionsAnalyticsClient) GetAllPreparer(ctx context.Context, resourceGroupName string, solutionName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "solutionName": autorest.Encode("path", solutionName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2019-08-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.Security/iotSecuritySolutions/{solutionName}/analyticsModels", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// GetAllSender sends the GetAll request. The method will close the
-// http.Response Body if it receives an error.
-func (client IoTSecuritySolutionsAnalyticsClient) GetAllSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetAllResponder handles the response to the GetAll request. The method always
-// closes the http.Response Body.
-func (client IoTSecuritySolutionsAnalyticsClient) GetAllResponder(resp *http.Response) (result IoTSecuritySolutionAnalyticsModelList, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// GetDefault security Analytics of a security solution
-// Parameters:
-// resourceGroupName - the name of the resource group within the user's subscription. The name is case
-// insensitive.
-// solutionName - the solution manager name
-func (client IoTSecuritySolutionsAnalyticsClient) GetDefault(ctx context.Context, resourceGroupName string, solutionName string) (result IoTSecuritySolutionAnalyticsModel, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/IoTSecuritySolutionsAnalyticsClient.GetDefault")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: client.SubscriptionID,
- Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.Pattern, Rule: `^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$`, Chain: nil}}},
- {TargetValue: resourceGroupName,
- 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("security.IoTSecuritySolutionsAnalyticsClient", "GetDefault", err.Error())
- }
-
- req, err := client.GetDefaultPreparer(ctx, resourceGroupName, solutionName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsClient", "GetDefault", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetDefaultSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsClient", "GetDefault", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetDefaultResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsClient", "GetDefault", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetDefaultPreparer prepares the GetDefault request.
-func (client IoTSecuritySolutionsAnalyticsClient) GetDefaultPreparer(ctx context.Context, resourceGroupName string, solutionName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "solutionName": autorest.Encode("path", solutionName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2019-08-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.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// GetDefaultSender sends the GetDefault request. The method will close the
-// http.Response Body if it receives an error.
-func (client IoTSecuritySolutionsAnalyticsClient) GetDefaultSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetDefaultResponder handles the response to the GetDefault request. The method always
-// closes the http.Response Body.
-func (client IoTSecuritySolutionsAnalyticsClient) GetDefaultResponder(resp *http.Response) (result IoTSecuritySolutionAnalyticsModel, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
diff --git a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsaggregatedalerts.go b/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsaggregatedalerts.go
deleted file mode 100644
index 1cc08c1c364a..000000000000
--- a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsaggregatedalerts.go
+++ /dev/null
@@ -1,175 +0,0 @@
-package security
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// IoTSecuritySolutionsAnalyticsAggregatedAlertsClient is the API spec for Microsoft.Security (Azure Security Center)
-// resource provider
-type IoTSecuritySolutionsAnalyticsAggregatedAlertsClient struct {
- BaseClient
-}
-
-// NewIoTSecuritySolutionsAnalyticsAggregatedAlertsClient creates an instance of the
-// IoTSecuritySolutionsAnalyticsAggregatedAlertsClient client.
-func NewIoTSecuritySolutionsAnalyticsAggregatedAlertsClient(subscriptionID string, ascLocation string) IoTSecuritySolutionsAnalyticsAggregatedAlertsClient {
- return NewIoTSecuritySolutionsAnalyticsAggregatedAlertsClientWithBaseURI(DefaultBaseURI, subscriptionID, ascLocation)
-}
-
-// NewIoTSecuritySolutionsAnalyticsAggregatedAlertsClientWithBaseURI creates an instance of the
-// IoTSecuritySolutionsAnalyticsAggregatedAlertsClient client.
-func NewIoTSecuritySolutionsAnalyticsAggregatedAlertsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) IoTSecuritySolutionsAnalyticsAggregatedAlertsClient {
- return IoTSecuritySolutionsAnalyticsAggregatedAlertsClient{NewWithBaseURI(baseURI, subscriptionID, ascLocation)}
-}
-
-// List security Analytics of a security solution
-// Parameters:
-// resourceGroupName - the name of the resource group within the user's subscription. The name is case
-// insensitive.
-// solutionName - the solution manager name
-// top - the number of results to retrieve.
-func (client IoTSecuritySolutionsAnalyticsAggregatedAlertsClient) List(ctx context.Context, resourceGroupName string, solutionName string, top *int32) (result IoTSecurityAggregatedAlertListPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/IoTSecuritySolutionsAnalyticsAggregatedAlertsClient.List")
- defer func() {
- sc := -1
- if result.itsaal.Response.Response != nil {
- sc = result.itsaal.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: client.SubscriptionID,
- Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.Pattern, Rule: `^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$`, Chain: nil}}},
- {TargetValue: resourceGroupName,
- 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("security.IoTSecuritySolutionsAnalyticsAggregatedAlertsClient", "List", err.Error())
- }
-
- result.fn = client.listNextResults
- req, err := client.ListPreparer(ctx, resourceGroupName, solutionName, top)
- if err != nil {
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsAggregatedAlertsClient", "List", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListSender(req)
- if err != nil {
- result.itsaal.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsAggregatedAlertsClient", "List", resp, "Failure sending request")
- return
- }
-
- result.itsaal, err = client.ListResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsAggregatedAlertsClient", "List", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListPreparer prepares the List request.
-func (client IoTSecuritySolutionsAnalyticsAggregatedAlertsClient) ListPreparer(ctx context.Context, resourceGroupName string, solutionName string, top *int32) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "solutionName": autorest.Encode("path", solutionName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2019-08-01"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
- if top != nil {
- queryParameters["$top"] = autorest.Encode("query", *top)
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedAlerts", 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 IoTSecuritySolutionsAnalyticsAggregatedAlertsClient) ListSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListResponder handles the response to the List request. The method always
-// closes the http.Response Body.
-func (client IoTSecuritySolutionsAnalyticsAggregatedAlertsClient) ListResponder(resp *http.Response) (result IoTSecurityAggregatedAlertList, 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 IoTSecuritySolutionsAnalyticsAggregatedAlertsClient) listNextResults(ctx context.Context, lastResults IoTSecurityAggregatedAlertList) (result IoTSecurityAggregatedAlertList, err error) {
- req, err := lastResults.ioTSecurityAggregatedAlertListPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsAggregatedAlertsClient", "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, "security.IoTSecuritySolutionsAnalyticsAggregatedAlertsClient", "listNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsAggregatedAlertsClient", "listNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListComplete enumerates all values, automatically crossing page boundaries as required.
-func (client IoTSecuritySolutionsAnalyticsAggregatedAlertsClient) ListComplete(ctx context.Context, resourceGroupName string, solutionName string, top *int32) (result IoTSecurityAggregatedAlertListIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/IoTSecuritySolutionsAnalyticsAggregatedAlertsClient.List")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.List(ctx, resourceGroupName, solutionName, top)
- return
-}
diff --git a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsrecommendations.go b/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsrecommendations.go
deleted file mode 100644
index 0a4201655260..000000000000
--- a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsanalyticsrecommendations.go
+++ /dev/null
@@ -1,175 +0,0 @@
-package security
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// IoTSecuritySolutionsAnalyticsRecommendationsClient is the API spec for Microsoft.Security (Azure Security Center)
-// resource provider
-type IoTSecuritySolutionsAnalyticsRecommendationsClient struct {
- BaseClient
-}
-
-// NewIoTSecuritySolutionsAnalyticsRecommendationsClient creates an instance of the
-// IoTSecuritySolutionsAnalyticsRecommendationsClient client.
-func NewIoTSecuritySolutionsAnalyticsRecommendationsClient(subscriptionID string, ascLocation string) IoTSecuritySolutionsAnalyticsRecommendationsClient {
- return NewIoTSecuritySolutionsAnalyticsRecommendationsClientWithBaseURI(DefaultBaseURI, subscriptionID, ascLocation)
-}
-
-// NewIoTSecuritySolutionsAnalyticsRecommendationsClientWithBaseURI creates an instance of the
-// IoTSecuritySolutionsAnalyticsRecommendationsClient client.
-func NewIoTSecuritySolutionsAnalyticsRecommendationsClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) IoTSecuritySolutionsAnalyticsRecommendationsClient {
- return IoTSecuritySolutionsAnalyticsRecommendationsClient{NewWithBaseURI(baseURI, subscriptionID, ascLocation)}
-}
-
-// List security Analytics of a security solution
-// Parameters:
-// resourceGroupName - the name of the resource group within the user's subscription. The name is case
-// insensitive.
-// solutionName - the solution manager name
-// top - the number of results to retrieve.
-func (client IoTSecuritySolutionsAnalyticsRecommendationsClient) List(ctx context.Context, resourceGroupName string, solutionName string, top *int32) (result IoTSecurityAggregatedRecommendationListPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/IoTSecuritySolutionsAnalyticsRecommendationsClient.List")
- defer func() {
- sc := -1
- if result.itsarl.Response.Response != nil {
- sc = result.itsarl.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: client.SubscriptionID,
- Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.Pattern, Rule: `^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$`, Chain: nil}}},
- {TargetValue: resourceGroupName,
- 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("security.IoTSecuritySolutionsAnalyticsRecommendationsClient", "List", err.Error())
- }
-
- result.fn = client.listNextResults
- req, err := client.ListPreparer(ctx, resourceGroupName, solutionName, top)
- if err != nil {
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsRecommendationsClient", "List", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListSender(req)
- if err != nil {
- result.itsarl.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsRecommendationsClient", "List", resp, "Failure sending request")
- return
- }
-
- result.itsarl, err = client.ListResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsRecommendationsClient", "List", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListPreparer prepares the List request.
-func (client IoTSecuritySolutionsAnalyticsRecommendationsClient) ListPreparer(ctx context.Context, resourceGroupName string, solutionName string, top *int32) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "solutionName": autorest.Encode("path", solutionName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2019-08-01"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
- if top != nil {
- queryParameters["$top"] = autorest.Encode("query", *top)
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedRecommendations", 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 IoTSecuritySolutionsAnalyticsRecommendationsClient) ListSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListResponder handles the response to the List request. The method always
-// closes the http.Response Body.
-func (client IoTSecuritySolutionsAnalyticsRecommendationsClient) ListResponder(resp *http.Response) (result IoTSecurityAggregatedRecommendationList, 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 IoTSecuritySolutionsAnalyticsRecommendationsClient) listNextResults(ctx context.Context, lastResults IoTSecurityAggregatedRecommendationList) (result IoTSecurityAggregatedRecommendationList, err error) {
- req, err := lastResults.ioTSecurityAggregatedRecommendationListPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsRecommendationsClient", "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, "security.IoTSecuritySolutionsAnalyticsRecommendationsClient", "listNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsAnalyticsRecommendationsClient", "listNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListComplete enumerates all values, automatically crossing page boundaries as required.
-func (client IoTSecuritySolutionsAnalyticsRecommendationsClient) ListComplete(ctx context.Context, resourceGroupName string, solutionName string, top *int32) (result IoTSecurityAggregatedRecommendationListIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/IoTSecuritySolutionsAnalyticsRecommendationsClient.List")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.List(ctx, resourceGroupName, solutionName, top)
- return
-}
diff --git a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsresourcegroup.go b/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsresourcegroup.go
deleted file mode 100644
index a2214a0bdf94..000000000000
--- a/services/preview/security/mgmt/v3.0/security/iotsecuritysolutionsresourcegroup.go
+++ /dev/null
@@ -1,173 +0,0 @@
-package security
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// IoTSecuritySolutionsResourceGroupClient is the API spec for Microsoft.Security (Azure Security Center) resource
-// provider
-type IoTSecuritySolutionsResourceGroupClient struct {
- BaseClient
-}
-
-// NewIoTSecuritySolutionsResourceGroupClient creates an instance of the IoTSecuritySolutionsResourceGroupClient
-// client.
-func NewIoTSecuritySolutionsResourceGroupClient(subscriptionID string, ascLocation string) IoTSecuritySolutionsResourceGroupClient {
- return NewIoTSecuritySolutionsResourceGroupClientWithBaseURI(DefaultBaseURI, subscriptionID, ascLocation)
-}
-
-// NewIoTSecuritySolutionsResourceGroupClientWithBaseURI creates an instance of the
-// IoTSecuritySolutionsResourceGroupClient client.
-func NewIoTSecuritySolutionsResourceGroupClientWithBaseURI(baseURI string, subscriptionID string, ascLocation string) IoTSecuritySolutionsResourceGroupClient {
- return IoTSecuritySolutionsResourceGroupClient{NewWithBaseURI(baseURI, subscriptionID, ascLocation)}
-}
-
-// List list of security solutions
-// Parameters:
-// resourceGroupName - the name of the resource group within the user's subscription. The name is case
-// insensitive.
-// filter - filter the Security Solution with OData syntax. supporting filter by iotHubs
-func (client IoTSecuritySolutionsResourceGroupClient) List(ctx context.Context, resourceGroupName string, filter string) (result IoTSecuritySolutionsListPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/IoTSecuritySolutionsResourceGroupClient.List")
- defer func() {
- sc := -1
- if result.itssl.Response.Response != nil {
- sc = result.itssl.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: client.SubscriptionID,
- Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.Pattern, Rule: `^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$`, Chain: nil}}},
- {TargetValue: resourceGroupName,
- 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("security.IoTSecuritySolutionsResourceGroupClient", "List", err.Error())
- }
-
- result.fn = client.listNextResults
- req, err := client.ListPreparer(ctx, resourceGroupName, filter)
- if err != nil {
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsResourceGroupClient", "List", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListSender(req)
- if err != nil {
- result.itssl.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsResourceGroupClient", "List", resp, "Failure sending request")
- return
- }
-
- result.itssl, err = client.ListResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsResourceGroupClient", "List", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListPreparer prepares the List request.
-func (client IoTSecuritySolutionsResourceGroupClient) ListPreparer(ctx context.Context, resourceGroupName string, filter string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2019-08-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("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions", 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 IoTSecuritySolutionsResourceGroupClient) ListSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListResponder handles the response to the List request. The method always
-// closes the http.Response Body.
-func (client IoTSecuritySolutionsResourceGroupClient) ListResponder(resp *http.Response) (result IoTSecuritySolutionsList, 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 IoTSecuritySolutionsResourceGroupClient) listNextResults(ctx context.Context, lastResults IoTSecuritySolutionsList) (result IoTSecuritySolutionsList, err error) {
- req, err := lastResults.ioTSecuritySolutionsListPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsResourceGroupClient", "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, "security.IoTSecuritySolutionsResourceGroupClient", "listNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "security.IoTSecuritySolutionsResourceGroupClient", "listNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListComplete enumerates all values, automatically crossing page boundaries as required.
-func (client IoTSecuritySolutionsResourceGroupClient) ListComplete(ctx context.Context, resourceGroupName string, filter string) (result IoTSecuritySolutionsListIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/IoTSecuritySolutionsResourceGroupClient.List")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.List(ctx, resourceGroupName, filter)
- return
-}
diff --git a/services/preview/security/mgmt/v3.0/security/models.go b/services/preview/security/mgmt/v3.0/security/models.go
index 1f0482eb5644..656cd2a88cbe 100644
--- a/services/preview/security/mgmt/v3.0/security/models.go
+++ b/services/preview/security/mgmt/v3.0/security/models.go
@@ -4936,6 +4936,18 @@ type IoTSecurityAggregatedAlertProperties struct {
ActionTaken *string `json:"actionTaken,omitempty"`
// LogAnalyticsQuery - READ-ONLY; Log analytics query for getting the list of affected devices/alerts.
LogAnalyticsQuery *string `json:"logAnalyticsQuery,omitempty"`
+ // TopDevicesList - READ-ONLY; 10 devices with the highest number of occurrences of this alert type, on this day.
+ TopDevicesList *[]IoTSecurityAggregatedAlertPropertiesTopDevicesListItem `json:"topDevicesList,omitempty"`
+}
+
+// IoTSecurityAggregatedAlertPropertiesTopDevicesListItem ...
+type IoTSecurityAggregatedAlertPropertiesTopDevicesListItem struct {
+ // DeviceID - READ-ONLY; Name of the device.
+ DeviceID *string `json:"deviceId,omitempty"`
+ // AlertsCount - READ-ONLY; Number of alerts raised for this device.
+ AlertsCount *int32 `json:"alertsCount,omitempty"`
+ // LastOccurrence - READ-ONLY; Most recent time this alert was raised for this device, on this day.
+ LastOccurrence *string `json:"lastOccurrence,omitempty"`
}
// IoTSecurityAggregatedRecommendation ioT Security solution recommendation information.
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/backupshorttermretentionpolicies.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/backupshorttermretentionpolicies.go
deleted file mode 100644
index 1ac1fa8642cd..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/backupshorttermretentionpolicies.go
+++ /dev/null
@@ -1,411 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// BackupShortTermRetentionPoliciesClient is the the Azure SQL Database management API provides a RESTful set of web
-// services that interact with Azure SQL Database services to manage your databases. The API enables you to create,
-// retrieve, update, and delete databases.
-type BackupShortTermRetentionPoliciesClient struct {
- BaseClient
-}
-
-// NewBackupShortTermRetentionPoliciesClient creates an instance of the BackupShortTermRetentionPoliciesClient client.
-func NewBackupShortTermRetentionPoliciesClient(subscriptionID string) BackupShortTermRetentionPoliciesClient {
- return NewBackupShortTermRetentionPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewBackupShortTermRetentionPoliciesClientWithBaseURI creates an instance of the
-// BackupShortTermRetentionPoliciesClient client.
-func NewBackupShortTermRetentionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) BackupShortTermRetentionPoliciesClient {
- return BackupShortTermRetentionPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate updates a database's short term retention policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-// parameters - the short term retention policy info.
-func (client BackupShortTermRetentionPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters BackupShortTermRetentionPolicy) (result BackupShortTermRetentionPoliciesCreateOrUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/BackupShortTermRetentionPoliciesClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, databaseName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateOrUpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesClient", "CreateOrUpdate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client BackupShortTermRetentionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters BackupShortTermRetentionPolicy) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "policyName": autorest.Encode("path", "default"),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- 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.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 BackupShortTermRetentionPoliciesClient) CreateOrUpdateSender(req *http.Request) (future BackupShortTermRetentionPoliciesCreateOrUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client BackupShortTermRetentionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result BackupShortTermRetentionPolicy, 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}
- return
-}
-
-// Get gets a database's short term retention policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-func (client BackupShortTermRetentionPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result BackupShortTermRetentionPolicy, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/BackupShortTermRetentionPoliciesClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client BackupShortTermRetentionPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "policyName": autorest.Encode("path", "default"),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", 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 BackupShortTermRetentionPoliciesClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client BackupShortTermRetentionPoliciesClient) GetResponder(resp *http.Response) (result BackupShortTermRetentionPolicy, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByDatabase gets a database's short term retention policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-func (client BackupShortTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result BackupShortTermRetentionPolicyListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/BackupShortTermRetentionPoliciesClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.bstrplr.Response.Response != nil {
- sc = result.bstrplr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByDatabaseNextResults
- req, err := client.ListByDatabasePreparer(ctx, resourceGroupName, serverName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesClient", "ListByDatabase", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.bstrplr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesClient", "ListByDatabase", resp, "Failure sending request")
- return
- }
-
- result.bstrplr, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesClient", "ListByDatabase", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByDatabasePreparer prepares the ListByDatabase request.
-func (client BackupShortTermRetentionPoliciesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByDatabaseSender sends the ListByDatabase request. The method will close the
-// http.Response Body if it receives an error.
-func (client BackupShortTermRetentionPoliciesClient) ListByDatabaseSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByDatabaseResponder handles the response to the ListByDatabase request. The method always
-// closes the http.Response Body.
-func (client BackupShortTermRetentionPoliciesClient) ListByDatabaseResponder(resp *http.Response) (result BackupShortTermRetentionPolicyListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByDatabaseNextResults retrieves the next set of results, if any.
-func (client BackupShortTermRetentionPoliciesClient) listByDatabaseNextResults(ctx context.Context, lastResults BackupShortTermRetentionPolicyListResult) (result BackupShortTermRetentionPolicyListResult, err error) {
- req, err := lastResults.backupShortTermRetentionPolicyListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesClient", "listByDatabaseNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesClient", "listByDatabaseNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesClient", "listByDatabaseNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.
-func (client BackupShortTermRetentionPoliciesClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result BackupShortTermRetentionPolicyListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/BackupShortTermRetentionPoliciesClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByDatabase(ctx, resourceGroupName, serverName, databaseName)
- return
-}
-
-// Update updates a database's short term retention policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-// parameters - the short term retention policy info.
-func (client BackupShortTermRetentionPoliciesClient) Update(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters BackupShortTermRetentionPolicy) (result BackupShortTermRetentionPoliciesUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/BackupShortTermRetentionPoliciesClient.Update")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.UpdatePreparer(ctx, resourceGroupName, serverName, databaseName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesClient", "Update", nil, "Failure preparing request")
- return
- }
-
- result, err = client.UpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesClient", "Update", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// UpdatePreparer prepares the Update request.
-func (client BackupShortTermRetentionPoliciesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters BackupShortTermRetentionPolicy) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "policyName": autorest.Encode("path", "default"),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- 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.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 BackupShortTermRetentionPoliciesClient) UpdateSender(req *http.Request) (future BackupShortTermRetentionPoliciesUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// UpdateResponder handles the response to the Update request. The method always
-// closes the http.Response Body.
-func (client BackupShortTermRetentionPoliciesClient) UpdateResponder(resp *http.Response) (result BackupShortTermRetentionPolicy, 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}
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/databaseautomatictuning.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/databaseautomatictuning.go
deleted file mode 100644
index 2b7edb2d0e14..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/databaseautomatictuning.go
+++ /dev/null
@@ -1,206 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// DatabaseAutomaticTuningClient is the the Azure SQL Database management API provides a RESTful set of web services
-// that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve,
-// update, and delete databases.
-type DatabaseAutomaticTuningClient struct {
- BaseClient
-}
-
-// NewDatabaseAutomaticTuningClient creates an instance of the DatabaseAutomaticTuningClient client.
-func NewDatabaseAutomaticTuningClient(subscriptionID string) DatabaseAutomaticTuningClient {
- return NewDatabaseAutomaticTuningClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewDatabaseAutomaticTuningClientWithBaseURI creates an instance of the DatabaseAutomaticTuningClient client.
-func NewDatabaseAutomaticTuningClientWithBaseURI(baseURI string, subscriptionID string) DatabaseAutomaticTuningClient {
- return DatabaseAutomaticTuningClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// Get gets a database's automatic tuning.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-func (client DatabaseAutomaticTuningClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseAutomaticTuning, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAutomaticTuningClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseAutomaticTuningClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabaseAutomaticTuningClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseAutomaticTuningClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client DatabaseAutomaticTuningClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2015-05-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/automaticTuning/current", 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 DatabaseAutomaticTuningClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client DatabaseAutomaticTuningClient) GetResponder(resp *http.Response) (result DatabaseAutomaticTuning, 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 update automatic tuning properties for target database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-// parameters - the requested automatic tuning resource state.
-func (client DatabaseAutomaticTuningClient) Update(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseAutomaticTuning) (result DatabaseAutomaticTuning, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseAutomaticTuningClient.Update")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.UpdatePreparer(ctx, resourceGroupName, serverName, databaseName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseAutomaticTuningClient", "Update", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.UpdateSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabaseAutomaticTuningClient", "Update", resp, "Failure sending request")
- return
- }
-
- result, err = client.UpdateResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseAutomaticTuningClient", "Update", resp, "Failure responding to request")
- }
-
- return
-}
-
-// UpdatePreparer prepares the Update request.
-func (client DatabaseAutomaticTuningClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseAutomaticTuning) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2015-05-01-preview"
- 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.Sql/servers/{serverName}/databases/{databaseName}/automaticTuning/current", pathParameters),
- autorest.WithJSON(parameters),
- 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 DatabaseAutomaticTuningClient) UpdateSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// UpdateResponder handles the response to the Update request. The method always
-// closes the http.Response Body.
-func (client DatabaseAutomaticTuningClient) UpdateResponder(resp *http.Response) (result DatabaseAutomaticTuning, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/databaseblobauditingpolicies.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/databaseblobauditingpolicies.go
deleted file mode 100644
index 8e61953bbeae..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/databaseblobauditingpolicies.go
+++ /dev/null
@@ -1,328 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// DatabaseBlobAuditingPoliciesClient is the the Azure SQL Database management API provides a RESTful set of web
-// services that interact with Azure SQL Database services to manage your databases. The API enables you to create,
-// retrieve, update, and delete databases.
-type DatabaseBlobAuditingPoliciesClient struct {
- BaseClient
-}
-
-// NewDatabaseBlobAuditingPoliciesClient creates an instance of the DatabaseBlobAuditingPoliciesClient client.
-func NewDatabaseBlobAuditingPoliciesClient(subscriptionID string) DatabaseBlobAuditingPoliciesClient {
- return NewDatabaseBlobAuditingPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewDatabaseBlobAuditingPoliciesClientWithBaseURI creates an instance of the DatabaseBlobAuditingPoliciesClient
-// client.
-func NewDatabaseBlobAuditingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseBlobAuditingPoliciesClient {
- return DatabaseBlobAuditingPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates a database's blob auditing policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-// parameters - the database blob auditing policy.
-func (client DatabaseBlobAuditingPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseBlobAuditingPolicy) (result DatabaseBlobAuditingPolicy, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseBlobAuditingPoliciesClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, databaseName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.CreateOrUpdateSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "CreateOrUpdate", resp, "Failure sending request")
- return
- }
-
- result, err = client.CreateOrUpdateResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request")
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client DatabaseBlobAuditingPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseBlobAuditingPolicy) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "blobAuditingPolicyName": autorest.Encode("path", "default"),
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- parameters.Kind = nil
- preparer := autorest.CreatePreparer(
- autorest.AsContentType("application/json; charset=utf-8"),
- autorest.AsPut(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings/{blobAuditingPolicyName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 DatabaseBlobAuditingPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client DatabaseBlobAuditingPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseBlobAuditingPolicy, 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
-}
-
-// Get gets a database's blob auditing policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-func (client DatabaseBlobAuditingPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseBlobAuditingPolicy, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseBlobAuditingPoliciesClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client DatabaseBlobAuditingPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "blobAuditingPolicyName": autorest.Encode("path", "default"),
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings/{blobAuditingPolicyName}", 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 DatabaseBlobAuditingPoliciesClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client DatabaseBlobAuditingPoliciesClient) GetResponder(resp *http.Response) (result DatabaseBlobAuditingPolicy, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByDatabase lists auditing settings of a database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-func (client DatabaseBlobAuditingPoliciesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseBlobAuditingPolicyListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseBlobAuditingPoliciesClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.dbaplr.Response.Response != nil {
- sc = result.dbaplr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByDatabaseNextResults
- req, err := client.ListByDatabasePreparer(ctx, resourceGroupName, serverName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "ListByDatabase", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.dbaplr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "ListByDatabase", resp, "Failure sending request")
- return
- }
-
- result.dbaplr, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "ListByDatabase", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByDatabasePreparer prepares the ListByDatabase request.
-func (client DatabaseBlobAuditingPoliciesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByDatabaseSender sends the ListByDatabase request. The method will close the
-// http.Response Body if it receives an error.
-func (client DatabaseBlobAuditingPoliciesClient) ListByDatabaseSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByDatabaseResponder handles the response to the ListByDatabase request. The method always
-// closes the http.Response Body.
-func (client DatabaseBlobAuditingPoliciesClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseBlobAuditingPolicyListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByDatabaseNextResults retrieves the next set of results, if any.
-func (client DatabaseBlobAuditingPoliciesClient) listByDatabaseNextResults(ctx context.Context, lastResults DatabaseBlobAuditingPolicyListResult) (result DatabaseBlobAuditingPolicyListResult, err error) {
- req, err := lastResults.databaseBlobAuditingPolicyListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "listByDatabaseNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "listByDatabaseNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseBlobAuditingPoliciesClient", "listByDatabaseNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.
-func (client DatabaseBlobAuditingPoliciesClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseBlobAuditingPolicyListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseBlobAuditingPoliciesClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByDatabase(ctx, resourceGroupName, serverName, databaseName)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/databaseoperations.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/databaseoperations.go
deleted file mode 100644
index c7d3384f8718..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/databaseoperations.go
+++ /dev/null
@@ -1,243 +0,0 @@
-package sql
-
-// 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/tracing"
- "github.com/satori/go.uuid"
- "net/http"
-)
-
-// DatabaseOperationsClient is the the Azure SQL Database management API provides a RESTful set of web services that
-// interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update,
-// and delete databases.
-type DatabaseOperationsClient struct {
- BaseClient
-}
-
-// NewDatabaseOperationsClient creates an instance of the DatabaseOperationsClient client.
-func NewDatabaseOperationsClient(subscriptionID string) DatabaseOperationsClient {
- return NewDatabaseOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewDatabaseOperationsClientWithBaseURI creates an instance of the DatabaseOperationsClient client.
-func NewDatabaseOperationsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseOperationsClient {
- return DatabaseOperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// Cancel cancels the asynchronous operation on the database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-// operationID - the operation identifier.
-func (client DatabaseOperationsClient) Cancel(ctx context.Context, resourceGroupName string, serverName string, databaseName string, operationID uuid.UUID) (result autorest.Response, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseOperationsClient.Cancel")
- defer func() {
- sc := -1
- if result.Response != nil {
- sc = result.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CancelPreparer(ctx, resourceGroupName, serverName, databaseName, operationID)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseOperationsClient", "Cancel", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.CancelSender(req)
- if err != nil {
- result.Response = resp
- err = autorest.NewErrorWithError(err, "sql.DatabaseOperationsClient", "Cancel", resp, "Failure sending request")
- return
- }
-
- result, err = client.CancelResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseOperationsClient", "Cancel", resp, "Failure responding to request")
- }
-
- return
-}
-
-// CancelPreparer prepares the Cancel request.
-func (client DatabaseOperationsClient) CancelPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, operationID uuid.UUID) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "operationId": autorest.Encode("path", operationID),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/operations/{operationId}/cancel", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// CancelSender sends the Cancel request. The method will close the
-// http.Response Body if it receives an error.
-func (client DatabaseOperationsClient) CancelSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// CancelResponder handles the response to the Cancel request. The method always
-// closes the http.Response Body.
-func (client DatabaseOperationsClient) CancelResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// ListByDatabase gets a list of operations performed on the database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-func (client DatabaseOperationsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseOperationListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseOperationsClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.dolr.Response.Response != nil {
- sc = result.dolr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByDatabaseNextResults
- req, err := client.ListByDatabasePreparer(ctx, resourceGroupName, serverName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseOperationsClient", "ListByDatabase", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.dolr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabaseOperationsClient", "ListByDatabase", resp, "Failure sending request")
- return
- }
-
- result.dolr, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseOperationsClient", "ListByDatabase", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByDatabasePreparer prepares the ListByDatabase request.
-func (client DatabaseOperationsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/operations", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByDatabaseSender sends the ListByDatabase request. The method will close the
-// http.Response Body if it receives an error.
-func (client DatabaseOperationsClient) ListByDatabaseSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByDatabaseResponder handles the response to the ListByDatabase request. The method always
-// closes the http.Response Body.
-func (client DatabaseOperationsClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseOperationListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByDatabaseNextResults retrieves the next set of results, if any.
-func (client DatabaseOperationsClient) listByDatabaseNextResults(ctx context.Context, lastResults DatabaseOperationListResult) (result DatabaseOperationListResult, err error) {
- req, err := lastResults.databaseOperationListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.DatabaseOperationsClient", "listByDatabaseNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.DatabaseOperationsClient", "listByDatabaseNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseOperationsClient", "listByDatabaseNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.
-func (client DatabaseOperationsClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseOperationListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseOperationsClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByDatabase(ctx, resourceGroupName, serverName, databaseName)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/databases.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/databases.go
deleted file mode 100644
index 3659eaa15829..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/databases.go
+++ /dev/null
@@ -1,1456 +0,0 @@
-package sql
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// DatabasesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact
-// with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and
-// delete databases.
-type DatabasesClient struct {
- BaseClient
-}
-
-// NewDatabasesClient creates an instance of the DatabasesClient client.
-func NewDatabasesClient(subscriptionID string) DatabasesClient {
- return NewDatabasesClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewDatabasesClientWithBaseURI creates an instance of the DatabasesClient client.
-func NewDatabasesClientWithBaseURI(baseURI string, subscriptionID string) DatabasesClient {
- return DatabasesClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateImportOperation creates an import operation that imports a bacpac into an existing database. The existing
-// database must be empty.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database to import into
-// parameters - the required parameters for importing a Bacpac into a database.
-func (client DatabasesClient) CreateImportOperation(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ImportExtensionRequest) (result DatabasesCreateImportOperationFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabasesClient.CreateImportOperation")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.ImportExtensionProperties", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.ImportExtensionProperties.OperationMode", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil {
- return result, validation.NewError("sql.DatabasesClient", "CreateImportOperation", err.Error())
- }
-
- req, err := client.CreateImportOperationPreparer(ctx, resourceGroupName, serverName, databaseName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "CreateImportOperation", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateImportOperationSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "CreateImportOperation", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateImportOperationPreparer prepares the CreateImportOperation request.
-func (client DatabasesClient) CreateImportOperationPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ImportExtensionRequest) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "extensionName": autorest.Encode("path", "import"),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2014-04-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.Sql/servers/{serverName}/databases/{databaseName}/extensions/{extensionName}", pathParameters),
- autorest.WithJSON(parameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// CreateImportOperationSender sends the CreateImportOperation request. The method will close the
-// http.Response Body if it receives an error.
-func (client DatabasesClient) CreateImportOperationSender(req *http.Request) (future DatabasesCreateImportOperationFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateImportOperationResponder handles the response to the CreateImportOperation request. The method always
-// closes the http.Response Body.
-func (client DatabasesClient) CreateImportOperationResponder(resp *http.Response) (result ImportExportResponse, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// CreateOrUpdate creates a new database or updates an existing database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-// parameters - the requested database resource state.
-func (client DatabasesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters Database) (result DatabasesCreateOrUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabasesClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.Sku", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.Sku.Name", Name: validation.Null, Rule: true, Chain: nil}}},
- {Target: "parameters.DatabaseProperties", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.DatabaseProperties.CurrentSku", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.DatabaseProperties.CurrentSku.Name", Name: validation.Null, Rule: true, Chain: nil}}},
- }}}}}); err != nil {
- return result, validation.NewError("sql.DatabasesClient", "CreateOrUpdate", err.Error())
- }
-
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, databaseName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateOrUpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "CreateOrUpdate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client DatabasesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters Database) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- parameters.Kind = nil
- parameters.ManagedBy = nil
- preparer := autorest.CreatePreparer(
- autorest.AsContentType("application/json; charset=utf-8"),
- autorest.AsPut(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 DatabasesClient) CreateOrUpdateSender(req *http.Request) (future DatabasesCreateOrUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client DatabasesClient) CreateOrUpdateResponder(resp *http.Response) (result Database, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// Delete deletes the database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-func (client DatabasesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabasesDeleteFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabasesClient.Delete")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, serverName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- result, err = client.DeleteSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Delete", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client DatabasesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}", 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 DatabasesClient) DeleteSender(req *http.Request) (future DatabasesDeleteFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client DatabasesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// Export exports a database to a bacpac.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database to be exported.
-// parameters - the required parameters for exporting a database.
-func (client DatabasesClient) Export(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ExportRequest) (result DatabasesExportFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabasesClient.Export")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.StorageKey", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.StorageURI", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.AdministratorLogin", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.AdministratorLoginPassword", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
- return result, validation.NewError("sql.DatabasesClient", "Export", err.Error())
- }
-
- req, err := client.ExportPreparer(ctx, resourceGroupName, serverName, databaseName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Export", nil, "Failure preparing request")
- return
- }
-
- result, err = client.ExportSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Export", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// ExportPreparer prepares the Export request.
-func (client DatabasesClient) ExportPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ExportRequest) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2014-04-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("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export", pathParameters),
- autorest.WithJSON(parameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ExportSender sends the Export request. The method will close the
-// http.Response Body if it receives an error.
-func (client DatabasesClient) ExportSender(req *http.Request) (future DatabasesExportFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// ExportResponder handles the response to the Export request. The method always
-// closes the http.Response Body.
-func (client DatabasesClient) ExportResponder(resp *http.Response) (result ImportExportResponse, 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}
- return
-}
-
-// Failover failovers a database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database to failover.
-func (client DatabasesClient) Failover(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabasesFailoverFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabasesClient.Failover")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.FailoverPreparer(ctx, resourceGroupName, serverName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Failover", nil, "Failure preparing request")
- return
- }
-
- result, err = client.FailoverSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Failover", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// FailoverPreparer prepares the Failover request.
-func (client DatabasesClient) FailoverPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/failover", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// FailoverSender sends the Failover request. The method will close the
-// http.Response Body if it receives an error.
-func (client DatabasesClient) FailoverSender(req *http.Request) (future DatabasesFailoverFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// FailoverResponder handles the response to the Failover request. The method always
-// closes the http.Response Body.
-func (client DatabasesClient) FailoverResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// Get gets a database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result Database, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabasesClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client DatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}", 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 DatabasesClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client DatabasesClient) GetResponder(resp *http.Response) (result Database, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// Import imports a bacpac into a new database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// parameters - the required parameters for importing a Bacpac into a database.
-func (client DatabasesClient) Import(ctx context.Context, resourceGroupName string, serverName string, parameters ImportRequest) (result DatabasesImportFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabasesClient.Import")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.DatabaseName", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.MaxSizeBytes", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
- return result, validation.NewError("sql.DatabasesClient", "Import", err.Error())
- }
-
- req, err := client.ImportPreparer(ctx, resourceGroupName, serverName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Import", nil, "Failure preparing request")
- return
- }
-
- result, err = client.ImportSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Import", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// ImportPreparer prepares the Import request.
-func (client DatabasesClient) ImportPreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ImportRequest) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2014-04-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("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/import", pathParameters),
- autorest.WithJSON(parameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ImportSender sends the Import request. The method will close the
-// http.Response Body if it receives an error.
-func (client DatabasesClient) ImportSender(req *http.Request) (future DatabasesImportFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// ImportResponder handles the response to the Import request. The method always
-// closes the http.Response Body.
-func (client DatabasesClient) ImportResponder(resp *http.Response) (result ImportExportResponse, 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}
- return
-}
-
-// ListByElasticPool gets a list of databases in an elastic pool.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// elasticPoolName - the name of the elastic pool.
-func (client DatabasesClient) ListByElasticPool(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result DatabaseListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabasesClient.ListByElasticPool")
- defer func() {
- sc := -1
- if result.dlr.Response.Response != nil {
- sc = result.dlr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByElasticPoolNextResults
- req, err := client.ListByElasticPoolPreparer(ctx, resourceGroupName, serverName, elasticPoolName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListByElasticPool", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByElasticPoolSender(req)
- if err != nil {
- result.dlr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListByElasticPool", resp, "Failure sending request")
- return
- }
-
- result.dlr, err = client.ListByElasticPoolResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListByElasticPool", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByElasticPoolPreparer prepares the ListByElasticPool request.
-func (client DatabasesClient) ListByElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "elasticPoolName": autorest.Encode("path", elasticPoolName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByElasticPoolSender sends the ListByElasticPool request. The method will close the
-// http.Response Body if it receives an error.
-func (client DatabasesClient) ListByElasticPoolSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByElasticPoolResponder handles the response to the ListByElasticPool request. The method always
-// closes the http.Response Body.
-func (client DatabasesClient) ListByElasticPoolResponder(resp *http.Response) (result DatabaseListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByElasticPoolNextResults retrieves the next set of results, if any.
-func (client DatabasesClient) listByElasticPoolNextResults(ctx context.Context, lastResults DatabaseListResult) (result DatabaseListResult, err error) {
- req, err := lastResults.databaseListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.DatabasesClient", "listByElasticPoolNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByElasticPoolSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.DatabasesClient", "listByElasticPoolNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByElasticPoolResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "listByElasticPoolNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByElasticPoolComplete enumerates all values, automatically crossing page boundaries as required.
-func (client DatabasesClient) ListByElasticPoolComplete(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result DatabaseListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabasesClient.ListByElasticPool")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByElasticPool(ctx, resourceGroupName, serverName, elasticPoolName)
- return
-}
-
-// ListByServer gets a list of databases.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result DatabaseListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabasesClient.ListByServer")
- defer func() {
- sc := -1
- if result.dlr.Response.Response != nil {
- sc = result.dlr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByServerNextResults
- req, err := client.ListByServerPreparer(ctx, resourceGroupName, serverName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListByServer", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByServerSender(req)
- if err != nil {
- result.dlr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListByServer", resp, "Failure sending request")
- return
- }
-
- result.dlr, err = client.ListByServerResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListByServer", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByServerPreparer prepares the ListByServer request.
-func (client DatabasesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByServerSender sends the ListByServer request. The method will close the
-// http.Response Body if it receives an error.
-func (client DatabasesClient) ListByServerSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByServerResponder handles the response to the ListByServer request. The method always
-// closes the http.Response Body.
-func (client DatabasesClient) ListByServerResponder(resp *http.Response) (result DatabaseListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByServerNextResults retrieves the next set of results, if any.
-func (client DatabasesClient) listByServerNextResults(ctx context.Context, lastResults DatabaseListResult) (result DatabaseListResult, err error) {
- req, err := lastResults.databaseListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.DatabasesClient", "listByServerNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByServerSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.DatabasesClient", "listByServerNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByServerResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "listByServerNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByServerComplete enumerates all values, automatically crossing page boundaries as required.
-func (client DatabasesClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result DatabaseListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabasesClient.ListByServer")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByServer(ctx, resourceGroupName, serverName)
- return
-}
-
-// ListMetricDefinitions returns database metric definitions.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-func (client DatabasesClient) ListMetricDefinitions(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result MetricDefinitionListResult, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabasesClient.ListMetricDefinitions")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.ListMetricDefinitionsPreparer(ctx, resourceGroupName, serverName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListMetricDefinitions", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListMetricDefinitionsSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListMetricDefinitions", resp, "Failure sending request")
- return
- }
-
- result, err = client.ListMetricDefinitionsResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListMetricDefinitions", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListMetricDefinitionsPreparer prepares the ListMetricDefinitions request.
-func (client DatabasesClient) ListMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2014-04-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.Sql/servers/{serverName}/databases/{databaseName}/metricDefinitions", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListMetricDefinitionsSender sends the ListMetricDefinitions request. The method will close the
-// http.Response Body if it receives an error.
-func (client DatabasesClient) ListMetricDefinitionsSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListMetricDefinitionsResponder handles the response to the ListMetricDefinitions request. The method always
-// closes the http.Response Body.
-func (client DatabasesClient) ListMetricDefinitionsResponder(resp *http.Response) (result MetricDefinitionListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListMetrics returns database metrics.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-// filter - an OData filter expression that describes a subset of metrics to return.
-func (client DatabasesClient) ListMetrics(ctx context.Context, resourceGroupName string, serverName string, databaseName string, filter string) (result MetricListResult, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabasesClient.ListMetrics")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.ListMetricsPreparer(ctx, resourceGroupName, serverName, databaseName, filter)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListMetrics", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListMetricsSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListMetrics", resp, "Failure sending request")
- return
- }
-
- result, err = client.ListMetricsResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "ListMetrics", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListMetricsPreparer prepares the ListMetrics request.
-func (client DatabasesClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, filter string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2014-04-01"
- queryParameters := map[string]interface{}{
- "$filter": autorest.Encode("query", filter),
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/metrics", 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 DatabasesClient) ListMetricsSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListMetricsResponder handles the response to the ListMetrics request. The method always
-// closes the http.Response Body.
-func (client DatabasesClient) ListMetricsResponder(resp *http.Response) (result MetricListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// Pause pauses a database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database to be paused.
-func (client DatabasesClient) Pause(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabasesPauseFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabasesClient.Pause")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.PausePreparer(ctx, resourceGroupName, serverName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Pause", nil, "Failure preparing request")
- return
- }
-
- result, err = client.PauseSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Pause", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// PausePreparer prepares the Pause request.
-func (client DatabasesClient) PausePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/pause", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// PauseSender sends the Pause request. The method will close the
-// http.Response Body if it receives an error.
-func (client DatabasesClient) PauseSender(req *http.Request) (future DatabasesPauseFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// PauseResponder handles the response to the Pause request. The method always
-// closes the http.Response Body.
-func (client DatabasesClient) PauseResponder(resp *http.Response) (result Database, 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}
- return
-}
-
-// Rename renames a database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database to rename.
-// parameters - the resource move definition for renaming this database.
-func (client DatabasesClient) Rename(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ResourceMoveDefinition) (result autorest.Response, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabasesClient.Rename")
- defer func() {
- sc := -1
- if result.Response != nil {
- sc = result.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.ID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
- return result, validation.NewError("sql.DatabasesClient", "Rename", err.Error())
- }
-
- req, err := client.RenamePreparer(ctx, resourceGroupName, serverName, databaseName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Rename", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.RenameSender(req)
- if err != nil {
- result.Response = resp
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Rename", resp, "Failure sending request")
- return
- }
-
- result, err = client.RenameResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Rename", resp, "Failure responding to request")
- }
-
- return
-}
-
-// RenamePreparer prepares the Rename request.
-func (client DatabasesClient) RenamePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ResourceMoveDefinition) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- 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("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/move", pathParameters),
- autorest.WithJSON(parameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// RenameSender sends the Rename request. The method will close the
-// http.Response Body if it receives an error.
-func (client DatabasesClient) RenameSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// RenameResponder handles the response to the Rename request. The method always
-// closes the http.Response Body.
-func (client DatabasesClient) RenameResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// Resume resumes a database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database to be resumed.
-func (client DatabasesClient) Resume(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabasesResumeFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabasesClient.Resume")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.ResumePreparer(ctx, resourceGroupName, serverName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Resume", nil, "Failure preparing request")
- return
- }
-
- result, err = client.ResumeSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Resume", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// ResumePreparer prepares the Resume request.
-func (client DatabasesClient) ResumePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/resume", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ResumeSender sends the Resume request. The method will close the
-// http.Response Body if it receives an error.
-func (client DatabasesClient) ResumeSender(req *http.Request) (future DatabasesResumeFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// ResumeResponder handles the response to the Resume request. The method always
-// closes the http.Response Body.
-func (client DatabasesClient) ResumeResponder(resp *http.Response) (result Database, 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}
- return
-}
-
-// Update updates an existing database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-// parameters - the requested database resource state.
-func (client DatabasesClient) Update(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseUpdate) (result DatabasesUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabasesClient.Update")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.UpdatePreparer(ctx, resourceGroupName, serverName, databaseName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Update", nil, "Failure preparing request")
- return
- }
-
- result, err = client.UpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "Update", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// UpdatePreparer prepares the Update request.
-func (client DatabasesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseUpdate) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- 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.Sql/servers/{serverName}/databases/{databaseName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 DatabasesClient) UpdateSender(req *http.Request) (future DatabasesUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// UpdateResponder handles the response to the Update request. The method always
-// closes the http.Response Body.
-func (client DatabasesClient) UpdateResponder(resp *http.Response) (result Database, 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}
- return
-}
-
-// UpgradeDataWarehouse upgrades a data warehouse.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database to be upgraded.
-func (client DatabasesClient) UpgradeDataWarehouse(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabasesUpgradeDataWarehouseFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabasesClient.UpgradeDataWarehouse")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.UpgradeDataWarehousePreparer(ctx, resourceGroupName, serverName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "UpgradeDataWarehouse", nil, "Failure preparing request")
- return
- }
-
- result, err = client.UpgradeDataWarehouseSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabasesClient", "UpgradeDataWarehouse", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// UpgradeDataWarehousePreparer prepares the UpgradeDataWarehouse request.
-func (client DatabasesClient) UpgradeDataWarehousePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/upgradeDataWarehouse", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// UpgradeDataWarehouseSender sends the UpgradeDataWarehouse request. The method will close the
-// http.Response Body if it receives an error.
-func (client DatabasesClient) UpgradeDataWarehouseSender(req *http.Request) (future DatabasesUpgradeDataWarehouseFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// UpgradeDataWarehouseResponder handles the response to the UpgradeDataWarehouse request. The method always
-// closes the http.Response Body.
-func (client DatabasesClient) UpgradeDataWarehouseResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
- autorest.ByClosing())
- result.Response = resp
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/databasethreatdetectionpolicies.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/databasethreatdetectionpolicies.go
deleted file mode 100644
index 9c858036755f..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/databasethreatdetectionpolicies.go
+++ /dev/null
@@ -1,210 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// DatabaseThreatDetectionPoliciesClient is the the Azure SQL Database management API provides a RESTful set of web
-// services that interact with Azure SQL Database services to manage your databases. The API enables you to create,
-// retrieve, update, and delete databases.
-type DatabaseThreatDetectionPoliciesClient struct {
- BaseClient
-}
-
-// NewDatabaseThreatDetectionPoliciesClient creates an instance of the DatabaseThreatDetectionPoliciesClient client.
-func NewDatabaseThreatDetectionPoliciesClient(subscriptionID string) DatabaseThreatDetectionPoliciesClient {
- return NewDatabaseThreatDetectionPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewDatabaseThreatDetectionPoliciesClientWithBaseURI creates an instance of the DatabaseThreatDetectionPoliciesClient
-// client.
-func NewDatabaseThreatDetectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseThreatDetectionPoliciesClient {
- return DatabaseThreatDetectionPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates a database's threat detection policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database for which database Threat Detection policy is defined.
-// parameters - the database Threat Detection policy.
-func (client DatabaseThreatDetectionPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseSecurityAlertPolicy) (result DatabaseSecurityAlertPolicy, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseThreatDetectionPoliciesClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, databaseName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseThreatDetectionPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.CreateOrUpdateSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabaseThreatDetectionPoliciesClient", "CreateOrUpdate", resp, "Failure sending request")
- return
- }
-
- result, err = client.CreateOrUpdateResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseThreatDetectionPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request")
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client DatabaseThreatDetectionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseSecurityAlertPolicy) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "securityAlertPolicyName": autorest.Encode("path", "default"),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2014-04-01"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- parameters.Kind = nil
- preparer := autorest.CreatePreparer(
- autorest.AsContentType("application/json; charset=utf-8"),
- autorest.AsPut(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 DatabaseThreatDetectionPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client DatabaseThreatDetectionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseSecurityAlertPolicy, 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
-}
-
-// Get gets a database's threat detection policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database for which database Threat Detection policy is defined.
-func (client DatabaseThreatDetectionPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseSecurityAlertPolicy, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseThreatDetectionPoliciesClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseThreatDetectionPoliciesClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabaseThreatDetectionPoliciesClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseThreatDetectionPoliciesClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client DatabaseThreatDetectionPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "securityAlertPolicyName": autorest.Encode("path", "default"),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2014-04-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.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", 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 DatabaseThreatDetectionPoliciesClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client DatabaseThreatDetectionPoliciesClient) GetResponder(resp *http.Response) (result DatabaseSecurityAlertPolicy, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/databasevulnerabilityassessmentrulebaselines.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/databasevulnerabilityassessmentrulebaselines.go
deleted file mode 100644
index c4de2c1ee8e8..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/databasevulnerabilityassessmentrulebaselines.go
+++ /dev/null
@@ -1,313 +0,0 @@
-package sql
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// DatabaseVulnerabilityAssessmentRuleBaselinesClient is the the Azure SQL Database management API provides a RESTful
-// set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to
-// create, retrieve, update, and delete databases.
-type DatabaseVulnerabilityAssessmentRuleBaselinesClient struct {
- BaseClient
-}
-
-// NewDatabaseVulnerabilityAssessmentRuleBaselinesClient creates an instance of the
-// DatabaseVulnerabilityAssessmentRuleBaselinesClient client.
-func NewDatabaseVulnerabilityAssessmentRuleBaselinesClient(subscriptionID string) DatabaseVulnerabilityAssessmentRuleBaselinesClient {
- return NewDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI creates an instance of the
-// DatabaseVulnerabilityAssessmentRuleBaselinesClient client.
-func NewDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseVulnerabilityAssessmentRuleBaselinesClient {
- return DatabaseVulnerabilityAssessmentRuleBaselinesClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates a database's vulnerability assessment rule baseline.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database for which the vulnerability assessment rule baseline is defined.
-// ruleID - the vulnerability assessment rule ID.
-// baselineName - the name of the vulnerability assessment rule baseline (default implies a baseline on a
-// database level rule and master for server level rule).
-// parameters - the requested rule baseline resource.
-func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName, parameters DatabaseVulnerabilityAssessmentRuleBaseline) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseVulnerabilityAssessmentRuleBaselinesClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.DatabaseVulnerabilityAssessmentRuleBaselineProperties", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.DatabaseVulnerabilityAssessmentRuleBaselineProperties.BaselineResults", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil {
- return result, validation.NewError("sql.DatabaseVulnerabilityAssessmentRuleBaselinesClient", "CreateOrUpdate", err.Error())
- }
-
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, databaseName, ruleID, baselineName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentRuleBaselinesClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.CreateOrUpdateSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentRuleBaselinesClient", "CreateOrUpdate", resp, "Failure sending request")
- return
- }
-
- result, err = client.CreateOrUpdateResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentRuleBaselinesClient", "CreateOrUpdate", resp, "Failure responding to request")
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName, parameters DatabaseVulnerabilityAssessmentRuleBaseline) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "baselineName": autorest.Encode("path", baselineName),
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "ruleId": autorest.Encode("path", ruleID),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-03-01-preview"
- 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.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 DatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentRuleBaseline, 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 removes the database's vulnerability assessment rule baseline.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database for which the vulnerability assessment rule baseline is defined.
-// ruleID - the vulnerability assessment rule ID.
-// baselineName - the name of the vulnerability assessment rule baseline (default implies a baseline on a
-// database level rule and master for server level rule).
-func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (result autorest.Response, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseVulnerabilityAssessmentRuleBaselinesClient.Delete")
- defer func() {
- sc := -1
- if result.Response != nil {
- sc = result.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, serverName, databaseName, ruleID, baselineName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentRuleBaselinesClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.DeleteSender(req)
- if err != nil {
- result.Response = resp
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentRuleBaselinesClient", "Delete", resp, "Failure sending request")
- return
- }
-
- result, err = client.DeleteResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentRuleBaselinesClient", "Delete", resp, "Failure responding to request")
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "baselineName": autorest.Encode("path", baselineName),
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "ruleId": autorest.Encode("path", ruleID),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", 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 DatabaseVulnerabilityAssessmentRuleBaselinesClient) DeleteSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) 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 a database's vulnerability assessment rule baseline.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database for which the vulnerability assessment rule baseline is defined.
-// ruleID - the vulnerability assessment rule ID.
-// baselineName - the name of the vulnerability assessment rule baseline (default implies a baseline on a
-// database level rule and master for server level rule).
-func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseVulnerabilityAssessmentRuleBaselinesClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, databaseName, ruleID, baselineName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentRuleBaselinesClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentRuleBaselinesClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentRuleBaselinesClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "baselineName": autorest.Encode("path", baselineName),
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "ruleId": autorest.Encode("path", ruleID),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", 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 DatabaseVulnerabilityAssessmentRuleBaselinesClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) GetResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/databasevulnerabilityassessments.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/databasevulnerabilityassessments.go
deleted file mode 100644
index e953704645ce..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/databasevulnerabilityassessments.go
+++ /dev/null
@@ -1,407 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// DatabaseVulnerabilityAssessmentsClient is the the Azure SQL Database management API provides a RESTful set of web
-// services that interact with Azure SQL Database services to manage your databases. The API enables you to create,
-// retrieve, update, and delete databases.
-type DatabaseVulnerabilityAssessmentsClient struct {
- BaseClient
-}
-
-// NewDatabaseVulnerabilityAssessmentsClient creates an instance of the DatabaseVulnerabilityAssessmentsClient client.
-func NewDatabaseVulnerabilityAssessmentsClient(subscriptionID string) DatabaseVulnerabilityAssessmentsClient {
- return NewDatabaseVulnerabilityAssessmentsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewDatabaseVulnerabilityAssessmentsClientWithBaseURI creates an instance of the
-// DatabaseVulnerabilityAssessmentsClient client.
-func NewDatabaseVulnerabilityAssessmentsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseVulnerabilityAssessmentsClient {
- return DatabaseVulnerabilityAssessmentsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates the database's vulnerability assessment.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database for which the vulnerability assessment is defined.
-// parameters - the requested resource.
-func (client DatabaseVulnerabilityAssessmentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseVulnerabilityAssessment) (result DatabaseVulnerabilityAssessment, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseVulnerabilityAssessmentsClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, databaseName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.CreateOrUpdateSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "CreateOrUpdate", resp, "Failure sending request")
- return
- }
-
- result, err = client.CreateOrUpdateResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "CreateOrUpdate", resp, "Failure responding to request")
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client DatabaseVulnerabilityAssessmentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseVulnerabilityAssessment) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-03-01-preview"
- 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.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 DatabaseVulnerabilityAssessmentsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client DatabaseVulnerabilityAssessmentsClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseVulnerabilityAssessment, 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 removes the database's vulnerability assessment.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database for which the vulnerability assessment is defined.
-func (client DatabaseVulnerabilityAssessmentsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result autorest.Response, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseVulnerabilityAssessmentsClient.Delete")
- defer func() {
- sc := -1
- if result.Response != nil {
- sc = result.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, serverName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.DeleteSender(req)
- if err != nil {
- result.Response = resp
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "Delete", resp, "Failure sending request")
- return
- }
-
- result, err = client.DeleteResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "Delete", resp, "Failure responding to request")
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client DatabaseVulnerabilityAssessmentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", 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 DatabaseVulnerabilityAssessmentsClient) DeleteSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client DatabaseVulnerabilityAssessmentsClient) 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 database's vulnerability assessment.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database for which the vulnerability assessment is defined.
-func (client DatabaseVulnerabilityAssessmentsClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseVulnerabilityAssessment, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseVulnerabilityAssessmentsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client DatabaseVulnerabilityAssessmentsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", 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 DatabaseVulnerabilityAssessmentsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client DatabaseVulnerabilityAssessmentsClient) GetResponder(resp *http.Response) (result DatabaseVulnerabilityAssessment, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByDatabase lists the vulnerability assessment policies associated with a database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database for which the vulnerability assessment policies are defined.
-func (client DatabaseVulnerabilityAssessmentsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseVulnerabilityAssessmentListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseVulnerabilityAssessmentsClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.dvalr.Response.Response != nil {
- sc = result.dvalr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByDatabaseNextResults
- req, err := client.ListByDatabasePreparer(ctx, resourceGroupName, serverName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "ListByDatabase", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.dvalr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "ListByDatabase", resp, "Failure sending request")
- return
- }
-
- result.dvalr, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "ListByDatabase", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByDatabasePreparer prepares the ListByDatabase request.
-func (client DatabaseVulnerabilityAssessmentsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByDatabaseSender sends the ListByDatabase request. The method will close the
-// http.Response Body if it receives an error.
-func (client DatabaseVulnerabilityAssessmentsClient) ListByDatabaseSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByDatabaseResponder handles the response to the ListByDatabase request. The method always
-// closes the http.Response Body.
-func (client DatabaseVulnerabilityAssessmentsClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByDatabaseNextResults retrieves the next set of results, if any.
-func (client DatabaseVulnerabilityAssessmentsClient) listByDatabaseNextResults(ctx context.Context, lastResults DatabaseVulnerabilityAssessmentListResult) (result DatabaseVulnerabilityAssessmentListResult, err error) {
- req, err := lastResults.databaseVulnerabilityAssessmentListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "listByDatabaseNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "listByDatabaseNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentsClient", "listByDatabaseNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.
-func (client DatabaseVulnerabilityAssessmentsClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseVulnerabilityAssessmentListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseVulnerabilityAssessmentsClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByDatabase(ctx, resourceGroupName, serverName, databaseName)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/databasevulnerabilityassessmentscans.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/databasevulnerabilityassessmentscans.go
deleted file mode 100644
index c373cd98d049..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/databasevulnerabilityassessmentscans.go
+++ /dev/null
@@ -1,412 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// DatabaseVulnerabilityAssessmentScansClient is the the Azure SQL Database management API provides a RESTful set of
-// web services that interact with Azure SQL Database services to manage your databases. The API enables you to create,
-// retrieve, update, and delete databases.
-type DatabaseVulnerabilityAssessmentScansClient struct {
- BaseClient
-}
-
-// NewDatabaseVulnerabilityAssessmentScansClient creates an instance of the DatabaseVulnerabilityAssessmentScansClient
-// client.
-func NewDatabaseVulnerabilityAssessmentScansClient(subscriptionID string) DatabaseVulnerabilityAssessmentScansClient {
- return NewDatabaseVulnerabilityAssessmentScansClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewDatabaseVulnerabilityAssessmentScansClientWithBaseURI creates an instance of the
-// DatabaseVulnerabilityAssessmentScansClient client.
-func NewDatabaseVulnerabilityAssessmentScansClientWithBaseURI(baseURI string, subscriptionID string) DatabaseVulnerabilityAssessmentScansClient {
- return DatabaseVulnerabilityAssessmentScansClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// Export convert an existing scan result to a human readable format. If already exists nothing happens
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the scanned database.
-// scanID - the vulnerability assessment scan Id.
-func (client DatabaseVulnerabilityAssessmentScansClient) Export(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string) (result DatabaseVulnerabilityAssessmentScansExport, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseVulnerabilityAssessmentScansClient.Export")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.ExportPreparer(ctx, resourceGroupName, serverName, databaseName, scanID)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "Export", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ExportSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "Export", resp, "Failure sending request")
- return
- }
-
- result, err = client.ExportResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "Export", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ExportPreparer prepares the Export request.
-func (client DatabaseVulnerabilityAssessmentScansClient) ExportPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "scanId": autorest.Encode("path", scanID),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/export", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ExportSender sends the Export request. The method will close the
-// http.Response Body if it receives an error.
-func (client DatabaseVulnerabilityAssessmentScansClient) ExportSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ExportResponder handles the response to the Export request. The method always
-// closes the http.Response Body.
-func (client DatabaseVulnerabilityAssessmentScansClient) ExportResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentScansExport, 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
-}
-
-// Get gets a vulnerability assessment scan record of a database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-// scanID - the vulnerability assessment scan Id of the scan to retrieve.
-func (client DatabaseVulnerabilityAssessmentScansClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string) (result VulnerabilityAssessmentScanRecord, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseVulnerabilityAssessmentScansClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, databaseName, scanID)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client DatabaseVulnerabilityAssessmentScansClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "scanId": autorest.Encode("path", scanID),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", 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 DatabaseVulnerabilityAssessmentScansClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client DatabaseVulnerabilityAssessmentScansClient) GetResponder(resp *http.Response) (result VulnerabilityAssessmentScanRecord, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// InitiateScan executes a Vulnerability Assessment database scan.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-// scanID - the vulnerability assessment scan Id of the scan to retrieve.
-func (client DatabaseVulnerabilityAssessmentScansClient) InitiateScan(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string) (result DatabaseVulnerabilityAssessmentScansInitiateScanFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseVulnerabilityAssessmentScansClient.InitiateScan")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.InitiateScanPreparer(ctx, resourceGroupName, serverName, databaseName, scanID)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "InitiateScan", nil, "Failure preparing request")
- return
- }
-
- result, err = client.InitiateScanSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "InitiateScan", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// InitiateScanPreparer prepares the InitiateScan request.
-func (client DatabaseVulnerabilityAssessmentScansClient) InitiateScanPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "scanId": autorest.Encode("path", scanID),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// InitiateScanSender sends the InitiateScan request. The method will close the
-// http.Response Body if it receives an error.
-func (client DatabaseVulnerabilityAssessmentScansClient) InitiateScanSender(req *http.Request) (future DatabaseVulnerabilityAssessmentScansInitiateScanFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// InitiateScanResponder handles the response to the InitiateScan request. The method always
-// closes the http.Response Body.
-func (client DatabaseVulnerabilityAssessmentScansClient) InitiateScanResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// ListByDatabase lists the vulnerability assessment scans of a database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-func (client DatabaseVulnerabilityAssessmentScansClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result VulnerabilityAssessmentScanRecordListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseVulnerabilityAssessmentScansClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.vasrlr.Response.Response != nil {
- sc = result.vasrlr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByDatabaseNextResults
- req, err := client.ListByDatabasePreparer(ctx, resourceGroupName, serverName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "ListByDatabase", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.vasrlr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "ListByDatabase", resp, "Failure sending request")
- return
- }
-
- result.vasrlr, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "ListByDatabase", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByDatabasePreparer prepares the ListByDatabase request.
-func (client DatabaseVulnerabilityAssessmentScansClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByDatabaseSender sends the ListByDatabase request. The method will close the
-// http.Response Body if it receives an error.
-func (client DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByDatabaseResponder handles the response to the ListByDatabase request. The method always
-// closes the http.Response Body.
-func (client DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseResponder(resp *http.Response) (result VulnerabilityAssessmentScanRecordListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByDatabaseNextResults retrieves the next set of results, if any.
-func (client DatabaseVulnerabilityAssessmentScansClient) listByDatabaseNextResults(ctx context.Context, lastResults VulnerabilityAssessmentScanRecordListResult) (result VulnerabilityAssessmentScanRecordListResult, err error) {
- req, err := lastResults.vulnerabilityAssessmentScanRecordListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "listByDatabaseNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "listByDatabaseNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.DatabaseVulnerabilityAssessmentScansClient", "listByDatabaseNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.
-func (client DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result VulnerabilityAssessmentScanRecordListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseVulnerabilityAssessmentScansClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByDatabase(ctx, resourceGroupName, serverName, databaseName)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/elasticpooldatabaseactivities.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/elasticpooldatabaseactivities.go
deleted file mode 100644
index dd0e955db87f..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/elasticpooldatabaseactivities.go
+++ /dev/null
@@ -1,124 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// ElasticPoolDatabaseActivitiesClient is the the Azure SQL Database management API provides a RESTful set of web
-// services that interact with Azure SQL Database services to manage your databases. The API enables you to create,
-// retrieve, update, and delete databases.
-type ElasticPoolDatabaseActivitiesClient struct {
- BaseClient
-}
-
-// NewElasticPoolDatabaseActivitiesClient creates an instance of the ElasticPoolDatabaseActivitiesClient client.
-func NewElasticPoolDatabaseActivitiesClient(subscriptionID string) ElasticPoolDatabaseActivitiesClient {
- return NewElasticPoolDatabaseActivitiesClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewElasticPoolDatabaseActivitiesClientWithBaseURI creates an instance of the ElasticPoolDatabaseActivitiesClient
-// client.
-func NewElasticPoolDatabaseActivitiesClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolDatabaseActivitiesClient {
- return ElasticPoolDatabaseActivitiesClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// ListByElasticPool returns activity on databases inside of an elastic pool.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// elasticPoolName - the name of the elastic pool.
-func (client ElasticPoolDatabaseActivitiesClient) ListByElasticPool(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPoolDatabaseActivityListResult, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ElasticPoolDatabaseActivitiesClient.ListByElasticPool")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.ListByElasticPoolPreparer(ctx, resourceGroupName, serverName, elasticPoolName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolDatabaseActivitiesClient", "ListByElasticPool", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByElasticPoolSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolDatabaseActivitiesClient", "ListByElasticPool", resp, "Failure sending request")
- return
- }
-
- result, err = client.ListByElasticPoolResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolDatabaseActivitiesClient", "ListByElasticPool", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByElasticPoolPreparer prepares the ListByElasticPool request.
-func (client ElasticPoolDatabaseActivitiesClient) ListByElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "elasticPoolName": autorest.Encode("path", elasticPoolName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2014-04-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.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolDatabaseActivity", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByElasticPoolSender sends the ListByElasticPool request. The method will close the
-// http.Response Body if it receives an error.
-func (client ElasticPoolDatabaseActivitiesClient) ListByElasticPoolSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByElasticPoolResponder handles the response to the ListByElasticPool request. The method always
-// closes the http.Response Body.
-func (client ElasticPoolDatabaseActivitiesClient) ListByElasticPoolResponder(resp *http.Response) (result ElasticPoolDatabaseActivityListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/elasticpooloperations.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/elasticpooloperations.go
deleted file mode 100644
index c1decafe82ff..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/elasticpooloperations.go
+++ /dev/null
@@ -1,241 +0,0 @@
-package sql
-
-// 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/tracing"
- "github.com/satori/go.uuid"
- "net/http"
-)
-
-// ElasticPoolOperationsClient is the the Azure SQL Database management API provides a RESTful set of web services that
-// interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update,
-// and delete databases.
-type ElasticPoolOperationsClient struct {
- BaseClient
-}
-
-// NewElasticPoolOperationsClient creates an instance of the ElasticPoolOperationsClient client.
-func NewElasticPoolOperationsClient(subscriptionID string) ElasticPoolOperationsClient {
- return NewElasticPoolOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewElasticPoolOperationsClientWithBaseURI creates an instance of the ElasticPoolOperationsClient client.
-func NewElasticPoolOperationsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolOperationsClient {
- return ElasticPoolOperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// Cancel cancels the asynchronous operation on the elastic pool.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// operationID - the operation identifier.
-func (client ElasticPoolOperationsClient) Cancel(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, operationID uuid.UUID) (result autorest.Response, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ElasticPoolOperationsClient.Cancel")
- defer func() {
- sc := -1
- if result.Response != nil {
- sc = result.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CancelPreparer(ctx, resourceGroupName, serverName, elasticPoolName, operationID)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolOperationsClient", "Cancel", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.CancelSender(req)
- if err != nil {
- result.Response = resp
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolOperationsClient", "Cancel", resp, "Failure sending request")
- return
- }
-
- result, err = client.CancelResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolOperationsClient", "Cancel", resp, "Failure responding to request")
- }
-
- return
-}
-
-// CancelPreparer prepares the Cancel request.
-func (client ElasticPoolOperationsClient) CancelPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, operationID uuid.UUID) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "elasticPoolName": autorest.Encode("path", elasticPoolName),
- "operationId": autorest.Encode("path", operationID),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/operations/{operationId}/cancel", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// CancelSender sends the Cancel request. The method will close the
-// http.Response Body if it receives an error.
-func (client ElasticPoolOperationsClient) CancelSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// CancelResponder handles the response to the Cancel request. The method always
-// closes the http.Response Body.
-func (client ElasticPoolOperationsClient) CancelResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// ListByElasticPool gets a list of operations performed on the elastic pool.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-func (client ElasticPoolOperationsClient) ListByElasticPool(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPoolOperationListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ElasticPoolOperationsClient.ListByElasticPool")
- defer func() {
- sc := -1
- if result.epolr.Response.Response != nil {
- sc = result.epolr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByElasticPoolNextResults
- req, err := client.ListByElasticPoolPreparer(ctx, resourceGroupName, serverName, elasticPoolName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolOperationsClient", "ListByElasticPool", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByElasticPoolSender(req)
- if err != nil {
- result.epolr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolOperationsClient", "ListByElasticPool", resp, "Failure sending request")
- return
- }
-
- result.epolr, err = client.ListByElasticPoolResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolOperationsClient", "ListByElasticPool", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByElasticPoolPreparer prepares the ListByElasticPool request.
-func (client ElasticPoolOperationsClient) ListByElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "elasticPoolName": autorest.Encode("path", elasticPoolName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/operations", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByElasticPoolSender sends the ListByElasticPool request. The method will close the
-// http.Response Body if it receives an error.
-func (client ElasticPoolOperationsClient) ListByElasticPoolSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByElasticPoolResponder handles the response to the ListByElasticPool request. The method always
-// closes the http.Response Body.
-func (client ElasticPoolOperationsClient) ListByElasticPoolResponder(resp *http.Response) (result ElasticPoolOperationListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByElasticPoolNextResults retrieves the next set of results, if any.
-func (client ElasticPoolOperationsClient) listByElasticPoolNextResults(ctx context.Context, lastResults ElasticPoolOperationListResult) (result ElasticPoolOperationListResult, err error) {
- req, err := lastResults.elasticPoolOperationListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.ElasticPoolOperationsClient", "listByElasticPoolNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByElasticPoolSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.ElasticPoolOperationsClient", "listByElasticPoolNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByElasticPoolResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolOperationsClient", "listByElasticPoolNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByElasticPoolComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ElasticPoolOperationsClient) ListByElasticPoolComplete(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPoolOperationListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ElasticPoolOperationsClient.ListByElasticPool")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByElasticPool(ctx, resourceGroupName, serverName, elasticPoolName)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/elasticpools.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/elasticpools.go
deleted file mode 100644
index 6504d43ea8af..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/elasticpools.go
+++ /dev/null
@@ -1,738 +0,0 @@
-package sql
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// ElasticPoolsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact
-// with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and
-// delete databases.
-type ElasticPoolsClient struct {
- BaseClient
-}
-
-// NewElasticPoolsClient creates an instance of the ElasticPoolsClient client.
-func NewElasticPoolsClient(subscriptionID string) ElasticPoolsClient {
- return NewElasticPoolsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewElasticPoolsClientWithBaseURI creates an instance of the ElasticPoolsClient client.
-func NewElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolsClient {
- return ElasticPoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates an elastic pool.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// elasticPoolName - the name of the elastic pool.
-// parameters - the elastic pool parameters.
-func (client ElasticPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, parameters ElasticPool) (result ElasticPoolsCreateOrUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ElasticPoolsClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.Sku", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.Sku.Name", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil {
- return result, validation.NewError("sql.ElasticPoolsClient", "CreateOrUpdate", err.Error())
- }
-
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, elasticPoolName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateOrUpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client ElasticPoolsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, parameters ElasticPool) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "elasticPoolName": autorest.Encode("path", elasticPoolName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- parameters.Kind = nil
- preparer := autorest.CreatePreparer(
- autorest.AsContentType("application/json; charset=utf-8"),
- autorest.AsPut(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ElasticPoolsClient) CreateOrUpdateSender(req *http.Request) (future ElasticPoolsCreateOrUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client ElasticPoolsClient) CreateOrUpdateResponder(resp *http.Response) (result ElasticPool, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// Delete deletes an elastic pool.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// elasticPoolName - the name of the elastic pool.
-func (client ElasticPoolsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPoolsDeleteFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ElasticPoolsClient.Delete")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, serverName, elasticPoolName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- result, err = client.DeleteSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "Delete", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client ElasticPoolsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "elasticPoolName": autorest.Encode("path", elasticPoolName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}", 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 ElasticPoolsClient) DeleteSender(req *http.Request) (future ElasticPoolsDeleteFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client ElasticPoolsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// Failover failovers an elastic pool.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// elasticPoolName - the name of the elastic pool to failover.
-func (client ElasticPoolsClient) Failover(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPoolsFailoverFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ElasticPoolsClient.Failover")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.FailoverPreparer(ctx, resourceGroupName, serverName, elasticPoolName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "Failover", nil, "Failure preparing request")
- return
- }
-
- result, err = client.FailoverSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "Failover", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// FailoverPreparer prepares the Failover request.
-func (client ElasticPoolsClient) FailoverPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "elasticPoolName": autorest.Encode("path", elasticPoolName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/failover", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// FailoverSender sends the Failover request. The method will close the
-// http.Response Body if it receives an error.
-func (client ElasticPoolsClient) FailoverSender(req *http.Request) (future ElasticPoolsFailoverFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// FailoverResponder handles the response to the Failover request. The method always
-// closes the http.Response Body.
-func (client ElasticPoolsClient) FailoverResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// Get gets an elastic pool.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// elasticPoolName - the name of the elastic pool.
-func (client ElasticPoolsClient) Get(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPool, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ElasticPoolsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, elasticPoolName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client ElasticPoolsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "elasticPoolName": autorest.Encode("path", elasticPoolName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}", 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 ElasticPoolsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client ElasticPoolsClient) GetResponder(resp *http.Response) (result ElasticPool, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByServer gets all elastic pools in a server.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// skip - the number of elements in the collection to skip.
-func (client ElasticPoolsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string, skip *int32) (result ElasticPoolListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ElasticPoolsClient.ListByServer")
- defer func() {
- sc := -1
- if result.eplr.Response.Response != nil {
- sc = result.eplr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByServerNextResults
- req, err := client.ListByServerPreparer(ctx, resourceGroupName, serverName, skip)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListByServer", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByServerSender(req)
- if err != nil {
- result.eplr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListByServer", resp, "Failure sending request")
- return
- }
-
- result.eplr, err = client.ListByServerResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListByServer", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByServerPreparer prepares the ListByServer request.
-func (client ElasticPoolsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string, skip *int32) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
- if skip != nil {
- queryParameters["$skip"] = autorest.Encode("query", *skip)
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByServerSender sends the ListByServer request. The method will close the
-// http.Response Body if it receives an error.
-func (client ElasticPoolsClient) ListByServerSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByServerResponder handles the response to the ListByServer request. The method always
-// closes the http.Response Body.
-func (client ElasticPoolsClient) ListByServerResponder(resp *http.Response) (result ElasticPoolListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByServerNextResults retrieves the next set of results, if any.
-func (client ElasticPoolsClient) listByServerNextResults(ctx context.Context, lastResults ElasticPoolListResult) (result ElasticPoolListResult, err error) {
- req, err := lastResults.elasticPoolListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "listByServerNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByServerSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "listByServerNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByServerResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "listByServerNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByServerComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ElasticPoolsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string, skip *int32) (result ElasticPoolListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ElasticPoolsClient.ListByServer")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByServer(ctx, resourceGroupName, serverName, skip)
- return
-}
-
-// ListMetricDefinitions returns elastic pool metric definitions.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// elasticPoolName - the name of the elastic pool.
-func (client ElasticPoolsClient) ListMetricDefinitions(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result MetricDefinitionListResult, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ElasticPoolsClient.ListMetricDefinitions")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.ListMetricDefinitionsPreparer(ctx, resourceGroupName, serverName, elasticPoolName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListMetricDefinitions", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListMetricDefinitionsSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListMetricDefinitions", resp, "Failure sending request")
- return
- }
-
- result, err = client.ListMetricDefinitionsResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListMetricDefinitions", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListMetricDefinitionsPreparer prepares the ListMetricDefinitions request.
-func (client ElasticPoolsClient) ListMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "elasticPoolName": autorest.Encode("path", elasticPoolName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2014-04-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.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/metricDefinitions", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListMetricDefinitionsSender sends the ListMetricDefinitions request. The method will close the
-// http.Response Body if it receives an error.
-func (client ElasticPoolsClient) ListMetricDefinitionsSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListMetricDefinitionsResponder handles the response to the ListMetricDefinitions request. The method always
-// closes the http.Response Body.
-func (client ElasticPoolsClient) ListMetricDefinitionsResponder(resp *http.Response) (result MetricDefinitionListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListMetrics returns elastic pool metrics.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// elasticPoolName - the name of the elastic pool.
-// filter - an OData filter expression that describes a subset of metrics to return.
-func (client ElasticPoolsClient) ListMetrics(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, filter string) (result MetricListResult, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ElasticPoolsClient.ListMetrics")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.ListMetricsPreparer(ctx, resourceGroupName, serverName, elasticPoolName, filter)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListMetrics", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListMetricsSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListMetrics", resp, "Failure sending request")
- return
- }
-
- result, err = client.ListMetricsResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "ListMetrics", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListMetricsPreparer prepares the ListMetrics request.
-func (client ElasticPoolsClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, filter string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "elasticPoolName": autorest.Encode("path", elasticPoolName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2014-04-01"
- queryParameters := map[string]interface{}{
- "$filter": autorest.Encode("query", filter),
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/metrics", 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 ElasticPoolsClient) ListMetricsSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListMetricsResponder handles the response to the ListMetrics request. The method always
-// closes the http.Response Body.
-func (client ElasticPoolsClient) ListMetricsResponder(resp *http.Response) (result MetricListResult, 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 an elastic pool.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// elasticPoolName - the name of the elastic pool.
-// parameters - the elastic pool update parameters.
-func (client ElasticPoolsClient) Update(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, parameters ElasticPoolUpdate) (result ElasticPoolsUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ElasticPoolsClient.Update")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.UpdatePreparer(ctx, resourceGroupName, serverName, elasticPoolName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "Update", nil, "Failure preparing request")
- return
- }
-
- result, err = client.UpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ElasticPoolsClient", "Update", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// UpdatePreparer prepares the Update request.
-func (client ElasticPoolsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, parameters ElasticPoolUpdate) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "elasticPoolName": autorest.Encode("path", elasticPoolName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- 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.Sql/servers/{serverName}/elasticPools/{elasticPoolName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ElasticPoolsClient) UpdateSender(req *http.Request) (future ElasticPoolsUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// UpdateResponder handles the response to the Update request. The method always
-// closes the http.Response Body.
-func (client ElasticPoolsClient) UpdateResponder(resp *http.Response) (result ElasticPool, 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}
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/encryptionprotectors.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/encryptionprotectors.go
deleted file mode 100644
index 4bf6cc3947ab..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/encryptionprotectors.go
+++ /dev/null
@@ -1,400 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// EncryptionProtectorsClient is the the Azure SQL Database management API provides a RESTful set of web services that
-// interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update,
-// and delete databases.
-type EncryptionProtectorsClient struct {
- BaseClient
-}
-
-// NewEncryptionProtectorsClient creates an instance of the EncryptionProtectorsClient client.
-func NewEncryptionProtectorsClient(subscriptionID string) EncryptionProtectorsClient {
- return NewEncryptionProtectorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewEncryptionProtectorsClientWithBaseURI creates an instance of the EncryptionProtectorsClient client.
-func NewEncryptionProtectorsClientWithBaseURI(baseURI string, subscriptionID string) EncryptionProtectorsClient {
- return EncryptionProtectorsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate updates an existing encryption protector.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// parameters - the requested encryption protector resource state.
-func (client EncryptionProtectorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, parameters EncryptionProtector) (result EncryptionProtectorsCreateOrUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/EncryptionProtectorsClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateOrUpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client EncryptionProtectorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters EncryptionProtector) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "encryptionProtectorName": autorest.Encode("path", "current"),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2015-05-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- parameters.Kind = nil
- parameters.Location = nil
- preparer := autorest.CreatePreparer(
- autorest.AsContentType("application/json; charset=utf-8"),
- autorest.AsPut(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 EncryptionProtectorsClient) CreateOrUpdateSender(req *http.Request) (future EncryptionProtectorsCreateOrUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client EncryptionProtectorsClient) CreateOrUpdateResponder(resp *http.Response) (result EncryptionProtector, 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}
- return
-}
-
-// Get gets a server encryption protector.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-func (client EncryptionProtectorsClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result EncryptionProtector, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/EncryptionProtectorsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client EncryptionProtectorsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "encryptionProtectorName": autorest.Encode("path", "current"),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2015-05-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}", 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 EncryptionProtectorsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client EncryptionProtectorsClient) GetResponder(resp *http.Response) (result EncryptionProtector, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByServer gets a list of server encryption protectors
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-func (client EncryptionProtectorsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result EncryptionProtectorListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/EncryptionProtectorsClient.ListByServer")
- defer func() {
- sc := -1
- if result.eplr.Response.Response != nil {
- sc = result.eplr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByServerNextResults
- req, err := client.ListByServerPreparer(ctx, resourceGroupName, serverName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "ListByServer", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByServerSender(req)
- if err != nil {
- result.eplr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "ListByServer", resp, "Failure sending request")
- return
- }
-
- result.eplr, err = client.ListByServerResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "ListByServer", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByServerPreparer prepares the ListByServer request.
-func (client EncryptionProtectorsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2015-05-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByServerSender sends the ListByServer request. The method will close the
-// http.Response Body if it receives an error.
-func (client EncryptionProtectorsClient) ListByServerSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByServerResponder handles the response to the ListByServer request. The method always
-// closes the http.Response Body.
-func (client EncryptionProtectorsClient) ListByServerResponder(resp *http.Response) (result EncryptionProtectorListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByServerNextResults retrieves the next set of results, if any.
-func (client EncryptionProtectorsClient) listByServerNextResults(ctx context.Context, lastResults EncryptionProtectorListResult) (result EncryptionProtectorListResult, err error) {
- req, err := lastResults.encryptionProtectorListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "listByServerNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByServerSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "listByServerNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByServerResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "listByServerNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByServerComplete enumerates all values, automatically crossing page boundaries as required.
-func (client EncryptionProtectorsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result EncryptionProtectorListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/EncryptionProtectorsClient.ListByServer")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByServer(ctx, resourceGroupName, serverName)
- return
-}
-
-// Revalidate revalidates an existing encryption protector.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-func (client EncryptionProtectorsClient) Revalidate(ctx context.Context, resourceGroupName string, serverName string) (result EncryptionProtectorsRevalidateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/EncryptionProtectorsClient.Revalidate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.RevalidatePreparer(ctx, resourceGroupName, serverName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "Revalidate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.RevalidateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.EncryptionProtectorsClient", "Revalidate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// RevalidatePreparer prepares the Revalidate request.
-func (client EncryptionProtectorsClient) RevalidatePreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "encryptionProtectorName": autorest.Encode("path", "current"),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2015-05-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}/revalidate", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// RevalidateSender sends the Revalidate request. The method will close the
-// http.Response Body if it receives an error.
-func (client EncryptionProtectorsClient) RevalidateSender(req *http.Request) (future EncryptionProtectorsRevalidateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// RevalidateResponder handles the response to the Revalidate request. The method always
-// closes the http.Response Body.
-func (client EncryptionProtectorsClient) RevalidateResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
- autorest.ByClosing())
- result.Response = resp
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/extendeddatabaseblobauditingpolicies.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/extendeddatabaseblobauditingpolicies.go
deleted file mode 100644
index 7c174fe2ad37..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/extendeddatabaseblobauditingpolicies.go
+++ /dev/null
@@ -1,210 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// ExtendedDatabaseBlobAuditingPoliciesClient is the the Azure SQL Database management API provides a RESTful set of
-// web services that interact with Azure SQL Database services to manage your databases. The API enables you to create,
-// retrieve, update, and delete databases.
-type ExtendedDatabaseBlobAuditingPoliciesClient struct {
- BaseClient
-}
-
-// NewExtendedDatabaseBlobAuditingPoliciesClient creates an instance of the ExtendedDatabaseBlobAuditingPoliciesClient
-// client.
-func NewExtendedDatabaseBlobAuditingPoliciesClient(subscriptionID string) ExtendedDatabaseBlobAuditingPoliciesClient {
- return NewExtendedDatabaseBlobAuditingPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewExtendedDatabaseBlobAuditingPoliciesClientWithBaseURI creates an instance of the
-// ExtendedDatabaseBlobAuditingPoliciesClient client.
-func NewExtendedDatabaseBlobAuditingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ExtendedDatabaseBlobAuditingPoliciesClient {
- return ExtendedDatabaseBlobAuditingPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates an extended database's blob auditing policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-// parameters - the extended database blob auditing policy.
-func (client ExtendedDatabaseBlobAuditingPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ExtendedDatabaseBlobAuditingPolicy) (result ExtendedDatabaseBlobAuditingPolicy, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ExtendedDatabaseBlobAuditingPoliciesClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, databaseName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ExtendedDatabaseBlobAuditingPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.CreateOrUpdateSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ExtendedDatabaseBlobAuditingPoliciesClient", "CreateOrUpdate", resp, "Failure sending request")
- return
- }
-
- result, err = client.CreateOrUpdateResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ExtendedDatabaseBlobAuditingPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request")
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client ExtendedDatabaseBlobAuditingPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ExtendedDatabaseBlobAuditingPolicy) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "blobAuditingPolicyName": autorest.Encode("path", "default"),
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- 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.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings/{blobAuditingPolicyName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ExtendedDatabaseBlobAuditingPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client ExtendedDatabaseBlobAuditingPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ExtendedDatabaseBlobAuditingPolicy, 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
-}
-
-// Get gets an extended database's blob auditing policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// databaseName - the name of the database.
-func (client ExtendedDatabaseBlobAuditingPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result ExtendedDatabaseBlobAuditingPolicy, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ExtendedDatabaseBlobAuditingPoliciesClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ExtendedDatabaseBlobAuditingPoliciesClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ExtendedDatabaseBlobAuditingPoliciesClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ExtendedDatabaseBlobAuditingPoliciesClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client ExtendedDatabaseBlobAuditingPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "blobAuditingPolicyName": autorest.Encode("path", "default"),
- "databaseName": autorest.Encode("path", databaseName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings/{blobAuditingPolicyName}", 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 ExtendedDatabaseBlobAuditingPoliciesClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client ExtendedDatabaseBlobAuditingPoliciesClient) GetResponder(resp *http.Response) (result ExtendedDatabaseBlobAuditingPolicy, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/extendedserverblobauditingpolicies.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/extendedserverblobauditingpolicies.go
deleted file mode 100644
index 1d8245d7a1a7..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/extendedserverblobauditingpolicies.go
+++ /dev/null
@@ -1,206 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// ExtendedServerBlobAuditingPoliciesClient is the the Azure SQL Database management API provides a RESTful set of web
-// services that interact with Azure SQL Database services to manage your databases. The API enables you to create,
-// retrieve, update, and delete databases.
-type ExtendedServerBlobAuditingPoliciesClient struct {
- BaseClient
-}
-
-// NewExtendedServerBlobAuditingPoliciesClient creates an instance of the ExtendedServerBlobAuditingPoliciesClient
-// client.
-func NewExtendedServerBlobAuditingPoliciesClient(subscriptionID string) ExtendedServerBlobAuditingPoliciesClient {
- return NewExtendedServerBlobAuditingPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewExtendedServerBlobAuditingPoliciesClientWithBaseURI creates an instance of the
-// ExtendedServerBlobAuditingPoliciesClient client.
-func NewExtendedServerBlobAuditingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ExtendedServerBlobAuditingPoliciesClient {
- return ExtendedServerBlobAuditingPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates an extended server's blob auditing policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// parameters - properties of extended blob auditing policy
-func (client ExtendedServerBlobAuditingPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, parameters ExtendedServerBlobAuditingPolicy) (result ExtendedServerBlobAuditingPoliciesCreateOrUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ExtendedServerBlobAuditingPoliciesClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ExtendedServerBlobAuditingPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateOrUpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ExtendedServerBlobAuditingPoliciesClient", "CreateOrUpdate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client ExtendedServerBlobAuditingPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ExtendedServerBlobAuditingPolicy) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "blobAuditingPolicyName": autorest.Encode("path", "default"),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- 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.Sql/servers/{serverName}/extendedAuditingSettings/{blobAuditingPolicyName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ExtendedServerBlobAuditingPoliciesClient) CreateOrUpdateSender(req *http.Request) (future ExtendedServerBlobAuditingPoliciesCreateOrUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client ExtendedServerBlobAuditingPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ExtendedServerBlobAuditingPolicy, 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}
- return
-}
-
-// Get gets an extended server's blob auditing policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-func (client ExtendedServerBlobAuditingPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result ExtendedServerBlobAuditingPolicy, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ExtendedServerBlobAuditingPoliciesClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ExtendedServerBlobAuditingPoliciesClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ExtendedServerBlobAuditingPoliciesClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ExtendedServerBlobAuditingPoliciesClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client ExtendedServerBlobAuditingPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "blobAuditingPolicyName": autorest.Encode("path", "default"),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings/{blobAuditingPolicyName}", 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 ExtendedServerBlobAuditingPoliciesClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client ExtendedServerBlobAuditingPoliciesClient) GetResponder(resp *http.Response) (result ExtendedServerBlobAuditingPolicy, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/failovergroups.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/failovergroups.go
deleted file mode 100644
index ea286e1e6aff..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/failovergroups.go
+++ /dev/null
@@ -1,656 +0,0 @@
-package sql
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// FailoverGroupsClient is the the Azure SQL Database management API provides a RESTful set of web services that
-// interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update,
-// and delete databases.
-type FailoverGroupsClient struct {
- BaseClient
-}
-
-// NewFailoverGroupsClient creates an instance of the FailoverGroupsClient client.
-func NewFailoverGroupsClient(subscriptionID string) FailoverGroupsClient {
- return NewFailoverGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewFailoverGroupsClientWithBaseURI creates an instance of the FailoverGroupsClient client.
-func NewFailoverGroupsClientWithBaseURI(baseURI string, subscriptionID string) FailoverGroupsClient {
- return FailoverGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates a failover group.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server containing the failover group.
-// failoverGroupName - the name of the failover group.
-// parameters - the failover group parameters.
-func (client FailoverGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string, parameters FailoverGroup) (result FailoverGroupsCreateOrUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/FailoverGroupsClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.FailoverGroupProperties", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.FailoverGroupProperties.ReadWriteEndpoint", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.FailoverGroupProperties.PartnerServers", Name: validation.Null, Rule: true, Chain: nil},
- }}}}}); err != nil {
- return result, validation.NewError("sql.FailoverGroupsClient", "CreateOrUpdate", err.Error())
- }
-
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, failoverGroupName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateOrUpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client FailoverGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string, parameters FailoverGroup) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "failoverGroupName": autorest.Encode("path", failoverGroupName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2015-05-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- parameters.Location = nil
- preparer := autorest.CreatePreparer(
- autorest.AsContentType("application/json; charset=utf-8"),
- autorest.AsPut(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 FailoverGroupsClient) CreateOrUpdateSender(req *http.Request) (future FailoverGroupsCreateOrUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client FailoverGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result FailoverGroup, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// Delete deletes a failover group.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server containing the failover group.
-// failoverGroupName - the name of the failover group.
-func (client FailoverGroupsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string) (result FailoverGroupsDeleteFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/FailoverGroupsClient.Delete")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, serverName, failoverGroupName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- result, err = client.DeleteSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "Delete", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client FailoverGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "failoverGroupName": autorest.Encode("path", failoverGroupName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2015-05-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}", 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 FailoverGroupsClient) DeleteSender(req *http.Request) (future FailoverGroupsDeleteFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client FailoverGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// Failover fails over from the current primary server to this server.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server containing the failover group.
-// failoverGroupName - the name of the failover group.
-func (client FailoverGroupsClient) Failover(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string) (result FailoverGroupsFailoverFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/FailoverGroupsClient.Failover")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.FailoverPreparer(ctx, resourceGroupName, serverName, failoverGroupName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "Failover", nil, "Failure preparing request")
- return
- }
-
- result, err = client.FailoverSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "Failover", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// FailoverPreparer prepares the Failover request.
-func (client FailoverGroupsClient) FailoverPreparer(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "failoverGroupName": autorest.Encode("path", failoverGroupName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2015-05-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}/failover", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// FailoverSender sends the Failover request. The method will close the
-// http.Response Body if it receives an error.
-func (client FailoverGroupsClient) FailoverSender(req *http.Request) (future FailoverGroupsFailoverFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// FailoverResponder handles the response to the Failover request. The method always
-// closes the http.Response Body.
-func (client FailoverGroupsClient) FailoverResponder(resp *http.Response) (result FailoverGroup, 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}
- return
-}
-
-// ForceFailoverAllowDataLoss fails over from the current primary server to this server. This operation might result in
-// data loss.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server containing the failover group.
-// failoverGroupName - the name of the failover group.
-func (client FailoverGroupsClient) ForceFailoverAllowDataLoss(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string) (result FailoverGroupsForceFailoverAllowDataLossFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/FailoverGroupsClient.ForceFailoverAllowDataLoss")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.ForceFailoverAllowDataLossPreparer(ctx, resourceGroupName, serverName, failoverGroupName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "ForceFailoverAllowDataLoss", nil, "Failure preparing request")
- return
- }
-
- result, err = client.ForceFailoverAllowDataLossSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "ForceFailoverAllowDataLoss", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// ForceFailoverAllowDataLossPreparer prepares the ForceFailoverAllowDataLoss request.
-func (client FailoverGroupsClient) ForceFailoverAllowDataLossPreparer(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "failoverGroupName": autorest.Encode("path", failoverGroupName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2015-05-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}/forceFailoverAllowDataLoss", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ForceFailoverAllowDataLossSender sends the ForceFailoverAllowDataLoss request. The method will close the
-// http.Response Body if it receives an error.
-func (client FailoverGroupsClient) ForceFailoverAllowDataLossSender(req *http.Request) (future FailoverGroupsForceFailoverAllowDataLossFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// ForceFailoverAllowDataLossResponder handles the response to the ForceFailoverAllowDataLoss request. The method always
-// closes the http.Response Body.
-func (client FailoverGroupsClient) ForceFailoverAllowDataLossResponder(resp *http.Response) (result FailoverGroup, 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}
- return
-}
-
-// Get gets a failover group.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server containing the failover group.
-// failoverGroupName - the name of the failover group.
-func (client FailoverGroupsClient) Get(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string) (result FailoverGroup, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/FailoverGroupsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, failoverGroupName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client FailoverGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "failoverGroupName": autorest.Encode("path", failoverGroupName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2015-05-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}", 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 FailoverGroupsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client FailoverGroupsClient) GetResponder(resp *http.Response) (result FailoverGroup, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByServer lists the failover groups in a server.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server containing the failover group.
-func (client FailoverGroupsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result FailoverGroupListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/FailoverGroupsClient.ListByServer")
- defer func() {
- sc := -1
- if result.fglr.Response.Response != nil {
- sc = result.fglr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByServerNextResults
- req, err := client.ListByServerPreparer(ctx, resourceGroupName, serverName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "ListByServer", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByServerSender(req)
- if err != nil {
- result.fglr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "ListByServer", resp, "Failure sending request")
- return
- }
-
- result.fglr, err = client.ListByServerResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "ListByServer", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByServerPreparer prepares the ListByServer request.
-func (client FailoverGroupsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2015-05-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByServerSender sends the ListByServer request. The method will close the
-// http.Response Body if it receives an error.
-func (client FailoverGroupsClient) ListByServerSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByServerResponder handles the response to the ListByServer request. The method always
-// closes the http.Response Body.
-func (client FailoverGroupsClient) ListByServerResponder(resp *http.Response) (result FailoverGroupListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByServerNextResults retrieves the next set of results, if any.
-func (client FailoverGroupsClient) listByServerNextResults(ctx context.Context, lastResults FailoverGroupListResult) (result FailoverGroupListResult, err error) {
- req, err := lastResults.failoverGroupListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "listByServerNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByServerSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "listByServerNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByServerResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "listByServerNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByServerComplete enumerates all values, automatically crossing page boundaries as required.
-func (client FailoverGroupsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result FailoverGroupListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/FailoverGroupsClient.ListByServer")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByServer(ctx, resourceGroupName, serverName)
- return
-}
-
-// Update updates a failover group.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server containing the failover group.
-// failoverGroupName - the name of the failover group.
-// parameters - the failover group parameters.
-func (client FailoverGroupsClient) Update(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string, parameters FailoverGroupUpdate) (result FailoverGroupsUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/FailoverGroupsClient.Update")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.UpdatePreparer(ctx, resourceGroupName, serverName, failoverGroupName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "Update", nil, "Failure preparing request")
- return
- }
-
- result, err = client.UpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.FailoverGroupsClient", "Update", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// UpdatePreparer prepares the Update request.
-func (client FailoverGroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string, parameters FailoverGroupUpdate) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "failoverGroupName": autorest.Encode("path", failoverGroupName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2015-05-01-preview"
- 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.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 FailoverGroupsClient) UpdateSender(req *http.Request) (future FailoverGroupsUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// UpdateResponder handles the response to the Update request. The method always
-// closes the http.Response Body.
-func (client FailoverGroupsClient) UpdateResponder(resp *http.Response) (result FailoverGroup, 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}
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/instancefailovergroups.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/instancefailovergroups.go
deleted file mode 100644
index aa0e99af9af5..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/instancefailovergroups.go
+++ /dev/null
@@ -1,573 +0,0 @@
-package sql
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// InstanceFailoverGroupsClient is the the Azure SQL Database management API provides a RESTful set of web services
-// that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve,
-// update, and delete databases.
-type InstanceFailoverGroupsClient struct {
- BaseClient
-}
-
-// NewInstanceFailoverGroupsClient creates an instance of the InstanceFailoverGroupsClient client.
-func NewInstanceFailoverGroupsClient(subscriptionID string) InstanceFailoverGroupsClient {
- return NewInstanceFailoverGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewInstanceFailoverGroupsClientWithBaseURI creates an instance of the InstanceFailoverGroupsClient client.
-func NewInstanceFailoverGroupsClientWithBaseURI(baseURI string, subscriptionID string) InstanceFailoverGroupsClient {
- return InstanceFailoverGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates a failover group.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// locationName - the name of the region where the resource is located.
-// failoverGroupName - the name of the failover group.
-// parameters - the failover group parameters.
-func (client InstanceFailoverGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string, parameters InstanceFailoverGroup) (result InstanceFailoverGroupsCreateOrUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/InstanceFailoverGroupsClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.InstanceFailoverGroupProperties", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.InstanceFailoverGroupProperties.ReadWriteEndpoint", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.InstanceFailoverGroupProperties.PartnerRegions", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.InstanceFailoverGroupProperties.ManagedInstancePairs", Name: validation.Null, Rule: true, Chain: nil},
- }}}}}); err != nil {
- return result, validation.NewError("sql.InstanceFailoverGroupsClient", "CreateOrUpdate", err.Error())
- }
-
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, locationName, failoverGroupName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateOrUpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client InstanceFailoverGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string, parameters InstanceFailoverGroup) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "failoverGroupName": autorest.Encode("path", failoverGroupName),
- "locationName": autorest.Encode("path", locationName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- 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.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 InstanceFailoverGroupsClient) CreateOrUpdateSender(req *http.Request) (future InstanceFailoverGroupsCreateOrUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client InstanceFailoverGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result InstanceFailoverGroup, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// Delete deletes a failover group.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// locationName - the name of the region where the resource is located.
-// failoverGroupName - the name of the failover group.
-func (client InstanceFailoverGroupsClient) Delete(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (result InstanceFailoverGroupsDeleteFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/InstanceFailoverGroupsClient.Delete")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, locationName, failoverGroupName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- result, err = client.DeleteSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "Delete", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client InstanceFailoverGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "failoverGroupName": autorest.Encode("path", failoverGroupName),
- "locationName": autorest.Encode("path", locationName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}", 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 InstanceFailoverGroupsClient) DeleteSender(req *http.Request) (future InstanceFailoverGroupsDeleteFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client InstanceFailoverGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// Failover fails over from the current primary managed instance to this managed instance.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// locationName - the name of the region where the resource is located.
-// failoverGroupName - the name of the failover group.
-func (client InstanceFailoverGroupsClient) Failover(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (result InstanceFailoverGroupsFailoverFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/InstanceFailoverGroupsClient.Failover")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.FailoverPreparer(ctx, resourceGroupName, locationName, failoverGroupName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "Failover", nil, "Failure preparing request")
- return
- }
-
- result, err = client.FailoverSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "Failover", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// FailoverPreparer prepares the Failover request.
-func (client InstanceFailoverGroupsClient) FailoverPreparer(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "failoverGroupName": autorest.Encode("path", failoverGroupName),
- "locationName": autorest.Encode("path", locationName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}/failover", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// FailoverSender sends the Failover request. The method will close the
-// http.Response Body if it receives an error.
-func (client InstanceFailoverGroupsClient) FailoverSender(req *http.Request) (future InstanceFailoverGroupsFailoverFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// FailoverResponder handles the response to the Failover request. The method always
-// closes the http.Response Body.
-func (client InstanceFailoverGroupsClient) FailoverResponder(resp *http.Response) (result InstanceFailoverGroup, 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}
- return
-}
-
-// ForceFailoverAllowDataLoss fails over from the current primary managed instance to this managed instance. This
-// operation might result in data loss.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// locationName - the name of the region where the resource is located.
-// failoverGroupName - the name of the failover group.
-func (client InstanceFailoverGroupsClient) ForceFailoverAllowDataLoss(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (result InstanceFailoverGroupsForceFailoverAllowDataLossFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/InstanceFailoverGroupsClient.ForceFailoverAllowDataLoss")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.ForceFailoverAllowDataLossPreparer(ctx, resourceGroupName, locationName, failoverGroupName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "ForceFailoverAllowDataLoss", nil, "Failure preparing request")
- return
- }
-
- result, err = client.ForceFailoverAllowDataLossSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "ForceFailoverAllowDataLoss", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// ForceFailoverAllowDataLossPreparer prepares the ForceFailoverAllowDataLoss request.
-func (client InstanceFailoverGroupsClient) ForceFailoverAllowDataLossPreparer(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "failoverGroupName": autorest.Encode("path", failoverGroupName),
- "locationName": autorest.Encode("path", locationName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}/forceFailoverAllowDataLoss", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ForceFailoverAllowDataLossSender sends the ForceFailoverAllowDataLoss request. The method will close the
-// http.Response Body if it receives an error.
-func (client InstanceFailoverGroupsClient) ForceFailoverAllowDataLossSender(req *http.Request) (future InstanceFailoverGroupsForceFailoverAllowDataLossFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// ForceFailoverAllowDataLossResponder handles the response to the ForceFailoverAllowDataLoss request. The method always
-// closes the http.Response Body.
-func (client InstanceFailoverGroupsClient) ForceFailoverAllowDataLossResponder(resp *http.Response) (result InstanceFailoverGroup, 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}
- return
-}
-
-// Get gets a failover group.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// locationName - the name of the region where the resource is located.
-// failoverGroupName - the name of the failover group.
-func (client InstanceFailoverGroupsClient) Get(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (result InstanceFailoverGroup, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/InstanceFailoverGroupsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, locationName, failoverGroupName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client InstanceFailoverGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "failoverGroupName": autorest.Encode("path", failoverGroupName),
- "locationName": autorest.Encode("path", locationName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}", 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 InstanceFailoverGroupsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client InstanceFailoverGroupsClient) GetResponder(resp *http.Response) (result InstanceFailoverGroup, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByLocation lists the failover groups in a location.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// locationName - the name of the region where the resource is located.
-func (client InstanceFailoverGroupsClient) ListByLocation(ctx context.Context, resourceGroupName string, locationName string) (result InstanceFailoverGroupListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/InstanceFailoverGroupsClient.ListByLocation")
- defer func() {
- sc := -1
- if result.ifglr.Response.Response != nil {
- sc = result.ifglr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByLocationNextResults
- req, err := client.ListByLocationPreparer(ctx, resourceGroupName, locationName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "ListByLocation", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByLocationSender(req)
- if err != nil {
- result.ifglr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "ListByLocation", resp, "Failure sending request")
- return
- }
-
- result.ifglr, err = client.ListByLocationResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "ListByLocation", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByLocationPreparer prepares the ListByLocation request.
-func (client InstanceFailoverGroupsClient) ListByLocationPreparer(ctx context.Context, resourceGroupName string, locationName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "locationName": autorest.Encode("path", locationName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByLocationSender sends the ListByLocation request. The method will close the
-// http.Response Body if it receives an error.
-func (client InstanceFailoverGroupsClient) ListByLocationSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByLocationResponder handles the response to the ListByLocation request. The method always
-// closes the http.Response Body.
-func (client InstanceFailoverGroupsClient) ListByLocationResponder(resp *http.Response) (result InstanceFailoverGroupListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByLocationNextResults retrieves the next set of results, if any.
-func (client InstanceFailoverGroupsClient) listByLocationNextResults(ctx context.Context, lastResults InstanceFailoverGroupListResult) (result InstanceFailoverGroupListResult, err error) {
- req, err := lastResults.instanceFailoverGroupListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "listByLocationNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByLocationSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "listByLocationNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByLocationResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstanceFailoverGroupsClient", "listByLocationNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByLocationComplete enumerates all values, automatically crossing page boundaries as required.
-func (client InstanceFailoverGroupsClient) ListByLocationComplete(ctx context.Context, resourceGroupName string, locationName string) (result InstanceFailoverGroupListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/InstanceFailoverGroupsClient.ListByLocation")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByLocation(ctx, resourceGroupName, locationName)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/instancepools.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/instancepools.go
deleted file mode 100644
index 5e6cddb41eec..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/instancepools.go
+++ /dev/null
@@ -1,596 +0,0 @@
-package sql
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// InstancePoolsClient is the the Azure SQL Database management API provides a RESTful set of web services that
-// interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update,
-// and delete databases.
-type InstancePoolsClient struct {
- BaseClient
-}
-
-// NewInstancePoolsClient creates an instance of the InstancePoolsClient client.
-func NewInstancePoolsClient(subscriptionID string) InstancePoolsClient {
- return NewInstancePoolsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewInstancePoolsClientWithBaseURI creates an instance of the InstancePoolsClient client.
-func NewInstancePoolsClientWithBaseURI(baseURI string, subscriptionID string) InstancePoolsClient {
- return InstancePoolsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates an instance pool.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// instancePoolName - the name of the instance pool to be created or updated.
-// parameters - the requested instance pool resource state.
-func (client InstancePoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, instancePoolName string, parameters InstancePool) (result InstancePoolsCreateOrUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/InstancePoolsClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.Sku", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.Sku.Name", Name: validation.Null, Rule: true, Chain: nil}}},
- {Target: "parameters.InstancePoolProperties", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.InstancePoolProperties.SubnetID", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.InstancePoolProperties.VCores", Name: validation.Null, Rule: true, Chain: nil},
- }}}}}); err != nil {
- return result, validation.NewError("sql.InstancePoolsClient", "CreateOrUpdate", err.Error())
- }
-
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, instancePoolName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateOrUpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client InstancePoolsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, instancePoolName string, parameters InstancePool) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "instancePoolName": autorest.Encode("path", instancePoolName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- 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.Sql/instancePools/{instancePoolName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 InstancePoolsClient) CreateOrUpdateSender(req *http.Request) (future InstancePoolsCreateOrUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client InstancePoolsClient) CreateOrUpdateResponder(resp *http.Response) (result InstancePool, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// Delete deletes an instance pool
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// instancePoolName - the name of the instance pool to be deleted
-func (client InstancePoolsClient) Delete(ctx context.Context, resourceGroupName string, instancePoolName string) (result InstancePoolsDeleteFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/InstancePoolsClient.Delete")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, instancePoolName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- result, err = client.DeleteSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "Delete", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client InstancePoolsClient) DeletePreparer(ctx context.Context, resourceGroupName string, instancePoolName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "instancePoolName": autorest.Encode("path", instancePoolName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}", 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 InstancePoolsClient) DeleteSender(req *http.Request) (future InstancePoolsDeleteFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client InstancePoolsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// Get gets an instance pool.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// instancePoolName - the name of the instance pool to be retrieved.
-func (client InstancePoolsClient) Get(ctx context.Context, resourceGroupName string, instancePoolName string) (result InstancePool, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/InstancePoolsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, instancePoolName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client InstancePoolsClient) GetPreparer(ctx context.Context, resourceGroupName string, instancePoolName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "instancePoolName": autorest.Encode("path", instancePoolName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}", 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 InstancePoolsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client InstancePoolsClient) GetResponder(resp *http.Response) (result InstancePool, 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 instance pools in the subscription.
-func (client InstancePoolsClient) List(ctx context.Context) (result InstancePoolListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/InstancePoolsClient.List")
- defer func() {
- sc := -1
- if result.iplr.Response.Response != nil {
- sc = result.iplr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listNextResults
- req, err := client.ListPreparer(ctx)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "List", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListSender(req)
- if err != nil {
- result.iplr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "List", resp, "Failure sending request")
- return
- }
-
- result.iplr, err = client.ListResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "List", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListPreparer prepares the List request.
-func (client InstancePoolsClient) ListPreparer(ctx context.Context) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Sql/instancePools", 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 InstancePoolsClient) ListSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListResponder handles the response to the List request. The method always
-// closes the http.Response Body.
-func (client InstancePoolsClient) ListResponder(resp *http.Response) (result InstancePoolListResult, 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 InstancePoolsClient) listNextResults(ctx context.Context, lastResults InstancePoolListResult) (result InstancePoolListResult, err error) {
- req, err := lastResults.instancePoolListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "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, "sql.InstancePoolsClient", "listNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "listNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListComplete enumerates all values, automatically crossing page boundaries as required.
-func (client InstancePoolsClient) ListComplete(ctx context.Context) (result InstancePoolListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/InstancePoolsClient.List")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.List(ctx)
- return
-}
-
-// ListByResourceGroup gets a list of instance pools in the resource group
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-func (client InstancePoolsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result InstancePoolListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/InstancePoolsClient.ListByResourceGroup")
- defer func() {
- sc := -1
- if result.iplr.Response.Response != nil {
- sc = result.iplr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByResourceGroupNextResults
- req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "ListByResourceGroup", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByResourceGroupSender(req)
- if err != nil {
- result.iplr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "ListByResourceGroup", resp, "Failure sending request")
- return
- }
-
- result.iplr, err = client.ListByResourceGroupResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "ListByResourceGroup", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
-func (client InstancePoolsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
-// http.Response Body if it receives an error.
-func (client InstancePoolsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
-// closes the http.Response Body.
-func (client InstancePoolsClient) ListByResourceGroupResponder(resp *http.Response) (result InstancePoolListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByResourceGroupNextResults retrieves the next set of results, if any.
-func (client InstancePoolsClient) listByResourceGroupNextResults(ctx context.Context, lastResults InstancePoolListResult) (result InstancePoolListResult, err error) {
- req, err := lastResults.instancePoolListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByResourceGroupSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByResourceGroupResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
-func (client InstancePoolsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result InstancePoolListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/InstancePoolsClient.ListByResourceGroup")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByResourceGroup(ctx, resourceGroupName)
- return
-}
-
-// Update updates an instance pool.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// instancePoolName - the name of the instance pool to be updated.
-// parameters - the requested instance pool resource state.
-func (client InstancePoolsClient) Update(ctx context.Context, resourceGroupName string, instancePoolName string, parameters InstancePoolUpdate) (result InstancePoolsUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/InstancePoolsClient.Update")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.UpdatePreparer(ctx, resourceGroupName, instancePoolName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "Update", nil, "Failure preparing request")
- return
- }
-
- result, err = client.UpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.InstancePoolsClient", "Update", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// UpdatePreparer prepares the Update request.
-func (client InstancePoolsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, instancePoolName string, parameters InstancePoolUpdate) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "instancePoolName": autorest.Encode("path", instancePoolName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- 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.Sql/instancePools/{instancePoolName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 InstancePoolsClient) UpdateSender(req *http.Request) (future InstancePoolsUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// UpdateResponder handles the response to the Update request. The method always
-// closes the http.Response Body.
-func (client InstancePoolsClient) UpdateResponder(resp *http.Response) (result InstancePool, 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}
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/jobagents.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/jobagents.go
deleted file mode 100644
index ee60e7d85f2e..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/jobagents.go
+++ /dev/null
@@ -1,494 +0,0 @@
-package sql
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// JobAgentsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact
-// with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and
-// delete databases.
-type JobAgentsClient struct {
- BaseClient
-}
-
-// NewJobAgentsClient creates an instance of the JobAgentsClient client.
-func NewJobAgentsClient(subscriptionID string) JobAgentsClient {
- return NewJobAgentsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewJobAgentsClientWithBaseURI creates an instance of the JobAgentsClient client.
-func NewJobAgentsClientWithBaseURI(baseURI string, subscriptionID string) JobAgentsClient {
- return JobAgentsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates a job agent.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent to be created or updated.
-// parameters - the requested job agent resource state.
-func (client JobAgentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, parameters JobAgent) (result JobAgentsCreateOrUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobAgentsClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.Sku", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.Sku.Name", Name: validation.Null, Rule: true, Chain: nil}}},
- {Target: "parameters.JobAgentProperties", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.JobAgentProperties.DatabaseID", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil {
- return result, validation.NewError("sql.JobAgentsClient", "CreateOrUpdate", err.Error())
- }
-
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, jobAgentName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobAgentsClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateOrUpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobAgentsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client JobAgentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, parameters JobAgent) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- 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.Sql/servers/{serverName}/jobAgents/{jobAgentName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 JobAgentsClient) CreateOrUpdateSender(req *http.Request) (future JobAgentsCreateOrUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client JobAgentsClient) CreateOrUpdateResponder(resp *http.Response) (result JobAgent, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// Delete deletes a job agent.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent to be deleted.
-func (client JobAgentsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (result JobAgentsDeleteFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobAgentsClient.Delete")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, serverName, jobAgentName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobAgentsClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- result, err = client.DeleteSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobAgentsClient", "Delete", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client JobAgentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}", 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 JobAgentsClient) DeleteSender(req *http.Request) (future JobAgentsDeleteFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client JobAgentsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// Get gets a job agent.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent to be retrieved.
-func (client JobAgentsClient) Get(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (result JobAgent, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobAgentsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, jobAgentName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobAgentsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobAgentsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobAgentsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client JobAgentsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}", 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 JobAgentsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client JobAgentsClient) GetResponder(resp *http.Response) (result JobAgent, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByServer gets a list of job agents in a server.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-func (client JobAgentsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result JobAgentListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobAgentsClient.ListByServer")
- defer func() {
- sc := -1
- if result.jalr.Response.Response != nil {
- sc = result.jalr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByServerNextResults
- req, err := client.ListByServerPreparer(ctx, resourceGroupName, serverName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobAgentsClient", "ListByServer", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByServerSender(req)
- if err != nil {
- result.jalr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobAgentsClient", "ListByServer", resp, "Failure sending request")
- return
- }
-
- result.jalr, err = client.ListByServerResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobAgentsClient", "ListByServer", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByServerPreparer prepares the ListByServer request.
-func (client JobAgentsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByServerSender sends the ListByServer request. The method will close the
-// http.Response Body if it receives an error.
-func (client JobAgentsClient) ListByServerSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByServerResponder handles the response to the ListByServer request. The method always
-// closes the http.Response Body.
-func (client JobAgentsClient) ListByServerResponder(resp *http.Response) (result JobAgentListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByServerNextResults retrieves the next set of results, if any.
-func (client JobAgentsClient) listByServerNextResults(ctx context.Context, lastResults JobAgentListResult) (result JobAgentListResult, err error) {
- req, err := lastResults.jobAgentListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.JobAgentsClient", "listByServerNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByServerSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.JobAgentsClient", "listByServerNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByServerResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobAgentsClient", "listByServerNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByServerComplete enumerates all values, automatically crossing page boundaries as required.
-func (client JobAgentsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result JobAgentListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobAgentsClient.ListByServer")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByServer(ctx, resourceGroupName, serverName)
- return
-}
-
-// Update updates a job agent.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent to be updated.
-// parameters - the update to the job agent.
-func (client JobAgentsClient) Update(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, parameters JobAgentUpdate) (result JobAgentsUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobAgentsClient.Update")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.UpdatePreparer(ctx, resourceGroupName, serverName, jobAgentName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobAgentsClient", "Update", nil, "Failure preparing request")
- return
- }
-
- result, err = client.UpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobAgentsClient", "Update", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// UpdatePreparer prepares the Update request.
-func (client JobAgentsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, parameters JobAgentUpdate) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- 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.Sql/servers/{serverName}/jobAgents/{jobAgentName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 JobAgentsClient) UpdateSender(req *http.Request) (future JobAgentsUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// UpdateResponder handles the response to the Update request. The method always
-// closes the http.Response Body.
-func (client JobAgentsClient) UpdateResponder(resp *http.Response) (result JobAgent, 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}
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/jobcredentials.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/jobcredentials.go
deleted file mode 100644
index 684e3d528af6..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/jobcredentials.go
+++ /dev/null
@@ -1,419 +0,0 @@
-package sql
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// JobCredentialsClient is the the Azure SQL Database management API provides a RESTful set of web services that
-// interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update,
-// and delete databases.
-type JobCredentialsClient struct {
- BaseClient
-}
-
-// NewJobCredentialsClient creates an instance of the JobCredentialsClient client.
-func NewJobCredentialsClient(subscriptionID string) JobCredentialsClient {
- return NewJobCredentialsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewJobCredentialsClientWithBaseURI creates an instance of the JobCredentialsClient client.
-func NewJobCredentialsClientWithBaseURI(baseURI string, subscriptionID string) JobCredentialsClient {
- return JobCredentialsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates a job credential.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// credentialName - the name of the credential.
-// parameters - the requested job credential state.
-func (client JobCredentialsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, credentialName string, parameters JobCredential) (result JobCredential, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobCredentialsClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.JobCredentialProperties", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.JobCredentialProperties.Username", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.JobCredentialProperties.Password", Name: validation.Null, Rule: true, Chain: nil},
- }}}}}); err != nil {
- return result, validation.NewError("sql.JobCredentialsClient", "CreateOrUpdate", err.Error())
- }
-
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, jobAgentName, credentialName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.CreateOrUpdateSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "CreateOrUpdate", resp, "Failure sending request")
- return
- }
-
- result, err = client.CreateOrUpdateResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "CreateOrUpdate", resp, "Failure responding to request")
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client JobCredentialsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, credentialName string, parameters JobCredential) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "credentialName": autorest.Encode("path", credentialName),
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- 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.Sql/servers/{serverName}/jobAgents/{jobAgentName}/credentials/{credentialName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 JobCredentialsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client JobCredentialsClient) CreateOrUpdateResponder(resp *http.Response) (result JobCredential, 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 deletes a job credential.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// credentialName - the name of the credential.
-func (client JobCredentialsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, credentialName string) (result autorest.Response, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobCredentialsClient.Delete")
- defer func() {
- sc := -1
- if result.Response != nil {
- sc = result.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, serverName, jobAgentName, credentialName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.DeleteSender(req)
- if err != nil {
- result.Response = resp
- err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "Delete", resp, "Failure sending request")
- return
- }
-
- result, err = client.DeleteResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "Delete", resp, "Failure responding to request")
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client JobCredentialsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, credentialName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "credentialName": autorest.Encode("path", credentialName),
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/credentials/{credentialName}", 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 JobCredentialsClient) DeleteSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client JobCredentialsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// Get gets a jobs credential.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// credentialName - the name of the credential.
-func (client JobCredentialsClient) Get(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, credentialName string) (result JobCredential, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobCredentialsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, jobAgentName, credentialName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client JobCredentialsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, credentialName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "credentialName": autorest.Encode("path", credentialName),
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/credentials/{credentialName}", 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 JobCredentialsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client JobCredentialsClient) GetResponder(resp *http.Response) (result JobCredential, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByAgent gets a list of jobs credentials.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-func (client JobCredentialsClient) ListByAgent(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (result JobCredentialListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobCredentialsClient.ListByAgent")
- defer func() {
- sc := -1
- if result.jclr.Response.Response != nil {
- sc = result.jclr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByAgentNextResults
- req, err := client.ListByAgentPreparer(ctx, resourceGroupName, serverName, jobAgentName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "ListByAgent", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByAgentSender(req)
- if err != nil {
- result.jclr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "ListByAgent", resp, "Failure sending request")
- return
- }
-
- result.jclr, err = client.ListByAgentResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "ListByAgent", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByAgentPreparer prepares the ListByAgent request.
-func (client JobCredentialsClient) ListByAgentPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/credentials", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByAgentSender sends the ListByAgent request. The method will close the
-// http.Response Body if it receives an error.
-func (client JobCredentialsClient) ListByAgentSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByAgentResponder handles the response to the ListByAgent request. The method always
-// closes the http.Response Body.
-func (client JobCredentialsClient) ListByAgentResponder(resp *http.Response) (result JobCredentialListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByAgentNextResults retrieves the next set of results, if any.
-func (client JobCredentialsClient) listByAgentNextResults(ctx context.Context, lastResults JobCredentialListResult) (result JobCredentialListResult, err error) {
- req, err := lastResults.jobCredentialListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "listByAgentNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByAgentSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "listByAgentNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByAgentResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobCredentialsClient", "listByAgentNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByAgentComplete enumerates all values, automatically crossing page boundaries as required.
-func (client JobCredentialsClient) ListByAgentComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (result JobCredentialListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobCredentialsClient.ListByAgent")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByAgent(ctx, resourceGroupName, serverName, jobAgentName)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/jobexecutions.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/jobexecutions.go
deleted file mode 100644
index eb0535c6f24a..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/jobexecutions.go
+++ /dev/null
@@ -1,672 +0,0 @@
-package sql
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "github.com/satori/go.uuid"
- "net/http"
-)
-
-// JobExecutionsClient is the the Azure SQL Database management API provides a RESTful set of web services that
-// interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update,
-// and delete databases.
-type JobExecutionsClient struct {
- BaseClient
-}
-
-// NewJobExecutionsClient creates an instance of the JobExecutionsClient client.
-func NewJobExecutionsClient(subscriptionID string) JobExecutionsClient {
- return NewJobExecutionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewJobExecutionsClientWithBaseURI creates an instance of the JobExecutionsClient client.
-func NewJobExecutionsClientWithBaseURI(baseURI string, subscriptionID string) JobExecutionsClient {
- return JobExecutionsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// Cancel requests cancellation of a job execution.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job.
-// jobExecutionID - the id of the job execution to cancel.
-func (client JobExecutionsClient) Cancel(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID) (result autorest.Response, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobExecutionsClient.Cancel")
- defer func() {
- sc := -1
- if result.Response != nil {
- sc = result.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CancelPreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName, jobExecutionID)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "Cancel", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.CancelSender(req)
- if err != nil {
- result.Response = resp
- err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "Cancel", resp, "Failure sending request")
- return
- }
-
- result, err = client.CancelResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "Cancel", resp, "Failure responding to request")
- }
-
- return
-}
-
-// CancelPreparer prepares the Cancel request.
-func (client JobExecutionsClient) CancelPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobExecutionId": autorest.Encode("path", jobExecutionID),
- "jobName": autorest.Encode("path", jobName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/cancel", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// CancelSender sends the Cancel request. The method will close the
-// http.Response Body if it receives an error.
-func (client JobExecutionsClient) CancelSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// CancelResponder handles the response to the Cancel request. The method always
-// closes the http.Response Body.
-func (client JobExecutionsClient) CancelResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// Create starts an elastic job execution.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job to get.
-func (client JobExecutionsClient) Create(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (result JobExecutionsCreateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobExecutionsClient.Create")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CreatePreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "Create", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "Create", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreatePreparer prepares the Create request.
-func (client JobExecutionsClient) CreatePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobName": autorest.Encode("path", jobName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/start", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// CreateSender sends the Create request. The method will close the
-// http.Response Body if it receives an error.
-func (client JobExecutionsClient) CreateSender(req *http.Request) (future JobExecutionsCreateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateResponder handles the response to the Create request. The method always
-// closes the http.Response Body.
-func (client JobExecutionsClient) CreateResponder(resp *http.Response) (result JobExecution, 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}
- return
-}
-
-// CreateOrUpdate creates or updates a job execution.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job to get.
-// jobExecutionID - the job execution id to create the job execution under.
-func (client JobExecutionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID) (result JobExecutionsCreateOrUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobExecutionsClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName, jobExecutionID)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateOrUpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client JobExecutionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobExecutionId": autorest.Encode("path", jobExecutionID),
- "jobName": autorest.Encode("path", jobName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPut(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}", pathParameters),
- 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 JobExecutionsClient) CreateOrUpdateSender(req *http.Request) (future JobExecutionsCreateOrUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client JobExecutionsClient) CreateOrUpdateResponder(resp *http.Response) (result JobExecution, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// Get gets a job execution.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job.
-// jobExecutionID - the id of the job execution
-func (client JobExecutionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID) (result JobExecution, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobExecutionsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName, jobExecutionID)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client JobExecutionsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobExecutionId": autorest.Encode("path", jobExecutionID),
- "jobName": autorest.Encode("path", jobName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}", 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 JobExecutionsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client JobExecutionsClient) GetResponder(resp *http.Response) (result JobExecution, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByAgent lists all executions in a job agent.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// createTimeMin - if specified, only job executions created at or after the specified time are included.
-// createTimeMax - if specified, only job executions created before the specified time are included.
-// endTimeMin - if specified, only job executions completed at or after the specified time are included.
-// endTimeMax - if specified, only job executions completed before the specified time are included.
-// isActive - if specified, only active or only completed job executions are included.
-// skip - the number of elements in the collection to skip.
-// top - the number of elements to return from the collection.
-func (client JobExecutionsClient) ListByAgent(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobExecutionsClient.ListByAgent")
- defer func() {
- sc := -1
- if result.jelr.Response.Response != nil {
- sc = result.jelr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByAgentNextResults
- req, err := client.ListByAgentPreparer(ctx, resourceGroupName, serverName, jobAgentName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "ListByAgent", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByAgentSender(req)
- if err != nil {
- result.jelr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "ListByAgent", resp, "Failure sending request")
- return
- }
-
- result.jelr, err = client.ListByAgentResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "ListByAgent", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByAgentPreparer prepares the ListByAgent request.
-func (client JobExecutionsClient) ListByAgentPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
- if createTimeMin != nil {
- queryParameters["createTimeMin"] = autorest.Encode("query", *createTimeMin)
- }
- if createTimeMax != nil {
- queryParameters["createTimeMax"] = autorest.Encode("query", *createTimeMax)
- }
- if endTimeMin != nil {
- queryParameters["endTimeMin"] = autorest.Encode("query", *endTimeMin)
- }
- if endTimeMax != nil {
- queryParameters["endTimeMax"] = autorest.Encode("query", *endTimeMax)
- }
- if isActive != nil {
- queryParameters["isActive"] = autorest.Encode("query", *isActive)
- }
- if skip != nil {
- queryParameters["$skip"] = autorest.Encode("query", *skip)
- }
- if top != nil {
- queryParameters["$top"] = autorest.Encode("query", *top)
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/executions", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByAgentSender sends the ListByAgent request. The method will close the
-// http.Response Body if it receives an error.
-func (client JobExecutionsClient) ListByAgentSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByAgentResponder handles the response to the ListByAgent request. The method always
-// closes the http.Response Body.
-func (client JobExecutionsClient) ListByAgentResponder(resp *http.Response) (result JobExecutionListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByAgentNextResults retrieves the next set of results, if any.
-func (client JobExecutionsClient) listByAgentNextResults(ctx context.Context, lastResults JobExecutionListResult) (result JobExecutionListResult, err error) {
- req, err := lastResults.jobExecutionListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "listByAgentNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByAgentSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "listByAgentNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByAgentResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "listByAgentNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByAgentComplete enumerates all values, automatically crossing page boundaries as required.
-func (client JobExecutionsClient) ListByAgentComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobExecutionsClient.ListByAgent")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByAgent(ctx, resourceGroupName, serverName, jobAgentName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top)
- return
-}
-
-// ListByJob lists a job's executions.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job to get.
-// createTimeMin - if specified, only job executions created at or after the specified time are included.
-// createTimeMax - if specified, only job executions created before the specified time are included.
-// endTimeMin - if specified, only job executions completed at or after the specified time are included.
-// endTimeMax - if specified, only job executions completed before the specified time are included.
-// isActive - if specified, only active or only completed job executions are included.
-// skip - the number of elements in the collection to skip.
-// top - the number of elements to return from the collection.
-func (client JobExecutionsClient) ListByJob(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobExecutionsClient.ListByJob")
- defer func() {
- sc := -1
- if result.jelr.Response.Response != nil {
- sc = result.jelr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByJobNextResults
- req, err := client.ListByJobPreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "ListByJob", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByJobSender(req)
- if err != nil {
- result.jelr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "ListByJob", resp, "Failure sending request")
- return
- }
-
- result.jelr, err = client.ListByJobResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "ListByJob", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByJobPreparer prepares the ListByJob request.
-func (client JobExecutionsClient) ListByJobPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobName": autorest.Encode("path", jobName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
- if createTimeMin != nil {
- queryParameters["createTimeMin"] = autorest.Encode("query", *createTimeMin)
- }
- if createTimeMax != nil {
- queryParameters["createTimeMax"] = autorest.Encode("query", *createTimeMax)
- }
- if endTimeMin != nil {
- queryParameters["endTimeMin"] = autorest.Encode("query", *endTimeMin)
- }
- if endTimeMax != nil {
- queryParameters["endTimeMax"] = autorest.Encode("query", *endTimeMax)
- }
- if isActive != nil {
- queryParameters["isActive"] = autorest.Encode("query", *isActive)
- }
- if skip != nil {
- queryParameters["$skip"] = autorest.Encode("query", *skip)
- }
- if top != nil {
- queryParameters["$top"] = autorest.Encode("query", *top)
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByJobSender sends the ListByJob request. The method will close the
-// http.Response Body if it receives an error.
-func (client JobExecutionsClient) ListByJobSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByJobResponder handles the response to the ListByJob request. The method always
-// closes the http.Response Body.
-func (client JobExecutionsClient) ListByJobResponder(resp *http.Response) (result JobExecutionListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByJobNextResults retrieves the next set of results, if any.
-func (client JobExecutionsClient) listByJobNextResults(ctx context.Context, lastResults JobExecutionListResult) (result JobExecutionListResult, err error) {
- req, err := lastResults.jobExecutionListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "listByJobNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByJobSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "listByJobNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByJobResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobExecutionsClient", "listByJobNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByJobComplete enumerates all values, automatically crossing page boundaries as required.
-func (client JobExecutionsClient) ListByJobComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobExecutionsClient.ListByJob")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByJob(ctx, resourceGroupName, serverName, jobAgentName, jobName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/jobs.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/jobs.go
deleted file mode 100644
index 2112eef5585f..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/jobs.go
+++ /dev/null
@@ -1,409 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// JobsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with
-// Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete
-// databases.
-type JobsClient struct {
- BaseClient
-}
-
-// NewJobsClient creates an instance of the JobsClient client.
-func NewJobsClient(subscriptionID string) JobsClient {
- return NewJobsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewJobsClientWithBaseURI creates an instance of the JobsClient client.
-func NewJobsClientWithBaseURI(baseURI string, subscriptionID string) JobsClient {
- return JobsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates a job.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job to get.
-// parameters - the requested job state.
-func (client JobsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, parameters Job) (result Job, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobsClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobsClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.CreateOrUpdateSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobsClient", "CreateOrUpdate", resp, "Failure sending request")
- return
- }
-
- result, err = client.CreateOrUpdateResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobsClient", "CreateOrUpdate", resp, "Failure responding to request")
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client JobsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, parameters Job) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobName": autorest.Encode("path", jobName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- 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.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 JobsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client JobsClient) CreateOrUpdateResponder(resp *http.Response) (result Job, 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 deletes a job.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job to delete.
-func (client JobsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (result autorest.Response, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobsClient.Delete")
- defer func() {
- sc := -1
- if result.Response != nil {
- sc = result.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobsClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.DeleteSender(req)
- if err != nil {
- result.Response = resp
- err = autorest.NewErrorWithError(err, "sql.JobsClient", "Delete", resp, "Failure sending request")
- return
- }
-
- result, err = client.DeleteResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobsClient", "Delete", resp, "Failure responding to request")
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client JobsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobName": autorest.Encode("path", jobName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}", 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 JobsClient) DeleteSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client JobsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// Get gets a job.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job to get.
-func (client JobsClient) Get(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (result Job, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client JobsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobName": autorest.Encode("path", jobName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}", 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 JobsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client JobsClient) GetResponder(resp *http.Response) (result Job, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByAgent gets a list of jobs.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-func (client JobsClient) ListByAgent(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (result JobListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobsClient.ListByAgent")
- defer func() {
- sc := -1
- if result.jlr.Response.Response != nil {
- sc = result.jlr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByAgentNextResults
- req, err := client.ListByAgentPreparer(ctx, resourceGroupName, serverName, jobAgentName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobsClient", "ListByAgent", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByAgentSender(req)
- if err != nil {
- result.jlr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobsClient", "ListByAgent", resp, "Failure sending request")
- return
- }
-
- result.jlr, err = client.ListByAgentResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobsClient", "ListByAgent", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByAgentPreparer prepares the ListByAgent request.
-func (client JobsClient) ListByAgentPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByAgentSender sends the ListByAgent request. The method will close the
-// http.Response Body if it receives an error.
-func (client JobsClient) ListByAgentSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByAgentResponder handles the response to the ListByAgent request. The method always
-// closes the http.Response Body.
-func (client JobsClient) ListByAgentResponder(resp *http.Response) (result JobListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByAgentNextResults retrieves the next set of results, if any.
-func (client JobsClient) listByAgentNextResults(ctx context.Context, lastResults JobListResult) (result JobListResult, err error) {
- req, err := lastResults.jobListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.JobsClient", "listByAgentNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByAgentSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.JobsClient", "listByAgentNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByAgentResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobsClient", "listByAgentNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByAgentComplete enumerates all values, automatically crossing page boundaries as required.
-func (client JobsClient) ListByAgentComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (result JobListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobsClient.ListByAgent")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByAgent(ctx, resourceGroupName, serverName, jobAgentName)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/jobstepexecutions.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/jobstepexecutions.go
deleted file mode 100644
index 1e12c6aa765c..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/jobstepexecutions.go
+++ /dev/null
@@ -1,281 +0,0 @@
-package sql
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "github.com/satori/go.uuid"
- "net/http"
-)
-
-// JobStepExecutionsClient is the the Azure SQL Database management API provides a RESTful set of web services that
-// interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update,
-// and delete databases.
-type JobStepExecutionsClient struct {
- BaseClient
-}
-
-// NewJobStepExecutionsClient creates an instance of the JobStepExecutionsClient client.
-func NewJobStepExecutionsClient(subscriptionID string) JobStepExecutionsClient {
- return NewJobStepExecutionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewJobStepExecutionsClientWithBaseURI creates an instance of the JobStepExecutionsClient client.
-func NewJobStepExecutionsClientWithBaseURI(baseURI string, subscriptionID string) JobStepExecutionsClient {
- return JobStepExecutionsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// Get gets a step execution of a job execution.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job to get.
-// jobExecutionID - the unique id of the job execution
-// stepName - the name of the step.
-func (client JobStepExecutionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, stepName string) (result JobExecution, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobStepExecutionsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName, jobExecutionID, stepName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobStepExecutionsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobStepExecutionsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobStepExecutionsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client JobStepExecutionsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, stepName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobExecutionId": autorest.Encode("path", jobExecutionID),
- "jobName": autorest.Encode("path", jobName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "stepName": autorest.Encode("path", stepName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}", 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 JobStepExecutionsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client JobStepExecutionsClient) GetResponder(resp *http.Response) (result JobExecution, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByJobExecution lists the step executions of a job execution.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job to get.
-// jobExecutionID - the id of the job execution
-// createTimeMin - if specified, only job executions created at or after the specified time are included.
-// createTimeMax - if specified, only job executions created before the specified time are included.
-// endTimeMin - if specified, only job executions completed at or after the specified time are included.
-// endTimeMax - if specified, only job executions completed before the specified time are included.
-// isActive - if specified, only active or only completed job executions are included.
-// skip - the number of elements in the collection to skip.
-// top - the number of elements to return from the collection.
-func (client JobStepExecutionsClient) ListByJobExecution(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobStepExecutionsClient.ListByJobExecution")
- defer func() {
- sc := -1
- if result.jelr.Response.Response != nil {
- sc = result.jelr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByJobExecutionNextResults
- req, err := client.ListByJobExecutionPreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName, jobExecutionID, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobStepExecutionsClient", "ListByJobExecution", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByJobExecutionSender(req)
- if err != nil {
- result.jelr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobStepExecutionsClient", "ListByJobExecution", resp, "Failure sending request")
- return
- }
-
- result.jelr, err = client.ListByJobExecutionResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobStepExecutionsClient", "ListByJobExecution", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByJobExecutionPreparer prepares the ListByJobExecution request.
-func (client JobStepExecutionsClient) ListByJobExecutionPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobExecutionId": autorest.Encode("path", jobExecutionID),
- "jobName": autorest.Encode("path", jobName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
- if createTimeMin != nil {
- queryParameters["createTimeMin"] = autorest.Encode("query", *createTimeMin)
- }
- if createTimeMax != nil {
- queryParameters["createTimeMax"] = autorest.Encode("query", *createTimeMax)
- }
- if endTimeMin != nil {
- queryParameters["endTimeMin"] = autorest.Encode("query", *endTimeMin)
- }
- if endTimeMax != nil {
- queryParameters["endTimeMax"] = autorest.Encode("query", *endTimeMax)
- }
- if isActive != nil {
- queryParameters["isActive"] = autorest.Encode("query", *isActive)
- }
- if skip != nil {
- queryParameters["$skip"] = autorest.Encode("query", *skip)
- }
- if top != nil {
- queryParameters["$top"] = autorest.Encode("query", *top)
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByJobExecutionSender sends the ListByJobExecution request. The method will close the
-// http.Response Body if it receives an error.
-func (client JobStepExecutionsClient) ListByJobExecutionSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByJobExecutionResponder handles the response to the ListByJobExecution request. The method always
-// closes the http.Response Body.
-func (client JobStepExecutionsClient) ListByJobExecutionResponder(resp *http.Response) (result JobExecutionListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByJobExecutionNextResults retrieves the next set of results, if any.
-func (client JobStepExecutionsClient) listByJobExecutionNextResults(ctx context.Context, lastResults JobExecutionListResult) (result JobExecutionListResult, err error) {
- req, err := lastResults.jobExecutionListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.JobStepExecutionsClient", "listByJobExecutionNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByJobExecutionSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.JobStepExecutionsClient", "listByJobExecutionNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByJobExecutionResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobStepExecutionsClient", "listByJobExecutionNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByJobExecutionComplete enumerates all values, automatically crossing page boundaries as required.
-func (client JobStepExecutionsClient) ListByJobExecutionComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobStepExecutionsClient.ListByJobExecution")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByJobExecution(ctx, resourceGroupName, serverName, jobAgentName, jobName, jobExecutionID, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/jobsteps.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/jobsteps.go
deleted file mode 100644
index 15abd56ff2fe..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/jobsteps.go
+++ /dev/null
@@ -1,643 +0,0 @@
-package sql
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// JobStepsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact
-// with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and
-// delete databases.
-type JobStepsClient struct {
- BaseClient
-}
-
-// NewJobStepsClient creates an instance of the JobStepsClient client.
-func NewJobStepsClient(subscriptionID string) JobStepsClient {
- return NewJobStepsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewJobStepsClientWithBaseURI creates an instance of the JobStepsClient client.
-func NewJobStepsClientWithBaseURI(baseURI string, subscriptionID string) JobStepsClient {
- return JobStepsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates a job step. This will implicitly create a new job version.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job.
-// stepName - the name of the job step.
-// parameters - the requested state of the job step.
-func (client JobStepsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, stepName string, parameters JobStep) (result JobStep, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobStepsClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.JobStepProperties", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.JobStepProperties.TargetGroup", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.JobStepProperties.Credential", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.JobStepProperties.Action", Name: validation.Null, Rule: true,
- Chain: []validation.Constraint{{Target: "parameters.JobStepProperties.Action.Value", Name: validation.Null, Rule: true, Chain: nil}}},
- {Target: "parameters.JobStepProperties.Output", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.JobStepProperties.Output.ServerName", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.JobStepProperties.Output.DatabaseName", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.JobStepProperties.Output.TableName", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.JobStepProperties.Output.Credential", Name: validation.Null, Rule: true, Chain: nil},
- }},
- }}}}}); err != nil {
- return result, validation.NewError("sql.JobStepsClient", "CreateOrUpdate", err.Error())
- }
-
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName, stepName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.CreateOrUpdateSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "CreateOrUpdate", resp, "Failure sending request")
- return
- }
-
- result, err = client.CreateOrUpdateResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "CreateOrUpdate", resp, "Failure responding to request")
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client JobStepsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, stepName string, parameters JobStep) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobName": autorest.Encode("path", jobName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "stepName": autorest.Encode("path", stepName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- 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.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 JobStepsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client JobStepsClient) CreateOrUpdateResponder(resp *http.Response) (result JobStep, 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 deletes a job step. This will implicitly create a new job version.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job.
-// stepName - the name of the job step to delete.
-func (client JobStepsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, stepName string) (result autorest.Response, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobStepsClient.Delete")
- defer func() {
- sc := -1
- if result.Response != nil {
- sc = result.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName, stepName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.DeleteSender(req)
- if err != nil {
- result.Response = resp
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "Delete", resp, "Failure sending request")
- return
- }
-
- result, err = client.DeleteResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "Delete", resp, "Failure responding to request")
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client JobStepsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, stepName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobName": autorest.Encode("path", jobName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "stepName": autorest.Encode("path", stepName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", 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 JobStepsClient) DeleteSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client JobStepsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// Get gets a job step in a job's current version.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job.
-// stepName - the name of the job step.
-func (client JobStepsClient) Get(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, stepName string) (result JobStep, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobStepsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName, stepName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client JobStepsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, stepName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobName": autorest.Encode("path", jobName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "stepName": autorest.Encode("path", stepName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}", 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 JobStepsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client JobStepsClient) GetResponder(resp *http.Response) (result JobStep, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// GetByVersion gets the specified version of a job step.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job.
-// jobVersion - the version of the job to get.
-// stepName - the name of the job step.
-func (client JobStepsClient) GetByVersion(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobVersion int32, stepName string) (result JobStep, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobStepsClient.GetByVersion")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetByVersionPreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName, jobVersion, stepName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "GetByVersion", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetByVersionSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "GetByVersion", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetByVersionResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "GetByVersion", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetByVersionPreparer prepares the GetByVersion request.
-func (client JobStepsClient) GetByVersionPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobVersion int32, stepName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobName": autorest.Encode("path", jobName),
- "jobVersion": autorest.Encode("path", jobVersion),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "stepName": autorest.Encode("path", stepName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps/{stepName}", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// GetByVersionSender sends the GetByVersion request. The method will close the
-// http.Response Body if it receives an error.
-func (client JobStepsClient) GetByVersionSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetByVersionResponder handles the response to the GetByVersion request. The method always
-// closes the http.Response Body.
-func (client JobStepsClient) GetByVersionResponder(resp *http.Response) (result JobStep, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByJob gets all job steps for a job's current version.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job to get.
-func (client JobStepsClient) ListByJob(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (result JobStepListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobStepsClient.ListByJob")
- defer func() {
- sc := -1
- if result.jslr.Response.Response != nil {
- sc = result.jslr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByJobNextResults
- req, err := client.ListByJobPreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "ListByJob", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByJobSender(req)
- if err != nil {
- result.jslr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "ListByJob", resp, "Failure sending request")
- return
- }
-
- result.jslr, err = client.ListByJobResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "ListByJob", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByJobPreparer prepares the ListByJob request.
-func (client JobStepsClient) ListByJobPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobName": autorest.Encode("path", jobName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByJobSender sends the ListByJob request. The method will close the
-// http.Response Body if it receives an error.
-func (client JobStepsClient) ListByJobSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByJobResponder handles the response to the ListByJob request. The method always
-// closes the http.Response Body.
-func (client JobStepsClient) ListByJobResponder(resp *http.Response) (result JobStepListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByJobNextResults retrieves the next set of results, if any.
-func (client JobStepsClient) listByJobNextResults(ctx context.Context, lastResults JobStepListResult) (result JobStepListResult, err error) {
- req, err := lastResults.jobStepListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.JobStepsClient", "listByJobNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByJobSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.JobStepsClient", "listByJobNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByJobResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "listByJobNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByJobComplete enumerates all values, automatically crossing page boundaries as required.
-func (client JobStepsClient) ListByJobComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (result JobStepListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobStepsClient.ListByJob")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByJob(ctx, resourceGroupName, serverName, jobAgentName, jobName)
- return
-}
-
-// ListByVersion gets all job steps in the specified job version.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job to get.
-// jobVersion - the version of the job to get.
-func (client JobStepsClient) ListByVersion(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobVersion int32) (result JobStepListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobStepsClient.ListByVersion")
- defer func() {
- sc := -1
- if result.jslr.Response.Response != nil {
- sc = result.jslr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByVersionNextResults
- req, err := client.ListByVersionPreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName, jobVersion)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "ListByVersion", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByVersionSender(req)
- if err != nil {
- result.jslr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "ListByVersion", resp, "Failure sending request")
- return
- }
-
- result.jslr, err = client.ListByVersionResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "ListByVersion", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByVersionPreparer prepares the ListByVersion request.
-func (client JobStepsClient) ListByVersionPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobVersion int32) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobName": autorest.Encode("path", jobName),
- "jobVersion": autorest.Encode("path", jobVersion),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByVersionSender sends the ListByVersion request. The method will close the
-// http.Response Body if it receives an error.
-func (client JobStepsClient) ListByVersionSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByVersionResponder handles the response to the ListByVersion request. The method always
-// closes the http.Response Body.
-func (client JobStepsClient) ListByVersionResponder(resp *http.Response) (result JobStepListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByVersionNextResults retrieves the next set of results, if any.
-func (client JobStepsClient) listByVersionNextResults(ctx context.Context, lastResults JobStepListResult) (result JobStepListResult, err error) {
- req, err := lastResults.jobStepListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.JobStepsClient", "listByVersionNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByVersionSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.JobStepsClient", "listByVersionNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByVersionResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobStepsClient", "listByVersionNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByVersionComplete enumerates all values, automatically crossing page boundaries as required.
-func (client JobStepsClient) ListByVersionComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobVersion int32) (result JobStepListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobStepsClient.ListByVersion")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByVersion(ctx, resourceGroupName, serverName, jobAgentName, jobName, jobVersion)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/jobtargetexecutions.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/jobtargetexecutions.go
deleted file mode 100644
index 726a66db0835..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/jobtargetexecutions.go
+++ /dev/null
@@ -1,435 +0,0 @@
-package sql
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "github.com/satori/go.uuid"
- "net/http"
-)
-
-// JobTargetExecutionsClient is the the Azure SQL Database management API provides a RESTful set of web services that
-// interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update,
-// and delete databases.
-type JobTargetExecutionsClient struct {
- BaseClient
-}
-
-// NewJobTargetExecutionsClient creates an instance of the JobTargetExecutionsClient client.
-func NewJobTargetExecutionsClient(subscriptionID string) JobTargetExecutionsClient {
- return NewJobTargetExecutionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewJobTargetExecutionsClientWithBaseURI creates an instance of the JobTargetExecutionsClient client.
-func NewJobTargetExecutionsClientWithBaseURI(baseURI string, subscriptionID string) JobTargetExecutionsClient {
- return JobTargetExecutionsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// Get gets a target execution.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job to get.
-// jobExecutionID - the unique id of the job execution
-// stepName - the name of the step.
-// targetID - the target id.
-func (client JobTargetExecutionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, stepName string, targetID uuid.UUID) (result JobExecution, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobTargetExecutionsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName, jobExecutionID, stepName, targetID)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client JobTargetExecutionsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, stepName string, targetID uuid.UUID) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobExecutionId": autorest.Encode("path", jobExecutionID),
- "jobName": autorest.Encode("path", jobName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "stepName": autorest.Encode("path", stepName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "targetId": autorest.Encode("path", targetID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets/{targetId}", 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 JobTargetExecutionsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client JobTargetExecutionsClient) GetResponder(resp *http.Response) (result JobExecution, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByJobExecution lists target executions for all steps of a job execution.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job to get.
-// jobExecutionID - the id of the job execution
-// createTimeMin - if specified, only job executions created at or after the specified time are included.
-// createTimeMax - if specified, only job executions created before the specified time are included.
-// endTimeMin - if specified, only job executions completed at or after the specified time are included.
-// endTimeMax - if specified, only job executions completed before the specified time are included.
-// isActive - if specified, only active or only completed job executions are included.
-// skip - the number of elements in the collection to skip.
-// top - the number of elements to return from the collection.
-func (client JobTargetExecutionsClient) ListByJobExecution(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobTargetExecutionsClient.ListByJobExecution")
- defer func() {
- sc := -1
- if result.jelr.Response.Response != nil {
- sc = result.jelr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByJobExecutionNextResults
- req, err := client.ListByJobExecutionPreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName, jobExecutionID, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "ListByJobExecution", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByJobExecutionSender(req)
- if err != nil {
- result.jelr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "ListByJobExecution", resp, "Failure sending request")
- return
- }
-
- result.jelr, err = client.ListByJobExecutionResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "ListByJobExecution", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByJobExecutionPreparer prepares the ListByJobExecution request.
-func (client JobTargetExecutionsClient) ListByJobExecutionPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobExecutionId": autorest.Encode("path", jobExecutionID),
- "jobName": autorest.Encode("path", jobName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
- if createTimeMin != nil {
- queryParameters["createTimeMin"] = autorest.Encode("query", *createTimeMin)
- }
- if createTimeMax != nil {
- queryParameters["createTimeMax"] = autorest.Encode("query", *createTimeMax)
- }
- if endTimeMin != nil {
- queryParameters["endTimeMin"] = autorest.Encode("query", *endTimeMin)
- }
- if endTimeMax != nil {
- queryParameters["endTimeMax"] = autorest.Encode("query", *endTimeMax)
- }
- if isActive != nil {
- queryParameters["isActive"] = autorest.Encode("query", *isActive)
- }
- if skip != nil {
- queryParameters["$skip"] = autorest.Encode("query", *skip)
- }
- if top != nil {
- queryParameters["$top"] = autorest.Encode("query", *top)
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/targets", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByJobExecutionSender sends the ListByJobExecution request. The method will close the
-// http.Response Body if it receives an error.
-func (client JobTargetExecutionsClient) ListByJobExecutionSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByJobExecutionResponder handles the response to the ListByJobExecution request. The method always
-// closes the http.Response Body.
-func (client JobTargetExecutionsClient) ListByJobExecutionResponder(resp *http.Response) (result JobExecutionListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByJobExecutionNextResults retrieves the next set of results, if any.
-func (client JobTargetExecutionsClient) listByJobExecutionNextResults(ctx context.Context, lastResults JobExecutionListResult) (result JobExecutionListResult, err error) {
- req, err := lastResults.jobExecutionListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "listByJobExecutionNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByJobExecutionSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "listByJobExecutionNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByJobExecutionResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "listByJobExecutionNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByJobExecutionComplete enumerates all values, automatically crossing page boundaries as required.
-func (client JobTargetExecutionsClient) ListByJobExecutionComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobTargetExecutionsClient.ListByJobExecution")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByJobExecution(ctx, resourceGroupName, serverName, jobAgentName, jobName, jobExecutionID, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top)
- return
-}
-
-// ListByStep lists the target executions of a job step execution.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job to get.
-// jobExecutionID - the id of the job execution
-// stepName - the name of the step.
-// createTimeMin - if specified, only job executions created at or after the specified time are included.
-// createTimeMax - if specified, only job executions created before the specified time are included.
-// endTimeMin - if specified, only job executions completed at or after the specified time are included.
-// endTimeMax - if specified, only job executions completed before the specified time are included.
-// isActive - if specified, only active or only completed job executions are included.
-// skip - the number of elements in the collection to skip.
-// top - the number of elements to return from the collection.
-func (client JobTargetExecutionsClient) ListByStep(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, stepName string, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobTargetExecutionsClient.ListByStep")
- defer func() {
- sc := -1
- if result.jelr.Response.Response != nil {
- sc = result.jelr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByStepNextResults
- req, err := client.ListByStepPreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName, jobExecutionID, stepName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "ListByStep", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByStepSender(req)
- if err != nil {
- result.jelr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "ListByStep", resp, "Failure sending request")
- return
- }
-
- result.jelr, err = client.ListByStepResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "ListByStep", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByStepPreparer prepares the ListByStep request.
-func (client JobTargetExecutionsClient) ListByStepPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, stepName string, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobExecutionId": autorest.Encode("path", jobExecutionID),
- "jobName": autorest.Encode("path", jobName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "stepName": autorest.Encode("path", stepName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
- if createTimeMin != nil {
- queryParameters["createTimeMin"] = autorest.Encode("query", *createTimeMin)
- }
- if createTimeMax != nil {
- queryParameters["createTimeMax"] = autorest.Encode("query", *createTimeMax)
- }
- if endTimeMin != nil {
- queryParameters["endTimeMin"] = autorest.Encode("query", *endTimeMin)
- }
- if endTimeMax != nil {
- queryParameters["endTimeMax"] = autorest.Encode("query", *endTimeMax)
- }
- if isActive != nil {
- queryParameters["isActive"] = autorest.Encode("query", *isActive)
- }
- if skip != nil {
- queryParameters["$skip"] = autorest.Encode("query", *skip)
- }
- if top != nil {
- queryParameters["$top"] = autorest.Encode("query", *top)
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByStepSender sends the ListByStep request. The method will close the
-// http.Response Body if it receives an error.
-func (client JobTargetExecutionsClient) ListByStepSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByStepResponder handles the response to the ListByStep request. The method always
-// closes the http.Response Body.
-func (client JobTargetExecutionsClient) ListByStepResponder(resp *http.Response) (result JobExecutionListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByStepNextResults retrieves the next set of results, if any.
-func (client JobTargetExecutionsClient) listByStepNextResults(ctx context.Context, lastResults JobExecutionListResult) (result JobExecutionListResult, err error) {
- req, err := lastResults.jobExecutionListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "listByStepNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByStepSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "listByStepNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByStepResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobTargetExecutionsClient", "listByStepNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByStepComplete enumerates all values, automatically crossing page boundaries as required.
-func (client JobTargetExecutionsClient) ListByStepComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, stepName string, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobTargetExecutionsClient.ListByStep")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByStep(ctx, resourceGroupName, serverName, jobAgentName, jobName, jobExecutionID, stepName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/jobtargetgroups.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/jobtargetgroups.go
deleted file mode 100644
index 662b16e9dfb3..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/jobtargetgroups.go
+++ /dev/null
@@ -1,417 +0,0 @@
-package sql
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// JobTargetGroupsClient is the the Azure SQL Database management API provides a RESTful set of web services that
-// interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update,
-// and delete databases.
-type JobTargetGroupsClient struct {
- BaseClient
-}
-
-// NewJobTargetGroupsClient creates an instance of the JobTargetGroupsClient client.
-func NewJobTargetGroupsClient(subscriptionID string) JobTargetGroupsClient {
- return NewJobTargetGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewJobTargetGroupsClientWithBaseURI creates an instance of the JobTargetGroupsClient client.
-func NewJobTargetGroupsClientWithBaseURI(baseURI string, subscriptionID string) JobTargetGroupsClient {
- return JobTargetGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates a target group.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// targetGroupName - the name of the target group.
-// parameters - the requested state of the target group.
-func (client JobTargetGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, targetGroupName string, parameters JobTargetGroup) (result JobTargetGroup, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobTargetGroupsClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.JobTargetGroupProperties", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.JobTargetGroupProperties.Members", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil {
- return result, validation.NewError("sql.JobTargetGroupsClient", "CreateOrUpdate", err.Error())
- }
-
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, serverName, jobAgentName, targetGroupName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.CreateOrUpdateSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "CreateOrUpdate", resp, "Failure sending request")
- return
- }
-
- result, err = client.CreateOrUpdateResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "CreateOrUpdate", resp, "Failure responding to request")
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client JobTargetGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, targetGroupName string, parameters JobTargetGroup) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "targetGroupName": autorest.Encode("path", targetGroupName),
- }
-
- const APIVersion = "2017-03-01-preview"
- 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.Sql/servers/{serverName}/jobAgents/{jobAgentName}/targetGroups/{targetGroupName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 JobTargetGroupsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client JobTargetGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result JobTargetGroup, 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 deletes a target group.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// targetGroupName - the name of the target group.
-func (client JobTargetGroupsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, targetGroupName string) (result autorest.Response, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobTargetGroupsClient.Delete")
- defer func() {
- sc := -1
- if result.Response != nil {
- sc = result.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, serverName, jobAgentName, targetGroupName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.DeleteSender(req)
- if err != nil {
- result.Response = resp
- err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "Delete", resp, "Failure sending request")
- return
- }
-
- result, err = client.DeleteResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "Delete", resp, "Failure responding to request")
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client JobTargetGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, targetGroupName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "targetGroupName": autorest.Encode("path", targetGroupName),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/targetGroups/{targetGroupName}", 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 JobTargetGroupsClient) DeleteSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client JobTargetGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// Get gets a target group.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// targetGroupName - the name of the target group.
-func (client JobTargetGroupsClient) Get(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, targetGroupName string) (result JobTargetGroup, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobTargetGroupsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, jobAgentName, targetGroupName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client JobTargetGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, targetGroupName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "targetGroupName": autorest.Encode("path", targetGroupName),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/targetGroups/{targetGroupName}", 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 JobTargetGroupsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client JobTargetGroupsClient) GetResponder(resp *http.Response) (result JobTargetGroup, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByAgent gets all target groups in an agent.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-func (client JobTargetGroupsClient) ListByAgent(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (result JobTargetGroupListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobTargetGroupsClient.ListByAgent")
- defer func() {
- sc := -1
- if result.jtglr.Response.Response != nil {
- sc = result.jtglr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByAgentNextResults
- req, err := client.ListByAgentPreparer(ctx, resourceGroupName, serverName, jobAgentName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "ListByAgent", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByAgentSender(req)
- if err != nil {
- result.jtglr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "ListByAgent", resp, "Failure sending request")
- return
- }
-
- result.jtglr, err = client.ListByAgentResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "ListByAgent", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByAgentPreparer prepares the ListByAgent request.
-func (client JobTargetGroupsClient) ListByAgentPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/targetGroups", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByAgentSender sends the ListByAgent request. The method will close the
-// http.Response Body if it receives an error.
-func (client JobTargetGroupsClient) ListByAgentSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByAgentResponder handles the response to the ListByAgent request. The method always
-// closes the http.Response Body.
-func (client JobTargetGroupsClient) ListByAgentResponder(resp *http.Response) (result JobTargetGroupListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByAgentNextResults retrieves the next set of results, if any.
-func (client JobTargetGroupsClient) listByAgentNextResults(ctx context.Context, lastResults JobTargetGroupListResult) (result JobTargetGroupListResult, err error) {
- req, err := lastResults.jobTargetGroupListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "listByAgentNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByAgentSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "listByAgentNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByAgentResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobTargetGroupsClient", "listByAgentNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByAgentComplete enumerates all values, automatically crossing page boundaries as required.
-func (client JobTargetGroupsClient) ListByAgentComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (result JobTargetGroupListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobTargetGroupsClient.ListByAgent")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByAgent(ctx, resourceGroupName, serverName, jobAgentName)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/jobversions.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/jobversions.go
deleted file mode 100644
index 9b81112ab2a0..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/jobversions.go
+++ /dev/null
@@ -1,247 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// JobVersionsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact
-// with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and
-// delete databases.
-type JobVersionsClient struct {
- BaseClient
-}
-
-// NewJobVersionsClient creates an instance of the JobVersionsClient client.
-func NewJobVersionsClient(subscriptionID string) JobVersionsClient {
- return NewJobVersionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewJobVersionsClientWithBaseURI creates an instance of the JobVersionsClient client.
-func NewJobVersionsClientWithBaseURI(baseURI string, subscriptionID string) JobVersionsClient {
- return JobVersionsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// Get gets a job version.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job.
-// jobVersion - the version of the job to get.
-func (client JobVersionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobVersion int32) (result JobVersion, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobVersionsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName, jobVersion)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobVersionsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobVersionsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobVersionsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client JobVersionsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobVersion int32) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobName": autorest.Encode("path", jobName),
- "jobVersion": autorest.Encode("path", jobVersion),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}", 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 JobVersionsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client JobVersionsClient) GetResponder(resp *http.Response) (result JobVersion, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByJob gets all versions of a job.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// serverName - the name of the server.
-// jobAgentName - the name of the job agent.
-// jobName - the name of the job to get.
-func (client JobVersionsClient) ListByJob(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (result JobVersionListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobVersionsClient.ListByJob")
- defer func() {
- sc := -1
- if result.jvlr.Response.Response != nil {
- sc = result.jvlr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByJobNextResults
- req, err := client.ListByJobPreparer(ctx, resourceGroupName, serverName, jobAgentName, jobName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobVersionsClient", "ListByJob", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByJobSender(req)
- if err != nil {
- result.jvlr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.JobVersionsClient", "ListByJob", resp, "Failure sending request")
- return
- }
-
- result.jvlr, err = client.ListByJobResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobVersionsClient", "ListByJob", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByJobPreparer prepares the ListByJob request.
-func (client JobVersionsClient) ListByJobPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "jobAgentName": autorest.Encode("path", jobAgentName),
- "jobName": autorest.Encode("path", jobName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "serverName": autorest.Encode("path", serverName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByJobSender sends the ListByJob request. The method will close the
-// http.Response Body if it receives an error.
-func (client JobVersionsClient) ListByJobSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByJobResponder handles the response to the ListByJob request. The method always
-// closes the http.Response Body.
-func (client JobVersionsClient) ListByJobResponder(resp *http.Response) (result JobVersionListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByJobNextResults retrieves the next set of results, if any.
-func (client JobVersionsClient) listByJobNextResults(ctx context.Context, lastResults JobVersionListResult) (result JobVersionListResult, err error) {
- req, err := lastResults.jobVersionListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.JobVersionsClient", "listByJobNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByJobSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.JobVersionsClient", "listByJobNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByJobResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.JobVersionsClient", "listByJobNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByJobComplete enumerates all values, automatically crossing page boundaries as required.
-func (client JobVersionsClient) ListByJobComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (result JobVersionListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/JobVersionsClient.ListByJob")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByJob(ctx, resourceGroupName, serverName, jobAgentName, jobName)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/longtermretentionbackups.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/longtermretentionbackups.go
deleted file mode 100644
index bdd82ec29414..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/longtermretentionbackups.go
+++ /dev/null
@@ -1,1118 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// LongTermRetentionBackupsClient is the the Azure SQL Database management API provides a RESTful set of web services
-// that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve,
-// update, and delete databases.
-type LongTermRetentionBackupsClient struct {
- BaseClient
-}
-
-// NewLongTermRetentionBackupsClient creates an instance of the LongTermRetentionBackupsClient client.
-func NewLongTermRetentionBackupsClient(subscriptionID string) LongTermRetentionBackupsClient {
- return NewLongTermRetentionBackupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewLongTermRetentionBackupsClientWithBaseURI creates an instance of the LongTermRetentionBackupsClient client.
-func NewLongTermRetentionBackupsClientWithBaseURI(baseURI string, subscriptionID string) LongTermRetentionBackupsClient {
- return LongTermRetentionBackupsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// Delete deletes a long term retention backup.
-// Parameters:
-// locationName - the location of the database
-// longTermRetentionServerName - the name of the server
-// longTermRetentionDatabaseName - the name of the database
-// backupName - the backup name.
-func (client LongTermRetentionBackupsClient) Delete(ctx context.Context, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, backupName string) (result LongTermRetentionBackupsDeleteFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/LongTermRetentionBackupsClient.Delete")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- result, err = client.DeleteSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "Delete", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client LongTermRetentionBackupsClient) DeletePreparer(ctx context.Context, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, backupName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "backupName": autorest.Encode("path", backupName),
- "locationName": autorest.Encode("path", locationName),
- "longTermRetentionDatabaseName": autorest.Encode("path", longTermRetentionDatabaseName),
- "longTermRetentionServerName": autorest.Encode("path", longTermRetentionServerName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", 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 LongTermRetentionBackupsClient) DeleteSender(req *http.Request) (future LongTermRetentionBackupsDeleteFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client LongTermRetentionBackupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// DeleteByResourceGroup deletes a long term retention backup.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// locationName - the location of the database
-// longTermRetentionServerName - the name of the server
-// longTermRetentionDatabaseName - the name of the database
-// backupName - the backup name.
-func (client LongTermRetentionBackupsClient) DeleteByResourceGroup(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, backupName string) (result LongTermRetentionBackupsDeleteByResourceGroupFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/LongTermRetentionBackupsClient.DeleteByResourceGroup")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeleteByResourceGroupPreparer(ctx, resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "DeleteByResourceGroup", nil, "Failure preparing request")
- return
- }
-
- result, err = client.DeleteByResourceGroupSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "DeleteByResourceGroup", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// DeleteByResourceGroupPreparer prepares the DeleteByResourceGroup request.
-func (client LongTermRetentionBackupsClient) DeleteByResourceGroupPreparer(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, backupName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "backupName": autorest.Encode("path", backupName),
- "locationName": autorest.Encode("path", locationName),
- "longTermRetentionDatabaseName": autorest.Encode("path", longTermRetentionDatabaseName),
- "longTermRetentionServerName": autorest.Encode("path", longTermRetentionServerName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// DeleteByResourceGroupSender sends the DeleteByResourceGroup request. The method will close the
-// http.Response Body if it receives an error.
-func (client LongTermRetentionBackupsClient) DeleteByResourceGroupSender(req *http.Request) (future LongTermRetentionBackupsDeleteByResourceGroupFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// DeleteByResourceGroupResponder handles the response to the DeleteByResourceGroup request. The method always
-// closes the http.Response Body.
-func (client LongTermRetentionBackupsClient) DeleteByResourceGroupResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// Get gets a long term retention backup.
-// Parameters:
-// locationName - the location of the database.
-// longTermRetentionServerName - the name of the server
-// longTermRetentionDatabaseName - the name of the database
-// backupName - the backup name.
-func (client LongTermRetentionBackupsClient) Get(ctx context.Context, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, backupName string) (result LongTermRetentionBackup, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/LongTermRetentionBackupsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client LongTermRetentionBackupsClient) GetPreparer(ctx context.Context, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, backupName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "backupName": autorest.Encode("path", backupName),
- "locationName": autorest.Encode("path", locationName),
- "longTermRetentionDatabaseName": autorest.Encode("path", longTermRetentionDatabaseName),
- "longTermRetentionServerName": autorest.Encode("path", longTermRetentionServerName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", 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 LongTermRetentionBackupsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client LongTermRetentionBackupsClient) GetResponder(resp *http.Response) (result LongTermRetentionBackup, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// GetByResourceGroup gets a long term retention backup.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// locationName - the location of the database.
-// longTermRetentionServerName - the name of the server
-// longTermRetentionDatabaseName - the name of the database
-// backupName - the backup name.
-func (client LongTermRetentionBackupsClient) GetByResourceGroup(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, backupName string) (result LongTermRetentionBackup, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/LongTermRetentionBackupsClient.GetByResourceGroup")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetByResourceGroupPreparer(ctx, resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "GetByResourceGroup", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetByResourceGroupSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "GetByResourceGroup", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetByResourceGroupResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "GetByResourceGroup", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetByResourceGroupPreparer prepares the GetByResourceGroup request.
-func (client LongTermRetentionBackupsClient) GetByResourceGroupPreparer(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, backupName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "backupName": autorest.Encode("path", backupName),
- "locationName": autorest.Encode("path", locationName),
- "longTermRetentionDatabaseName": autorest.Encode("path", longTermRetentionDatabaseName),
- "longTermRetentionServerName": autorest.Encode("path", longTermRetentionServerName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// GetByResourceGroupSender sends the GetByResourceGroup request. The method will close the
-// http.Response Body if it receives an error.
-func (client LongTermRetentionBackupsClient) GetByResourceGroupSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetByResourceGroupResponder handles the response to the GetByResourceGroup request. The method always
-// closes the http.Response Body.
-func (client LongTermRetentionBackupsClient) GetByResourceGroupResponder(resp *http.Response) (result LongTermRetentionBackup, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByDatabase lists all long term retention backups for a database.
-// Parameters:
-// locationName - the location of the database
-// longTermRetentionServerName - the name of the server
-// longTermRetentionDatabaseName - the name of the database
-// onlyLatestPerDatabase - whether or not to only get the latest backup for each database.
-// databaseState - whether to query against just live databases, just deleted databases, or all databases.
-func (client LongTermRetentionBackupsClient) ListByDatabase(ctx context.Context, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/LongTermRetentionBackupsClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.ltrblr.Response.Response != nil {
- sc = result.ltrblr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByDatabaseNextResults
- req, err := client.ListByDatabasePreparer(ctx, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByDatabase", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.ltrblr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByDatabase", resp, "Failure sending request")
- return
- }
-
- result.ltrblr, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByDatabase", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByDatabasePreparer prepares the ListByDatabase request.
-func (client LongTermRetentionBackupsClient) ListByDatabasePreparer(ctx context.Context, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "locationName": autorest.Encode("path", locationName),
- "longTermRetentionDatabaseName": autorest.Encode("path", longTermRetentionDatabaseName),
- "longTermRetentionServerName": autorest.Encode("path", longTermRetentionServerName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
- if onlyLatestPerDatabase != nil {
- queryParameters["onlyLatestPerDatabase"] = autorest.Encode("query", *onlyLatestPerDatabase)
- }
- if len(string(databaseState)) > 0 {
- queryParameters["databaseState"] = autorest.Encode("query", databaseState)
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByDatabaseSender sends the ListByDatabase request. The method will close the
-// http.Response Body if it receives an error.
-func (client LongTermRetentionBackupsClient) ListByDatabaseSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByDatabaseResponder handles the response to the ListByDatabase request. The method always
-// closes the http.Response Body.
-func (client LongTermRetentionBackupsClient) ListByDatabaseResponder(resp *http.Response) (result LongTermRetentionBackupListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByDatabaseNextResults retrieves the next set of results, if any.
-func (client LongTermRetentionBackupsClient) listByDatabaseNextResults(ctx context.Context, lastResults LongTermRetentionBackupListResult) (result LongTermRetentionBackupListResult, err error) {
- req, err := lastResults.longTermRetentionBackupListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByDatabaseNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByDatabaseNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByDatabaseNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.
-func (client LongTermRetentionBackupsClient) ListByDatabaseComplete(ctx context.Context, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/LongTermRetentionBackupsClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByDatabase(ctx, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState)
- return
-}
-
-// ListByLocation lists the long term retention backups for a given location.
-// Parameters:
-// locationName - the location of the database
-// onlyLatestPerDatabase - whether or not to only get the latest backup for each database.
-// databaseState - whether to query against just live databases, just deleted databases, or all databases.
-func (client LongTermRetentionBackupsClient) ListByLocation(ctx context.Context, locationName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/LongTermRetentionBackupsClient.ListByLocation")
- defer func() {
- sc := -1
- if result.ltrblr.Response.Response != nil {
- sc = result.ltrblr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByLocationNextResults
- req, err := client.ListByLocationPreparer(ctx, locationName, onlyLatestPerDatabase, databaseState)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByLocation", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByLocationSender(req)
- if err != nil {
- result.ltrblr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByLocation", resp, "Failure sending request")
- return
- }
-
- result.ltrblr, err = client.ListByLocationResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByLocation", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByLocationPreparer prepares the ListByLocation request.
-func (client LongTermRetentionBackupsClient) ListByLocationPreparer(ctx context.Context, locationName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "locationName": autorest.Encode("path", locationName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
- if onlyLatestPerDatabase != nil {
- queryParameters["onlyLatestPerDatabase"] = autorest.Encode("query", *onlyLatestPerDatabase)
- }
- if len(string(databaseState)) > 0 {
- queryParameters["databaseState"] = autorest.Encode("query", databaseState)
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByLocationSender sends the ListByLocation request. The method will close the
-// http.Response Body if it receives an error.
-func (client LongTermRetentionBackupsClient) ListByLocationSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByLocationResponder handles the response to the ListByLocation request. The method always
-// closes the http.Response Body.
-func (client LongTermRetentionBackupsClient) ListByLocationResponder(resp *http.Response) (result LongTermRetentionBackupListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByLocationNextResults retrieves the next set of results, if any.
-func (client LongTermRetentionBackupsClient) listByLocationNextResults(ctx context.Context, lastResults LongTermRetentionBackupListResult) (result LongTermRetentionBackupListResult, err error) {
- req, err := lastResults.longTermRetentionBackupListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByLocationNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByLocationSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByLocationNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByLocationResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByLocationNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByLocationComplete enumerates all values, automatically crossing page boundaries as required.
-func (client LongTermRetentionBackupsClient) ListByLocationComplete(ctx context.Context, locationName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/LongTermRetentionBackupsClient.ListByLocation")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByLocation(ctx, locationName, onlyLatestPerDatabase, databaseState)
- return
-}
-
-// ListByResourceGroupDatabase lists all long term retention backups for a database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// locationName - the location of the database
-// longTermRetentionServerName - the name of the server
-// longTermRetentionDatabaseName - the name of the database
-// onlyLatestPerDatabase - whether or not to only get the latest backup for each database.
-// databaseState - whether to query against just live databases, just deleted databases, or all databases.
-func (client LongTermRetentionBackupsClient) ListByResourceGroupDatabase(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/LongTermRetentionBackupsClient.ListByResourceGroupDatabase")
- defer func() {
- sc := -1
- if result.ltrblr.Response.Response != nil {
- sc = result.ltrblr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByResourceGroupDatabaseNextResults
- req, err := client.ListByResourceGroupDatabasePreparer(ctx, resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByResourceGroupDatabase", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByResourceGroupDatabaseSender(req)
- if err != nil {
- result.ltrblr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByResourceGroupDatabase", resp, "Failure sending request")
- return
- }
-
- result.ltrblr, err = client.ListByResourceGroupDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByResourceGroupDatabase", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByResourceGroupDatabasePreparer prepares the ListByResourceGroupDatabase request.
-func (client LongTermRetentionBackupsClient) ListByResourceGroupDatabasePreparer(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "locationName": autorest.Encode("path", locationName),
- "longTermRetentionDatabaseName": autorest.Encode("path", longTermRetentionDatabaseName),
- "longTermRetentionServerName": autorest.Encode("path", longTermRetentionServerName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
- if onlyLatestPerDatabase != nil {
- queryParameters["onlyLatestPerDatabase"] = autorest.Encode("query", *onlyLatestPerDatabase)
- }
- if len(string(databaseState)) > 0 {
- queryParameters["databaseState"] = autorest.Encode("query", databaseState)
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByResourceGroupDatabaseSender sends the ListByResourceGroupDatabase request. The method will close the
-// http.Response Body if it receives an error.
-func (client LongTermRetentionBackupsClient) ListByResourceGroupDatabaseSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByResourceGroupDatabaseResponder handles the response to the ListByResourceGroupDatabase request. The method always
-// closes the http.Response Body.
-func (client LongTermRetentionBackupsClient) ListByResourceGroupDatabaseResponder(resp *http.Response) (result LongTermRetentionBackupListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByResourceGroupDatabaseNextResults retrieves the next set of results, if any.
-func (client LongTermRetentionBackupsClient) listByResourceGroupDatabaseNextResults(ctx context.Context, lastResults LongTermRetentionBackupListResult) (result LongTermRetentionBackupListResult, err error) {
- req, err := lastResults.longTermRetentionBackupListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByResourceGroupDatabaseNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByResourceGroupDatabaseSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByResourceGroupDatabaseNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByResourceGroupDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByResourceGroupDatabaseNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByResourceGroupDatabaseComplete enumerates all values, automatically crossing page boundaries as required.
-func (client LongTermRetentionBackupsClient) ListByResourceGroupDatabaseComplete(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/LongTermRetentionBackupsClient.ListByResourceGroupDatabase")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByResourceGroupDatabase(ctx, resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState)
- return
-}
-
-// ListByResourceGroupLocation lists the long term retention backups for a given location.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// locationName - the location of the database
-// onlyLatestPerDatabase - whether or not to only get the latest backup for each database.
-// databaseState - whether to query against just live databases, just deleted databases, or all databases.
-func (client LongTermRetentionBackupsClient) ListByResourceGroupLocation(ctx context.Context, resourceGroupName string, locationName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/LongTermRetentionBackupsClient.ListByResourceGroupLocation")
- defer func() {
- sc := -1
- if result.ltrblr.Response.Response != nil {
- sc = result.ltrblr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByResourceGroupLocationNextResults
- req, err := client.ListByResourceGroupLocationPreparer(ctx, resourceGroupName, locationName, onlyLatestPerDatabase, databaseState)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByResourceGroupLocation", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByResourceGroupLocationSender(req)
- if err != nil {
- result.ltrblr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByResourceGroupLocation", resp, "Failure sending request")
- return
- }
-
- result.ltrblr, err = client.ListByResourceGroupLocationResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByResourceGroupLocation", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByResourceGroupLocationPreparer prepares the ListByResourceGroupLocation request.
-func (client LongTermRetentionBackupsClient) ListByResourceGroupLocationPreparer(ctx context.Context, resourceGroupName string, locationName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "locationName": autorest.Encode("path", locationName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
- if onlyLatestPerDatabase != nil {
- queryParameters["onlyLatestPerDatabase"] = autorest.Encode("query", *onlyLatestPerDatabase)
- }
- if len(string(databaseState)) > 0 {
- queryParameters["databaseState"] = autorest.Encode("query", databaseState)
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByResourceGroupLocationSender sends the ListByResourceGroupLocation request. The method will close the
-// http.Response Body if it receives an error.
-func (client LongTermRetentionBackupsClient) ListByResourceGroupLocationSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByResourceGroupLocationResponder handles the response to the ListByResourceGroupLocation request. The method always
-// closes the http.Response Body.
-func (client LongTermRetentionBackupsClient) ListByResourceGroupLocationResponder(resp *http.Response) (result LongTermRetentionBackupListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByResourceGroupLocationNextResults retrieves the next set of results, if any.
-func (client LongTermRetentionBackupsClient) listByResourceGroupLocationNextResults(ctx context.Context, lastResults LongTermRetentionBackupListResult) (result LongTermRetentionBackupListResult, err error) {
- req, err := lastResults.longTermRetentionBackupListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByResourceGroupLocationNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByResourceGroupLocationSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByResourceGroupLocationNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByResourceGroupLocationResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByResourceGroupLocationNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByResourceGroupLocationComplete enumerates all values, automatically crossing page boundaries as required.
-func (client LongTermRetentionBackupsClient) ListByResourceGroupLocationComplete(ctx context.Context, resourceGroupName string, locationName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/LongTermRetentionBackupsClient.ListByResourceGroupLocation")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByResourceGroupLocation(ctx, resourceGroupName, locationName, onlyLatestPerDatabase, databaseState)
- return
-}
-
-// ListByResourceGroupServer lists the long term retention backups for a given server.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// locationName - the location of the database
-// longTermRetentionServerName - the name of the server
-// onlyLatestPerDatabase - whether or not to only get the latest backup for each database.
-// databaseState - whether to query against just live databases, just deleted databases, or all databases.
-func (client LongTermRetentionBackupsClient) ListByResourceGroupServer(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/LongTermRetentionBackupsClient.ListByResourceGroupServer")
- defer func() {
- sc := -1
- if result.ltrblr.Response.Response != nil {
- sc = result.ltrblr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByResourceGroupServerNextResults
- req, err := client.ListByResourceGroupServerPreparer(ctx, resourceGroupName, locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByResourceGroupServer", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByResourceGroupServerSender(req)
- if err != nil {
- result.ltrblr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByResourceGroupServer", resp, "Failure sending request")
- return
- }
-
- result.ltrblr, err = client.ListByResourceGroupServerResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByResourceGroupServer", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByResourceGroupServerPreparer prepares the ListByResourceGroupServer request.
-func (client LongTermRetentionBackupsClient) ListByResourceGroupServerPreparer(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "locationName": autorest.Encode("path", locationName),
- "longTermRetentionServerName": autorest.Encode("path", longTermRetentionServerName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
- if onlyLatestPerDatabase != nil {
- queryParameters["onlyLatestPerDatabase"] = autorest.Encode("query", *onlyLatestPerDatabase)
- }
- if len(string(databaseState)) > 0 {
- queryParameters["databaseState"] = autorest.Encode("query", databaseState)
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByResourceGroupServerSender sends the ListByResourceGroupServer request. The method will close the
-// http.Response Body if it receives an error.
-func (client LongTermRetentionBackupsClient) ListByResourceGroupServerSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByResourceGroupServerResponder handles the response to the ListByResourceGroupServer request. The method always
-// closes the http.Response Body.
-func (client LongTermRetentionBackupsClient) ListByResourceGroupServerResponder(resp *http.Response) (result LongTermRetentionBackupListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByResourceGroupServerNextResults retrieves the next set of results, if any.
-func (client LongTermRetentionBackupsClient) listByResourceGroupServerNextResults(ctx context.Context, lastResults LongTermRetentionBackupListResult) (result LongTermRetentionBackupListResult, err error) {
- req, err := lastResults.longTermRetentionBackupListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByResourceGroupServerNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByResourceGroupServerSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByResourceGroupServerNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByResourceGroupServerResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByResourceGroupServerNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByResourceGroupServerComplete enumerates all values, automatically crossing page boundaries as required.
-func (client LongTermRetentionBackupsClient) ListByResourceGroupServerComplete(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/LongTermRetentionBackupsClient.ListByResourceGroupServer")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByResourceGroupServer(ctx, resourceGroupName, locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState)
- return
-}
-
-// ListByServer lists the long term retention backups for a given server.
-// Parameters:
-// locationName - the location of the database
-// longTermRetentionServerName - the name of the server
-// onlyLatestPerDatabase - whether or not to only get the latest backup for each database.
-// databaseState - whether to query against just live databases, just deleted databases, or all databases.
-func (client LongTermRetentionBackupsClient) ListByServer(ctx context.Context, locationName string, longTermRetentionServerName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/LongTermRetentionBackupsClient.ListByServer")
- defer func() {
- sc := -1
- if result.ltrblr.Response.Response != nil {
- sc = result.ltrblr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByServerNextResults
- req, err := client.ListByServerPreparer(ctx, locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByServer", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByServerSender(req)
- if err != nil {
- result.ltrblr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByServer", resp, "Failure sending request")
- return
- }
-
- result.ltrblr, err = client.ListByServerResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "ListByServer", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByServerPreparer prepares the ListByServer request.
-func (client LongTermRetentionBackupsClient) ListByServerPreparer(ctx context.Context, locationName string, longTermRetentionServerName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "locationName": autorest.Encode("path", locationName),
- "longTermRetentionServerName": autorest.Encode("path", longTermRetentionServerName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
- if onlyLatestPerDatabase != nil {
- queryParameters["onlyLatestPerDatabase"] = autorest.Encode("query", *onlyLatestPerDatabase)
- }
- if len(string(databaseState)) > 0 {
- queryParameters["databaseState"] = autorest.Encode("query", databaseState)
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByServerSender sends the ListByServer request. The method will close the
-// http.Response Body if it receives an error.
-func (client LongTermRetentionBackupsClient) ListByServerSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByServerResponder handles the response to the ListByServer request. The method always
-// closes the http.Response Body.
-func (client LongTermRetentionBackupsClient) ListByServerResponder(resp *http.Response) (result LongTermRetentionBackupListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByServerNextResults retrieves the next set of results, if any.
-func (client LongTermRetentionBackupsClient) listByServerNextResults(ctx context.Context, lastResults LongTermRetentionBackupListResult) (result LongTermRetentionBackupListResult, err error) {
- req, err := lastResults.longTermRetentionBackupListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByServerNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByServerSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByServerNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByServerResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.LongTermRetentionBackupsClient", "listByServerNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByServerComplete enumerates all values, automatically crossing page boundaries as required.
-func (client LongTermRetentionBackupsClient) ListByServerComplete(ctx context.Context, locationName string, longTermRetentionServerName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/LongTermRetentionBackupsClient.ListByServer")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByServer(ctx, locationName, longTermRetentionServerName, onlyLatestPerDatabase, databaseState)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/managedbackupshorttermretentionpolicies.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/managedbackupshorttermretentionpolicies.go
deleted file mode 100644
index dec37cea9ef0..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/managedbackupshorttermretentionpolicies.go
+++ /dev/null
@@ -1,412 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// ManagedBackupShortTermRetentionPoliciesClient is the the Azure SQL Database management API provides a RESTful set of
-// web services that interact with Azure SQL Database services to manage your databases. The API enables you to create,
-// retrieve, update, and delete databases.
-type ManagedBackupShortTermRetentionPoliciesClient struct {
- BaseClient
-}
-
-// NewManagedBackupShortTermRetentionPoliciesClient creates an instance of the
-// ManagedBackupShortTermRetentionPoliciesClient client.
-func NewManagedBackupShortTermRetentionPoliciesClient(subscriptionID string) ManagedBackupShortTermRetentionPoliciesClient {
- return NewManagedBackupShortTermRetentionPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewManagedBackupShortTermRetentionPoliciesClientWithBaseURI creates an instance of the
-// ManagedBackupShortTermRetentionPoliciesClient client.
-func NewManagedBackupShortTermRetentionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ManagedBackupShortTermRetentionPoliciesClient {
- return ManagedBackupShortTermRetentionPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate updates a managed database's short term retention policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-// parameters - the short term retention policy info.
-func (client ManagedBackupShortTermRetentionPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedBackupShortTermRetentionPolicy) (result ManagedBackupShortTermRetentionPoliciesCreateOrUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedBackupShortTermRetentionPoliciesClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, managedInstanceName, databaseName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedBackupShortTermRetentionPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateOrUpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedBackupShortTermRetentionPoliciesClient", "CreateOrUpdate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client ManagedBackupShortTermRetentionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedBackupShortTermRetentionPolicy) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "policyName": autorest.Encode("path", "default"),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- 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.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ManagedBackupShortTermRetentionPoliciesClient) CreateOrUpdateSender(req *http.Request) (future ManagedBackupShortTermRetentionPoliciesCreateOrUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client ManagedBackupShortTermRetentionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedBackupShortTermRetentionPolicy, 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}
- return
-}
-
-// Get gets a managed database's short term retention policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-func (client ManagedBackupShortTermRetentionPoliciesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result ManagedBackupShortTermRetentionPolicy, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedBackupShortTermRetentionPoliciesClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, managedInstanceName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedBackupShortTermRetentionPoliciesClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedBackupShortTermRetentionPoliciesClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedBackupShortTermRetentionPoliciesClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client ManagedBackupShortTermRetentionPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "policyName": autorest.Encode("path", "default"),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", 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 ManagedBackupShortTermRetentionPoliciesClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client ManagedBackupShortTermRetentionPoliciesClient) GetResponder(resp *http.Response) (result ManagedBackupShortTermRetentionPolicy, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByDatabase gets a managed database's short term retention policy list.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-func (client ManagedBackupShortTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result ManagedBackupShortTermRetentionPolicyListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedBackupShortTermRetentionPoliciesClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.mbstrplr.Response.Response != nil {
- sc = result.mbstrplr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByDatabaseNextResults
- req, err := client.ListByDatabasePreparer(ctx, resourceGroupName, managedInstanceName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedBackupShortTermRetentionPoliciesClient", "ListByDatabase", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.mbstrplr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedBackupShortTermRetentionPoliciesClient", "ListByDatabase", resp, "Failure sending request")
- return
- }
-
- result.mbstrplr, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedBackupShortTermRetentionPoliciesClient", "ListByDatabase", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByDatabasePreparer prepares the ListByDatabase request.
-func (client ManagedBackupShortTermRetentionPoliciesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByDatabaseSender sends the ListByDatabase request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedBackupShortTermRetentionPoliciesClient) ListByDatabaseSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByDatabaseResponder handles the response to the ListByDatabase request. The method always
-// closes the http.Response Body.
-func (client ManagedBackupShortTermRetentionPoliciesClient) ListByDatabaseResponder(resp *http.Response) (result ManagedBackupShortTermRetentionPolicyListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByDatabaseNextResults retrieves the next set of results, if any.
-func (client ManagedBackupShortTermRetentionPoliciesClient) listByDatabaseNextResults(ctx context.Context, lastResults ManagedBackupShortTermRetentionPolicyListResult) (result ManagedBackupShortTermRetentionPolicyListResult, err error) {
- req, err := lastResults.managedBackupShortTermRetentionPolicyListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.ManagedBackupShortTermRetentionPoliciesClient", "listByDatabaseNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.ManagedBackupShortTermRetentionPoliciesClient", "listByDatabaseNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedBackupShortTermRetentionPoliciesClient", "listByDatabaseNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ManagedBackupShortTermRetentionPoliciesClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result ManagedBackupShortTermRetentionPolicyListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedBackupShortTermRetentionPoliciesClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByDatabase(ctx, resourceGroupName, managedInstanceName, databaseName)
- return
-}
-
-// Update updates a managed database's short term retention policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-// parameters - the short term retention policy info.
-func (client ManagedBackupShortTermRetentionPoliciesClient) Update(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedBackupShortTermRetentionPolicy) (result ManagedBackupShortTermRetentionPoliciesUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedBackupShortTermRetentionPoliciesClient.Update")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.UpdatePreparer(ctx, resourceGroupName, managedInstanceName, databaseName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedBackupShortTermRetentionPoliciesClient", "Update", nil, "Failure preparing request")
- return
- }
-
- result, err = client.UpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedBackupShortTermRetentionPoliciesClient", "Update", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// UpdatePreparer prepares the Update request.
-func (client ManagedBackupShortTermRetentionPoliciesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedBackupShortTermRetentionPolicy) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "policyName": autorest.Encode("path", "default"),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- 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.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ManagedBackupShortTermRetentionPoliciesClient) UpdateSender(req *http.Request) (future ManagedBackupShortTermRetentionPoliciesUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// UpdateResponder handles the response to the Update request. The method always
-// closes the http.Response Body.
-func (client ManagedBackupShortTermRetentionPoliciesClient) UpdateResponder(resp *http.Response) (result ManagedBackupShortTermRetentionPolicy, 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}
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabaserestoredetails.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabaserestoredetails.go
deleted file mode 100644
index 727b63bb9028..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabaserestoredetails.go
+++ /dev/null
@@ -1,125 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// ManagedDatabaseRestoreDetailsClient is the the Azure SQL Database management API provides a RESTful set of web
-// services that interact with Azure SQL Database services to manage your databases. The API enables you to create,
-// retrieve, update, and delete databases.
-type ManagedDatabaseRestoreDetailsClient struct {
- BaseClient
-}
-
-// NewManagedDatabaseRestoreDetailsClient creates an instance of the ManagedDatabaseRestoreDetailsClient client.
-func NewManagedDatabaseRestoreDetailsClient(subscriptionID string) ManagedDatabaseRestoreDetailsClient {
- return NewManagedDatabaseRestoreDetailsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewManagedDatabaseRestoreDetailsClientWithBaseURI creates an instance of the ManagedDatabaseRestoreDetailsClient
-// client.
-func NewManagedDatabaseRestoreDetailsClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseRestoreDetailsClient {
- return ManagedDatabaseRestoreDetailsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// Get gets managed database restore details.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-func (client ManagedDatabaseRestoreDetailsClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result ManagedDatabaseRestoreDetailsResult, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseRestoreDetailsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, managedInstanceName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseRestoreDetailsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseRestoreDetailsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseRestoreDetailsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client ManagedDatabaseRestoreDetailsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "restoreDetailsName": autorest.Encode("path", "Default"),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/restoreDetails/{restoreDetailsName}", 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 ManagedDatabaseRestoreDetailsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseRestoreDetailsClient) GetResponder(resp *http.Response) (result ManagedDatabaseRestoreDetailsResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabases.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabases.go
deleted file mode 100644
index 76430e3bd4dc..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabases.go
+++ /dev/null
@@ -1,573 +0,0 @@
-package sql
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// ManagedDatabasesClient is the the Azure SQL Database management API provides a RESTful set of web services that
-// interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update,
-// and delete databases.
-type ManagedDatabasesClient struct {
- BaseClient
-}
-
-// NewManagedDatabasesClient creates an instance of the ManagedDatabasesClient client.
-func NewManagedDatabasesClient(subscriptionID string) ManagedDatabasesClient {
- return NewManagedDatabasesClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewManagedDatabasesClientWithBaseURI creates an instance of the ManagedDatabasesClient client.
-func NewManagedDatabasesClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabasesClient {
- return ManagedDatabasesClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CompleteRestore completes the restore operation on a managed database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-// parameters - the definition for completing the restore of this managed database.
-func (client ManagedDatabasesClient) CompleteRestore(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters CompleteDatabaseRestoreDefinition) (result ManagedDatabasesCompleteRestoreFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabasesClient.CompleteRestore")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.LastBackupName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
- return result, validation.NewError("sql.ManagedDatabasesClient", "CompleteRestore", err.Error())
- }
-
- req, err := client.CompleteRestorePreparer(ctx, resourceGroupName, managedInstanceName, databaseName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "CompleteRestore", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CompleteRestoreSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "CompleteRestore", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CompleteRestorePreparer prepares the CompleteRestore request.
-func (client ManagedDatabasesClient) CompleteRestorePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters CompleteDatabaseRestoreDefinition) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- 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("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/completeRestore", pathParameters),
- autorest.WithJSON(parameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// CompleteRestoreSender sends the CompleteRestore request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedDatabasesClient) CompleteRestoreSender(req *http.Request) (future ManagedDatabasesCompleteRestoreFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CompleteRestoreResponder handles the response to the CompleteRestore request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabasesClient) CompleteRestoreResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// CreateOrUpdate creates a new database or updates an existing database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-// parameters - the requested database resource state.
-func (client ManagedDatabasesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedDatabase) (result ManagedDatabasesCreateOrUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabasesClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, managedInstanceName, databaseName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateOrUpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "CreateOrUpdate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client ManagedDatabasesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedDatabase) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- 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.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ManagedDatabasesClient) CreateOrUpdateSender(req *http.Request) (future ManagedDatabasesCreateOrUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabasesClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedDatabase, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// Delete deletes a managed database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-func (client ManagedDatabasesClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result ManagedDatabasesDeleteFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabasesClient.Delete")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, managedInstanceName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- result, err = client.DeleteSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "Delete", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client ManagedDatabasesClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}", 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 ManagedDatabasesClient) DeleteSender(req *http.Request) (future ManagedDatabasesDeleteFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabasesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// Get gets a managed database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-func (client ManagedDatabasesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result ManagedDatabase, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabasesClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, managedInstanceName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client ManagedDatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}", 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 ManagedDatabasesClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabasesClient) GetResponder(resp *http.Response) (result ManagedDatabase, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByInstance gets a list of managed databases.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-func (client ManagedDatabasesClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedDatabaseListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabasesClient.ListByInstance")
- defer func() {
- sc := -1
- if result.mdlr.Response.Response != nil {
- sc = result.mdlr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByInstanceNextResults
- req, err := client.ListByInstancePreparer(ctx, resourceGroupName, managedInstanceName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "ListByInstance", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByInstanceSender(req)
- if err != nil {
- result.mdlr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "ListByInstance", resp, "Failure sending request")
- return
- }
-
- result.mdlr, err = client.ListByInstanceResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "ListByInstance", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByInstancePreparer prepares the ListByInstance request.
-func (client ManagedDatabasesClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByInstanceSender sends the ListByInstance request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedDatabasesClient) ListByInstanceSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByInstanceResponder handles the response to the ListByInstance request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabasesClient) ListByInstanceResponder(resp *http.Response) (result ManagedDatabaseListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByInstanceNextResults retrieves the next set of results, if any.
-func (client ManagedDatabasesClient) listByInstanceNextResults(ctx context.Context, lastResults ManagedDatabaseListResult) (result ManagedDatabaseListResult, err error) {
- req, err := lastResults.managedDatabaseListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "listByInstanceNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByInstanceSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "listByInstanceNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByInstanceResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "listByInstanceNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByInstanceComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ManagedDatabasesClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedDatabaseListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabasesClient.ListByInstance")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByInstance(ctx, resourceGroupName, managedInstanceName)
- return
-}
-
-// Update updates an existing database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-// parameters - the requested database resource state.
-func (client ManagedDatabasesClient) Update(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedDatabaseUpdate) (result ManagedDatabasesUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabasesClient.Update")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.UpdatePreparer(ctx, resourceGroupName, managedInstanceName, databaseName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "Update", nil, "Failure preparing request")
- return
- }
-
- result, err = client.UpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabasesClient", "Update", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// UpdatePreparer prepares the Update request.
-func (client ManagedDatabasesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedDatabaseUpdate) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- 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.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ManagedDatabasesClient) UpdateSender(req *http.Request) (future ManagedDatabasesUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// UpdateResponder handles the response to the Update request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabasesClient) UpdateResponder(resp *http.Response) (result ManagedDatabase, 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}
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabasesecurityalertpolicies.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabasesecurityalertpolicies.go
deleted file mode 100644
index 8fc35a56c94f..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabasesecurityalertpolicies.go
+++ /dev/null
@@ -1,328 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// ManagedDatabaseSecurityAlertPoliciesClient is the the Azure SQL Database management API provides a RESTful set of
-// web services that interact with Azure SQL Database services to manage your databases. The API enables you to create,
-// retrieve, update, and delete databases.
-type ManagedDatabaseSecurityAlertPoliciesClient struct {
- BaseClient
-}
-
-// NewManagedDatabaseSecurityAlertPoliciesClient creates an instance of the ManagedDatabaseSecurityAlertPoliciesClient
-// client.
-func NewManagedDatabaseSecurityAlertPoliciesClient(subscriptionID string) ManagedDatabaseSecurityAlertPoliciesClient {
- return NewManagedDatabaseSecurityAlertPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewManagedDatabaseSecurityAlertPoliciesClientWithBaseURI creates an instance of the
-// ManagedDatabaseSecurityAlertPoliciesClient client.
-func NewManagedDatabaseSecurityAlertPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseSecurityAlertPoliciesClient {
- return ManagedDatabaseSecurityAlertPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates a database's security alert policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the managed database for which the security alert policy is defined.
-// parameters - the database security alert policy.
-func (client ManagedDatabaseSecurityAlertPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedDatabaseSecurityAlertPolicy) (result ManagedDatabaseSecurityAlertPolicy, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseSecurityAlertPoliciesClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, managedInstanceName, databaseName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSecurityAlertPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.CreateOrUpdateSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSecurityAlertPoliciesClient", "CreateOrUpdate", resp, "Failure sending request")
- return
- }
-
- result, err = client.CreateOrUpdateResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSecurityAlertPoliciesClient", "CreateOrUpdate", resp, "Failure responding to request")
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client ManagedDatabaseSecurityAlertPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedDatabaseSecurityAlertPolicy) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "securityAlertPolicyName": autorest.Encode("path", "default"),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- 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.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ManagedDatabaseSecurityAlertPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseSecurityAlertPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedDatabaseSecurityAlertPolicy, 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
-}
-
-// Get gets a managed database's security alert policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the managed database for which the security alert policy is defined.
-func (client ManagedDatabaseSecurityAlertPoliciesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result ManagedDatabaseSecurityAlertPolicy, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseSecurityAlertPoliciesClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, managedInstanceName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSecurityAlertPoliciesClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSecurityAlertPoliciesClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSecurityAlertPoliciesClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client ManagedDatabaseSecurityAlertPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "securityAlertPolicyName": autorest.Encode("path", "default"),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", 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 ManagedDatabaseSecurityAlertPoliciesClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseSecurityAlertPoliciesClient) GetResponder(resp *http.Response) (result ManagedDatabaseSecurityAlertPolicy, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByDatabase gets a list of managed database's security alert policies.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the managed database for which the security alert policies are defined.
-func (client ManagedDatabaseSecurityAlertPoliciesClient) ListByDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result ManagedDatabaseSecurityAlertPolicyListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseSecurityAlertPoliciesClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.mdsaplr.Response.Response != nil {
- sc = result.mdsaplr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByDatabaseNextResults
- req, err := client.ListByDatabasePreparer(ctx, resourceGroupName, managedInstanceName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSecurityAlertPoliciesClient", "ListByDatabase", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.mdsaplr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSecurityAlertPoliciesClient", "ListByDatabase", resp, "Failure sending request")
- return
- }
-
- result.mdsaplr, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSecurityAlertPoliciesClient", "ListByDatabase", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByDatabasePreparer prepares the ListByDatabase request.
-func (client ManagedDatabaseSecurityAlertPoliciesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByDatabaseSender sends the ListByDatabase request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedDatabaseSecurityAlertPoliciesClient) ListByDatabaseSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByDatabaseResponder handles the response to the ListByDatabase request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseSecurityAlertPoliciesClient) ListByDatabaseResponder(resp *http.Response) (result ManagedDatabaseSecurityAlertPolicyListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByDatabaseNextResults retrieves the next set of results, if any.
-func (client ManagedDatabaseSecurityAlertPoliciesClient) listByDatabaseNextResults(ctx context.Context, lastResults ManagedDatabaseSecurityAlertPolicyListResult) (result ManagedDatabaseSecurityAlertPolicyListResult, err error) {
- req, err := lastResults.managedDatabaseSecurityAlertPolicyListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.ManagedDatabaseSecurityAlertPoliciesClient", "listByDatabaseNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.ManagedDatabaseSecurityAlertPoliciesClient", "listByDatabaseNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSecurityAlertPoliciesClient", "listByDatabaseNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ManagedDatabaseSecurityAlertPoliciesClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result ManagedDatabaseSecurityAlertPolicyListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseSecurityAlertPoliciesClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByDatabase(ctx, resourceGroupName, managedInstanceName, databaseName)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabasesensitivitylabels.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabasesensitivitylabels.go
deleted file mode 100644
index 657a41c92c88..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabasesensitivitylabels.go
+++ /dev/null
@@ -1,732 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// ManagedDatabaseSensitivityLabelsClient is the the Azure SQL Database management API provides a RESTful set of web
-// services that interact with Azure SQL Database services to manage your databases. The API enables you to create,
-// retrieve, update, and delete databases.
-type ManagedDatabaseSensitivityLabelsClient struct {
- BaseClient
-}
-
-// NewManagedDatabaseSensitivityLabelsClient creates an instance of the ManagedDatabaseSensitivityLabelsClient client.
-func NewManagedDatabaseSensitivityLabelsClient(subscriptionID string) ManagedDatabaseSensitivityLabelsClient {
- return NewManagedDatabaseSensitivityLabelsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewManagedDatabaseSensitivityLabelsClientWithBaseURI creates an instance of the
-// ManagedDatabaseSensitivityLabelsClient client.
-func NewManagedDatabaseSensitivityLabelsClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseSensitivityLabelsClient {
- return ManagedDatabaseSensitivityLabelsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates the sensitivity label of a given column
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-// schemaName - the name of the schema.
-// tableName - the name of the table.
-// columnName - the name of the column.
-// parameters - the column sensitivity label resource.
-func (client ManagedDatabaseSensitivityLabelsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string, parameters SensitivityLabel) (result SensitivityLabel, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseSensitivityLabelsClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, managedInstanceName, databaseName, schemaName, tableName, columnName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.CreateOrUpdateSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "CreateOrUpdate", resp, "Failure sending request")
- return
- }
-
- result, err = client.CreateOrUpdateResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "CreateOrUpdate", resp, "Failure responding to request")
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client ManagedDatabaseSensitivityLabelsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string, parameters SensitivityLabel) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "columnName": autorest.Encode("path", columnName),
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "schemaName": autorest.Encode("path", schemaName),
- "sensitivityLabelSource": autorest.Encode("path", "current"),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "tableName": autorest.Encode("path", tableName),
- }
-
- const APIVersion = "2018-06-01-preview"
- 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.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ManagedDatabaseSensitivityLabelsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseSensitivityLabelsClient) CreateOrUpdateResponder(resp *http.Response) (result SensitivityLabel, 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 deletes the sensitivity label of a given column
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-// schemaName - the name of the schema.
-// tableName - the name of the table.
-// columnName - the name of the column.
-func (client ManagedDatabaseSensitivityLabelsClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string) (result autorest.Response, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseSensitivityLabelsClient.Delete")
- defer func() {
- sc := -1
- if result.Response != nil {
- sc = result.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, managedInstanceName, databaseName, schemaName, tableName, columnName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.DeleteSender(req)
- if err != nil {
- result.Response = resp
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "Delete", resp, "Failure sending request")
- return
- }
-
- result, err = client.DeleteResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "Delete", resp, "Failure responding to request")
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client ManagedDatabaseSensitivityLabelsClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "columnName": autorest.Encode("path", columnName),
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "schemaName": autorest.Encode("path", schemaName),
- "sensitivityLabelSource": autorest.Encode("path", "current"),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "tableName": autorest.Encode("path", tableName),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", 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 ManagedDatabaseSensitivityLabelsClient) DeleteSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseSensitivityLabelsClient) 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
-}
-
-// DisableRecommendation disables sensitivity recommendations on a given column
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-// schemaName - the name of the schema.
-// tableName - the name of the table.
-// columnName - the name of the column.
-func (client ManagedDatabaseSensitivityLabelsClient) DisableRecommendation(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string) (result autorest.Response, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseSensitivityLabelsClient.DisableRecommendation")
- defer func() {
- sc := -1
- if result.Response != nil {
- sc = result.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DisableRecommendationPreparer(ctx, resourceGroupName, managedInstanceName, databaseName, schemaName, tableName, columnName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "DisableRecommendation", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.DisableRecommendationSender(req)
- if err != nil {
- result.Response = resp
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "DisableRecommendation", resp, "Failure sending request")
- return
- }
-
- result, err = client.DisableRecommendationResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "DisableRecommendation", resp, "Failure responding to request")
- }
-
- return
-}
-
-// DisableRecommendationPreparer prepares the DisableRecommendation request.
-func (client ManagedDatabaseSensitivityLabelsClient) DisableRecommendationPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "columnName": autorest.Encode("path", columnName),
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "schemaName": autorest.Encode("path", schemaName),
- "sensitivityLabelSource": autorest.Encode("path", "recommended"),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "tableName": autorest.Encode("path", tableName),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/disable", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// DisableRecommendationSender sends the DisableRecommendation request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedDatabaseSensitivityLabelsClient) DisableRecommendationSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// DisableRecommendationResponder handles the response to the DisableRecommendation request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseSensitivityLabelsClient) DisableRecommendationResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// EnableRecommendation enables sensitivity recommendations on a given column (recommendations are enabled by default
-// on all columns)
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-// schemaName - the name of the schema.
-// tableName - the name of the table.
-// columnName - the name of the column.
-func (client ManagedDatabaseSensitivityLabelsClient) EnableRecommendation(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string) (result autorest.Response, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseSensitivityLabelsClient.EnableRecommendation")
- defer func() {
- sc := -1
- if result.Response != nil {
- sc = result.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.EnableRecommendationPreparer(ctx, resourceGroupName, managedInstanceName, databaseName, schemaName, tableName, columnName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "EnableRecommendation", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.EnableRecommendationSender(req)
- if err != nil {
- result.Response = resp
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "EnableRecommendation", resp, "Failure sending request")
- return
- }
-
- result, err = client.EnableRecommendationResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "EnableRecommendation", resp, "Failure responding to request")
- }
-
- return
-}
-
-// EnableRecommendationPreparer prepares the EnableRecommendation request.
-func (client ManagedDatabaseSensitivityLabelsClient) EnableRecommendationPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "columnName": autorest.Encode("path", columnName),
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "schemaName": autorest.Encode("path", schemaName),
- "sensitivityLabelSource": autorest.Encode("path", "recommended"),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "tableName": autorest.Encode("path", tableName),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// EnableRecommendationSender sends the EnableRecommendation request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedDatabaseSensitivityLabelsClient) EnableRecommendationSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// EnableRecommendationResponder handles the response to the EnableRecommendation request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseSensitivityLabelsClient) EnableRecommendationResponder(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 sensitivity label of a given column
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-// schemaName - the name of the schema.
-// tableName - the name of the table.
-// columnName - the name of the column.
-// sensitivityLabelSource - the source of the sensitivity label.
-func (client ManagedDatabaseSensitivityLabelsClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string, sensitivityLabelSource SensitivityLabelSource) (result SensitivityLabel, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseSensitivityLabelsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, managedInstanceName, databaseName, schemaName, tableName, columnName, sensitivityLabelSource)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client ManagedDatabaseSensitivityLabelsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string, sensitivityLabelSource SensitivityLabelSource) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "columnName": autorest.Encode("path", columnName),
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "schemaName": autorest.Encode("path", schemaName),
- "sensitivityLabelSource": autorest.Encode("path", sensitivityLabelSource),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "tableName": autorest.Encode("path", tableName),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", 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 ManagedDatabaseSensitivityLabelsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseSensitivityLabelsClient) GetResponder(resp *http.Response) (result SensitivityLabel, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListCurrentByDatabase gets the sensitivity labels of a given database
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-// filter - an OData filter expression that filters elements in the collection.
-func (client ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, filter string) (result SensitivityLabelListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseSensitivityLabelsClient.ListCurrentByDatabase")
- defer func() {
- sc := -1
- if result.sllr.Response.Response != nil {
- sc = result.sllr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listCurrentByDatabaseNextResults
- req, err := client.ListCurrentByDatabasePreparer(ctx, resourceGroupName, managedInstanceName, databaseName, filter)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "ListCurrentByDatabase", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListCurrentByDatabaseSender(req)
- if err != nil {
- result.sllr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "ListCurrentByDatabase", resp, "Failure sending request")
- return
- }
-
- result.sllr, err = client.ListCurrentByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "ListCurrentByDatabase", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListCurrentByDatabasePreparer prepares the ListCurrentByDatabase request.
-func (client ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, filter string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- 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("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListCurrentByDatabaseSender sends the ListCurrentByDatabase request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabaseSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListCurrentByDatabaseResponder handles the response to the ListCurrentByDatabase request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabaseResponder(resp *http.Response) (result SensitivityLabelListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listCurrentByDatabaseNextResults retrieves the next set of results, if any.
-func (client ManagedDatabaseSensitivityLabelsClient) listCurrentByDatabaseNextResults(ctx context.Context, lastResults SensitivityLabelListResult) (result SensitivityLabelListResult, err error) {
- req, err := lastResults.sensitivityLabelListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "listCurrentByDatabaseNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListCurrentByDatabaseSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "listCurrentByDatabaseNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListCurrentByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "listCurrentByDatabaseNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListCurrentByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, filter string) (result SensitivityLabelListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseSensitivityLabelsClient.ListCurrentByDatabase")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListCurrentByDatabase(ctx, resourceGroupName, managedInstanceName, databaseName, filter)
- return
-}
-
-// ListRecommendedByDatabase gets the sensitivity labels of a given database
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-// includeDisabledRecommendations - specifies whether to include disabled recommendations or not.
-// filter - an OData filter expression that filters elements in the collection.
-func (client ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, includeDisabledRecommendations *bool, skipToken string, filter string) (result SensitivityLabelListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseSensitivityLabelsClient.ListRecommendedByDatabase")
- defer func() {
- sc := -1
- if result.sllr.Response.Response != nil {
- sc = result.sllr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listRecommendedByDatabaseNextResults
- req, err := client.ListRecommendedByDatabasePreparer(ctx, resourceGroupName, managedInstanceName, databaseName, includeDisabledRecommendations, skipToken, filter)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "ListRecommendedByDatabase", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListRecommendedByDatabaseSender(req)
- if err != nil {
- result.sllr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "ListRecommendedByDatabase", resp, "Failure sending request")
- return
- }
-
- result.sllr, err = client.ListRecommendedByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "ListRecommendedByDatabase", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListRecommendedByDatabasePreparer prepares the ListRecommendedByDatabase request.
-func (client ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, includeDisabledRecommendations *bool, skipToken string, filter string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
- if includeDisabledRecommendations != nil {
- queryParameters["includeDisabledRecommendations"] = autorest.Encode("query", *includeDisabledRecommendations)
- }
- if len(skipToken) > 0 {
- queryParameters["$skipToken"] = autorest.Encode("query", skipToken)
- }
- if len(filter) > 0 {
- queryParameters["$filter"] = autorest.Encode("query", filter)
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/recommendedSensitivityLabels", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListRecommendedByDatabaseSender sends the ListRecommendedByDatabase request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabaseSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListRecommendedByDatabaseResponder handles the response to the ListRecommendedByDatabase request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabaseResponder(resp *http.Response) (result SensitivityLabelListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listRecommendedByDatabaseNextResults retrieves the next set of results, if any.
-func (client ManagedDatabaseSensitivityLabelsClient) listRecommendedByDatabaseNextResults(ctx context.Context, lastResults SensitivityLabelListResult) (result SensitivityLabelListResult, err error) {
- req, err := lastResults.sensitivityLabelListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "listRecommendedByDatabaseNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListRecommendedByDatabaseSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "listRecommendedByDatabaseNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListRecommendedByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseSensitivityLabelsClient", "listRecommendedByDatabaseNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListRecommendedByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, includeDisabledRecommendations *bool, skipToken string, filter string) (result SensitivityLabelListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseSensitivityLabelsClient.ListRecommendedByDatabase")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListRecommendedByDatabase(ctx, resourceGroupName, managedInstanceName, databaseName, includeDisabledRecommendations, skipToken, filter)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabasevulnerabilityassessmentrulebaselines.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabasevulnerabilityassessmentrulebaselines.go
deleted file mode 100644
index 1cb0954cae8a..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabasevulnerabilityassessmentrulebaselines.go
+++ /dev/null
@@ -1,313 +0,0 @@
-package sql
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient is the the Azure SQL Database management API provides a
-// RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables
-// you to create, retrieve, update, and delete databases.
-type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient struct {
- BaseClient
-}
-
-// NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient creates an instance of the
-// ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient client.
-func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient(subscriptionID string) ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient {
- return NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI creates an instance of the
-// ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient client.
-func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient {
- return ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates a database's vulnerability assessment rule baseline.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database for which the vulnerability assessment rule baseline is defined.
-// ruleID - the vulnerability assessment rule ID.
-// baselineName - the name of the vulnerability assessment rule baseline (default implies a baseline on a
-// database level rule and master for server level rule).
-// parameters - the requested rule baseline resource.
-func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName, parameters DatabaseVulnerabilityAssessmentRuleBaseline) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.DatabaseVulnerabilityAssessmentRuleBaselineProperties", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.DatabaseVulnerabilityAssessmentRuleBaselineProperties.BaselineResults", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil {
- return result, validation.NewError("sql.ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient", "CreateOrUpdate", err.Error())
- }
-
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, managedInstanceName, databaseName, ruleID, baselineName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.CreateOrUpdateSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient", "CreateOrUpdate", resp, "Failure sending request")
- return
- }
-
- result, err = client.CreateOrUpdateResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient", "CreateOrUpdate", resp, "Failure responding to request")
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName, parameters DatabaseVulnerabilityAssessmentRuleBaseline) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "baselineName": autorest.Encode("path", baselineName),
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "ruleId": autorest.Encode("path", ruleID),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-10-01-preview"
- 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.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentRuleBaseline, 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 removes the database's vulnerability assessment rule baseline.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database for which the vulnerability assessment rule baseline is defined.
-// ruleID - the vulnerability assessment rule ID.
-// baselineName - the name of the vulnerability assessment rule baseline (default implies a baseline on a
-// database level rule and master for server level rule).
-func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (result autorest.Response, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient.Delete")
- defer func() {
- sc := -1
- if result.Response != nil {
- sc = result.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, managedInstanceName, databaseName, ruleID, baselineName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.DeleteSender(req)
- if err != nil {
- result.Response = resp
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient", "Delete", resp, "Failure sending request")
- return
- }
-
- result, err = client.DeleteResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient", "Delete", resp, "Failure responding to request")
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "baselineName": autorest.Encode("path", baselineName),
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "ruleId": autorest.Encode("path", ruleID),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", 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 ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) DeleteSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) 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 a database's vulnerability assessment rule baseline.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database for which the vulnerability assessment rule baseline is defined.
-// ruleID - the vulnerability assessment rule ID.
-// baselineName - the name of the vulnerability assessment rule baseline (default implies a baseline on a
-// database level rule and master for server level rule).
-func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, managedInstanceName, databaseName, ruleID, baselineName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "baselineName": autorest.Encode("path", baselineName),
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "ruleId": autorest.Encode("path", ruleID),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", 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 ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabasevulnerabilityassessments.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabasevulnerabilityassessments.go
deleted file mode 100644
index 404c29a8c123..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabasevulnerabilityassessments.go
+++ /dev/null
@@ -1,408 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// ManagedDatabaseVulnerabilityAssessmentsClient is the the Azure SQL Database management API provides a RESTful set of
-// web services that interact with Azure SQL Database services to manage your databases. The API enables you to create,
-// retrieve, update, and delete databases.
-type ManagedDatabaseVulnerabilityAssessmentsClient struct {
- BaseClient
-}
-
-// NewManagedDatabaseVulnerabilityAssessmentsClient creates an instance of the
-// ManagedDatabaseVulnerabilityAssessmentsClient client.
-func NewManagedDatabaseVulnerabilityAssessmentsClient(subscriptionID string) ManagedDatabaseVulnerabilityAssessmentsClient {
- return NewManagedDatabaseVulnerabilityAssessmentsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewManagedDatabaseVulnerabilityAssessmentsClientWithBaseURI creates an instance of the
-// ManagedDatabaseVulnerabilityAssessmentsClient client.
-func NewManagedDatabaseVulnerabilityAssessmentsClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseVulnerabilityAssessmentsClient {
- return ManagedDatabaseVulnerabilityAssessmentsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates the database's vulnerability assessment.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database for which the vulnerability assessment is defined.
-// parameters - the requested resource.
-func (client ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters DatabaseVulnerabilityAssessment) (result DatabaseVulnerabilityAssessment, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseVulnerabilityAssessmentsClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, managedInstanceName, databaseName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.CreateOrUpdateSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "CreateOrUpdate", resp, "Failure sending request")
- return
- }
-
- result, err = client.CreateOrUpdateResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "CreateOrUpdate", resp, "Failure responding to request")
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters DatabaseVulnerabilityAssessment) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-10-01-preview"
- 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.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseVulnerabilityAssessment, 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 removes the database's vulnerability assessment.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database for which the vulnerability assessment is defined.
-func (client ManagedDatabaseVulnerabilityAssessmentsClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result autorest.Response, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseVulnerabilityAssessmentsClient.Delete")
- defer func() {
- sc := -1
- if result.Response != nil {
- sc = result.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, managedInstanceName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.DeleteSender(req)
- if err != nil {
- result.Response = resp
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "Delete", resp, "Failure sending request")
- return
- }
-
- result, err = client.DeleteResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "Delete", resp, "Failure responding to request")
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client ManagedDatabaseVulnerabilityAssessmentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", 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 ManagedDatabaseVulnerabilityAssessmentsClient) DeleteSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseVulnerabilityAssessmentsClient) 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 database's vulnerability assessment.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database for which the vulnerability assessment is defined.
-func (client ManagedDatabaseVulnerabilityAssessmentsClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result DatabaseVulnerabilityAssessment, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseVulnerabilityAssessmentsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, managedInstanceName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client ManagedDatabaseVulnerabilityAssessmentsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", 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 ManagedDatabaseVulnerabilityAssessmentsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseVulnerabilityAssessmentsClient) GetResponder(resp *http.Response) (result DatabaseVulnerabilityAssessment, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByDatabase lists the vulnerability assessments of a managed database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database for which the vulnerability assessment is defined.
-func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result DatabaseVulnerabilityAssessmentListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseVulnerabilityAssessmentsClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.dvalr.Response.Response != nil {
- sc = result.dvalr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByDatabaseNextResults
- req, err := client.ListByDatabasePreparer(ctx, resourceGroupName, managedInstanceName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "ListByDatabase", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.dvalr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "ListByDatabase", resp, "Failure sending request")
- return
- }
-
- result.dvalr, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "ListByDatabase", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByDatabasePreparer prepares the ListByDatabase request.
-func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByDatabaseSender sends the ListByDatabase request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByDatabaseResponder handles the response to the ListByDatabase request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByDatabaseNextResults retrieves the next set of results, if any.
-func (client ManagedDatabaseVulnerabilityAssessmentsClient) listByDatabaseNextResults(ctx context.Context, lastResults DatabaseVulnerabilityAssessmentListResult) (result DatabaseVulnerabilityAssessmentListResult, err error) {
- req, err := lastResults.databaseVulnerabilityAssessmentListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "listByDatabaseNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "listByDatabaseNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentsClient", "listByDatabaseNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result DatabaseVulnerabilityAssessmentListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseVulnerabilityAssessmentsClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByDatabase(ctx, resourceGroupName, managedInstanceName, databaseName)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabasevulnerabilityassessmentscans.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabasevulnerabilityassessmentscans.go
deleted file mode 100644
index 029bf35400a3..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/manageddatabasevulnerabilityassessmentscans.go
+++ /dev/null
@@ -1,412 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// ManagedDatabaseVulnerabilityAssessmentScansClient is the the Azure SQL Database management API provides a RESTful
-// set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to
-// create, retrieve, update, and delete databases.
-type ManagedDatabaseVulnerabilityAssessmentScansClient struct {
- BaseClient
-}
-
-// NewManagedDatabaseVulnerabilityAssessmentScansClient creates an instance of the
-// ManagedDatabaseVulnerabilityAssessmentScansClient client.
-func NewManagedDatabaseVulnerabilityAssessmentScansClient(subscriptionID string) ManagedDatabaseVulnerabilityAssessmentScansClient {
- return NewManagedDatabaseVulnerabilityAssessmentScansClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewManagedDatabaseVulnerabilityAssessmentScansClientWithBaseURI creates an instance of the
-// ManagedDatabaseVulnerabilityAssessmentScansClient client.
-func NewManagedDatabaseVulnerabilityAssessmentScansClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseVulnerabilityAssessmentScansClient {
- return ManagedDatabaseVulnerabilityAssessmentScansClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// Export convert an existing scan result to a human readable format. If already exists nothing happens
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the scanned database.
-// scanID - the vulnerability assessment scan Id.
-func (client ManagedDatabaseVulnerabilityAssessmentScansClient) Export(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, scanID string) (result DatabaseVulnerabilityAssessmentScansExport, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseVulnerabilityAssessmentScansClient.Export")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.ExportPreparer(ctx, resourceGroupName, managedInstanceName, databaseName, scanID)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "Export", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ExportSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "Export", resp, "Failure sending request")
- return
- }
-
- result, err = client.ExportResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "Export", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ExportPreparer prepares the Export request.
-func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ExportPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, scanID string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "scanId": autorest.Encode("path", scanID),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/export", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ExportSender sends the Export request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ExportSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ExportResponder handles the response to the Export request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ExportResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentScansExport, 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
-}
-
-// Get gets a vulnerability assessment scan record of a database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-// scanID - the vulnerability assessment scan Id of the scan to retrieve.
-func (client ManagedDatabaseVulnerabilityAssessmentScansClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, scanID string) (result VulnerabilityAssessmentScanRecord, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseVulnerabilityAssessmentScansClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, managedInstanceName, databaseName, scanID)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client ManagedDatabaseVulnerabilityAssessmentScansClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, scanID string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "scanId": autorest.Encode("path", scanID),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", 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 ManagedDatabaseVulnerabilityAssessmentScansClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseVulnerabilityAssessmentScansClient) GetResponder(resp *http.Response) (result VulnerabilityAssessmentScanRecord, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// InitiateScan executes a Vulnerability Assessment database scan.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-// scanID - the vulnerability assessment scan Id of the scan to retrieve.
-func (client ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScan(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, scanID string) (result ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseVulnerabilityAssessmentScansClient.InitiateScan")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.InitiateScanPreparer(ctx, resourceGroupName, managedInstanceName, databaseName, scanID)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "InitiateScan", nil, "Failure preparing request")
- return
- }
-
- result, err = client.InitiateScanSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "InitiateScan", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// InitiateScanPreparer prepares the InitiateScan request.
-func (client ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, scanID string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "scanId": autorest.Encode("path", scanID),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// InitiateScanSender sends the InitiateScan request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanSender(req *http.Request) (future ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// InitiateScanResponder handles the response to the InitiateScan request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// ListByDatabase lists the vulnerability assessment scans of a database.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// databaseName - the name of the database.
-func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result VulnerabilityAssessmentScanRecordListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseVulnerabilityAssessmentScansClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.vasrlr.Response.Response != nil {
- sc = result.vasrlr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByDatabaseNextResults
- req, err := client.ListByDatabasePreparer(ctx, resourceGroupName, managedInstanceName, databaseName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "ListByDatabase", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.vasrlr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "ListByDatabase", resp, "Failure sending request")
- return
- }
-
- result.vasrlr, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "ListByDatabase", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByDatabasePreparer prepares the ListByDatabase request.
-func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "databaseName": autorest.Encode("path", databaseName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByDatabaseSender sends the ListByDatabase request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByDatabaseResponder handles the response to the ListByDatabase request. The method always
-// closes the http.Response Body.
-func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseResponder(resp *http.Response) (result VulnerabilityAssessmentScanRecordListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByDatabaseNextResults retrieves the next set of results, if any.
-func (client ManagedDatabaseVulnerabilityAssessmentScansClient) listByDatabaseNextResults(ctx context.Context, lastResults VulnerabilityAssessmentScanRecordListResult) (result VulnerabilityAssessmentScanRecordListResult, err error) {
- req, err := lastResults.vulnerabilityAssessmentScanRecordListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "listByDatabaseNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByDatabaseSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "listByDatabaseNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedDatabaseVulnerabilityAssessmentScansClient", "listByDatabaseNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result VulnerabilityAssessmentScanRecordListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedDatabaseVulnerabilityAssessmentScansClient.ListByDatabase")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByDatabase(ctx, resourceGroupName, managedInstanceName, databaseName)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/managedinstanceadministrators.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/managedinstanceadministrators.go
deleted file mode 100644
index ce3fa15903af..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/managedinstanceadministrators.go
+++ /dev/null
@@ -1,413 +0,0 @@
-package sql
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// ManagedInstanceAdministratorsClient is the the Azure SQL Database management API provides a RESTful set of web
-// services that interact with Azure SQL Database services to manage your databases. The API enables you to create,
-// retrieve, update, and delete databases.
-type ManagedInstanceAdministratorsClient struct {
- BaseClient
-}
-
-// NewManagedInstanceAdministratorsClient creates an instance of the ManagedInstanceAdministratorsClient client.
-func NewManagedInstanceAdministratorsClient(subscriptionID string) ManagedInstanceAdministratorsClient {
- return NewManagedInstanceAdministratorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewManagedInstanceAdministratorsClientWithBaseURI creates an instance of the ManagedInstanceAdministratorsClient
-// client.
-func NewManagedInstanceAdministratorsClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceAdministratorsClient {
- return ManagedInstanceAdministratorsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates a managed instance administrator.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// administratorName - the requested administrator name.
-// parameters - the requested administrator parameters.
-func (client ManagedInstanceAdministratorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, administratorName string, parameters ManagedInstanceAdministrator) (result ManagedInstanceAdministratorsCreateOrUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceAdministratorsClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.ManagedInstanceAdministratorProperties", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.ManagedInstanceAdministratorProperties.AdministratorType", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.ManagedInstanceAdministratorProperties.Login", Name: validation.Null, Rule: true, Chain: nil},
- {Target: "parameters.ManagedInstanceAdministratorProperties.Sid", Name: validation.Null, Rule: true, Chain: nil},
- }}}}}); err != nil {
- return result, validation.NewError("sql.ManagedInstanceAdministratorsClient", "CreateOrUpdate", err.Error())
- }
-
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, managedInstanceName, administratorName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAdministratorsClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateOrUpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAdministratorsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client ManagedInstanceAdministratorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, administratorName string, parameters ManagedInstanceAdministrator) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "administratorName": autorest.Encode("path", administratorName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- 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.Sql/managedInstances/{managedInstanceName}/administrators/{administratorName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ManagedInstanceAdministratorsClient) CreateOrUpdateSender(req *http.Request) (future ManagedInstanceAdministratorsCreateOrUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client ManagedInstanceAdministratorsClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedInstanceAdministrator, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// Delete deletes a managed instance administrator.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// administratorName - the administrator name.
-func (client ManagedInstanceAdministratorsClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, administratorName string) (result ManagedInstanceAdministratorsDeleteFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceAdministratorsClient.Delete")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, managedInstanceName, administratorName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAdministratorsClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- result, err = client.DeleteSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAdministratorsClient", "Delete", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client ManagedInstanceAdministratorsClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, administratorName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "administratorName": autorest.Encode("path", administratorName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/administrators/{administratorName}", 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 ManagedInstanceAdministratorsClient) DeleteSender(req *http.Request) (future ManagedInstanceAdministratorsDeleteFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client ManagedInstanceAdministratorsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// Get gets a managed instance administrator.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// administratorName - the administrator name.
-func (client ManagedInstanceAdministratorsClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, administratorName string) (result ManagedInstanceAdministrator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceAdministratorsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, managedInstanceName, administratorName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAdministratorsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAdministratorsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAdministratorsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client ManagedInstanceAdministratorsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, administratorName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "administratorName": autorest.Encode("path", administratorName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/administrators/{administratorName}", 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 ManagedInstanceAdministratorsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client ManagedInstanceAdministratorsClient) GetResponder(resp *http.Response) (result ManagedInstanceAdministrator, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByInstance gets a list of managed instance administrators.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-func (client ManagedInstanceAdministratorsClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceAdministratorListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceAdministratorsClient.ListByInstance")
- defer func() {
- sc := -1
- if result.mialr.Response.Response != nil {
- sc = result.mialr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByInstanceNextResults
- req, err := client.ListByInstancePreparer(ctx, resourceGroupName, managedInstanceName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAdministratorsClient", "ListByInstance", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByInstanceSender(req)
- if err != nil {
- result.mialr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAdministratorsClient", "ListByInstance", resp, "Failure sending request")
- return
- }
-
- result.mialr, err = client.ListByInstanceResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAdministratorsClient", "ListByInstance", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByInstancePreparer prepares the ListByInstance request.
-func (client ManagedInstanceAdministratorsClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/administrators", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByInstanceSender sends the ListByInstance request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedInstanceAdministratorsClient) ListByInstanceSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByInstanceResponder handles the response to the ListByInstance request. The method always
-// closes the http.Response Body.
-func (client ManagedInstanceAdministratorsClient) ListByInstanceResponder(resp *http.Response) (result ManagedInstanceAdministratorListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByInstanceNextResults retrieves the next set of results, if any.
-func (client ManagedInstanceAdministratorsClient) listByInstanceNextResults(ctx context.Context, lastResults ManagedInstanceAdministratorListResult) (result ManagedInstanceAdministratorListResult, err error) {
- req, err := lastResults.managedInstanceAdministratorListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.ManagedInstanceAdministratorsClient", "listByInstanceNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByInstanceSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.ManagedInstanceAdministratorsClient", "listByInstanceNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByInstanceResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceAdministratorsClient", "listByInstanceNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByInstanceComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ManagedInstanceAdministratorsClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceAdministratorListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceAdministratorsClient.ListByInstance")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByInstance(ctx, resourceGroupName, managedInstanceName)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/managedinstanceencryptionprotectors.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/managedinstanceencryptionprotectors.go
deleted file mode 100644
index 4f0f12f184f1..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/managedinstanceencryptionprotectors.go
+++ /dev/null
@@ -1,401 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// ManagedInstanceEncryptionProtectorsClient is the the Azure SQL Database management API provides a RESTful set of web
-// services that interact with Azure SQL Database services to manage your databases. The API enables you to create,
-// retrieve, update, and delete databases.
-type ManagedInstanceEncryptionProtectorsClient struct {
- BaseClient
-}
-
-// NewManagedInstanceEncryptionProtectorsClient creates an instance of the ManagedInstanceEncryptionProtectorsClient
-// client.
-func NewManagedInstanceEncryptionProtectorsClient(subscriptionID string) ManagedInstanceEncryptionProtectorsClient {
- return NewManagedInstanceEncryptionProtectorsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewManagedInstanceEncryptionProtectorsClientWithBaseURI creates an instance of the
-// ManagedInstanceEncryptionProtectorsClient client.
-func NewManagedInstanceEncryptionProtectorsClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceEncryptionProtectorsClient {
- return ManagedInstanceEncryptionProtectorsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate updates an existing encryption protector.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// parameters - the requested encryption protector resource state.
-func (client ManagedInstanceEncryptionProtectorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstanceEncryptionProtector) (result ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceEncryptionProtectorsClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, managedInstanceName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateOrUpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsClient", "CreateOrUpdate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client ManagedInstanceEncryptionProtectorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstanceEncryptionProtector) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "encryptionProtectorName": autorest.Encode("path", "current"),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- parameters.Kind = nil
- preparer := autorest.CreatePreparer(
- autorest.AsContentType("application/json; charset=utf-8"),
- autorest.AsPut(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector/{encryptionProtectorName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ManagedInstanceEncryptionProtectorsClient) CreateOrUpdateSender(req *http.Request) (future ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client ManagedInstanceEncryptionProtectorsClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedInstanceEncryptionProtector, 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}
- return
-}
-
-// Get gets a managed instance encryption protector.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-func (client ManagedInstanceEncryptionProtectorsClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceEncryptionProtector, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceEncryptionProtectorsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, managedInstanceName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client ManagedInstanceEncryptionProtectorsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "encryptionProtectorName": autorest.Encode("path", "current"),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector/{encryptionProtectorName}", 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 ManagedInstanceEncryptionProtectorsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client ManagedInstanceEncryptionProtectorsClient) GetResponder(resp *http.Response) (result ManagedInstanceEncryptionProtector, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByInstance gets a list of managed instance encryption protectors
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-func (client ManagedInstanceEncryptionProtectorsClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceEncryptionProtectorListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceEncryptionProtectorsClient.ListByInstance")
- defer func() {
- sc := -1
- if result.mieplr.Response.Response != nil {
- sc = result.mieplr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByInstanceNextResults
- req, err := client.ListByInstancePreparer(ctx, resourceGroupName, managedInstanceName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsClient", "ListByInstance", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByInstanceSender(req)
- if err != nil {
- result.mieplr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsClient", "ListByInstance", resp, "Failure sending request")
- return
- }
-
- result.mieplr, err = client.ListByInstanceResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsClient", "ListByInstance", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByInstancePreparer prepares the ListByInstance request.
-func (client ManagedInstanceEncryptionProtectorsClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByInstanceSender sends the ListByInstance request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedInstanceEncryptionProtectorsClient) ListByInstanceSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByInstanceResponder handles the response to the ListByInstance request. The method always
-// closes the http.Response Body.
-func (client ManagedInstanceEncryptionProtectorsClient) ListByInstanceResponder(resp *http.Response) (result ManagedInstanceEncryptionProtectorListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByInstanceNextResults retrieves the next set of results, if any.
-func (client ManagedInstanceEncryptionProtectorsClient) listByInstanceNextResults(ctx context.Context, lastResults ManagedInstanceEncryptionProtectorListResult) (result ManagedInstanceEncryptionProtectorListResult, err error) {
- req, err := lastResults.managedInstanceEncryptionProtectorListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsClient", "listByInstanceNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByInstanceSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsClient", "listByInstanceNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByInstanceResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsClient", "listByInstanceNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByInstanceComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ManagedInstanceEncryptionProtectorsClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceEncryptionProtectorListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceEncryptionProtectorsClient.ListByInstance")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByInstance(ctx, resourceGroupName, managedInstanceName)
- return
-}
-
-// Revalidate revalidates an existing encryption protector.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-func (client ManagedInstanceEncryptionProtectorsClient) Revalidate(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceEncryptionProtectorsRevalidateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceEncryptionProtectorsClient.Revalidate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.RevalidatePreparer(ctx, resourceGroupName, managedInstanceName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsClient", "Revalidate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.RevalidateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceEncryptionProtectorsClient", "Revalidate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// RevalidatePreparer prepares the Revalidate request.
-func (client ManagedInstanceEncryptionProtectorsClient) RevalidatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "encryptionProtectorName": autorest.Encode("path", "current"),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsPost(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector/{encryptionProtectorName}/revalidate", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// RevalidateSender sends the Revalidate request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedInstanceEncryptionProtectorsClient) RevalidateSender(req *http.Request) (future ManagedInstanceEncryptionProtectorsRevalidateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// RevalidateResponder handles the response to the Revalidate request. The method always
-// closes the http.Response Body.
-func (client ManagedInstanceEncryptionProtectorsClient) RevalidateResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
- autorest.ByClosing())
- result.Response = resp
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/managedinstancekeys.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/managedinstancekeys.go
deleted file mode 100644
index 479e108d62a3..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/managedinstancekeys.go
+++ /dev/null
@@ -1,406 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// ManagedInstanceKeysClient is the the Azure SQL Database management API provides a RESTful set of web services that
-// interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update,
-// and delete databases.
-type ManagedInstanceKeysClient struct {
- BaseClient
-}
-
-// NewManagedInstanceKeysClient creates an instance of the ManagedInstanceKeysClient client.
-func NewManagedInstanceKeysClient(subscriptionID string) ManagedInstanceKeysClient {
- return NewManagedInstanceKeysClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewManagedInstanceKeysClientWithBaseURI creates an instance of the ManagedInstanceKeysClient client.
-func NewManagedInstanceKeysClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceKeysClient {
- return ManagedInstanceKeysClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates a managed instance key.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// keyName - the name of the managed instance key to be operated on (updated or created).
-// parameters - the requested managed instance key resource state.
-func (client ManagedInstanceKeysClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string, parameters ManagedInstanceKey) (result ManagedInstanceKeysCreateOrUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceKeysClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, managedInstanceName, keyName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateOrUpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysClient", "CreateOrUpdate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client ManagedInstanceKeysClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string, parameters ManagedInstanceKey) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "keyName": autorest.Encode("path", keyName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- parameters.Kind = nil
- preparer := autorest.CreatePreparer(
- autorest.AsContentType("application/json; charset=utf-8"),
- autorest.AsPut(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/keys/{keyName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ManagedInstanceKeysClient) CreateOrUpdateSender(req *http.Request) (future ManagedInstanceKeysCreateOrUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client ManagedInstanceKeysClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedInstanceKey, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// Delete deletes the managed instance key with the given name.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// keyName - the name of the managed instance key to be deleted.
-func (client ManagedInstanceKeysClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string) (result ManagedInstanceKeysDeleteFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceKeysClient.Delete")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, managedInstanceName, keyName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- result, err = client.DeleteSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysClient", "Delete", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client ManagedInstanceKeysClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "keyName": autorest.Encode("path", keyName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/keys/{keyName}", 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 ManagedInstanceKeysClient) DeleteSender(req *http.Request) (future ManagedInstanceKeysDeleteFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client ManagedInstanceKeysClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// Get gets a managed instance key.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// keyName - the name of the managed instance key to be retrieved.
-func (client ManagedInstanceKeysClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string) (result ManagedInstanceKey, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceKeysClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, managedInstanceName, keyName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client ManagedInstanceKeysClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "keyName": autorest.Encode("path", keyName),
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/keys/{keyName}", 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 ManagedInstanceKeysClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client ManagedInstanceKeysClient) GetResponder(resp *http.Response) (result ManagedInstanceKey, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByInstance gets a list of managed instance keys.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// filter - an OData filter expression that filters elements in the collection.
-func (client ManagedInstanceKeysClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string, filter string) (result ManagedInstanceKeyListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceKeysClient.ListByInstance")
- defer func() {
- sc := -1
- if result.miklr.Response.Response != nil {
- sc = result.miklr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByInstanceNextResults
- req, err := client.ListByInstancePreparer(ctx, resourceGroupName, managedInstanceName, filter)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysClient", "ListByInstance", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByInstanceSender(req)
- if err != nil {
- result.miklr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysClient", "ListByInstance", resp, "Failure sending request")
- return
- }
-
- result.miklr, err = client.ListByInstanceResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysClient", "ListByInstance", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByInstancePreparer prepares the ListByInstance request.
-func (client ManagedInstanceKeysClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, filter string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- 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("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/keys", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByInstanceSender sends the ListByInstance request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedInstanceKeysClient) ListByInstanceSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByInstanceResponder handles the response to the ListByInstance request. The method always
-// closes the http.Response Body.
-func (client ManagedInstanceKeysClient) ListByInstanceResponder(resp *http.Response) (result ManagedInstanceKeyListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByInstanceNextResults retrieves the next set of results, if any.
-func (client ManagedInstanceKeysClient) listByInstanceNextResults(ctx context.Context, lastResults ManagedInstanceKeyListResult) (result ManagedInstanceKeyListResult, err error) {
- req, err := lastResults.managedInstanceKeyListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysClient", "listByInstanceNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByInstanceSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysClient", "listByInstanceNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByInstanceResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceKeysClient", "listByInstanceNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByInstanceComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ManagedInstanceKeysClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, filter string) (result ManagedInstanceKeyListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceKeysClient.ListByInstance")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByInstance(ctx, resourceGroupName, managedInstanceName, filter)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/managedinstances.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/managedinstances.go
deleted file mode 100644
index 3fa203132a2c..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/managedinstances.go
+++ /dev/null
@@ -1,708 +0,0 @@
-package sql
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// ManagedInstancesClient is the the Azure SQL Database management API provides a RESTful set of web services that
-// interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update,
-// and delete databases.
-type ManagedInstancesClient struct {
- BaseClient
-}
-
-// NewManagedInstancesClient creates an instance of the ManagedInstancesClient client.
-func NewManagedInstancesClient(subscriptionID string) ManagedInstancesClient {
- return NewManagedInstancesClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewManagedInstancesClientWithBaseURI creates an instance of the ManagedInstancesClient client.
-func NewManagedInstancesClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstancesClient {
- return ManagedInstancesClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates a managed instance.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// parameters - the requested managed instance resource state.
-func (client ManagedInstancesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstance) (result ManagedInstancesCreateOrUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstancesClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.Sku", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.Sku.Name", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil {
- return result, validation.NewError("sql.ManagedInstancesClient", "CreateOrUpdate", err.Error())
- }
-
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, managedInstanceName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateOrUpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "CreateOrUpdate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client ManagedInstancesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstance) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- 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.Sql/managedInstances/{managedInstanceName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ManagedInstancesClient) CreateOrUpdateSender(req *http.Request) (future ManagedInstancesCreateOrUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client ManagedInstancesClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedInstance, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// Delete deletes a managed instance.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-func (client ManagedInstancesClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstancesDeleteFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstancesClient.Delete")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, managedInstanceName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- result, err = client.DeleteSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "Delete", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client ManagedInstancesClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}", 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 ManagedInstancesClient) DeleteSender(req *http.Request) (future ManagedInstancesDeleteFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client ManagedInstancesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent),
- autorest.ByClosing())
- result.Response = resp
- return
-}
-
-// Get gets a managed instance.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-func (client ManagedInstancesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstance, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstancesClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, managedInstanceName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client ManagedInstancesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}", 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 ManagedInstancesClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client ManagedInstancesClient) GetResponder(resp *http.Response) (result ManagedInstance, 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 managed instances in the subscription.
-func (client ManagedInstancesClient) List(ctx context.Context) (result ManagedInstanceListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstancesClient.List")
- defer func() {
- sc := -1
- if result.milr.Response.Response != nil {
- sc = result.milr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listNextResults
- req, err := client.ListPreparer(ctx)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "List", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListSender(req)
- if err != nil {
- result.milr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "List", resp, "Failure sending request")
- return
- }
-
- result.milr, err = client.ListResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "List", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListPreparer prepares the List request.
-func (client ManagedInstancesClient) ListPreparer(ctx context.Context) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Sql/managedInstances", 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 ManagedInstancesClient) ListSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListResponder handles the response to the List request. The method always
-// closes the http.Response Body.
-func (client ManagedInstancesClient) ListResponder(resp *http.Response) (result ManagedInstanceListResult, 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 ManagedInstancesClient) listNextResults(ctx context.Context, lastResults ManagedInstanceListResult) (result ManagedInstanceListResult, err error) {
- req, err := lastResults.managedInstanceListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "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, "sql.ManagedInstancesClient", "listNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ManagedInstancesClient) ListComplete(ctx context.Context) (result ManagedInstanceListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstancesClient.List")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.List(ctx)
- return
-}
-
-// ListByInstancePool gets a list of all managed instances in an instance pool.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// instancePoolName - the instance pool name.
-func (client ManagedInstancesClient) ListByInstancePool(ctx context.Context, resourceGroupName string, instancePoolName string) (result ManagedInstanceListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstancesClient.ListByInstancePool")
- defer func() {
- sc := -1
- if result.milr.Response.Response != nil {
- sc = result.milr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByInstancePoolNextResults
- req, err := client.ListByInstancePoolPreparer(ctx, resourceGroupName, instancePoolName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "ListByInstancePool", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByInstancePoolSender(req)
- if err != nil {
- result.milr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "ListByInstancePool", resp, "Failure sending request")
- return
- }
-
- result.milr, err = client.ListByInstancePoolResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "ListByInstancePool", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByInstancePoolPreparer prepares the ListByInstancePool request.
-func (client ManagedInstancesClient) ListByInstancePoolPreparer(ctx context.Context, resourceGroupName string, instancePoolName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "instancePoolName": autorest.Encode("path", instancePoolName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/managedInstances", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByInstancePoolSender sends the ListByInstancePool request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedInstancesClient) ListByInstancePoolSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByInstancePoolResponder handles the response to the ListByInstancePool request. The method always
-// closes the http.Response Body.
-func (client ManagedInstancesClient) ListByInstancePoolResponder(resp *http.Response) (result ManagedInstanceListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByInstancePoolNextResults retrieves the next set of results, if any.
-func (client ManagedInstancesClient) listByInstancePoolNextResults(ctx context.Context, lastResults ManagedInstanceListResult) (result ManagedInstanceListResult, err error) {
- req, err := lastResults.managedInstanceListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listByInstancePoolNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByInstancePoolSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listByInstancePoolNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByInstancePoolResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listByInstancePoolNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByInstancePoolComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ManagedInstancesClient) ListByInstancePoolComplete(ctx context.Context, resourceGroupName string, instancePoolName string) (result ManagedInstanceListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstancesClient.ListByInstancePool")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByInstancePool(ctx, resourceGroupName, instancePoolName)
- return
-}
-
-// ListByResourceGroup gets a list of managed instances in a resource group.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-func (client ManagedInstancesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ManagedInstanceListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstancesClient.ListByResourceGroup")
- defer func() {
- sc := -1
- if result.milr.Response.Response != nil {
- sc = result.milr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByResourceGroupNextResults
- req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "ListByResourceGroup", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByResourceGroupSender(req)
- if err != nil {
- result.milr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "ListByResourceGroup", resp, "Failure sending request")
- return
- }
-
- result.milr, err = client.ListByResourceGroupResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "ListByResourceGroup", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
-func (client ManagedInstancesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedInstancesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
-// closes the http.Response Body.
-func (client ManagedInstancesClient) ListByResourceGroupResponder(resp *http.Response) (result ManagedInstanceListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByResourceGroupNextResults retrieves the next set of results, if any.
-func (client ManagedInstancesClient) listByResourceGroupNextResults(ctx context.Context, lastResults ManagedInstanceListResult) (result ManagedInstanceListResult, err error) {
- req, err := lastResults.managedInstanceListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listByResourceGroupNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByResourceGroupSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listByResourceGroupNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByResourceGroupResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ManagedInstancesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ManagedInstanceListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstancesClient.ListByResourceGroup")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByResourceGroup(ctx, resourceGroupName)
- return
-}
-
-// Update updates a managed instance.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// parameters - the requested managed instance resource state.
-func (client ManagedInstancesClient) Update(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstanceUpdate) (result ManagedInstancesUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstancesClient.Update")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.UpdatePreparer(ctx, resourceGroupName, managedInstanceName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "Update", nil, "Failure preparing request")
- return
- }
-
- result, err = client.UpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstancesClient", "Update", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// UpdatePreparer prepares the Update request.
-func (client ManagedInstancesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstanceUpdate) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- 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.Sql/managedInstances/{managedInstanceName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ManagedInstancesClient) UpdateSender(req *http.Request) (future ManagedInstancesUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// UpdateResponder handles the response to the Update request. The method always
-// closes the http.Response Body.
-func (client ManagedInstancesClient) UpdateResponder(resp *http.Response) (result ManagedInstance, 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}
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/managedinstancetdecertificates.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/managedinstancetdecertificates.go
deleted file mode 100644
index 90e474de06a2..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/managedinstancetdecertificates.go
+++ /dev/null
@@ -1,132 +0,0 @@
-package sql
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// ManagedInstanceTdeCertificatesClient is the the Azure SQL Database management API provides a RESTful set of web
-// services that interact with Azure SQL Database services to manage your databases. The API enables you to create,
-// retrieve, update, and delete databases.
-type ManagedInstanceTdeCertificatesClient struct {
- BaseClient
-}
-
-// NewManagedInstanceTdeCertificatesClient creates an instance of the ManagedInstanceTdeCertificatesClient client.
-func NewManagedInstanceTdeCertificatesClient(subscriptionID string) ManagedInstanceTdeCertificatesClient {
- return NewManagedInstanceTdeCertificatesClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewManagedInstanceTdeCertificatesClientWithBaseURI creates an instance of the ManagedInstanceTdeCertificatesClient
-// client.
-func NewManagedInstanceTdeCertificatesClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceTdeCertificatesClient {
- return ManagedInstanceTdeCertificatesClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// Create creates a TDE certificate for a given server.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// parameters - the requested TDE certificate to be created or updated.
-func (client ManagedInstanceTdeCertificatesClient) Create(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters TdeCertificate) (result ManagedInstanceTdeCertificatesCreateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceTdeCertificatesClient.Create")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.TdeCertificateProperties", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.TdeCertificateProperties.PrivateBlob", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil {
- return result, validation.NewError("sql.ManagedInstanceTdeCertificatesClient", "Create", err.Error())
- }
-
- req, err := client.CreatePreparer(ctx, resourceGroupName, managedInstanceName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceTdeCertificatesClient", "Create", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceTdeCertificatesClient", "Create", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreatePreparer prepares the Create request.
-func (client ManagedInstanceTdeCertificatesClient) CreatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters TdeCertificate) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-10-01-preview"
- 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("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/tdeCertificates", pathParameters),
- autorest.WithJSON(parameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// CreateSender sends the Create request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedInstanceTdeCertificatesClient) CreateSender(req *http.Request) (future ManagedInstanceTdeCertificatesCreateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateResponder handles the response to the Create request. The method always
-// closes the http.Response Body.
-func (client ManagedInstanceTdeCertificatesClient) CreateResponder(resp *http.Response) (result autorest.Response, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
- autorest.ByClosing())
- result.Response = resp
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/managedinstancevulnerabilityassessments.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/managedinstancevulnerabilityassessments.go
deleted file mode 100644
index 240ad4f3d491..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/managedinstancevulnerabilityassessments.go
+++ /dev/null
@@ -1,408 +0,0 @@
-package sql
-
-// 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"
- "github.com/Azure/go-autorest/tracing"
- "net/http"
-)
-
-// ManagedInstanceVulnerabilityAssessmentsClient is the the Azure SQL Database management API provides a RESTful set of
-// web services that interact with Azure SQL Database services to manage your databases. The API enables you to create,
-// retrieve, update, and delete databases.
-type ManagedInstanceVulnerabilityAssessmentsClient struct {
- BaseClient
-}
-
-// NewManagedInstanceVulnerabilityAssessmentsClient creates an instance of the
-// ManagedInstanceVulnerabilityAssessmentsClient client.
-func NewManagedInstanceVulnerabilityAssessmentsClient(subscriptionID string) ManagedInstanceVulnerabilityAssessmentsClient {
- return NewManagedInstanceVulnerabilityAssessmentsClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewManagedInstanceVulnerabilityAssessmentsClientWithBaseURI creates an instance of the
-// ManagedInstanceVulnerabilityAssessmentsClient client.
-func NewManagedInstanceVulnerabilityAssessmentsClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceVulnerabilityAssessmentsClient {
- return ManagedInstanceVulnerabilityAssessmentsClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates the managed instance's vulnerability assessment.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance for which the vulnerability assessment is defined.
-// parameters - the requested resource.
-func (client ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstanceVulnerabilityAssessment) (result ManagedInstanceVulnerabilityAssessment, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceVulnerabilityAssessmentsClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- if err := validation.Validate([]validation.Validation{
- {TargetValue: parameters,
- Constraints: []validation.Constraint{{Target: "parameters.ManagedInstanceVulnerabilityAssessmentProperties", Name: validation.Null, Rule: false,
- Chain: []validation.Constraint{{Target: "parameters.ManagedInstanceVulnerabilityAssessmentProperties.StorageContainerPath", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil {
- return result, validation.NewError("sql.ManagedInstanceVulnerabilityAssessmentsClient", "CreateOrUpdate", err.Error())
- }
-
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, managedInstanceName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.CreateOrUpdateSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "CreateOrUpdate", resp, "Failure sending request")
- return
- }
-
- result, err = client.CreateOrUpdateResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "CreateOrUpdate", resp, "Failure responding to request")
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstanceVulnerabilityAssessment) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2018-06-01-preview"
- 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.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedInstanceVulnerabilityAssessment, 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 removes the managed instance's vulnerability assessment.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance for which the vulnerability assessment is defined.
-func (client ManagedInstanceVulnerabilityAssessmentsClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result autorest.Response, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceVulnerabilityAssessmentsClient.Delete")
- defer func() {
- sc := -1
- if result.Response != nil {
- sc = result.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.DeletePreparer(ctx, resourceGroupName, managedInstanceName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "Delete", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.DeleteSender(req)
- if err != nil {
- result.Response = resp
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "Delete", resp, "Failure sending request")
- return
- }
-
- result, err = client.DeleteResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "Delete", resp, "Failure responding to request")
- }
-
- return
-}
-
-// DeletePreparer prepares the Delete request.
-func (client ManagedInstanceVulnerabilityAssessmentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsDelete(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", 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 ManagedInstanceVulnerabilityAssessmentsClient) DeleteSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// DeleteResponder handles the response to the Delete request. The method always
-// closes the http.Response Body.
-func (client ManagedInstanceVulnerabilityAssessmentsClient) 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 managed instance's vulnerability assessment.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance for which the vulnerability assessment is defined.
-func (client ManagedInstanceVulnerabilityAssessmentsClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceVulnerabilityAssessment, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceVulnerabilityAssessmentsClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, managedInstanceName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client ManagedInstanceVulnerabilityAssessmentsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- "vulnerabilityAssessmentName": autorest.Encode("path", "default"),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", 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 ManagedInstanceVulnerabilityAssessmentsClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client ManagedInstanceVulnerabilityAssessmentsClient) GetResponder(resp *http.Response) (result ManagedInstanceVulnerabilityAssessment, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByInstance gets the managed instance's vulnerability assessment policies.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance for which the vulnerability assessments is defined.
-func (client ManagedInstanceVulnerabilityAssessmentsClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceVulnerabilityAssessmentListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceVulnerabilityAssessmentsClient.ListByInstance")
- defer func() {
- sc := -1
- if result.mivalr.Response.Response != nil {
- sc = result.mivalr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByInstanceNextResults
- req, err := client.ListByInstancePreparer(ctx, resourceGroupName, managedInstanceName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "ListByInstance", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByInstanceSender(req)
- if err != nil {
- result.mivalr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "ListByInstance", resp, "Failure sending request")
- return
- }
-
- result.mivalr, err = client.ListByInstanceResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "ListByInstance", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByInstancePreparer prepares the ListByInstance request.
-func (client ManagedInstanceVulnerabilityAssessmentsClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2018-06-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByInstanceSender sends the ListByInstance request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedInstanceVulnerabilityAssessmentsClient) ListByInstanceSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByInstanceResponder handles the response to the ListByInstance request. The method always
-// closes the http.Response Body.
-func (client ManagedInstanceVulnerabilityAssessmentsClient) ListByInstanceResponder(resp *http.Response) (result ManagedInstanceVulnerabilityAssessmentListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByInstanceNextResults retrieves the next set of results, if any.
-func (client ManagedInstanceVulnerabilityAssessmentsClient) listByInstanceNextResults(ctx context.Context, lastResults ManagedInstanceVulnerabilityAssessmentListResult) (result ManagedInstanceVulnerabilityAssessmentListResult, err error) {
- req, err := lastResults.managedInstanceVulnerabilityAssessmentListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "listByInstanceNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByInstanceSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "listByInstanceNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByInstanceResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedInstanceVulnerabilityAssessmentsClient", "listByInstanceNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByInstanceComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ManagedInstanceVulnerabilityAssessmentsClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceVulnerabilityAssessmentListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedInstanceVulnerabilityAssessmentsClient.ListByInstance")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByInstance(ctx, resourceGroupName, managedInstanceName)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/managedrestorabledroppeddatabasebackupshorttermretentionpolicies.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/managedrestorabledroppeddatabasebackupshorttermretentionpolicies.go
deleted file mode 100644
index c73f3a87446d..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/managedrestorabledroppeddatabasebackupshorttermretentionpolicies.go
+++ /dev/null
@@ -1,408 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient is the the Azure SQL Database management API
-// provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The
-// API enables you to create, retrieve, update, and delete databases.
-type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient struct {
- BaseClient
-}
-
-// NewManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient creates an instance of the
-// ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient client.
-func NewManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient(subscriptionID string) ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient {
- return NewManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClientWithBaseURI creates an instance of the
-// ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient client.
-func NewManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient {
- return ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate sets a database's long term retention policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// parameters - the long term retention policy info.
-func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string, parameters ManagedBackupShortTermRetentionPolicy) (result ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, managedInstanceName, restorableDroppedDatabaseID, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateOrUpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient", "CreateOrUpdate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string, parameters ManagedBackupShortTermRetentionPolicy) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "policyName": autorest.Encode("path", "default"),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "restorableDroppedDatabaseId": autorest.Encode("path", restorableDroppedDatabaseID),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- 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.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies/{policyName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) CreateOrUpdateSender(req *http.Request) (future ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedBackupShortTermRetentionPolicy, 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}
- return
-}
-
-// Get gets a dropped database's short term retention policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string) (result ManagedBackupShortTermRetentionPolicy, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, managedInstanceName, restorableDroppedDatabaseID)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "policyName": autorest.Encode("path", "default"),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "restorableDroppedDatabaseId": autorest.Encode("path", restorableDroppedDatabaseID),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies/{policyName}", 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 ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) GetResponder(resp *http.Response) (result ManagedBackupShortTermRetentionPolicy, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByRestorableDroppedDatabase gets a dropped database's short term retention policy list.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) ListByRestorableDroppedDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string) (result ManagedBackupShortTermRetentionPolicyListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient.ListByRestorableDroppedDatabase")
- defer func() {
- sc := -1
- if result.mbstrplr.Response.Response != nil {
- sc = result.mbstrplr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByRestorableDroppedDatabaseNextResults
- req, err := client.ListByRestorableDroppedDatabasePreparer(ctx, resourceGroupName, managedInstanceName, restorableDroppedDatabaseID)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient", "ListByRestorableDroppedDatabase", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByRestorableDroppedDatabaseSender(req)
- if err != nil {
- result.mbstrplr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient", "ListByRestorableDroppedDatabase", resp, "Failure sending request")
- return
- }
-
- result.mbstrplr, err = client.ListByRestorableDroppedDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient", "ListByRestorableDroppedDatabase", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByRestorableDroppedDatabasePreparer prepares the ListByRestorableDroppedDatabase request.
-func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) ListByRestorableDroppedDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "restorableDroppedDatabaseId": autorest.Encode("path", restorableDroppedDatabaseID),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByRestorableDroppedDatabaseSender sends the ListByRestorableDroppedDatabase request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) ListByRestorableDroppedDatabaseSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByRestorableDroppedDatabaseResponder handles the response to the ListByRestorableDroppedDatabase request. The method always
-// closes the http.Response Body.
-func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) ListByRestorableDroppedDatabaseResponder(resp *http.Response) (result ManagedBackupShortTermRetentionPolicyListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByRestorableDroppedDatabaseNextResults retrieves the next set of results, if any.
-func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) listByRestorableDroppedDatabaseNextResults(ctx context.Context, lastResults ManagedBackupShortTermRetentionPolicyListResult) (result ManagedBackupShortTermRetentionPolicyListResult, err error) {
- req, err := lastResults.managedBackupShortTermRetentionPolicyListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient", "listByRestorableDroppedDatabaseNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByRestorableDroppedDatabaseSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient", "listByRestorableDroppedDatabaseNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByRestorableDroppedDatabaseResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient", "listByRestorableDroppedDatabaseNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByRestorableDroppedDatabaseComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) ListByRestorableDroppedDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string) (result ManagedBackupShortTermRetentionPolicyListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient.ListByRestorableDroppedDatabase")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByRestorableDroppedDatabase(ctx, resourceGroupName, managedInstanceName, restorableDroppedDatabaseID)
- return
-}
-
-// Update sets a database's long term retention policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// parameters - the long term retention policy info.
-func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) Update(ctx context.Context, resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string, parameters ManagedBackupShortTermRetentionPolicy) (result ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient.Update")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.UpdatePreparer(ctx, resourceGroupName, managedInstanceName, restorableDroppedDatabaseID, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient", "Update", nil, "Failure preparing request")
- return
- }
-
- result, err = client.UpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient", "Update", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// UpdatePreparer prepares the Update request.
-func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string, parameters ManagedBackupShortTermRetentionPolicy) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "policyName": autorest.Encode("path", "default"),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "restorableDroppedDatabaseId": autorest.Encode("path", restorableDroppedDatabaseID),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- 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.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies/{policyName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) UpdateSender(req *http.Request) (future ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// UpdateResponder handles the response to the Update request. The method always
-// closes the http.Response Body.
-func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) UpdateResponder(resp *http.Response) (result ManagedBackupShortTermRetentionPolicy, 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}
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/managedserversecurityalertpolicies.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/managedserversecurityalertpolicies.go
deleted file mode 100644
index 15bdbf9f6162..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/managedserversecurityalertpolicies.go
+++ /dev/null
@@ -1,322 +0,0 @@
-package sql
-
-// 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/tracing"
- "net/http"
-)
-
-// ManagedServerSecurityAlertPoliciesClient is the the Azure SQL Database management API provides a RESTful set of web
-// services that interact with Azure SQL Database services to manage your databases. The API enables you to create,
-// retrieve, update, and delete databases.
-type ManagedServerSecurityAlertPoliciesClient struct {
- BaseClient
-}
-
-// NewManagedServerSecurityAlertPoliciesClient creates an instance of the ManagedServerSecurityAlertPoliciesClient
-// client.
-func NewManagedServerSecurityAlertPoliciesClient(subscriptionID string) ManagedServerSecurityAlertPoliciesClient {
- return NewManagedServerSecurityAlertPoliciesClientWithBaseURI(DefaultBaseURI, subscriptionID)
-}
-
-// NewManagedServerSecurityAlertPoliciesClientWithBaseURI creates an instance of the
-// ManagedServerSecurityAlertPoliciesClient client.
-func NewManagedServerSecurityAlertPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ManagedServerSecurityAlertPoliciesClient {
- return ManagedServerSecurityAlertPoliciesClient{NewWithBaseURI(baseURI, subscriptionID)}
-}
-
-// CreateOrUpdate creates or updates a threat detection policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-// parameters - the managed server security alert policy.
-func (client ManagedServerSecurityAlertPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedServerSecurityAlertPolicy) (result ManagedServerSecurityAlertPoliciesCreateOrUpdateFuture, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedServerSecurityAlertPoliciesClient.CreateOrUpdate")
- defer func() {
- sc := -1
- if result.Response() != nil {
- sc = result.Response().StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, managedInstanceName, parameters)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedServerSecurityAlertPoliciesClient", "CreateOrUpdate", nil, "Failure preparing request")
- return
- }
-
- result, err = client.CreateOrUpdateSender(req)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedServerSecurityAlertPoliciesClient", "CreateOrUpdate", result.Response(), "Failure sending request")
- return
- }
-
- return
-}
-
-// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
-func (client ManagedServerSecurityAlertPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedServerSecurityAlertPolicy) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "securityAlertPolicyName": autorest.Encode("path", "Default"),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- 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.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies/{securityAlertPolicyName}", pathParameters),
- autorest.WithJSON(parameters),
- 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 ManagedServerSecurityAlertPoliciesClient) CreateOrUpdateSender(req *http.Request) (future ManagedServerSecurityAlertPoliciesCreateOrUpdateFuture, err error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- var resp *http.Response
- resp, err = autorest.SendWithSender(client, req, sd...)
- if err != nil {
- return
- }
- future.Future, err = azure.NewFutureFromResponse(resp)
- return
-}
-
-// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
-// closes the http.Response Body.
-func (client ManagedServerSecurityAlertPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedServerSecurityAlertPolicy, 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}
- return
-}
-
-// Get get a managed server's threat detection policy.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-func (client ManagedServerSecurityAlertPoliciesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedServerSecurityAlertPolicy, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedServerSecurityAlertPoliciesClient.Get")
- defer func() {
- sc := -1
- if result.Response.Response != nil {
- sc = result.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- req, err := client.GetPreparer(ctx, resourceGroupName, managedInstanceName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedServerSecurityAlertPoliciesClient", "Get", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.GetSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedServerSecurityAlertPoliciesClient", "Get", resp, "Failure sending request")
- return
- }
-
- result, err = client.GetResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedServerSecurityAlertPoliciesClient", "Get", resp, "Failure responding to request")
- }
-
- return
-}
-
-// GetPreparer prepares the Get request.
-func (client ManagedServerSecurityAlertPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "securityAlertPolicyName": autorest.Encode("path", "Default"),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies/{securityAlertPolicyName}", 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 ManagedServerSecurityAlertPoliciesClient) GetSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// GetResponder handles the response to the Get request. The method always
-// closes the http.Response Body.
-func (client ManagedServerSecurityAlertPoliciesClient) GetResponder(resp *http.Response) (result ManagedServerSecurityAlertPolicy, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// ListByInstance get the managed server's threat detection policies.
-// Parameters:
-// resourceGroupName - the name of the resource group that contains the resource. You can obtain this value
-// from the Azure Resource Manager API or the portal.
-// managedInstanceName - the name of the managed instance.
-func (client ManagedServerSecurityAlertPoliciesClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedServerSecurityAlertPolicyListResultPage, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedServerSecurityAlertPoliciesClient.ListByInstance")
- defer func() {
- sc := -1
- if result.mssaplr.Response.Response != nil {
- sc = result.mssaplr.Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.fn = client.listByInstanceNextResults
- req, err := client.ListByInstancePreparer(ctx, resourceGroupName, managedInstanceName)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedServerSecurityAlertPoliciesClient", "ListByInstance", nil, "Failure preparing request")
- return
- }
-
- resp, err := client.ListByInstanceSender(req)
- if err != nil {
- result.mssaplr.Response = autorest.Response{Response: resp}
- err = autorest.NewErrorWithError(err, "sql.ManagedServerSecurityAlertPoliciesClient", "ListByInstance", resp, "Failure sending request")
- return
- }
-
- result.mssaplr, err = client.ListByInstanceResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedServerSecurityAlertPoliciesClient", "ListByInstance", resp, "Failure responding to request")
- }
-
- return
-}
-
-// ListByInstancePreparer prepares the ListByInstance request.
-func (client ManagedServerSecurityAlertPoliciesClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error) {
- pathParameters := map[string]interface{}{
- "managedInstanceName": autorest.Encode("path", managedInstanceName),
- "resourceGroupName": autorest.Encode("path", resourceGroupName),
- "subscriptionId": autorest.Encode("path", client.SubscriptionID),
- }
-
- const APIVersion = "2017-03-01-preview"
- queryParameters := map[string]interface{}{
- "api-version": APIVersion,
- }
-
- preparer := autorest.CreatePreparer(
- autorest.AsGet(),
- autorest.WithBaseURL(client.BaseURI),
- autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies", pathParameters),
- autorest.WithQueryParameters(queryParameters))
- return preparer.Prepare((&http.Request{}).WithContext(ctx))
-}
-
-// ListByInstanceSender sends the ListByInstance request. The method will close the
-// http.Response Body if it receives an error.
-func (client ManagedServerSecurityAlertPoliciesClient) ListByInstanceSender(req *http.Request) (*http.Response, error) {
- sd := autorest.GetSendDecorators(req.Context(), azure.DoRetryWithRegistration(client.Client))
- return autorest.SendWithSender(client, req, sd...)
-}
-
-// ListByInstanceResponder handles the response to the ListByInstance request. The method always
-// closes the http.Response Body.
-func (client ManagedServerSecurityAlertPoliciesClient) ListByInstanceResponder(resp *http.Response) (result ManagedServerSecurityAlertPolicyListResult, err error) {
- err = autorest.Respond(
- resp,
- client.ByInspecting(),
- azure.WithErrorUnlessStatusCode(http.StatusOK),
- autorest.ByUnmarshallingJSON(&result),
- autorest.ByClosing())
- result.Response = autorest.Response{Response: resp}
- return
-}
-
-// listByInstanceNextResults retrieves the next set of results, if any.
-func (client ManagedServerSecurityAlertPoliciesClient) listByInstanceNextResults(ctx context.Context, lastResults ManagedServerSecurityAlertPolicyListResult) (result ManagedServerSecurityAlertPolicyListResult, err error) {
- req, err := lastResults.managedServerSecurityAlertPolicyListResultPreparer(ctx)
- if err != nil {
- return result, autorest.NewErrorWithError(err, "sql.ManagedServerSecurityAlertPoliciesClient", "listByInstanceNextResults", nil, "Failure preparing next results request")
- }
- if req == nil {
- return
- }
- resp, err := client.ListByInstanceSender(req)
- if err != nil {
- result.Response = autorest.Response{Response: resp}
- return result, autorest.NewErrorWithError(err, "sql.ManagedServerSecurityAlertPoliciesClient", "listByInstanceNextResults", resp, "Failure sending next results request")
- }
- result, err = client.ListByInstanceResponder(resp)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.ManagedServerSecurityAlertPoliciesClient", "listByInstanceNextResults", resp, "Failure responding to next results request")
- }
- return
-}
-
-// ListByInstanceComplete enumerates all values, automatically crossing page boundaries as required.
-func (client ManagedServerSecurityAlertPoliciesClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedServerSecurityAlertPolicyListResultIterator, err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/ManagedServerSecurityAlertPoliciesClient.ListByInstance")
- defer func() {
- sc := -1
- if result.Response().Response.Response != nil {
- sc = result.page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- result.page, err = client.ListByInstance(ctx, resourceGroupName, managedInstanceName)
- return
-}
diff --git a/services/preview/sql/mgmt/2018-06-15-preview/sql/models.go b/services/preview/sql/mgmt/2018-06-15-preview/sql/models.go
deleted file mode 100644
index f72e6188cb3d..000000000000
--- a/services/preview/sql/mgmt/2018-06-15-preview/sql/models.go
+++ /dev/null
@@ -1,21172 +0,0 @@
-package sql
-
-// 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"
- "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/Azure/go-autorest/tracing"
- "github.com/satori/go.uuid"
- "net/http"
-)
-
-// The package's fully qualified name.
-const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2018-06-15-preview/sql"
-
-// AuthenticationType enumerates the values for authentication type.
-type AuthenticationType string
-
-const (
- // ADPassword ...
- ADPassword AuthenticationType = "ADPassword"
- // SQL ...
- SQL AuthenticationType = "SQL"
-)
-
-// PossibleAuthenticationTypeValues returns an array of possible values for the AuthenticationType const type.
-func PossibleAuthenticationTypeValues() []AuthenticationType {
- return []AuthenticationType{ADPassword, SQL}
-}
-
-// AutomaticTuningDisabledReason enumerates the values for automatic tuning disabled reason.
-type AutomaticTuningDisabledReason string
-
-const (
- // AutoConfigured ...
- AutoConfigured AutomaticTuningDisabledReason = "AutoConfigured"
- // Default ...
- Default AutomaticTuningDisabledReason = "Default"
- // Disabled ...
- Disabled AutomaticTuningDisabledReason = "Disabled"
- // InheritedFromServer ...
- InheritedFromServer AutomaticTuningDisabledReason = "InheritedFromServer"
- // NotSupported ...
- NotSupported AutomaticTuningDisabledReason = "NotSupported"
- // QueryStoreOff ...
- QueryStoreOff AutomaticTuningDisabledReason = "QueryStoreOff"
- // QueryStoreReadOnly ...
- QueryStoreReadOnly AutomaticTuningDisabledReason = "QueryStoreReadOnly"
-)
-
-// PossibleAutomaticTuningDisabledReasonValues returns an array of possible values for the AutomaticTuningDisabledReason const type.
-func PossibleAutomaticTuningDisabledReasonValues() []AutomaticTuningDisabledReason {
- return []AutomaticTuningDisabledReason{AutoConfigured, Default, Disabled, InheritedFromServer, NotSupported, QueryStoreOff, QueryStoreReadOnly}
-}
-
-// AutomaticTuningMode enumerates the values for automatic tuning mode.
-type AutomaticTuningMode string
-
-const (
- // Auto ...
- Auto AutomaticTuningMode = "Auto"
- // Custom ...
- Custom AutomaticTuningMode = "Custom"
- // Inherit ...
- Inherit AutomaticTuningMode = "Inherit"
- // Unspecified ...
- Unspecified AutomaticTuningMode = "Unspecified"
-)
-
-// PossibleAutomaticTuningModeValues returns an array of possible values for the AutomaticTuningMode const type.
-func PossibleAutomaticTuningModeValues() []AutomaticTuningMode {
- return []AutomaticTuningMode{Auto, Custom, Inherit, Unspecified}
-}
-
-// AutomaticTuningOptionModeActual enumerates the values for automatic tuning option mode actual.
-type AutomaticTuningOptionModeActual string
-
-const (
- // Off ...
- Off AutomaticTuningOptionModeActual = "Off"
- // On ...
- On AutomaticTuningOptionModeActual = "On"
-)
-
-// PossibleAutomaticTuningOptionModeActualValues returns an array of possible values for the AutomaticTuningOptionModeActual const type.
-func PossibleAutomaticTuningOptionModeActualValues() []AutomaticTuningOptionModeActual {
- return []AutomaticTuningOptionModeActual{Off, On}
-}
-
-// AutomaticTuningOptionModeDesired enumerates the values for automatic tuning option mode desired.
-type AutomaticTuningOptionModeDesired string
-
-const (
- // AutomaticTuningOptionModeDesiredDefault ...
- AutomaticTuningOptionModeDesiredDefault AutomaticTuningOptionModeDesired = "Default"
- // AutomaticTuningOptionModeDesiredOff ...
- AutomaticTuningOptionModeDesiredOff AutomaticTuningOptionModeDesired = "Off"
- // AutomaticTuningOptionModeDesiredOn ...
- AutomaticTuningOptionModeDesiredOn AutomaticTuningOptionModeDesired = "On"
-)
-
-// PossibleAutomaticTuningOptionModeDesiredValues returns an array of possible values for the AutomaticTuningOptionModeDesired const type.
-func PossibleAutomaticTuningOptionModeDesiredValues() []AutomaticTuningOptionModeDesired {
- return []AutomaticTuningOptionModeDesired{AutomaticTuningOptionModeDesiredDefault, AutomaticTuningOptionModeDesiredOff, AutomaticTuningOptionModeDesiredOn}
-}
-
-// AutomaticTuningServerMode enumerates the values for automatic tuning server mode.
-type AutomaticTuningServerMode string
-
-const (
- // AutomaticTuningServerModeAuto ...
- AutomaticTuningServerModeAuto AutomaticTuningServerMode = "Auto"
- // AutomaticTuningServerModeCustom ...
- AutomaticTuningServerModeCustom AutomaticTuningServerMode = "Custom"
- // AutomaticTuningServerModeUnspecified ...
- AutomaticTuningServerModeUnspecified AutomaticTuningServerMode = "Unspecified"
-)
-
-// PossibleAutomaticTuningServerModeValues returns an array of possible values for the AutomaticTuningServerMode const type.
-func PossibleAutomaticTuningServerModeValues() []AutomaticTuningServerMode {
- return []AutomaticTuningServerMode{AutomaticTuningServerModeAuto, AutomaticTuningServerModeCustom, AutomaticTuningServerModeUnspecified}
-}
-
-// AutomaticTuningServerReason enumerates the values for automatic tuning server reason.
-type AutomaticTuningServerReason string
-
-const (
- // AutomaticTuningServerReasonAutoConfigured ...
- AutomaticTuningServerReasonAutoConfigured AutomaticTuningServerReason = "AutoConfigured"
- // AutomaticTuningServerReasonDefault ...
- AutomaticTuningServerReasonDefault AutomaticTuningServerReason = "Default"
- // AutomaticTuningServerReasonDisabled ...
- AutomaticTuningServerReasonDisabled AutomaticTuningServerReason = "Disabled"
-)
-
-// PossibleAutomaticTuningServerReasonValues returns an array of possible values for the AutomaticTuningServerReason const type.
-func PossibleAutomaticTuningServerReasonValues() []AutomaticTuningServerReason {
- return []AutomaticTuningServerReason{AutomaticTuningServerReasonAutoConfigured, AutomaticTuningServerReasonDefault, AutomaticTuningServerReasonDisabled}
-}
-
-// BlobAuditingPolicyState enumerates the values for blob auditing policy state.
-type BlobAuditingPolicyState string
-
-const (
- // BlobAuditingPolicyStateDisabled ...
- BlobAuditingPolicyStateDisabled BlobAuditingPolicyState = "Disabled"
- // BlobAuditingPolicyStateEnabled ...
- BlobAuditingPolicyStateEnabled BlobAuditingPolicyState = "Enabled"
-)
-
-// PossibleBlobAuditingPolicyStateValues returns an array of possible values for the BlobAuditingPolicyState const type.
-func PossibleBlobAuditingPolicyStateValues() []BlobAuditingPolicyState {
- return []BlobAuditingPolicyState{BlobAuditingPolicyStateDisabled, BlobAuditingPolicyStateEnabled}
-}
-
-// CapabilityGroup enumerates the values for capability group.
-type CapabilityGroup string
-
-const (
- // SupportedEditions ...
- SupportedEditions CapabilityGroup = "supportedEditions"
- // SupportedElasticPoolEditions ...
- SupportedElasticPoolEditions CapabilityGroup = "supportedElasticPoolEditions"
- // SupportedManagedInstanceVersions ...
- SupportedManagedInstanceVersions CapabilityGroup = "supportedManagedInstanceVersions"
-)
-
-// PossibleCapabilityGroupValues returns an array of possible values for the CapabilityGroup const type.
-func PossibleCapabilityGroupValues() []CapabilityGroup {
- return []CapabilityGroup{SupportedEditions, SupportedElasticPoolEditions, SupportedManagedInstanceVersions}
-}
-
-// CapabilityStatus enumerates the values for capability status.
-type CapabilityStatus string
-
-const (
- // CapabilityStatusAvailable ...
- CapabilityStatusAvailable CapabilityStatus = "Available"
- // CapabilityStatusDefault ...
- CapabilityStatusDefault CapabilityStatus = "Default"
- // CapabilityStatusDisabled ...
- CapabilityStatusDisabled CapabilityStatus = "Disabled"
- // CapabilityStatusVisible ...
- CapabilityStatusVisible CapabilityStatus = "Visible"
-)
-
-// PossibleCapabilityStatusValues returns an array of possible values for the CapabilityStatus const type.
-func PossibleCapabilityStatusValues() []CapabilityStatus {
- return []CapabilityStatus{CapabilityStatusAvailable, CapabilityStatusDefault, CapabilityStatusDisabled, CapabilityStatusVisible}
-}
-
-// CatalogCollationType enumerates the values for catalog collation type.
-type CatalogCollationType string
-
-const (
- // DATABASEDEFAULT ...
- DATABASEDEFAULT CatalogCollationType = "DATABASE_DEFAULT"
- // SQLLatin1GeneralCP1CIAS ...
- SQLLatin1GeneralCP1CIAS CatalogCollationType = "SQL_Latin1_General_CP1_CI_AS"
-)
-
-// PossibleCatalogCollationTypeValues returns an array of possible values for the CatalogCollationType const type.
-func PossibleCatalogCollationTypeValues() []CatalogCollationType {
- return []CatalogCollationType{DATABASEDEFAULT, SQLLatin1GeneralCP1CIAS}
-}
-
-// CheckNameAvailabilityReason enumerates the values for check name availability reason.
-type CheckNameAvailabilityReason string
-
-const (
- // AlreadyExists ...
- AlreadyExists CheckNameAvailabilityReason = "AlreadyExists"
- // Invalid ...
- Invalid CheckNameAvailabilityReason = "Invalid"
-)
-
-// PossibleCheckNameAvailabilityReasonValues returns an array of possible values for the CheckNameAvailabilityReason const type.
-func PossibleCheckNameAvailabilityReasonValues() []CheckNameAvailabilityReason {
- return []CheckNameAvailabilityReason{AlreadyExists, Invalid}
-}
-
-// CreateMode enumerates the values for create mode.
-type CreateMode string
-
-const (
- // CreateModeCopy ...
- CreateModeCopy CreateMode = "Copy"
- // CreateModeDefault ...
- CreateModeDefault CreateMode = "Default"
- // CreateModeOnlineSecondary ...
- CreateModeOnlineSecondary CreateMode = "OnlineSecondary"
- // CreateModePointInTimeRestore ...
- CreateModePointInTimeRestore CreateMode = "PointInTimeRestore"
- // CreateModeRecovery ...
- CreateModeRecovery CreateMode = "Recovery"
- // CreateModeRestore ...
- CreateModeRestore CreateMode = "Restore"
- // CreateModeRestoreExternalBackup ...
- CreateModeRestoreExternalBackup CreateMode = "RestoreExternalBackup"
- // CreateModeRestoreExternalBackupSecondary ...
- CreateModeRestoreExternalBackupSecondary CreateMode = "RestoreExternalBackupSecondary"
- // CreateModeRestoreLongTermRetentionBackup ...
- CreateModeRestoreLongTermRetentionBackup CreateMode = "RestoreLongTermRetentionBackup"
- // CreateModeSecondary ...
- CreateModeSecondary CreateMode = "Secondary"
-)
-
-// PossibleCreateModeValues returns an array of possible values for the CreateMode const type.
-func PossibleCreateModeValues() []CreateMode {
- return []CreateMode{CreateModeCopy, CreateModeDefault, CreateModeOnlineSecondary, CreateModePointInTimeRestore, CreateModeRecovery, CreateModeRestore, CreateModeRestoreExternalBackup, CreateModeRestoreExternalBackupSecondary, CreateModeRestoreLongTermRetentionBackup, CreateModeSecondary}
-}
-
-// DatabaseEdition enumerates the values for database edition.
-type DatabaseEdition string
-
-const (
- // Basic ...
- Basic DatabaseEdition = "Basic"
- // Business ...
- Business DatabaseEdition = "Business"
- // BusinessCritical ...
- BusinessCritical DatabaseEdition = "BusinessCritical"
- // DataWarehouse ...
- DataWarehouse DatabaseEdition = "DataWarehouse"
- // Free ...
- Free DatabaseEdition = "Free"
- // GeneralPurpose ...
- GeneralPurpose DatabaseEdition = "GeneralPurpose"
- // Hyperscale ...
- Hyperscale DatabaseEdition = "Hyperscale"
- // Premium ...
- Premium DatabaseEdition = "Premium"
- // PremiumRS ...
- PremiumRS DatabaseEdition = "PremiumRS"
- // Standard ...
- Standard DatabaseEdition = "Standard"
- // Stretch ...
- Stretch DatabaseEdition = "Stretch"
- // System ...
- System DatabaseEdition = "System"
- // System2 ...
- System2 DatabaseEdition = "System2"
- // Web ...
- Web DatabaseEdition = "Web"
-)
-
-// PossibleDatabaseEditionValues returns an array of possible values for the DatabaseEdition const type.
-func PossibleDatabaseEditionValues() []DatabaseEdition {
- return []DatabaseEdition{Basic, Business, BusinessCritical, DataWarehouse, Free, GeneralPurpose, Hyperscale, Premium, PremiumRS, Standard, Stretch, System, System2, Web}
-}
-
-// DatabaseLicenseType enumerates the values for database license type.
-type DatabaseLicenseType string
-
-const (
- // BasePrice ...
- BasePrice DatabaseLicenseType = "BasePrice"
- // LicenseIncluded ...
- LicenseIncluded DatabaseLicenseType = "LicenseIncluded"
-)
-
-// PossibleDatabaseLicenseTypeValues returns an array of possible values for the DatabaseLicenseType const type.
-func PossibleDatabaseLicenseTypeValues() []DatabaseLicenseType {
- return []DatabaseLicenseType{BasePrice, LicenseIncluded}
-}
-
-// DatabaseReadScale enumerates the values for database read scale.
-type DatabaseReadScale string
-
-const (
- // DatabaseReadScaleDisabled ...
- DatabaseReadScaleDisabled DatabaseReadScale = "Disabled"
- // DatabaseReadScaleEnabled ...
- DatabaseReadScaleEnabled DatabaseReadScale = "Enabled"
-)
-
-// PossibleDatabaseReadScaleValues returns an array of possible values for the DatabaseReadScale const type.
-func PossibleDatabaseReadScaleValues() []DatabaseReadScale {
- return []DatabaseReadScale{DatabaseReadScaleDisabled, DatabaseReadScaleEnabled}
-}
-
-// DatabaseStatus enumerates the values for database status.
-type DatabaseStatus string
-
-const (
- // DatabaseStatusAutoClosed ...
- DatabaseStatusAutoClosed DatabaseStatus = "AutoClosed"
- // DatabaseStatusCopying ...
- DatabaseStatusCopying DatabaseStatus = "Copying"
- // DatabaseStatusCreating ...
- DatabaseStatusCreating DatabaseStatus = "Creating"
- // DatabaseStatusDisabled ...
- DatabaseStatusDisabled DatabaseStatus = "Disabled"
- // DatabaseStatusEmergencyMode ...
- DatabaseStatusEmergencyMode DatabaseStatus = "EmergencyMode"
- // DatabaseStatusInaccessible ...
- DatabaseStatusInaccessible DatabaseStatus = "Inaccessible"
- // DatabaseStatusOffline ...
- DatabaseStatusOffline DatabaseStatus = "Offline"
- // DatabaseStatusOfflineChangingDwPerformanceTiers ...
- DatabaseStatusOfflineChangingDwPerformanceTiers DatabaseStatus = "OfflineChangingDwPerformanceTiers"
- // DatabaseStatusOfflineSecondary ...
- DatabaseStatusOfflineSecondary DatabaseStatus = "OfflineSecondary"
- // DatabaseStatusOnline ...
- DatabaseStatusOnline DatabaseStatus = "Online"
- // DatabaseStatusOnlineChangingDwPerformanceTiers ...
- DatabaseStatusOnlineChangingDwPerformanceTiers DatabaseStatus = "OnlineChangingDwPerformanceTiers"
- // DatabaseStatusPaused ...
- DatabaseStatusPaused DatabaseStatus = "Paused"
- // DatabaseStatusPausing ...
- DatabaseStatusPausing DatabaseStatus = "Pausing"
- // DatabaseStatusRecovering ...
- DatabaseStatusRecovering DatabaseStatus = "Recovering"
- // DatabaseStatusRecoveryPending ...
- DatabaseStatusRecoveryPending DatabaseStatus = "RecoveryPending"
- // DatabaseStatusRestoring ...
- DatabaseStatusRestoring DatabaseStatus = "Restoring"
- // DatabaseStatusResuming ...
- DatabaseStatusResuming DatabaseStatus = "Resuming"
- // DatabaseStatusScaling ...
- DatabaseStatusScaling DatabaseStatus = "Scaling"
- // DatabaseStatusShutdown ...
- DatabaseStatusShutdown DatabaseStatus = "Shutdown"
- // DatabaseStatusStandby ...
- DatabaseStatusStandby DatabaseStatus = "Standby"
- // DatabaseStatusSuspect ...
- DatabaseStatusSuspect DatabaseStatus = "Suspect"
-)
-
-// PossibleDatabaseStatusValues returns an array of possible values for the DatabaseStatus const type.
-func PossibleDatabaseStatusValues() []DatabaseStatus {
- return []DatabaseStatus{DatabaseStatusAutoClosed, DatabaseStatusCopying, DatabaseStatusCreating, DatabaseStatusDisabled, DatabaseStatusEmergencyMode, DatabaseStatusInaccessible, DatabaseStatusOffline, DatabaseStatusOfflineChangingDwPerformanceTiers, DatabaseStatusOfflineSecondary, DatabaseStatusOnline, DatabaseStatusOnlineChangingDwPerformanceTiers, DatabaseStatusPaused, DatabaseStatusPausing, DatabaseStatusRecovering, DatabaseStatusRecoveryPending, DatabaseStatusRestoring, DatabaseStatusResuming, DatabaseStatusScaling, DatabaseStatusShutdown, DatabaseStatusStandby, DatabaseStatusSuspect}
-}
-
-// DataMaskingFunction enumerates the values for data masking function.
-type DataMaskingFunction string
-
-const (
- // DataMaskingFunctionCCN ...
- DataMaskingFunctionCCN DataMaskingFunction = "CCN"
- // DataMaskingFunctionDefault ...
- DataMaskingFunctionDefault DataMaskingFunction = "Default"
- // DataMaskingFunctionEmail ...
- DataMaskingFunctionEmail DataMaskingFunction = "Email"
- // DataMaskingFunctionNumber ...
- DataMaskingFunctionNumber DataMaskingFunction = "Number"
- // DataMaskingFunctionSSN ...
- DataMaskingFunctionSSN DataMaskingFunction = "SSN"
- // DataMaskingFunctionText ...
- DataMaskingFunctionText DataMaskingFunction = "Text"
-)
-
-// PossibleDataMaskingFunctionValues returns an array of possible values for the DataMaskingFunction const type.
-func PossibleDataMaskingFunctionValues() []DataMaskingFunction {
- return []DataMaskingFunction{DataMaskingFunctionCCN, DataMaskingFunctionDefault, DataMaskingFunctionEmail, DataMaskingFunctionNumber, DataMaskingFunctionSSN, DataMaskingFunctionText}
-}
-
-// DataMaskingRuleState enumerates the values for data masking rule state.
-type DataMaskingRuleState string
-
-const (
- // DataMaskingRuleStateDisabled ...
- DataMaskingRuleStateDisabled DataMaskingRuleState = "Disabled"
- // DataMaskingRuleStateEnabled ...
- DataMaskingRuleStateEnabled DataMaskingRuleState = "Enabled"
-)
-
-// PossibleDataMaskingRuleStateValues returns an array of possible values for the DataMaskingRuleState const type.
-func PossibleDataMaskingRuleStateValues() []DataMaskingRuleState {
- return []DataMaskingRuleState{DataMaskingRuleStateDisabled, DataMaskingRuleStateEnabled}
-}
-
-// DataMaskingState enumerates the values for data masking state.
-type DataMaskingState string
-
-const (
- // DataMaskingStateDisabled ...
- DataMaskingStateDisabled DataMaskingState = "Disabled"
- // DataMaskingStateEnabled ...
- DataMaskingStateEnabled DataMaskingState = "Enabled"
-)
-
-// PossibleDataMaskingStateValues returns an array of possible values for the DataMaskingState const type.
-func PossibleDataMaskingStateValues() []DataMaskingState {
- return []DataMaskingState{DataMaskingStateDisabled, DataMaskingStateEnabled}
-}
-
-// ElasticPoolEdition enumerates the values for elastic pool edition.
-type ElasticPoolEdition string
-
-const (
- // ElasticPoolEditionBasic ...
- ElasticPoolEditionBasic ElasticPoolEdition = "Basic"
- // ElasticPoolEditionBusinessCritical ...
- ElasticPoolEditionBusinessCritical ElasticPoolEdition = "BusinessCritical"
- // ElasticPoolEditionGeneralPurpose ...
- ElasticPoolEditionGeneralPurpose ElasticPoolEdition = "GeneralPurpose"
- // ElasticPoolEditionPremium ...
- ElasticPoolEditionPremium ElasticPoolEdition = "Premium"
- // ElasticPoolEditionStandard ...
- ElasticPoolEditionStandard ElasticPoolEdition = "Standard"
-)
-
-// PossibleElasticPoolEditionValues returns an array of possible values for the ElasticPoolEdition const type.
-func PossibleElasticPoolEditionValues() []ElasticPoolEdition {
- return []ElasticPoolEdition{ElasticPoolEditionBasic, ElasticPoolEditionBusinessCritical, ElasticPoolEditionGeneralPurpose, ElasticPoolEditionPremium, ElasticPoolEditionStandard}
-}
-
-// ElasticPoolLicenseType enumerates the values for elastic pool license type.
-type ElasticPoolLicenseType string
-
-const (
- // ElasticPoolLicenseTypeBasePrice ...
- ElasticPoolLicenseTypeBasePrice ElasticPoolLicenseType = "BasePrice"
- // ElasticPoolLicenseTypeLicenseIncluded ...
- ElasticPoolLicenseTypeLicenseIncluded ElasticPoolLicenseType = "LicenseIncluded"
-)
-
-// PossibleElasticPoolLicenseTypeValues returns an array of possible values for the ElasticPoolLicenseType const type.
-func PossibleElasticPoolLicenseTypeValues() []ElasticPoolLicenseType {
- return []ElasticPoolLicenseType{ElasticPoolLicenseTypeBasePrice, ElasticPoolLicenseTypeLicenseIncluded}
-}
-
-// ElasticPoolState enumerates the values for elastic pool state.
-type ElasticPoolState string
-
-const (
- // ElasticPoolStateCreating ...
- ElasticPoolStateCreating ElasticPoolState = "Creating"
- // ElasticPoolStateDisabled ...
- ElasticPoolStateDisabled ElasticPoolState = "Disabled"
- // ElasticPoolStateReady ...
- ElasticPoolStateReady ElasticPoolState = "Ready"
-)
-
-// PossibleElasticPoolStateValues returns an array of possible values for the ElasticPoolState const type.
-func PossibleElasticPoolStateValues() []ElasticPoolState {
- return []ElasticPoolState{ElasticPoolStateCreating, ElasticPoolStateDisabled, ElasticPoolStateReady}
-}
-
-// FailoverGroupReplicationRole enumerates the values for failover group replication role.
-type FailoverGroupReplicationRole string
-
-const (
- // Primary ...
- Primary FailoverGroupReplicationRole = "Primary"
- // Secondary ...
- Secondary FailoverGroupReplicationRole = "Secondary"
-)
-
-// PossibleFailoverGroupReplicationRoleValues returns an array of possible values for the FailoverGroupReplicationRole const type.
-func PossibleFailoverGroupReplicationRoleValues() []FailoverGroupReplicationRole {
- return []FailoverGroupReplicationRole{Primary, Secondary}
-}
-
-// GeoBackupPolicyState enumerates the values for geo backup policy state.
-type GeoBackupPolicyState string
-
-const (
- // GeoBackupPolicyStateDisabled ...
- GeoBackupPolicyStateDisabled GeoBackupPolicyState = "Disabled"
- // GeoBackupPolicyStateEnabled ...
- GeoBackupPolicyStateEnabled GeoBackupPolicyState = "Enabled"
-)
-
-// PossibleGeoBackupPolicyStateValues returns an array of possible values for the GeoBackupPolicyState const type.
-func PossibleGeoBackupPolicyStateValues() []GeoBackupPolicyState {
- return []GeoBackupPolicyState{GeoBackupPolicyStateDisabled, GeoBackupPolicyStateEnabled}
-}
-
-// IdentityType enumerates the values for identity type.
-type IdentityType string
-
-const (
- // SystemAssigned ...
- SystemAssigned IdentityType = "SystemAssigned"
-)
-
-// PossibleIdentityTypeValues returns an array of possible values for the IdentityType const type.
-func PossibleIdentityTypeValues() []IdentityType {
- return []IdentityType{SystemAssigned}
-}
-
-// InstanceFailoverGroupReplicationRole enumerates the values for instance failover group replication role.
-type InstanceFailoverGroupReplicationRole string
-
-const (
- // InstanceFailoverGroupReplicationRolePrimary ...
- InstanceFailoverGroupReplicationRolePrimary InstanceFailoverGroupReplicationRole = "Primary"
- // InstanceFailoverGroupReplicationRoleSecondary ...
- InstanceFailoverGroupReplicationRoleSecondary InstanceFailoverGroupReplicationRole = "Secondary"
-)
-
-// PossibleInstanceFailoverGroupReplicationRoleValues returns an array of possible values for the InstanceFailoverGroupReplicationRole const type.
-func PossibleInstanceFailoverGroupReplicationRoleValues() []InstanceFailoverGroupReplicationRole {
- return []InstanceFailoverGroupReplicationRole{InstanceFailoverGroupReplicationRolePrimary, InstanceFailoverGroupReplicationRoleSecondary}
-}
-
-// InstancePoolLicenseType enumerates the values for instance pool license type.
-type InstancePoolLicenseType string
-
-const (
- // InstancePoolLicenseTypeBasePrice ...
- InstancePoolLicenseTypeBasePrice InstancePoolLicenseType = "BasePrice"
- // InstancePoolLicenseTypeLicenseIncluded ...
- InstancePoolLicenseTypeLicenseIncluded InstancePoolLicenseType = "LicenseIncluded"
-)
-
-// PossibleInstancePoolLicenseTypeValues returns an array of possible values for the InstancePoolLicenseType const type.
-func PossibleInstancePoolLicenseTypeValues() []InstancePoolLicenseType {
- return []InstancePoolLicenseType{InstancePoolLicenseTypeBasePrice, InstancePoolLicenseTypeLicenseIncluded}
-}
-
-// JobAgentState enumerates the values for job agent state.
-type JobAgentState string
-
-const (
- // JobAgentStateCreating ...
- JobAgentStateCreating JobAgentState = "Creating"
- // JobAgentStateDeleting ...
- JobAgentStateDeleting JobAgentState = "Deleting"
- // JobAgentStateDisabled ...
- JobAgentStateDisabled JobAgentState = "Disabled"
- // JobAgentStateReady ...
- JobAgentStateReady JobAgentState = "Ready"
- // JobAgentStateUpdating ...
- JobAgentStateUpdating JobAgentState = "Updating"
-)
-
-// PossibleJobAgentStateValues returns an array of possible values for the JobAgentState const type.
-func PossibleJobAgentStateValues() []JobAgentState {
- return []JobAgentState{JobAgentStateCreating, JobAgentStateDeleting, JobAgentStateDisabled, JobAgentStateReady, JobAgentStateUpdating}
-}
-
-// JobExecutionLifecycle enumerates the values for job execution lifecycle.
-type JobExecutionLifecycle string
-
-const (
- // Canceled ...
- Canceled JobExecutionLifecycle = "Canceled"
- // Created ...
- Created JobExecutionLifecycle = "Created"
- // Failed ...
- Failed JobExecutionLifecycle = "Failed"
- // InProgress ...
- InProgress JobExecutionLifecycle = "InProgress"
- // Skipped ...
- Skipped JobExecutionLifecycle = "Skipped"
- // Succeeded ...
- Succeeded JobExecutionLifecycle = "Succeeded"
- // SucceededWithSkipped ...
- SucceededWithSkipped JobExecutionLifecycle = "SucceededWithSkipped"
- // TimedOut ...
- TimedOut JobExecutionLifecycle = "TimedOut"
- // WaitingForChildJobExecutions ...
- WaitingForChildJobExecutions JobExecutionLifecycle = "WaitingForChildJobExecutions"
- // WaitingForRetry ...
- WaitingForRetry JobExecutionLifecycle = "WaitingForRetry"
-)
-
-// PossibleJobExecutionLifecycleValues returns an array of possible values for the JobExecutionLifecycle const type.
-func PossibleJobExecutionLifecycleValues() []JobExecutionLifecycle {
- return []JobExecutionLifecycle{Canceled, Created, Failed, InProgress, Skipped, Succeeded, SucceededWithSkipped, TimedOut, WaitingForChildJobExecutions, WaitingForRetry}
-}
-
-// JobScheduleType enumerates the values for job schedule type.
-type JobScheduleType string
-
-const (
- // Once ...
- Once JobScheduleType = "Once"
- // Recurring ...
- Recurring JobScheduleType = "Recurring"
-)
-
-// PossibleJobScheduleTypeValues returns an array of possible values for the JobScheduleType const type.
-func PossibleJobScheduleTypeValues() []JobScheduleType {
- return []JobScheduleType{Once, Recurring}
-}
-
-// JobStepActionSource enumerates the values for job step action source.
-type JobStepActionSource string
-
-const (
- // Inline ...
- Inline JobStepActionSource = "Inline"
-)
-
-// PossibleJobStepActionSourceValues returns an array of possible values for the JobStepActionSource const type.
-func PossibleJobStepActionSourceValues() []JobStepActionSource {
- return []JobStepActionSource{Inline}
-}
-
-// JobStepActionType enumerates the values for job step action type.
-type JobStepActionType string
-
-const (
- // TSQL ...
- TSQL JobStepActionType = "TSql"
-)
-
-// PossibleJobStepActionTypeValues returns an array of possible values for the JobStepActionType const type.
-func PossibleJobStepActionTypeValues() []JobStepActionType {
- return []JobStepActionType{TSQL}
-}
-
-// JobStepOutputType enumerates the values for job step output type.
-type JobStepOutputType string
-
-const (
- // SQLDatabase ...
- SQLDatabase JobStepOutputType = "SqlDatabase"
-)
-
-// PossibleJobStepOutputTypeValues returns an array of possible values for the JobStepOutputType const type.
-func PossibleJobStepOutputTypeValues() []JobStepOutputType {
- return []JobStepOutputType{SQLDatabase}
-}
-
-// JobTargetGroupMembershipType enumerates the values for job target group membership type.
-type JobTargetGroupMembershipType string
-
-const (
- // Exclude ...
- Exclude JobTargetGroupMembershipType = "Exclude"
- // Include ...
- Include JobTargetGroupMembershipType = "Include"
-)
-
-// PossibleJobTargetGroupMembershipTypeValues returns an array of possible values for the JobTargetGroupMembershipType const type.
-func PossibleJobTargetGroupMembershipTypeValues() []JobTargetGroupMembershipType {
- return []JobTargetGroupMembershipType{Exclude, Include}
-}
-
-// JobTargetType enumerates the values for job target type.
-type JobTargetType string
-
-const (
- // JobTargetTypeSQLDatabase ...
- JobTargetTypeSQLDatabase JobTargetType = "SqlDatabase"
- // JobTargetTypeSQLElasticPool ...
- JobTargetTypeSQLElasticPool JobTargetType = "SqlElasticPool"
- // JobTargetTypeSQLServer ...
- JobTargetTypeSQLServer JobTargetType = "SqlServer"
- // JobTargetTypeSQLShardMap ...
- JobTargetTypeSQLShardMap JobTargetType = "SqlShardMap"
- // JobTargetTypeTargetGroup ...
- JobTargetTypeTargetGroup JobTargetType = "TargetGroup"
-)
-
-// PossibleJobTargetTypeValues returns an array of possible values for the JobTargetType const type.
-func PossibleJobTargetTypeValues() []JobTargetType {
- return []JobTargetType{JobTargetTypeSQLDatabase, JobTargetTypeSQLElasticPool, JobTargetTypeSQLServer, JobTargetTypeSQLShardMap, JobTargetTypeTargetGroup}
-}
-
-// LogSizeUnit enumerates the values for log size unit.
-type LogSizeUnit string
-
-const (
- // Gigabytes ...
- Gigabytes LogSizeUnit = "Gigabytes"
- // Megabytes ...
- Megabytes LogSizeUnit = "Megabytes"
- // Percent ...
- Percent LogSizeUnit = "Percent"
- // Petabytes ...
- Petabytes LogSizeUnit = "Petabytes"
- // Terabytes ...
- Terabytes LogSizeUnit = "Terabytes"
-)
-
-// PossibleLogSizeUnitValues returns an array of possible values for the LogSizeUnit const type.
-func PossibleLogSizeUnitValues() []LogSizeUnit {
- return []LogSizeUnit{Gigabytes, Megabytes, Percent, Petabytes, Terabytes}
-}
-
-// LongTermRetentionDatabaseState enumerates the values for long term retention database state.
-type LongTermRetentionDatabaseState string
-
-const (
- // All ...
- All LongTermRetentionDatabaseState = "All"
- // Deleted ...
- Deleted LongTermRetentionDatabaseState = "Deleted"
- // Live ...
- Live LongTermRetentionDatabaseState = "Live"
-)
-
-// PossibleLongTermRetentionDatabaseStateValues returns an array of possible values for the LongTermRetentionDatabaseState const type.
-func PossibleLongTermRetentionDatabaseStateValues() []LongTermRetentionDatabaseState {
- return []LongTermRetentionDatabaseState{All, Deleted, Live}
-}
-
-// ManagedDatabaseCreateMode enumerates the values for managed database create mode.
-type ManagedDatabaseCreateMode string
-
-const (
- // ManagedDatabaseCreateModeDefault ...
- ManagedDatabaseCreateModeDefault ManagedDatabaseCreateMode = "Default"
- // ManagedDatabaseCreateModePointInTimeRestore ...
- ManagedDatabaseCreateModePointInTimeRestore ManagedDatabaseCreateMode = "PointInTimeRestore"
- // ManagedDatabaseCreateModeRecovery ...
- ManagedDatabaseCreateModeRecovery ManagedDatabaseCreateMode = "Recovery"
- // ManagedDatabaseCreateModeRestoreExternalBackup ...
- ManagedDatabaseCreateModeRestoreExternalBackup ManagedDatabaseCreateMode = "RestoreExternalBackup"
-)
-
-// PossibleManagedDatabaseCreateModeValues returns an array of possible values for the ManagedDatabaseCreateMode const type.
-func PossibleManagedDatabaseCreateModeValues() []ManagedDatabaseCreateMode {
- return []ManagedDatabaseCreateMode{ManagedDatabaseCreateModeDefault, ManagedDatabaseCreateModePointInTimeRestore, ManagedDatabaseCreateModeRecovery, ManagedDatabaseCreateModeRestoreExternalBackup}
-}
-
-// ManagedDatabaseStatus enumerates the values for managed database status.
-type ManagedDatabaseStatus string
-
-const (
- // Creating ...
- Creating ManagedDatabaseStatus = "Creating"
- // Inaccessible ...
- Inaccessible ManagedDatabaseStatus = "Inaccessible"
- // Offline ...
- Offline ManagedDatabaseStatus = "Offline"
- // Online ...
- Online ManagedDatabaseStatus = "Online"
- // Restoring ...
- Restoring ManagedDatabaseStatus = "Restoring"
- // Shutdown ...
- Shutdown ManagedDatabaseStatus = "Shutdown"
- // Updating ...
- Updating ManagedDatabaseStatus = "Updating"
-)
-
-// PossibleManagedDatabaseStatusValues returns an array of possible values for the ManagedDatabaseStatus const type.
-func PossibleManagedDatabaseStatusValues() []ManagedDatabaseStatus {
- return []ManagedDatabaseStatus{Creating, Inaccessible, Offline, Online, Restoring, Shutdown, Updating}
-}
-
-// ManagedInstanceLicenseType enumerates the values for managed instance license type.
-type ManagedInstanceLicenseType string
-
-const (
- // ManagedInstanceLicenseTypeBasePrice ...
- ManagedInstanceLicenseTypeBasePrice ManagedInstanceLicenseType = "BasePrice"
- // ManagedInstanceLicenseTypeLicenseIncluded ...
- ManagedInstanceLicenseTypeLicenseIncluded ManagedInstanceLicenseType = "LicenseIncluded"
-)
-
-// PossibleManagedInstanceLicenseTypeValues returns an array of possible values for the ManagedInstanceLicenseType const type.
-func PossibleManagedInstanceLicenseTypeValues() []ManagedInstanceLicenseType {
- return []ManagedInstanceLicenseType{ManagedInstanceLicenseTypeBasePrice, ManagedInstanceLicenseTypeLicenseIncluded}
-}
-
-// ManagedInstanceProxyOverride enumerates the values for managed instance proxy override.
-type ManagedInstanceProxyOverride string
-
-const (
- // ManagedInstanceProxyOverrideDefault ...
- ManagedInstanceProxyOverrideDefault ManagedInstanceProxyOverride = "Default"
- // ManagedInstanceProxyOverrideProxy ...
- ManagedInstanceProxyOverrideProxy ManagedInstanceProxyOverride = "Proxy"
- // ManagedInstanceProxyOverrideRedirect ...
- ManagedInstanceProxyOverrideRedirect ManagedInstanceProxyOverride = "Redirect"
-)
-
-// PossibleManagedInstanceProxyOverrideValues returns an array of possible values for the ManagedInstanceProxyOverride const type.
-func PossibleManagedInstanceProxyOverrideValues() []ManagedInstanceProxyOverride {
- return []ManagedInstanceProxyOverride{ManagedInstanceProxyOverrideDefault, ManagedInstanceProxyOverrideProxy, ManagedInstanceProxyOverrideRedirect}
-}
-
-// ManagedServerCreateMode enumerates the values for managed server create mode.
-type ManagedServerCreateMode string
-
-const (
- // ManagedServerCreateModeDefault ...
- ManagedServerCreateModeDefault ManagedServerCreateMode = "Default"
- // ManagedServerCreateModePointInTimeRestore ...
- ManagedServerCreateModePointInTimeRestore ManagedServerCreateMode = "PointInTimeRestore"
-)
-
-// PossibleManagedServerCreateModeValues returns an array of possible values for the ManagedServerCreateMode const type.
-func PossibleManagedServerCreateModeValues() []ManagedServerCreateMode {
- return []ManagedServerCreateMode{ManagedServerCreateModeDefault, ManagedServerCreateModePointInTimeRestore}
-}
-
-// ManagementOperationState enumerates the values for management operation state.
-type ManagementOperationState string
-
-const (
- // ManagementOperationStateCancelInProgress ...
- ManagementOperationStateCancelInProgress ManagementOperationState = "CancelInProgress"
- // ManagementOperationStateCancelled ...
- ManagementOperationStateCancelled ManagementOperationState = "Cancelled"
- // ManagementOperationStateFailed ...
- ManagementOperationStateFailed ManagementOperationState = "Failed"
- // ManagementOperationStateInProgress ...
- ManagementOperationStateInProgress ManagementOperationState = "InProgress"
- // ManagementOperationStatePending ...
- ManagementOperationStatePending ManagementOperationState = "Pending"
- // ManagementOperationStateSucceeded ...
- ManagementOperationStateSucceeded ManagementOperationState = "Succeeded"
-)
-
-// PossibleManagementOperationStateValues returns an array of possible values for the ManagementOperationState const type.
-func PossibleManagementOperationStateValues() []ManagementOperationState {
- return []ManagementOperationState{ManagementOperationStateCancelInProgress, ManagementOperationStateCancelled, ManagementOperationStateFailed, ManagementOperationStateInProgress, ManagementOperationStatePending, ManagementOperationStateSucceeded}
-}
-
-// MaxSizeUnit enumerates the values for max size unit.
-type MaxSizeUnit string
-
-const (
- // MaxSizeUnitGigabytes ...
- MaxSizeUnitGigabytes MaxSizeUnit = "Gigabytes"
- // MaxSizeUnitMegabytes ...
- MaxSizeUnitMegabytes MaxSizeUnit = "Megabytes"
- // MaxSizeUnitPetabytes ...
- MaxSizeUnitPetabytes MaxSizeUnit = "Petabytes"
- // MaxSizeUnitTerabytes ...
- MaxSizeUnitTerabytes MaxSizeUnit = "Terabytes"
-)
-
-// PossibleMaxSizeUnitValues returns an array of possible values for the MaxSizeUnit const type.
-func PossibleMaxSizeUnitValues() []MaxSizeUnit {
- return []MaxSizeUnit{MaxSizeUnitGigabytes, MaxSizeUnitMegabytes, MaxSizeUnitPetabytes, MaxSizeUnitTerabytes}
-}
-
-// OperationOrigin enumerates the values for operation origin.
-type OperationOrigin string
-
-const (
- // OperationOriginSystem ...
- OperationOriginSystem OperationOrigin = "system"
- // OperationOriginUser ...
- OperationOriginUser OperationOrigin = "user"
-)
-
-// PossibleOperationOriginValues returns an array of possible values for the OperationOrigin const type.
-func PossibleOperationOriginValues() []OperationOrigin {
- return []OperationOrigin{OperationOriginSystem, OperationOriginUser}
-}
-
-// PerformanceLevelUnit enumerates the values for performance level unit.
-type PerformanceLevelUnit string
-
-const (
- // DTU ...
- DTU PerformanceLevelUnit = "DTU"
- // VCores ...
- VCores PerformanceLevelUnit = "VCores"
-)
-
-// PossiblePerformanceLevelUnitValues returns an array of possible values for the PerformanceLevelUnit const type.
-func PossiblePerformanceLevelUnitValues() []PerformanceLevelUnit {
- return []PerformanceLevelUnit{DTU, VCores}
-}
-
-// PrimaryAggregationType enumerates the values for primary aggregation type.
-type PrimaryAggregationType string
-
-const (
- // Average ...
- Average PrimaryAggregationType = "Average"
- // Count ...
- Count PrimaryAggregationType = "Count"
- // Maximum ...
- Maximum PrimaryAggregationType = "Maximum"
- // Minimum ...
- Minimum PrimaryAggregationType = "Minimum"
- // None ...
- None PrimaryAggregationType = "None"
- // Total ...
- Total PrimaryAggregationType = "Total"
-)
-
-// PossiblePrimaryAggregationTypeValues returns an array of possible values for the PrimaryAggregationType const type.
-func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType {
- return []PrimaryAggregationType{Average, Count, Maximum, Minimum, None, Total}
-}
-
-// ProvisioningState enumerates the values for provisioning state.
-type ProvisioningState string
-
-const (
- // ProvisioningStateCanceled ...
- ProvisioningStateCanceled ProvisioningState = "Canceled"
- // ProvisioningStateCreated ...
- ProvisioningStateCreated ProvisioningState = "Created"
- // ProvisioningStateFailed ...
- ProvisioningStateFailed ProvisioningState = "Failed"
- // ProvisioningStateInProgress ...
- ProvisioningStateInProgress ProvisioningState = "InProgress"
- // ProvisioningStateSucceeded ...
- ProvisioningStateSucceeded ProvisioningState = "Succeeded"
-)
-
-// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
-func PossibleProvisioningStateValues() []ProvisioningState {
- return []ProvisioningState{ProvisioningStateCanceled, ProvisioningStateCreated, ProvisioningStateFailed, ProvisioningStateInProgress, ProvisioningStateSucceeded}
-}
-
-// ReadOnlyEndpointFailoverPolicy enumerates the values for read only endpoint failover policy.
-type ReadOnlyEndpointFailoverPolicy string
-
-const (
- // ReadOnlyEndpointFailoverPolicyDisabled ...
- ReadOnlyEndpointFailoverPolicyDisabled ReadOnlyEndpointFailoverPolicy = "Disabled"
- // ReadOnlyEndpointFailoverPolicyEnabled ...
- ReadOnlyEndpointFailoverPolicyEnabled ReadOnlyEndpointFailoverPolicy = "Enabled"
-)
-
-// PossibleReadOnlyEndpointFailoverPolicyValues returns an array of possible values for the ReadOnlyEndpointFailoverPolicy const type.
-func PossibleReadOnlyEndpointFailoverPolicyValues() []ReadOnlyEndpointFailoverPolicy {
- return []ReadOnlyEndpointFailoverPolicy{ReadOnlyEndpointFailoverPolicyDisabled, ReadOnlyEndpointFailoverPolicyEnabled}
-}
-
-// ReadWriteEndpointFailoverPolicy enumerates the values for read write endpoint failover policy.
-type ReadWriteEndpointFailoverPolicy string
-
-const (
- // Automatic ...
- Automatic ReadWriteEndpointFailoverPolicy = "Automatic"
- // Manual ...
- Manual ReadWriteEndpointFailoverPolicy = "Manual"
-)
-
-// PossibleReadWriteEndpointFailoverPolicyValues returns an array of possible values for the ReadWriteEndpointFailoverPolicy const type.
-func PossibleReadWriteEndpointFailoverPolicyValues() []ReadWriteEndpointFailoverPolicy {
- return []ReadWriteEndpointFailoverPolicy{Automatic, Manual}
-}
-
-// RecommendedIndexAction enumerates the values for recommended index action.
-type RecommendedIndexAction string
-
-const (
- // Create ...
- Create RecommendedIndexAction = "Create"
- // Drop ...
- Drop RecommendedIndexAction = "Drop"
- // Rebuild ...
- Rebuild RecommendedIndexAction = "Rebuild"
-)
-
-// PossibleRecommendedIndexActionValues returns an array of possible values for the RecommendedIndexAction const type.
-func PossibleRecommendedIndexActionValues() []RecommendedIndexAction {
- return []RecommendedIndexAction{Create, Drop, Rebuild}
-}
-
-// RecommendedIndexState enumerates the values for recommended index state.
-type RecommendedIndexState string
-
-const (
- // Active ...
- Active RecommendedIndexState = "Active"
- // Blocked ...
- Blocked RecommendedIndexState = "Blocked"
- // Executing ...
- Executing RecommendedIndexState = "Executing"
- // Expired ...
- Expired RecommendedIndexState = "Expired"
- // Ignored ...
- Ignored RecommendedIndexState = "Ignored"
- // Pending ...
- Pending RecommendedIndexState = "Pending"
- // PendingRevert ...
- PendingRevert RecommendedIndexState = "Pending Revert"
- // Reverted ...
- Reverted RecommendedIndexState = "Reverted"
- // Reverting ...
- Reverting RecommendedIndexState = "Reverting"
- // Success ...
- Success RecommendedIndexState = "Success"
- // Verifying ...
- Verifying RecommendedIndexState = "Verifying"
-)
-
-// PossibleRecommendedIndexStateValues returns an array of possible values for the RecommendedIndexState const type.
-func PossibleRecommendedIndexStateValues() []RecommendedIndexState {
- return []RecommendedIndexState{Active, Blocked, Executing, Expired, Ignored, Pending, PendingRevert, Reverted, Reverting, Success, Verifying}
-}
-
-// RecommendedIndexType enumerates the values for recommended index type.
-type RecommendedIndexType string
-
-const (
- // CLUSTERED ...
- CLUSTERED RecommendedIndexType = "CLUSTERED"
- // CLUSTEREDCOLUMNSTORE ...
- CLUSTEREDCOLUMNSTORE RecommendedIndexType = "CLUSTERED COLUMNSTORE"
- // COLUMNSTORE ...
- COLUMNSTORE RecommendedIndexType = "COLUMNSTORE"
- // NONCLUSTERED ...
- NONCLUSTERED RecommendedIndexType = "NONCLUSTERED"
-)
-
-// PossibleRecommendedIndexTypeValues returns an array of possible values for the RecommendedIndexType const type.
-func PossibleRecommendedIndexTypeValues() []RecommendedIndexType {
- return []RecommendedIndexType{CLUSTERED, CLUSTEREDCOLUMNSTORE, COLUMNSTORE, NONCLUSTERED}
-}
-
-// ReplicationRole enumerates the values for replication role.
-type ReplicationRole string
-
-const (
- // ReplicationRoleCopy ...
- ReplicationRoleCopy ReplicationRole = "Copy"
- // ReplicationRoleNonReadableSecondary ...
- ReplicationRoleNonReadableSecondary ReplicationRole = "NonReadableSecondary"
- // ReplicationRolePrimary ...
- ReplicationRolePrimary ReplicationRole = "Primary"
- // ReplicationRoleSecondary ...
- ReplicationRoleSecondary ReplicationRole = "Secondary"
- // ReplicationRoleSource ...
- ReplicationRoleSource ReplicationRole = "Source"
-)
-
-// PossibleReplicationRoleValues returns an array of possible values for the ReplicationRole const type.
-func PossibleReplicationRoleValues() []ReplicationRole {
- return []ReplicationRole{ReplicationRoleCopy, ReplicationRoleNonReadableSecondary, ReplicationRolePrimary, ReplicationRoleSecondary, ReplicationRoleSource}
-}
-
-// ReplicationState enumerates the values for replication state.
-type ReplicationState string
-
-const (
- // CATCHUP ...
- CATCHUP ReplicationState = "CATCH_UP"
- // PENDING ...
- PENDING ReplicationState = "PENDING"
- // SEEDING ...
- SEEDING ReplicationState = "SEEDING"
- // SUSPENDED ...
- SUSPENDED ReplicationState = "SUSPENDED"
-)
-
-// PossibleReplicationStateValues returns an array of possible values for the ReplicationState const type.
-func PossibleReplicationStateValues() []ReplicationState {
- return []ReplicationState{CATCHUP, PENDING, SEEDING, SUSPENDED}
-}
-
-// RestorePointType enumerates the values for restore point type.
-type RestorePointType string
-
-const (
- // CONTINUOUS ...
- CONTINUOUS RestorePointType = "CONTINUOUS"
- // DISCRETE ...
- DISCRETE RestorePointType = "DISCRETE"
-)
-
-// PossibleRestorePointTypeValues returns an array of possible values for the RestorePointType const type.
-func PossibleRestorePointTypeValues() []RestorePointType {
- return []RestorePointType{CONTINUOUS, DISCRETE}
-}
-
-// SampleName enumerates the values for sample name.
-type SampleName string
-
-const (
- // AdventureWorksLT ...
- AdventureWorksLT SampleName = "AdventureWorksLT"
- // WideWorldImportersFull ...
- WideWorldImportersFull SampleName = "WideWorldImportersFull"
- // WideWorldImportersStd ...
- WideWorldImportersStd SampleName = "WideWorldImportersStd"
-)
-
-// PossibleSampleNameValues returns an array of possible values for the SampleName const type.
-func PossibleSampleNameValues() []SampleName {
- return []SampleName{AdventureWorksLT, WideWorldImportersFull, WideWorldImportersStd}
-}
-
-// SecurityAlertPolicyEmailAccountAdmins enumerates the values for security alert policy email account admins.
-type SecurityAlertPolicyEmailAccountAdmins string
-
-const (
- // SecurityAlertPolicyEmailAccountAdminsDisabled ...
- SecurityAlertPolicyEmailAccountAdminsDisabled SecurityAlertPolicyEmailAccountAdmins = "Disabled"
- // SecurityAlertPolicyEmailAccountAdminsEnabled ...
- SecurityAlertPolicyEmailAccountAdminsEnabled SecurityAlertPolicyEmailAccountAdmins = "Enabled"
-)
-
-// PossibleSecurityAlertPolicyEmailAccountAdminsValues returns an array of possible values for the SecurityAlertPolicyEmailAccountAdmins const type.
-func PossibleSecurityAlertPolicyEmailAccountAdminsValues() []SecurityAlertPolicyEmailAccountAdmins {
- return []SecurityAlertPolicyEmailAccountAdmins{SecurityAlertPolicyEmailAccountAdminsDisabled, SecurityAlertPolicyEmailAccountAdminsEnabled}
-}
-
-// SecurityAlertPolicyState enumerates the values for security alert policy state.
-type SecurityAlertPolicyState string
-
-const (
- // SecurityAlertPolicyStateDisabled ...
- SecurityAlertPolicyStateDisabled SecurityAlertPolicyState = "Disabled"
- // SecurityAlertPolicyStateEnabled ...
- SecurityAlertPolicyStateEnabled SecurityAlertPolicyState = "Enabled"
- // SecurityAlertPolicyStateNew ...
- SecurityAlertPolicyStateNew SecurityAlertPolicyState = "New"
-)
-
-// PossibleSecurityAlertPolicyStateValues returns an array of possible values for the SecurityAlertPolicyState const type.
-func PossibleSecurityAlertPolicyStateValues() []SecurityAlertPolicyState {
- return []SecurityAlertPolicyState{SecurityAlertPolicyStateDisabled, SecurityAlertPolicyStateEnabled, SecurityAlertPolicyStateNew}
-}
-
-// SecurityAlertPolicyUseServerDefault enumerates the values for security alert policy use server default.
-type SecurityAlertPolicyUseServerDefault string
-
-const (
- // SecurityAlertPolicyUseServerDefaultDisabled ...
- SecurityAlertPolicyUseServerDefaultDisabled SecurityAlertPolicyUseServerDefault = "Disabled"
- // SecurityAlertPolicyUseServerDefaultEnabled ...
- SecurityAlertPolicyUseServerDefaultEnabled SecurityAlertPolicyUseServerDefault = "Enabled"
-)
-
-// PossibleSecurityAlertPolicyUseServerDefaultValues returns an array of possible values for the SecurityAlertPolicyUseServerDefault const type.
-func PossibleSecurityAlertPolicyUseServerDefaultValues() []SecurityAlertPolicyUseServerDefault {
- return []SecurityAlertPolicyUseServerDefault{SecurityAlertPolicyUseServerDefaultDisabled, SecurityAlertPolicyUseServerDefaultEnabled}
-}
-
-// SensitivityLabelSource enumerates the values for sensitivity label source.
-type SensitivityLabelSource string
-
-const (
- // Current ...
- Current SensitivityLabelSource = "current"
- // Recommended ...
- Recommended SensitivityLabelSource = "recommended"
-)
-
-// PossibleSensitivityLabelSourceValues returns an array of possible values for the SensitivityLabelSource const type.
-func PossibleSensitivityLabelSourceValues() []SensitivityLabelSource {
- return []SensitivityLabelSource{Current, Recommended}
-}
-
-// ServerConnectionType enumerates the values for server connection type.
-type ServerConnectionType string
-
-const (
- // ServerConnectionTypeDefault ...
- ServerConnectionTypeDefault ServerConnectionType = "Default"
- // ServerConnectionTypeProxy ...
- ServerConnectionTypeProxy ServerConnectionType = "Proxy"
- // ServerConnectionTypeRedirect ...
- ServerConnectionTypeRedirect ServerConnectionType = "Redirect"
-)
-
-// PossibleServerConnectionTypeValues returns an array of possible values for the ServerConnectionType const type.
-func PossibleServerConnectionTypeValues() []ServerConnectionType {
- return []ServerConnectionType{ServerConnectionTypeDefault, ServerConnectionTypeProxy, ServerConnectionTypeRedirect}
-}
-
-// ServerKeyType enumerates the values for server key type.
-type ServerKeyType string
-
-const (
- // AzureKeyVault ...
- AzureKeyVault ServerKeyType = "AzureKeyVault"
- // ServiceManaged ...
- ServiceManaged ServerKeyType = "ServiceManaged"
-)
-
-// PossibleServerKeyTypeValues returns an array of possible values for the ServerKeyType const type.
-func PossibleServerKeyTypeValues() []ServerKeyType {
- return []ServerKeyType{AzureKeyVault, ServiceManaged}
-}
-
-// ServiceObjectiveName enumerates the values for service objective name.
-type ServiceObjectiveName string
-
-const (
- // ServiceObjectiveNameBasic ...
- ServiceObjectiveNameBasic ServiceObjectiveName = "Basic"
- // ServiceObjectiveNameDS100 ...
- ServiceObjectiveNameDS100 ServiceObjectiveName = "DS100"
- // ServiceObjectiveNameDS1000 ...
- ServiceObjectiveNameDS1000 ServiceObjectiveName = "DS1000"
- // ServiceObjectiveNameDS1200 ...
- ServiceObjectiveNameDS1200 ServiceObjectiveName = "DS1200"
- // ServiceObjectiveNameDS1500 ...
- ServiceObjectiveNameDS1500 ServiceObjectiveName = "DS1500"
- // ServiceObjectiveNameDS200 ...
- ServiceObjectiveNameDS200 ServiceObjectiveName = "DS200"
- // ServiceObjectiveNameDS2000 ...
- ServiceObjectiveNameDS2000 ServiceObjectiveName = "DS2000"
- // ServiceObjectiveNameDS300 ...
- ServiceObjectiveNameDS300 ServiceObjectiveName = "DS300"
- // ServiceObjectiveNameDS400 ...
- ServiceObjectiveNameDS400 ServiceObjectiveName = "DS400"
- // ServiceObjectiveNameDS500 ...
- ServiceObjectiveNameDS500 ServiceObjectiveName = "DS500"
- // ServiceObjectiveNameDS600 ...
- ServiceObjectiveNameDS600 ServiceObjectiveName = "DS600"
- // ServiceObjectiveNameDW100 ...
- ServiceObjectiveNameDW100 ServiceObjectiveName = "DW100"
- // ServiceObjectiveNameDW1000 ...
- ServiceObjectiveNameDW1000 ServiceObjectiveName = "DW1000"
- // ServiceObjectiveNameDW10000c ...
- ServiceObjectiveNameDW10000c ServiceObjectiveName = "DW10000c"
- // ServiceObjectiveNameDW1000c ...
- ServiceObjectiveNameDW1000c ServiceObjectiveName = "DW1000c"
- // ServiceObjectiveNameDW1200 ...
- ServiceObjectiveNameDW1200 ServiceObjectiveName = "DW1200"
- // ServiceObjectiveNameDW1500 ...
- ServiceObjectiveNameDW1500 ServiceObjectiveName = "DW1500"
- // ServiceObjectiveNameDW15000c ...
- ServiceObjectiveNameDW15000c ServiceObjectiveName = "DW15000c"
- // ServiceObjectiveNameDW1500c ...
- ServiceObjectiveNameDW1500c ServiceObjectiveName = "DW1500c"
- // ServiceObjectiveNameDW200 ...
- ServiceObjectiveNameDW200 ServiceObjectiveName = "DW200"
- // ServiceObjectiveNameDW2000 ...
- ServiceObjectiveNameDW2000 ServiceObjectiveName = "DW2000"
- // ServiceObjectiveNameDW2000c ...
- ServiceObjectiveNameDW2000c ServiceObjectiveName = "DW2000c"
- // ServiceObjectiveNameDW2500c ...
- ServiceObjectiveNameDW2500c ServiceObjectiveName = "DW2500c"
- // ServiceObjectiveNameDW300 ...
- ServiceObjectiveNameDW300 ServiceObjectiveName = "DW300"
- // ServiceObjectiveNameDW3000 ...
- ServiceObjectiveNameDW3000 ServiceObjectiveName = "DW3000"
- // ServiceObjectiveNameDW30000c ...
- ServiceObjectiveNameDW30000c ServiceObjectiveName = "DW30000c"
- // ServiceObjectiveNameDW3000c ...
- ServiceObjectiveNameDW3000c ServiceObjectiveName = "DW3000c"
- // ServiceObjectiveNameDW400 ...
- ServiceObjectiveNameDW400 ServiceObjectiveName = "DW400"
- // ServiceObjectiveNameDW500 ...
- ServiceObjectiveNameDW500 ServiceObjectiveName = "DW500"
- // ServiceObjectiveNameDW5000c ...
- ServiceObjectiveNameDW5000c ServiceObjectiveName = "DW5000c"
- // ServiceObjectiveNameDW600 ...
- ServiceObjectiveNameDW600 ServiceObjectiveName = "DW600"
- // ServiceObjectiveNameDW6000 ...
- ServiceObjectiveNameDW6000 ServiceObjectiveName = "DW6000"
- // ServiceObjectiveNameDW6000c ...
- ServiceObjectiveNameDW6000c ServiceObjectiveName = "DW6000c"
- // ServiceObjectiveNameDW7500c ...
- ServiceObjectiveNameDW7500c ServiceObjectiveName = "DW7500c"
- // ServiceObjectiveNameElasticPool ...
- ServiceObjectiveNameElasticPool ServiceObjectiveName = "ElasticPool"
- // ServiceObjectiveNameFree ...
- ServiceObjectiveNameFree ServiceObjectiveName = "Free"
- // ServiceObjectiveNameP1 ...
- ServiceObjectiveNameP1 ServiceObjectiveName = "P1"
- // ServiceObjectiveNameP11 ...
- ServiceObjectiveNameP11 ServiceObjectiveName = "P11"
- // ServiceObjectiveNameP15 ...
- ServiceObjectiveNameP15 ServiceObjectiveName = "P15"
- // ServiceObjectiveNameP2 ...
- ServiceObjectiveNameP2 ServiceObjectiveName = "P2"
- // ServiceObjectiveNameP3 ...
- ServiceObjectiveNameP3 ServiceObjectiveName = "P3"
- // ServiceObjectiveNameP4 ...
- ServiceObjectiveNameP4 ServiceObjectiveName = "P4"
- // ServiceObjectiveNameP6 ...
- ServiceObjectiveNameP6 ServiceObjectiveName = "P6"
- // ServiceObjectiveNamePRS1 ...
- ServiceObjectiveNamePRS1 ServiceObjectiveName = "PRS1"
- // ServiceObjectiveNamePRS2 ...
- ServiceObjectiveNamePRS2 ServiceObjectiveName = "PRS2"
- // ServiceObjectiveNamePRS4 ...
- ServiceObjectiveNamePRS4 ServiceObjectiveName = "PRS4"
- // ServiceObjectiveNamePRS6 ...
- ServiceObjectiveNamePRS6 ServiceObjectiveName = "PRS6"
- // ServiceObjectiveNameS0 ...
- ServiceObjectiveNameS0 ServiceObjectiveName = "S0"
- // ServiceObjectiveNameS1 ...
- ServiceObjectiveNameS1 ServiceObjectiveName = "S1"
- // ServiceObjectiveNameS12 ...
- ServiceObjectiveNameS12 ServiceObjectiveName = "S12"
- // ServiceObjectiveNameS2 ...
- ServiceObjectiveNameS2 ServiceObjectiveName = "S2"
- // ServiceObjectiveNameS3 ...
- ServiceObjectiveNameS3 ServiceObjectiveName = "S3"
- // ServiceObjectiveNameS4 ...
- ServiceObjectiveNameS4 ServiceObjectiveName = "S4"
- // ServiceObjectiveNameS6 ...
- ServiceObjectiveNameS6 ServiceObjectiveName = "S6"
- // ServiceObjectiveNameS7 ...
- ServiceObjectiveNameS7 ServiceObjectiveName = "S7"
- // ServiceObjectiveNameS9 ...
- ServiceObjectiveNameS9 ServiceObjectiveName = "S9"
- // ServiceObjectiveNameSystem ...
- ServiceObjectiveNameSystem ServiceObjectiveName = "System"
- // ServiceObjectiveNameSystem0 ...
- ServiceObjectiveNameSystem0 ServiceObjectiveName = "System0"
- // ServiceObjectiveNameSystem1 ...
- ServiceObjectiveNameSystem1 ServiceObjectiveName = "System1"
- // ServiceObjectiveNameSystem2 ...
- ServiceObjectiveNameSystem2 ServiceObjectiveName = "System2"
- // ServiceObjectiveNameSystem2L ...
- ServiceObjectiveNameSystem2L ServiceObjectiveName = "System2L"
- // ServiceObjectiveNameSystem3 ...
- ServiceObjectiveNameSystem3 ServiceObjectiveName = "System3"
- // ServiceObjectiveNameSystem3L ...
- ServiceObjectiveNameSystem3L ServiceObjectiveName = "System3L"
- // ServiceObjectiveNameSystem4 ...
- ServiceObjectiveNameSystem4 ServiceObjectiveName = "System4"
- // ServiceObjectiveNameSystem4L ...
- ServiceObjectiveNameSystem4L ServiceObjectiveName = "System4L"
-)
-
-// PossibleServiceObjectiveNameValues returns an array of possible values for the ServiceObjectiveName const type.
-func PossibleServiceObjectiveNameValues() []ServiceObjectiveName {
- return []ServiceObjectiveName{ServiceObjectiveNameBasic, ServiceObjectiveNameDS100, ServiceObjectiveNameDS1000, ServiceObjectiveNameDS1200, ServiceObjectiveNameDS1500, ServiceObjectiveNameDS200, ServiceObjectiveNameDS2000, ServiceObjectiveNameDS300, ServiceObjectiveNameDS400, ServiceObjectiveNameDS500, ServiceObjectiveNameDS600, ServiceObjectiveNameDW100, ServiceObjectiveNameDW1000, ServiceObjectiveNameDW10000c, ServiceObjectiveNameDW1000c, ServiceObjectiveNameDW1200, ServiceObjectiveNameDW1500, ServiceObjectiveNameDW15000c, ServiceObjectiveNameDW1500c, ServiceObjectiveNameDW200, ServiceObjectiveNameDW2000, ServiceObjectiveNameDW2000c, ServiceObjectiveNameDW2500c, ServiceObjectiveNameDW300, ServiceObjectiveNameDW3000, ServiceObjectiveNameDW30000c, ServiceObjectiveNameDW3000c, ServiceObjectiveNameDW400, ServiceObjectiveNameDW500, ServiceObjectiveNameDW5000c, ServiceObjectiveNameDW600, ServiceObjectiveNameDW6000, ServiceObjectiveNameDW6000c, ServiceObjectiveNameDW7500c, ServiceObjectiveNameElasticPool, ServiceObjectiveNameFree, ServiceObjectiveNameP1, ServiceObjectiveNameP11, ServiceObjectiveNameP15, ServiceObjectiveNameP2, ServiceObjectiveNameP3, ServiceObjectiveNameP4, ServiceObjectiveNameP6, ServiceObjectiveNamePRS1, ServiceObjectiveNamePRS2, ServiceObjectiveNamePRS4, ServiceObjectiveNamePRS6, ServiceObjectiveNameS0, ServiceObjectiveNameS1, ServiceObjectiveNameS12, ServiceObjectiveNameS2, ServiceObjectiveNameS3, ServiceObjectiveNameS4, ServiceObjectiveNameS6, ServiceObjectiveNameS7, ServiceObjectiveNameS9, ServiceObjectiveNameSystem, ServiceObjectiveNameSystem0, ServiceObjectiveNameSystem1, ServiceObjectiveNameSystem2, ServiceObjectiveNameSystem2L, ServiceObjectiveNameSystem3, ServiceObjectiveNameSystem3L, ServiceObjectiveNameSystem4, ServiceObjectiveNameSystem4L}
-}
-
-// StorageKeyType enumerates the values for storage key type.
-type StorageKeyType string
-
-const (
- // SharedAccessKey ...
- SharedAccessKey StorageKeyType = "SharedAccessKey"
- // StorageAccessKey ...
- StorageAccessKey StorageKeyType = "StorageAccessKey"
-)
-
-// PossibleStorageKeyTypeValues returns an array of possible values for the StorageKeyType const type.
-func PossibleStorageKeyTypeValues() []StorageKeyType {
- return []StorageKeyType{SharedAccessKey, StorageAccessKey}
-}
-
-// SyncAgentState enumerates the values for sync agent state.
-type SyncAgentState string
-
-const (
- // SyncAgentStateNeverConnected ...
- SyncAgentStateNeverConnected SyncAgentState = "NeverConnected"
- // SyncAgentStateOffline ...
- SyncAgentStateOffline SyncAgentState = "Offline"
- // SyncAgentStateOnline ...
- SyncAgentStateOnline SyncAgentState = "Online"
-)
-
-// PossibleSyncAgentStateValues returns an array of possible values for the SyncAgentState const type.
-func PossibleSyncAgentStateValues() []SyncAgentState {
- return []SyncAgentState{SyncAgentStateNeverConnected, SyncAgentStateOffline, SyncAgentStateOnline}
-}
-
-// SyncConflictResolutionPolicy enumerates the values for sync conflict resolution policy.
-type SyncConflictResolutionPolicy string
-
-const (
- // HubWin ...
- HubWin SyncConflictResolutionPolicy = "HubWin"
- // MemberWin ...
- MemberWin SyncConflictResolutionPolicy = "MemberWin"
-)
-
-// PossibleSyncConflictResolutionPolicyValues returns an array of possible values for the SyncConflictResolutionPolicy const type.
-func PossibleSyncConflictResolutionPolicyValues() []SyncConflictResolutionPolicy {
- return []SyncConflictResolutionPolicy{HubWin, MemberWin}
-}
-
-// SyncDirection enumerates the values for sync direction.
-type SyncDirection string
-
-const (
- // Bidirectional ...
- Bidirectional SyncDirection = "Bidirectional"
- // OneWayHubToMember ...
- OneWayHubToMember SyncDirection = "OneWayHubToMember"
- // OneWayMemberToHub ...
- OneWayMemberToHub SyncDirection = "OneWayMemberToHub"
-)
-
-// PossibleSyncDirectionValues returns an array of possible values for the SyncDirection const type.
-func PossibleSyncDirectionValues() []SyncDirection {
- return []SyncDirection{Bidirectional, OneWayHubToMember, OneWayMemberToHub}
-}
-
-// SyncGroupLogType enumerates the values for sync group log type.
-type SyncGroupLogType string
-
-const (
- // SyncGroupLogTypeAll ...
- SyncGroupLogTypeAll SyncGroupLogType = "All"
- // SyncGroupLogTypeError ...
- SyncGroupLogTypeError SyncGroupLogType = "Error"
- // SyncGroupLogTypeSuccess ...
- SyncGroupLogTypeSuccess SyncGroupLogType = "Success"
- // SyncGroupLogTypeWarning ...
- SyncGroupLogTypeWarning SyncGroupLogType = "Warning"
-)
-
-// PossibleSyncGroupLogTypeValues returns an array of possible values for the SyncGroupLogType const type.
-func PossibleSyncGroupLogTypeValues() []SyncGroupLogType {
- return []SyncGroupLogType{SyncGroupLogTypeAll, SyncGroupLogTypeError, SyncGroupLogTypeSuccess, SyncGroupLogTypeWarning}
-}
-
-// SyncGroupState enumerates the values for sync group state.
-type SyncGroupState string
-
-const (
- // Error ...
- Error SyncGroupState = "Error"
- // Good ...
- Good SyncGroupState = "Good"
- // NotReady ...
- NotReady SyncGroupState = "NotReady"
- // Progressing ...
- Progressing SyncGroupState = "Progressing"
- // Warning ...
- Warning SyncGroupState = "Warning"
-)
-
-// PossibleSyncGroupStateValues returns an array of possible values for the SyncGroupState const type.
-func PossibleSyncGroupStateValues() []SyncGroupState {
- return []SyncGroupState{Error, Good, NotReady, Progressing, Warning}
-}
-
-// SyncMemberDbType enumerates the values for sync member db type.
-type SyncMemberDbType string
-
-const (
- // AzureSQLDatabase ...
- AzureSQLDatabase SyncMemberDbType = "AzureSqlDatabase"
- // SQLServerDatabase ...
- SQLServerDatabase SyncMemberDbType = "SqlServerDatabase"
-)
-
-// PossibleSyncMemberDbTypeValues returns an array of possible values for the SyncMemberDbType const type.
-func PossibleSyncMemberDbTypeValues() []SyncMemberDbType {
- return []SyncMemberDbType{AzureSQLDatabase, SQLServerDatabase}
-}
-
-// SyncMemberState enumerates the values for sync member state.
-type SyncMemberState string
-
-const (
- // DeProvisioned ...
- DeProvisioned SyncMemberState = "DeProvisioned"
- // DeProvisionFailed ...
- DeProvisionFailed SyncMemberState = "DeProvisionFailed"
- // DeProvisioning ...
- DeProvisioning SyncMemberState = "DeProvisioning"
- // DisabledBackupRestore ...
- DisabledBackupRestore SyncMemberState = "DisabledBackupRestore"
- // DisabledTombstoneCleanup ...
- DisabledTombstoneCleanup SyncMemberState = "DisabledTombstoneCleanup"
- // Provisioned ...
- Provisioned SyncMemberState = "Provisioned"
- // ProvisionFailed ...
- ProvisionFailed SyncMemberState = "ProvisionFailed"
- // Provisioning ...
- Provisioning SyncMemberState = "Provisioning"
- // ReprovisionFailed ...
- ReprovisionFailed SyncMemberState = "ReprovisionFailed"
- // Reprovisioning ...
- Reprovisioning SyncMemberState = "Reprovisioning"
- // SyncCancelled ...
- SyncCancelled SyncMemberState = "SyncCancelled"
- // SyncCancelling ...
- SyncCancelling SyncMemberState = "SyncCancelling"
- // SyncFailed ...
- SyncFailed SyncMemberState = "SyncFailed"
- // SyncInProgress ...
- SyncInProgress SyncMemberState = "SyncInProgress"
- // SyncSucceeded ...
- SyncSucceeded SyncMemberState = "SyncSucceeded"
- // SyncSucceededWithWarnings ...
- SyncSucceededWithWarnings SyncMemberState = "SyncSucceededWithWarnings"
- // UnProvisioned ...
- UnProvisioned SyncMemberState = "UnProvisioned"
- // UnReprovisioned ...
- UnReprovisioned SyncMemberState = "UnReprovisioned"
-)
-
-// PossibleSyncMemberStateValues returns an array of possible values for the SyncMemberState const type.
-func PossibleSyncMemberStateValues() []SyncMemberState {
- return []SyncMemberState{DeProvisioned, DeProvisionFailed, DeProvisioning, DisabledBackupRestore, DisabledTombstoneCleanup, Provisioned, ProvisionFailed, Provisioning, ReprovisionFailed, Reprovisioning, SyncCancelled, SyncCancelling, SyncFailed, SyncInProgress, SyncSucceeded, SyncSucceededWithWarnings, UnProvisioned, UnReprovisioned}
-}
-
-// TransparentDataEncryptionActivityStatus enumerates the values for transparent data encryption activity
-// status.
-type TransparentDataEncryptionActivityStatus string
-
-const (
- // Decrypting ...
- Decrypting TransparentDataEncryptionActivityStatus = "Decrypting"
- // Encrypting ...
- Encrypting TransparentDataEncryptionActivityStatus = "Encrypting"
-)
-
-// PossibleTransparentDataEncryptionActivityStatusValues returns an array of possible values for the TransparentDataEncryptionActivityStatus const type.
-func PossibleTransparentDataEncryptionActivityStatusValues() []TransparentDataEncryptionActivityStatus {
- return []TransparentDataEncryptionActivityStatus{Decrypting, Encrypting}
-}
-
-// TransparentDataEncryptionStatus enumerates the values for transparent data encryption status.
-type TransparentDataEncryptionStatus string
-
-const (
- // TransparentDataEncryptionStatusDisabled ...
- TransparentDataEncryptionStatusDisabled TransparentDataEncryptionStatus = "Disabled"
- // TransparentDataEncryptionStatusEnabled ...
- TransparentDataEncryptionStatusEnabled TransparentDataEncryptionStatus = "Enabled"
-)
-
-// PossibleTransparentDataEncryptionStatusValues returns an array of possible values for the TransparentDataEncryptionStatus const type.
-func PossibleTransparentDataEncryptionStatusValues() []TransparentDataEncryptionStatus {
- return []TransparentDataEncryptionStatus{TransparentDataEncryptionStatusDisabled, TransparentDataEncryptionStatusEnabled}
-}
-
-// UnitDefinitionType enumerates the values for unit definition type.
-type UnitDefinitionType string
-
-const (
- // UnitDefinitionTypeBytes ...
- UnitDefinitionTypeBytes UnitDefinitionType = "Bytes"
- // UnitDefinitionTypeBytesPerSecond ...
- UnitDefinitionTypeBytesPerSecond UnitDefinitionType = "BytesPerSecond"
- // UnitDefinitionTypeCount ...
- UnitDefinitionTypeCount UnitDefinitionType = "Count"
- // UnitDefinitionTypeCountPerSecond ...
- UnitDefinitionTypeCountPerSecond UnitDefinitionType = "CountPerSecond"
- // UnitDefinitionTypePercent ...
- UnitDefinitionTypePercent UnitDefinitionType = "Percent"
- // UnitDefinitionTypeSeconds ...
- UnitDefinitionTypeSeconds UnitDefinitionType = "Seconds"
-)
-
-// PossibleUnitDefinitionTypeValues returns an array of possible values for the UnitDefinitionType const type.
-func PossibleUnitDefinitionTypeValues() []UnitDefinitionType {
- return []UnitDefinitionType{UnitDefinitionTypeBytes, UnitDefinitionTypeBytesPerSecond, UnitDefinitionTypeCount, UnitDefinitionTypeCountPerSecond, UnitDefinitionTypePercent, UnitDefinitionTypeSeconds}
-}
-
-// UnitType enumerates the values for unit type.
-type UnitType string
-
-const (
- // UnitTypeBytes ...
- UnitTypeBytes UnitType = "bytes"
- // UnitTypeBytesPerSecond ...
- UnitTypeBytesPerSecond UnitType = "bytesPerSecond"
- // UnitTypeCount ...
- UnitTypeCount UnitType = "count"
- // UnitTypeCountPerSecond ...
- UnitTypeCountPerSecond UnitType = "countPerSecond"
- // UnitTypePercent ...
- UnitTypePercent UnitType = "percent"
- // UnitTypeSeconds ...
- UnitTypeSeconds UnitType = "seconds"
-)
-
-// PossibleUnitTypeValues returns an array of possible values for the UnitType const type.
-func PossibleUnitTypeValues() []UnitType {
- return []UnitType{UnitTypeBytes, UnitTypeBytesPerSecond, UnitTypeCount, UnitTypeCountPerSecond, UnitTypePercent, UnitTypeSeconds}
-}
-
-// VirtualNetworkRuleState enumerates the values for virtual network rule state.
-type VirtualNetworkRuleState string
-
-const (
- // VirtualNetworkRuleStateDeleting ...
- VirtualNetworkRuleStateDeleting VirtualNetworkRuleState = "Deleting"
- // VirtualNetworkRuleStateInitializing ...
- VirtualNetworkRuleStateInitializing VirtualNetworkRuleState = "Initializing"
- // VirtualNetworkRuleStateInProgress ...
- VirtualNetworkRuleStateInProgress VirtualNetworkRuleState = "InProgress"
- // VirtualNetworkRuleStateReady ...
- VirtualNetworkRuleStateReady VirtualNetworkRuleState = "Ready"
- // VirtualNetworkRuleStateUnknown ...
- VirtualNetworkRuleStateUnknown VirtualNetworkRuleState = "Unknown"
-)
-
-// PossibleVirtualNetworkRuleStateValues returns an array of possible values for the VirtualNetworkRuleState const type.
-func PossibleVirtualNetworkRuleStateValues() []VirtualNetworkRuleState {
- return []VirtualNetworkRuleState{VirtualNetworkRuleStateDeleting, VirtualNetworkRuleStateInitializing, VirtualNetworkRuleStateInProgress, VirtualNetworkRuleStateReady, VirtualNetworkRuleStateUnknown}
-}
-
-// VulnerabilityAssessmentPolicyBaselineName enumerates the values for vulnerability assessment policy baseline
-// name.
-type VulnerabilityAssessmentPolicyBaselineName string
-
-const (
- // VulnerabilityAssessmentPolicyBaselineNameDefault ...
- VulnerabilityAssessmentPolicyBaselineNameDefault VulnerabilityAssessmentPolicyBaselineName = "default"
- // VulnerabilityAssessmentPolicyBaselineNameMaster ...
- VulnerabilityAssessmentPolicyBaselineNameMaster VulnerabilityAssessmentPolicyBaselineName = "master"
-)
-
-// PossibleVulnerabilityAssessmentPolicyBaselineNameValues returns an array of possible values for the VulnerabilityAssessmentPolicyBaselineName const type.
-func PossibleVulnerabilityAssessmentPolicyBaselineNameValues() []VulnerabilityAssessmentPolicyBaselineName {
- return []VulnerabilityAssessmentPolicyBaselineName{VulnerabilityAssessmentPolicyBaselineNameDefault, VulnerabilityAssessmentPolicyBaselineNameMaster}
-}
-
-// VulnerabilityAssessmentScanState enumerates the values for vulnerability assessment scan state.
-type VulnerabilityAssessmentScanState string
-
-const (
- // VulnerabilityAssessmentScanStateFailed ...
- VulnerabilityAssessmentScanStateFailed VulnerabilityAssessmentScanState = "Failed"
- // VulnerabilityAssessmentScanStateFailedToRun ...
- VulnerabilityAssessmentScanStateFailedToRun VulnerabilityAssessmentScanState = "FailedToRun"
- // VulnerabilityAssessmentScanStateInProgress ...
- VulnerabilityAssessmentScanStateInProgress VulnerabilityAssessmentScanState = "InProgress"
- // VulnerabilityAssessmentScanStatePassed ...
- VulnerabilityAssessmentScanStatePassed VulnerabilityAssessmentScanState = "Passed"
-)
-
-// PossibleVulnerabilityAssessmentScanStateValues returns an array of possible values for the VulnerabilityAssessmentScanState const type.
-func PossibleVulnerabilityAssessmentScanStateValues() []VulnerabilityAssessmentScanState {
- return []VulnerabilityAssessmentScanState{VulnerabilityAssessmentScanStateFailed, VulnerabilityAssessmentScanStateFailedToRun, VulnerabilityAssessmentScanStateInProgress, VulnerabilityAssessmentScanStatePassed}
-}
-
-// VulnerabilityAssessmentScanTriggerType enumerates the values for vulnerability assessment scan trigger type.
-type VulnerabilityAssessmentScanTriggerType string
-
-const (
- // VulnerabilityAssessmentScanTriggerTypeOnDemand ...
- VulnerabilityAssessmentScanTriggerTypeOnDemand VulnerabilityAssessmentScanTriggerType = "OnDemand"
- // VulnerabilityAssessmentScanTriggerTypeRecurring ...
- VulnerabilityAssessmentScanTriggerTypeRecurring VulnerabilityAssessmentScanTriggerType = "Recurring"
-)
-
-// PossibleVulnerabilityAssessmentScanTriggerTypeValues returns an array of possible values for the VulnerabilityAssessmentScanTriggerType const type.
-func PossibleVulnerabilityAssessmentScanTriggerTypeValues() []VulnerabilityAssessmentScanTriggerType {
- return []VulnerabilityAssessmentScanTriggerType{VulnerabilityAssessmentScanTriggerTypeOnDemand, VulnerabilityAssessmentScanTriggerTypeRecurring}
-}
-
-// AutomaticTuningOptions automatic tuning properties for individual advisors.
-type AutomaticTuningOptions struct {
- // DesiredState - Automatic tuning option desired state. Possible values include: 'AutomaticTuningOptionModeDesiredOff', 'AutomaticTuningOptionModeDesiredOn', 'AutomaticTuningOptionModeDesiredDefault'
- DesiredState AutomaticTuningOptionModeDesired `json:"desiredState,omitempty"`
- // ActualState - READ-ONLY; Automatic tuning option actual state. Possible values include: 'Off', 'On'
- ActualState AutomaticTuningOptionModeActual `json:"actualState,omitempty"`
- // ReasonCode - READ-ONLY; Reason code if desired and actual state are different.
- ReasonCode *int32 `json:"reasonCode,omitempty"`
- // ReasonDesc - READ-ONLY; Reason description if desired and actual state are different. Possible values include: 'Default', 'Disabled', 'AutoConfigured', 'InheritedFromServer', 'QueryStoreOff', 'QueryStoreReadOnly', 'NotSupported'
- ReasonDesc AutomaticTuningDisabledReason `json:"reasonDesc,omitempty"`
-}
-
-// AutomaticTuningServerOptions automatic tuning properties for individual advisors.
-type AutomaticTuningServerOptions struct {
- // DesiredState - Automatic tuning option desired state. Possible values include: 'AutomaticTuningOptionModeDesiredOff', 'AutomaticTuningOptionModeDesiredOn', 'AutomaticTuningOptionModeDesiredDefault'
- DesiredState AutomaticTuningOptionModeDesired `json:"desiredState,omitempty"`
- // ActualState - READ-ONLY; Automatic tuning option actual state. Possible values include: 'Off', 'On'
- ActualState AutomaticTuningOptionModeActual `json:"actualState,omitempty"`
- // ReasonCode - READ-ONLY; Reason code if desired and actual state are different.
- ReasonCode *int32 `json:"reasonCode,omitempty"`
- // ReasonDesc - READ-ONLY; Reason description if desired and actual state are different. Possible values include: 'AutomaticTuningServerReasonDefault', 'AutomaticTuningServerReasonDisabled', 'AutomaticTuningServerReasonAutoConfigured'
- ReasonDesc AutomaticTuningServerReason `json:"reasonDesc,omitempty"`
-}
-
-// AutomaticTuningServerProperties server-level Automatic Tuning properties.
-type AutomaticTuningServerProperties struct {
- // DesiredState - Automatic tuning desired state. Possible values include: 'AutomaticTuningServerModeCustom', 'AutomaticTuningServerModeAuto', 'AutomaticTuningServerModeUnspecified'
- DesiredState AutomaticTuningServerMode `json:"desiredState,omitempty"`
- // ActualState - READ-ONLY; Automatic tuning actual state. Possible values include: 'AutomaticTuningServerModeCustom', 'AutomaticTuningServerModeAuto', 'AutomaticTuningServerModeUnspecified'
- ActualState AutomaticTuningServerMode `json:"actualState,omitempty"`
- // Options - Automatic tuning options definition.
- Options map[string]*AutomaticTuningServerOptions `json:"options"`
-}
-
-// MarshalJSON is the custom marshaler for AutomaticTuningServerProperties.
-func (atsp AutomaticTuningServerProperties) MarshalJSON() ([]byte, error) {
- objectMap := make(map[string]interface{})
- if atsp.DesiredState != "" {
- objectMap["desiredState"] = atsp.DesiredState
- }
- if atsp.Options != nil {
- objectMap["options"] = atsp.Options
- }
- return json.Marshal(objectMap)
-}
-
-// BackupLongTermRetentionPoliciesCreateOrUpdateFuture an abstraction for monitoring and retrieving the
-// results of a long-running operation.
-type BackupLongTermRetentionPoliciesCreateOrUpdateFuture struct {
- azure.Future
-}
-
-// Result returns the result of the asynchronous operation.
-// If the operation has not completed it will return an error.
-func (future *BackupLongTermRetentionPoliciesCreateOrUpdateFuture) Result(client BackupLongTermRetentionPoliciesClient) (bltrp BackupLongTermRetentionPolicy, err error) {
- var done bool
- done, err = future.DoneWithContext(context.Background(), client)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.BackupLongTermRetentionPoliciesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure")
- return
- }
- if !done {
- err = azure.NewAsyncOpIncompleteError("sql.BackupLongTermRetentionPoliciesCreateOrUpdateFuture")
- return
- }
- sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
- if bltrp.Response.Response, err = future.GetResult(sender); err == nil && bltrp.Response.Response.StatusCode != http.StatusNoContent {
- bltrp, err = client.CreateOrUpdateResponder(bltrp.Response.Response)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.BackupLongTermRetentionPoliciesCreateOrUpdateFuture", "Result", bltrp.Response.Response, "Failure responding to request")
- }
- }
- return
-}
-
-// BackupLongTermRetentionPolicy a long term retention policy.
-type BackupLongTermRetentionPolicy struct {
- autorest.Response `json:"-"`
- // LongTermRetentionPolicyProperties - Resource properties.
- *LongTermRetentionPolicyProperties `json:"properties,omitempty"`
- // ID - READ-ONLY; Resource ID.
- ID *string `json:"id,omitempty"`
- // Name - READ-ONLY; Resource name.
- Name *string `json:"name,omitempty"`
- // Type - READ-ONLY; Resource type.
- Type *string `json:"type,omitempty"`
-}
-
-// MarshalJSON is the custom marshaler for BackupLongTermRetentionPolicy.
-func (bltrp BackupLongTermRetentionPolicy) MarshalJSON() ([]byte, error) {
- objectMap := make(map[string]interface{})
- if bltrp.LongTermRetentionPolicyProperties != nil {
- objectMap["properties"] = bltrp.LongTermRetentionPolicyProperties
- }
- return json.Marshal(objectMap)
-}
-
-// UnmarshalJSON is the custom unmarshaler for BackupLongTermRetentionPolicy struct.
-func (bltrp *BackupLongTermRetentionPolicy) UnmarshalJSON(body []byte) error {
- var m map[string]*json.RawMessage
- err := json.Unmarshal(body, &m)
- if err != nil {
- return err
- }
- for k, v := range m {
- switch k {
- case "properties":
- if v != nil {
- var longTermRetentionPolicyProperties LongTermRetentionPolicyProperties
- err = json.Unmarshal(*v, &longTermRetentionPolicyProperties)
- if err != nil {
- return err
- }
- bltrp.LongTermRetentionPolicyProperties = &longTermRetentionPolicyProperties
- }
- case "id":
- if v != nil {
- var ID string
- err = json.Unmarshal(*v, &ID)
- if err != nil {
- return err
- }
- bltrp.ID = &ID
- }
- case "name":
- if v != nil {
- var name string
- err = json.Unmarshal(*v, &name)
- if err != nil {
- return err
- }
- bltrp.Name = &name
- }
- case "type":
- if v != nil {
- var typeVar string
- err = json.Unmarshal(*v, &typeVar)
- if err != nil {
- return err
- }
- bltrp.Type = &typeVar
- }
- }
- }
-
- return nil
-}
-
-// BackupShortTermRetentionPoliciesCreateOrUpdateFuture an abstraction for monitoring and retrieving the
-// results of a long-running operation.
-type BackupShortTermRetentionPoliciesCreateOrUpdateFuture struct {
- azure.Future
-}
-
-// Result returns the result of the asynchronous operation.
-// If the operation has not completed it will return an error.
-func (future *BackupShortTermRetentionPoliciesCreateOrUpdateFuture) Result(client BackupShortTermRetentionPoliciesClient) (bstrp BackupShortTermRetentionPolicy, err error) {
- var done bool
- done, err = future.DoneWithContext(context.Background(), client)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesCreateOrUpdateFuture", "Result", future.Response(), "Polling failure")
- return
- }
- if !done {
- err = azure.NewAsyncOpIncompleteError("sql.BackupShortTermRetentionPoliciesCreateOrUpdateFuture")
- return
- }
- sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
- if bstrp.Response.Response, err = future.GetResult(sender); err == nil && bstrp.Response.Response.StatusCode != http.StatusNoContent {
- bstrp, err = client.CreateOrUpdateResponder(bstrp.Response.Response)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesCreateOrUpdateFuture", "Result", bstrp.Response.Response, "Failure responding to request")
- }
- }
- return
-}
-
-// BackupShortTermRetentionPoliciesUpdateFuture an abstraction for monitoring and retrieving the results of
-// a long-running operation.
-type BackupShortTermRetentionPoliciesUpdateFuture struct {
- azure.Future
-}
-
-// Result returns the result of the asynchronous operation.
-// If the operation has not completed it will return an error.
-func (future *BackupShortTermRetentionPoliciesUpdateFuture) Result(client BackupShortTermRetentionPoliciesClient) (bstrp BackupShortTermRetentionPolicy, err error) {
- var done bool
- done, err = future.DoneWithContext(context.Background(), client)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesUpdateFuture", "Result", future.Response(), "Polling failure")
- return
- }
- if !done {
- err = azure.NewAsyncOpIncompleteError("sql.BackupShortTermRetentionPoliciesUpdateFuture")
- return
- }
- sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
- if bstrp.Response.Response, err = future.GetResult(sender); err == nil && bstrp.Response.Response.StatusCode != http.StatusNoContent {
- bstrp, err = client.UpdateResponder(bstrp.Response.Response)
- if err != nil {
- err = autorest.NewErrorWithError(err, "sql.BackupShortTermRetentionPoliciesUpdateFuture", "Result", bstrp.Response.Response, "Failure responding to request")
- }
- }
- return
-}
-
-// BackupShortTermRetentionPolicy a short term retention policy.
-type BackupShortTermRetentionPolicy struct {
- autorest.Response `json:"-"`
- // BackupShortTermRetentionPolicyProperties - Resource properties.
- *BackupShortTermRetentionPolicyProperties `json:"properties,omitempty"`
- // ID - READ-ONLY; Resource ID.
- ID *string `json:"id,omitempty"`
- // Name - READ-ONLY; Resource name.
- Name *string `json:"name,omitempty"`
- // Type - READ-ONLY; Resource type.
- Type *string `json:"type,omitempty"`
-}
-
-// MarshalJSON is the custom marshaler for BackupShortTermRetentionPolicy.
-func (bstrp BackupShortTermRetentionPolicy) MarshalJSON() ([]byte, error) {
- objectMap := make(map[string]interface{})
- if bstrp.BackupShortTermRetentionPolicyProperties != nil {
- objectMap["properties"] = bstrp.BackupShortTermRetentionPolicyProperties
- }
- return json.Marshal(objectMap)
-}
-
-// UnmarshalJSON is the custom unmarshaler for BackupShortTermRetentionPolicy struct.
-func (bstrp *BackupShortTermRetentionPolicy) UnmarshalJSON(body []byte) error {
- var m map[string]*json.RawMessage
- err := json.Unmarshal(body, &m)
- if err != nil {
- return err
- }
- for k, v := range m {
- switch k {
- case "properties":
- if v != nil {
- var backupShortTermRetentionPolicyProperties BackupShortTermRetentionPolicyProperties
- err = json.Unmarshal(*v, &backupShortTermRetentionPolicyProperties)
- if err != nil {
- return err
- }
- bstrp.BackupShortTermRetentionPolicyProperties = &backupShortTermRetentionPolicyProperties
- }
- case "id":
- if v != nil {
- var ID string
- err = json.Unmarshal(*v, &ID)
- if err != nil {
- return err
- }
- bstrp.ID = &ID
- }
- case "name":
- if v != nil {
- var name string
- err = json.Unmarshal(*v, &name)
- if err != nil {
- return err
- }
- bstrp.Name = &name
- }
- case "type":
- if v != nil {
- var typeVar string
- err = json.Unmarshal(*v, &typeVar)
- if err != nil {
- return err
- }
- bstrp.Type = &typeVar
- }
- }
- }
-
- return nil
-}
-
-// BackupShortTermRetentionPolicyListResult a list of short term retention policies.
-type BackupShortTermRetentionPolicyListResult struct {
- autorest.Response `json:"-"`
- // Value - READ-ONLY; Array of results.
- Value *[]BackupShortTermRetentionPolicy `json:"value,omitempty"`
- // NextLink - READ-ONLY; Link to retrieve next page of results.
- NextLink *string `json:"nextLink,omitempty"`
-}
-
-// BackupShortTermRetentionPolicyListResultIterator provides access to a complete listing of
-// BackupShortTermRetentionPolicy values.
-type BackupShortTermRetentionPolicyListResultIterator struct {
- i int
- page BackupShortTermRetentionPolicyListResultPage
-}
-
-// NextWithContext advances to the next value. If there was an error making
-// the request the iterator does not advance and the error is returned.
-func (iter *BackupShortTermRetentionPolicyListResultIterator) NextWithContext(ctx context.Context) (err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/BackupShortTermRetentionPolicyListResultIterator.NextWithContext")
- defer func() {
- sc := -1
- if iter.Response().Response.Response != nil {
- sc = iter.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- iter.i++
- if iter.i < len(iter.page.Values()) {
- return nil
- }
- err = iter.page.NextWithContext(ctx)
- if err != nil {
- iter.i--
- return err
- }
- iter.i = 0
- return nil
-}
-
-// Next advances to the next value. If there was an error making
-// the request the iterator does not advance and the error is returned.
-// Deprecated: Use NextWithContext() instead.
-func (iter *BackupShortTermRetentionPolicyListResultIterator) Next() error {
- return iter.NextWithContext(context.Background())
-}
-
-// NotDone returns true if the enumeration should be started or is not yet complete.
-func (iter BackupShortTermRetentionPolicyListResultIterator) NotDone() bool {
- return iter.page.NotDone() && iter.i < len(iter.page.Values())
-}
-
-// Response returns the raw server response from the last page request.
-func (iter BackupShortTermRetentionPolicyListResultIterator) Response() BackupShortTermRetentionPolicyListResult {
- return iter.page.Response()
-}
-
-// Value returns the current value or a zero-initialized value if the
-// iterator has advanced beyond the end of the collection.
-func (iter BackupShortTermRetentionPolicyListResultIterator) Value() BackupShortTermRetentionPolicy {
- if !iter.page.NotDone() {
- return BackupShortTermRetentionPolicy{}
- }
- return iter.page.Values()[iter.i]
-}
-
-// Creates a new instance of the BackupShortTermRetentionPolicyListResultIterator type.
-func NewBackupShortTermRetentionPolicyListResultIterator(page BackupShortTermRetentionPolicyListResultPage) BackupShortTermRetentionPolicyListResultIterator {
- return BackupShortTermRetentionPolicyListResultIterator{page: page}
-}
-
-// IsEmpty returns true if the ListResult contains no values.
-func (bstrplr BackupShortTermRetentionPolicyListResult) IsEmpty() bool {
- return bstrplr.Value == nil || len(*bstrplr.Value) == 0
-}
-
-// backupShortTermRetentionPolicyListResultPreparer prepares a request to retrieve the next set of results.
-// It returns nil if no more results exist.
-func (bstrplr BackupShortTermRetentionPolicyListResult) backupShortTermRetentionPolicyListResultPreparer(ctx context.Context) (*http.Request, error) {
- if bstrplr.NextLink == nil || len(to.String(bstrplr.NextLink)) < 1 {
- return nil, nil
- }
- return autorest.Prepare((&http.Request{}).WithContext(ctx),
- autorest.AsJSON(),
- autorest.AsGet(),
- autorest.WithBaseURL(to.String(bstrplr.NextLink)))
-}
-
-// BackupShortTermRetentionPolicyListResultPage contains a page of BackupShortTermRetentionPolicy values.
-type BackupShortTermRetentionPolicyListResultPage struct {
- fn func(context.Context, BackupShortTermRetentionPolicyListResult) (BackupShortTermRetentionPolicyListResult, error)
- bstrplr BackupShortTermRetentionPolicyListResult
-}
-
-// NextWithContext advances to the next page of values. If there was an error making
-// the request the page does not advance and the error is returned.
-func (page *BackupShortTermRetentionPolicyListResultPage) NextWithContext(ctx context.Context) (err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/BackupShortTermRetentionPolicyListResultPage.NextWithContext")
- defer func() {
- sc := -1
- if page.Response().Response.Response != nil {
- sc = page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- next, err := page.fn(ctx, page.bstrplr)
- if err != nil {
- return err
- }
- page.bstrplr = next
- return nil
-}
-
-// Next advances to the next page of values. If there was an error making
-// the request the page does not advance and the error is returned.
-// Deprecated: Use NextWithContext() instead.
-func (page *BackupShortTermRetentionPolicyListResultPage) Next() error {
- return page.NextWithContext(context.Background())
-}
-
-// NotDone returns true if the page enumeration should be started or is not yet complete.
-func (page BackupShortTermRetentionPolicyListResultPage) NotDone() bool {
- return !page.bstrplr.IsEmpty()
-}
-
-// Response returns the raw server response from the last page request.
-func (page BackupShortTermRetentionPolicyListResultPage) Response() BackupShortTermRetentionPolicyListResult {
- return page.bstrplr
-}
-
-// Values returns the slice of values for the current page or nil if there are no values.
-func (page BackupShortTermRetentionPolicyListResultPage) Values() []BackupShortTermRetentionPolicy {
- if page.bstrplr.IsEmpty() {
- return nil
- }
- return *page.bstrplr.Value
-}
-
-// Creates a new instance of the BackupShortTermRetentionPolicyListResultPage type.
-func NewBackupShortTermRetentionPolicyListResultPage(getNextPage func(context.Context, BackupShortTermRetentionPolicyListResult) (BackupShortTermRetentionPolicyListResult, error)) BackupShortTermRetentionPolicyListResultPage {
- return BackupShortTermRetentionPolicyListResultPage{fn: getNextPage}
-}
-
-// BackupShortTermRetentionPolicyProperties properties of a short term retention policy
-type BackupShortTermRetentionPolicyProperties struct {
- // RetentionDays - The backup retention period in days. This is how many days Point-in-Time Restore will be supported.
- RetentionDays *int32 `json:"retentionDays,omitempty"`
-}
-
-// CheckNameAvailabilityRequest a request to check whether the specified name for a resource is available.
-type CheckNameAvailabilityRequest struct {
- // Name - The name whose availability is to be checked.
- Name *string `json:"name,omitempty"`
- // Type - The type of resource that is used as the scope of the availability check.
- Type *string `json:"type,omitempty"`
-}
-
-// CheckNameAvailabilityResponse a response indicating whether the specified name for a resource is
-// available.
-type CheckNameAvailabilityResponse struct {
- autorest.Response `json:"-"`
- // Available - READ-ONLY; True if the name is available, otherwise false.
- Available *bool `json:"available,omitempty"`
- // Message - READ-ONLY; A message explaining why the name is unavailable. Will be null if the name is available.
- Message *string `json:"message,omitempty"`
- // Name - READ-ONLY; The name whose availability was checked.
- Name *string `json:"name,omitempty"`
- // Reason - READ-ONLY; The reason code explaining why the name is unavailable. Will be null if the name is available. Possible values include: 'Invalid', 'AlreadyExists'
- Reason CheckNameAvailabilityReason `json:"reason,omitempty"`
-}
-
-// CompleteDatabaseRestoreDefinition contains the information necessary to perform a complete database
-// restore operation.
-type CompleteDatabaseRestoreDefinition struct {
- // LastBackupName - The last backup name to apply
- LastBackupName *string `json:"lastBackupName,omitempty"`
-}
-
-// CreateDatabaseRestorePointDefinition contains the information necessary to perform a create database
-// restore point operation.
-type CreateDatabaseRestorePointDefinition struct {
- // RestorePointLabel - The restore point label to apply
- RestorePointLabel *string `json:"restorePointLabel,omitempty"`
-}
-
-// Database a database resource.
-type Database struct {
- autorest.Response `json:"-"`
- // Sku - The database SKU.
- //
- // The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands:
- //
- // ```azurecli
- // az sql db list-editions -l -o table
- // ````
- //
- // ```powershell
- // Get-AzSqlServerServiceObjective -Location
- // ````
- Sku *Sku `json:"sku,omitempty"`
- // Kind - READ-ONLY; Kind of database. This is metadata used for the Azure portal experience.
- Kind *string `json:"kind,omitempty"`
- // ManagedBy - READ-ONLY; Resource that manages the database.
- ManagedBy *string `json:"managedBy,omitempty"`
- // DatabaseProperties - Resource properties.
- *DatabaseProperties `json:"properties,omitempty"`
- // Location - Resource location.
- Location *string `json:"location,omitempty"`
- // Tags - Resource tags.
- Tags map[string]*string `json:"tags"`
- // ID - READ-ONLY; Resource ID.
- ID *string `json:"id,omitempty"`
- // Name - READ-ONLY; Resource name.
- Name *string `json:"name,omitempty"`
- // Type - READ-ONLY; Resource type.
- Type *string `json:"type,omitempty"`
-}
-
-// MarshalJSON is the custom marshaler for Database.
-func (d Database) MarshalJSON() ([]byte, error) {
- objectMap := make(map[string]interface{})
- if d.Sku != nil {
- objectMap["sku"] = d.Sku
- }
- if d.DatabaseProperties != nil {
- objectMap["properties"] = d.DatabaseProperties
- }
- if d.Location != nil {
- objectMap["location"] = d.Location
- }
- if d.Tags != nil {
- objectMap["tags"] = d.Tags
- }
- return json.Marshal(objectMap)
-}
-
-// UnmarshalJSON is the custom unmarshaler for Database struct.
-func (d *Database) UnmarshalJSON(body []byte) error {
- var m map[string]*json.RawMessage
- err := json.Unmarshal(body, &m)
- if err != nil {
- return err
- }
- for k, v := range m {
- switch k {
- case "sku":
- if v != nil {
- var sku Sku
- err = json.Unmarshal(*v, &sku)
- if err != nil {
- return err
- }
- d.Sku = &sku
- }
- case "kind":
- if v != nil {
- var kind string
- err = json.Unmarshal(*v, &kind)
- if err != nil {
- return err
- }
- d.Kind = &kind
- }
- case "managedBy":
- if v != nil {
- var managedBy string
- err = json.Unmarshal(*v, &managedBy)
- if err != nil {
- return err
- }
- d.ManagedBy = &managedBy
- }
- case "properties":
- if v != nil {
- var databaseProperties DatabaseProperties
- err = json.Unmarshal(*v, &databaseProperties)
- if err != nil {
- return err
- }
- d.DatabaseProperties = &databaseProperties
- }
- case "location":
- if v != nil {
- var location string
- err = json.Unmarshal(*v, &location)
- if err != nil {
- return err
- }
- d.Location = &location
- }
- case "tags":
- if v != nil {
- var tags map[string]*string
- err = json.Unmarshal(*v, &tags)
- if err != nil {
- return err
- }
- d.Tags = tags
- }
- case "id":
- if v != nil {
- var ID string
- err = json.Unmarshal(*v, &ID)
- if err != nil {
- return err
- }
- d.ID = &ID
- }
- case "name":
- if v != nil {
- var name string
- err = json.Unmarshal(*v, &name)
- if err != nil {
- return err
- }
- d.Name = &name
- }
- case "type":
- if v != nil {
- var typeVar string
- err = json.Unmarshal(*v, &typeVar)
- if err != nil {
- return err
- }
- d.Type = &typeVar
- }
- }
- }
-
- return nil
-}
-
-// DatabaseAutomaticTuning database-level Automatic Tuning.
-type DatabaseAutomaticTuning struct {
- autorest.Response `json:"-"`
- // DatabaseAutomaticTuningProperties - Resource properties.
- *DatabaseAutomaticTuningProperties `json:"properties,omitempty"`
- // ID - READ-ONLY; Resource ID.
- ID *string `json:"id,omitempty"`
- // Name - READ-ONLY; Resource name.
- Name *string `json:"name,omitempty"`
- // Type - READ-ONLY; Resource type.
- Type *string `json:"type,omitempty"`
-}
-
-// MarshalJSON is the custom marshaler for DatabaseAutomaticTuning.
-func (dat DatabaseAutomaticTuning) MarshalJSON() ([]byte, error) {
- objectMap := make(map[string]interface{})
- if dat.DatabaseAutomaticTuningProperties != nil {
- objectMap["properties"] = dat.DatabaseAutomaticTuningProperties
- }
- return json.Marshal(objectMap)
-}
-
-// UnmarshalJSON is the custom unmarshaler for DatabaseAutomaticTuning struct.
-func (dat *DatabaseAutomaticTuning) UnmarshalJSON(body []byte) error {
- var m map[string]*json.RawMessage
- err := json.Unmarshal(body, &m)
- if err != nil {
- return err
- }
- for k, v := range m {
- switch k {
- case "properties":
- if v != nil {
- var databaseAutomaticTuningProperties DatabaseAutomaticTuningProperties
- err = json.Unmarshal(*v, &databaseAutomaticTuningProperties)
- if err != nil {
- return err
- }
- dat.DatabaseAutomaticTuningProperties = &databaseAutomaticTuningProperties
- }
- case "id":
- if v != nil {
- var ID string
- err = json.Unmarshal(*v, &ID)
- if err != nil {
- return err
- }
- dat.ID = &ID
- }
- case "name":
- if v != nil {
- var name string
- err = json.Unmarshal(*v, &name)
- if err != nil {
- return err
- }
- dat.Name = &name
- }
- case "type":
- if v != nil {
- var typeVar string
- err = json.Unmarshal(*v, &typeVar)
- if err != nil {
- return err
- }
- dat.Type = &typeVar
- }
- }
- }
-
- return nil
-}
-
-// DatabaseAutomaticTuningProperties database-level Automatic Tuning properties.
-type DatabaseAutomaticTuningProperties struct {
- // DesiredState - Automatic tuning desired state. Possible values include: 'Inherit', 'Custom', 'Auto', 'Unspecified'
- DesiredState AutomaticTuningMode `json:"desiredState,omitempty"`
- // ActualState - READ-ONLY; Automatic tuning actual state. Possible values include: 'Inherit', 'Custom', 'Auto', 'Unspecified'
- ActualState AutomaticTuningMode `json:"actualState,omitempty"`
- // Options - Automatic tuning options definition.
- Options map[string]*AutomaticTuningOptions `json:"options"`
-}
-
-// MarshalJSON is the custom marshaler for DatabaseAutomaticTuningProperties.
-func (datp DatabaseAutomaticTuningProperties) MarshalJSON() ([]byte, error) {
- objectMap := make(map[string]interface{})
- if datp.DesiredState != "" {
- objectMap["desiredState"] = datp.DesiredState
- }
- if datp.Options != nil {
- objectMap["options"] = datp.Options
- }
- return json.Marshal(objectMap)
-}
-
-// DatabaseBlobAuditingPolicy a database blob auditing policy.
-type DatabaseBlobAuditingPolicy struct {
- autorest.Response `json:"-"`
- // Kind - READ-ONLY; Resource kind.
- Kind *string `json:"kind,omitempty"`
- // DatabaseBlobAuditingPolicyProperties - Resource properties.
- *DatabaseBlobAuditingPolicyProperties `json:"properties,omitempty"`
- // ID - READ-ONLY; Resource ID.
- ID *string `json:"id,omitempty"`
- // Name - READ-ONLY; Resource name.
- Name *string `json:"name,omitempty"`
- // Type - READ-ONLY; Resource type.
- Type *string `json:"type,omitempty"`
-}
-
-// MarshalJSON is the custom marshaler for DatabaseBlobAuditingPolicy.
-func (dbap DatabaseBlobAuditingPolicy) MarshalJSON() ([]byte, error) {
- objectMap := make(map[string]interface{})
- if dbap.DatabaseBlobAuditingPolicyProperties != nil {
- objectMap["properties"] = dbap.DatabaseBlobAuditingPolicyProperties
- }
- return json.Marshal(objectMap)
-}
-
-// UnmarshalJSON is the custom unmarshaler for DatabaseBlobAuditingPolicy struct.
-func (dbap *DatabaseBlobAuditingPolicy) UnmarshalJSON(body []byte) error {
- var m map[string]*json.RawMessage
- err := json.Unmarshal(body, &m)
- if err != nil {
- return err
- }
- for k, v := range m {
- switch k {
- case "kind":
- if v != nil {
- var kind string
- err = json.Unmarshal(*v, &kind)
- if err != nil {
- return err
- }
- dbap.Kind = &kind
- }
- case "properties":
- if v != nil {
- var databaseBlobAuditingPolicyProperties DatabaseBlobAuditingPolicyProperties
- err = json.Unmarshal(*v, &databaseBlobAuditingPolicyProperties)
- if err != nil {
- return err
- }
- dbap.DatabaseBlobAuditingPolicyProperties = &databaseBlobAuditingPolicyProperties
- }
- case "id":
- if v != nil {
- var ID string
- err = json.Unmarshal(*v, &ID)
- if err != nil {
- return err
- }
- dbap.ID = &ID
- }
- case "name":
- if v != nil {
- var name string
- err = json.Unmarshal(*v, &name)
- if err != nil {
- return err
- }
- dbap.Name = &name
- }
- case "type":
- if v != nil {
- var typeVar string
- err = json.Unmarshal(*v, &typeVar)
- if err != nil {
- return err
- }
- dbap.Type = &typeVar
- }
- }
- }
-
- return nil
-}
-
-// DatabaseBlobAuditingPolicyListResult a list of database auditing settings.
-type DatabaseBlobAuditingPolicyListResult struct {
- autorest.Response `json:"-"`
- // Value - READ-ONLY; Array of results.
- Value *[]DatabaseBlobAuditingPolicy `json:"value,omitempty"`
- // NextLink - READ-ONLY; Link to retrieve next page of results.
- NextLink *string `json:"nextLink,omitempty"`
-}
-
-// DatabaseBlobAuditingPolicyListResultIterator provides access to a complete listing of
-// DatabaseBlobAuditingPolicy values.
-type DatabaseBlobAuditingPolicyListResultIterator struct {
- i int
- page DatabaseBlobAuditingPolicyListResultPage
-}
-
-// NextWithContext advances to the next value. If there was an error making
-// the request the iterator does not advance and the error is returned.
-func (iter *DatabaseBlobAuditingPolicyListResultIterator) NextWithContext(ctx context.Context) (err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseBlobAuditingPolicyListResultIterator.NextWithContext")
- defer func() {
- sc := -1
- if iter.Response().Response.Response != nil {
- sc = iter.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- iter.i++
- if iter.i < len(iter.page.Values()) {
- return nil
- }
- err = iter.page.NextWithContext(ctx)
- if err != nil {
- iter.i--
- return err
- }
- iter.i = 0
- return nil
-}
-
-// Next advances to the next value. If there was an error making
-// the request the iterator does not advance and the error is returned.
-// Deprecated: Use NextWithContext() instead.
-func (iter *DatabaseBlobAuditingPolicyListResultIterator) Next() error {
- return iter.NextWithContext(context.Background())
-}
-
-// NotDone returns true if the enumeration should be started or is not yet complete.
-func (iter DatabaseBlobAuditingPolicyListResultIterator) NotDone() bool {
- return iter.page.NotDone() && iter.i < len(iter.page.Values())
-}
-
-// Response returns the raw server response from the last page request.
-func (iter DatabaseBlobAuditingPolicyListResultIterator) Response() DatabaseBlobAuditingPolicyListResult {
- return iter.page.Response()
-}
-
-// Value returns the current value or a zero-initialized value if the
-// iterator has advanced beyond the end of the collection.
-func (iter DatabaseBlobAuditingPolicyListResultIterator) Value() DatabaseBlobAuditingPolicy {
- if !iter.page.NotDone() {
- return DatabaseBlobAuditingPolicy{}
- }
- return iter.page.Values()[iter.i]
-}
-
-// Creates a new instance of the DatabaseBlobAuditingPolicyListResultIterator type.
-func NewDatabaseBlobAuditingPolicyListResultIterator(page DatabaseBlobAuditingPolicyListResultPage) DatabaseBlobAuditingPolicyListResultIterator {
- return DatabaseBlobAuditingPolicyListResultIterator{page: page}
-}
-
-// IsEmpty returns true if the ListResult contains no values.
-func (dbaplr DatabaseBlobAuditingPolicyListResult) IsEmpty() bool {
- return dbaplr.Value == nil || len(*dbaplr.Value) == 0
-}
-
-// databaseBlobAuditingPolicyListResultPreparer prepares a request to retrieve the next set of results.
-// It returns nil if no more results exist.
-func (dbaplr DatabaseBlobAuditingPolicyListResult) databaseBlobAuditingPolicyListResultPreparer(ctx context.Context) (*http.Request, error) {
- if dbaplr.NextLink == nil || len(to.String(dbaplr.NextLink)) < 1 {
- return nil, nil
- }
- return autorest.Prepare((&http.Request{}).WithContext(ctx),
- autorest.AsJSON(),
- autorest.AsGet(),
- autorest.WithBaseURL(to.String(dbaplr.NextLink)))
-}
-
-// DatabaseBlobAuditingPolicyListResultPage contains a page of DatabaseBlobAuditingPolicy values.
-type DatabaseBlobAuditingPolicyListResultPage struct {
- fn func(context.Context, DatabaseBlobAuditingPolicyListResult) (DatabaseBlobAuditingPolicyListResult, error)
- dbaplr DatabaseBlobAuditingPolicyListResult
-}
-
-// NextWithContext advances to the next page of values. If there was an error making
-// the request the page does not advance and the error is returned.
-func (page *DatabaseBlobAuditingPolicyListResultPage) NextWithContext(ctx context.Context) (err error) {
- if tracing.IsEnabled() {
- ctx = tracing.StartSpan(ctx, fqdn+"/DatabaseBlobAuditingPolicyListResultPage.NextWithContext")
- defer func() {
- sc := -1
- if page.Response().Response.Response != nil {
- sc = page.Response().Response.Response.StatusCode
- }
- tracing.EndSpan(ctx, sc, err)
- }()
- }
- next, err := page.fn(ctx, page.dbaplr)
- if err != nil {
- return err
- }
- page.dbaplr = next
- return nil
-}
-
-// Next advances to the next page of values. If there was an error making
-// the request the page does not advance and the error is returned.
-// Deprecated: Use NextWithContext() instead.
-func (page *DatabaseBlobAuditingPolicyListResultPage) Next() error {
- return page.NextWithContext(context.Background())
-}
-
-// NotDone returns true if the page enumeration should be started or is not yet complete.
-func (page DatabaseBlobAuditingPolicyListResultPage) NotDone() bool {
- return !page.dbaplr.IsEmpty()
-}
-
-// Response returns the raw server response from the last page request.
-func (page DatabaseBlobAuditingPolicyListResultPage) Response() DatabaseBlobAuditingPolicyListResult {
- return page.dbaplr
-}
-
-// Values returns the slice of values for the current page or nil if there are no values.
-func (page DatabaseBlobAuditingPolicyListResultPage) Values() []DatabaseBlobAuditingPolicy {
- if page.dbaplr.IsEmpty() {
- return nil
- }
- return *page.dbaplr.Value
-}
-
-// Creates a new instance of the DatabaseBlobAuditingPolicyListResultPage type.
-func NewDatabaseBlobAuditingPolicyListResultPage(getNextPage func(context.Context, DatabaseBlobAuditingPolicyListResult) (DatabaseBlobAuditingPolicyListResult, error)) DatabaseBlobAuditingPolicyListResultPage {
- return DatabaseBlobAuditingPolicyListResultPage{fn: getNextPage}
-}
-
-// DatabaseBlobAuditingPolicyProperties properties of a database blob auditing policy.
-type DatabaseBlobAuditingPolicyProperties struct {
- // State - Specifies the state of the policy. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. Possible values include: 'BlobAuditingPolicyStateEnabled', 'BlobAuditingPolicyStateDisabled'
- State BlobAuditingPolicyState `json:"state,omitempty"`
- // StorageEndpoint - Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required.
- StorageEndpoint *string `json:"storageEndpoint,omitempty"`
- // StorageAccountAccessKey - Specifies the identifier key of the auditing storage account. If state is Enabled and storageEndpoint is specified, storageAccountAccessKey is required.
- StorageAccountAccessKey *string `json:"storageAccountAccessKey,omitempty"`
- // RetentionDays - Specifies the number of days to keep in the audit logs in the storage account.
- RetentionDays *int32 `json:"retentionDays,omitempty"`
- // AuditActionsAndGroups - Specifies the Actions-Groups and Actions to audit.
- //
- // The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins:
- //
- // BATCH_COMPLETED_GROUP,
- // SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP,
- // FAILED_DATABASE_AUTHENTICATION_GROUP.
- //
- // This above combination is also the set that is configured by default when enabling auditing from the Azure portal.
- //
- // The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records):
- //
- // APPLICATION_ROLE_CHANGE_PASSWORD_GROUP
- // BACKUP_RESTORE_GROUP
- // DATABASE_LOGOUT_GROUP
- // DATABASE_OBJECT_CHANGE_GROUP
- // DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP
- // DATABASE_OBJECT_PERMISSION_CHANGE_GROUP
- // DATABASE_OPERATION_GROUP
- // DATABASE_PERMISSION_CHANGE_GROUP
- // DATABASE_PRINCIPAL_CHANGE_GROUP
- // DATABASE_PRINCIPAL_IMPERSONATION_GROUP
- // DATABASE_ROLE_MEMBER_CHANGE_GROUP
- // FAILED_DATABASE_AUTHENTICATION_GROUP
- // SCHEMA_OBJECT_ACCESS_GROUP
- // SCHEMA_OBJECT_CHANGE_GROUP
- // SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP
- // SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP
- // SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP
- // USER_CHANGE_PASSWORD_GROUP
- // BATCH_STARTED_GROUP
- // BATCH_COMPLETED_GROUP
- //
- // These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs.
- //
- // For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups).
- //
- // For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are:
- // SELECT
- // UPDATE
- // INSERT
- // DELETE
- // EXECUTE
- // RECEIVE
- // REFERENCES
- //
- // The general form for defining an action to be audited is:
- // {action} ON {object} BY {principal}
- //
- // Note that