diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000000..e2ec152676c1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,40 @@ +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 + +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 + +cache: + directories: + - $GOPATH/pkg/dep diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5ce8e1746eea..d254313e0985 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,79 +1,58 @@ -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)' - Win_Go112: - vm.image: 'windows-2019' - go.version: '1.12' - GOROOT: 'c:\go$(go.version)' - Win_Go113: - vm.image: 'windows-2019' - go.version: '1.13' - GOROOT: 'c:\go$(go.version)' +pool: + vmImage: 'Ubuntu 16.04' - pool: - vmImage: $(vm.image) +variables: + GOROOT: '/usr/local/go1.12' + GOPATH: '$(system.defaultWorkingDirectory)/work' + sdkPath: '$(GOPATH)/src/github.com/$(build.repository.name)' + IGNORE_BREAKING_CHANGES: true - 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' - go version - 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() +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() diff --git a/profiles/latest/compute/mgmt/compute/models.go b/profiles/latest/compute/mgmt/compute/models.go index f9346b5c8435..c0d6c7644bad 100644 --- a/profiles/latest/compute/mgmt/compute/models.go +++ b/profiles/latest/compute/mgmt/compute/models.go @@ -654,7 +654,6 @@ 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 diff --git a/profiles/latest/datafactory/mgmt/datafactory/models.go b/profiles/latest/datafactory/mgmt/datafactory/models.go index 7d563468dc89..72a1b696a856 100644 --- a/profiles/latest/datafactory/mgmt/datafactory/models.go +++ b/profiles/latest/datafactory/mgmt/datafactory/models.go @@ -155,9 +155,8 @@ const ( type DynamicsAuthenticationType = original.DynamicsAuthenticationType const ( - AADServicePrincipal DynamicsAuthenticationType = original.AADServicePrincipal - Ifd DynamicsAuthenticationType = original.Ifd - Office365 DynamicsAuthenticationType = original.Office365 + Ifd DynamicsAuthenticationType = original.Ifd + Office365 DynamicsAuthenticationType = original.Office365 ) type DynamicsDeploymentType = original.DynamicsDeploymentType @@ -394,14 +393,6 @@ 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 ( @@ -2319,9 +2310,6 @@ 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/policyinsights/mgmt/policyinsights/models.go b/profiles/latest/policyinsights/mgmt/policyinsights/models.go index 792fa9b13ca8..86baa6dc324f 100644 --- a/profiles/latest/policyinsights/mgmt/policyinsights/models.go +++ b/profiles/latest/policyinsights/mgmt/policyinsights/models.go @@ -19,11 +19,7 @@ package policyinsights -import ( - "context" - - original "github.com/Azure/azure-sdk-for-go/services/policyinsights/mgmt/2019-10-01/policyinsights" -) +import original "github.com/Azure/azure-sdk-for-go/services/policyinsights/mgmt/2018-04-04/policyinsights" const ( DefaultBaseURI = original.DefaultBaseURI @@ -37,51 +33,24 @@ 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() @@ -104,36 +73,6 @@ 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 3f4601162208..68f64baaefe8 100644 --- a/profiles/latest/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go +++ b/profiles/latest/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go @@ -19,10 +19,8 @@ package policyinsightsapi -import original "github.com/Azure/azure-sdk-for-go/services/policyinsights/mgmt/2019-10-01/policyinsights/policyinsightsapi" +import original "github.com/Azure/azure-sdk-for-go/services/policyinsights/mgmt/2018-04-04/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/compute/mgmt/compute/models.go b/profiles/preview/compute/mgmt/compute/models.go index 6c12dc6fa772..0eb12de56c1f 100644 --- a/profiles/preview/compute/mgmt/compute/models.go +++ b/profiles/preview/compute/mgmt/compute/models.go @@ -654,7 +654,6 @@ 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 diff --git a/profiles/preview/datafactory/mgmt/datafactory/models.go b/profiles/preview/datafactory/mgmt/datafactory/models.go index 49ed031c0d23..98bdbbbd1c7e 100644 --- a/profiles/preview/datafactory/mgmt/datafactory/models.go +++ b/profiles/preview/datafactory/mgmt/datafactory/models.go @@ -155,9 +155,8 @@ const ( type DynamicsAuthenticationType = original.DynamicsAuthenticationType const ( - AADServicePrincipal DynamicsAuthenticationType = original.AADServicePrincipal - Ifd DynamicsAuthenticationType = original.Ifd - Office365 DynamicsAuthenticationType = original.Office365 + Ifd DynamicsAuthenticationType = original.Ifd + Office365 DynamicsAuthenticationType = original.Office365 ) type DynamicsDeploymentType = original.DynamicsDeploymentType @@ -394,14 +393,6 @@ 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 ( @@ -2319,9 +2310,6 @@ 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/policyinsights/mgmt/policyinsights/models.go b/profiles/preview/policyinsights/mgmt/policyinsights/models.go index b615e657622b..d6643c95eceb 100644 --- a/profiles/preview/policyinsights/mgmt/policyinsights/models.go +++ b/profiles/preview/policyinsights/mgmt/policyinsights/models.go @@ -19,11 +19,7 @@ package policyinsights -import ( - "context" - - original "github.com/Azure/azure-sdk-for-go/services/policyinsights/mgmt/2019-10-01/policyinsights" -) +import original "github.com/Azure/azure-sdk-for-go/services/policyinsights/mgmt/2018-04-04/policyinsights" const ( DefaultBaseURI = original.DefaultBaseURI @@ -37,51 +33,24 @@ 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() @@ -104,36 +73,6 @@ 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 3f4601162208..68f64baaefe8 100644 --- a/profiles/preview/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go +++ b/profiles/preview/policyinsights/mgmt/policyinsights/policyinsightsapi/models.go @@ -19,10 +19,8 @@ package policyinsightsapi -import original "github.com/Azure/azure-sdk-for-go/services/policyinsights/mgmt/2019-10-01/policyinsights/policyinsightsapi" +import original "github.com/Azure/azure-sdk-for-go/services/policyinsights/mgmt/2018-04-04/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/services/compute/mgmt/2018-10-01/compute/models.go b/services/compute/mgmt/2018-10-01/compute/models.go index 8e8a1ec5ffe2..692b39e2f8c5 100644 --- a/services/compute/mgmt/2018-10-01/compute/models.go +++ b/services/compute/mgmt/2018-10-01/compute/models.go @@ -1244,17 +1244,6 @@ 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 @@ -8720,8 +8709,6 @@ 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. @@ -9541,8 +9528,6 @@ 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. diff --git a/services/compute/mgmt/2019-03-01/compute/models.go b/services/compute/mgmt/2019-03-01/compute/models.go index f7461a488238..2ef8ef735279 100644 --- a/services/compute/mgmt/2019-03-01/compute/models.go +++ b/services/compute/mgmt/2019-03-01/compute/models.go @@ -1395,17 +1395,6 @@ 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 @@ -10398,8 +10387,6 @@ 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. @@ -11225,8 +11212,6 @@ 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. diff --git a/services/compute/mgmt/2019-07-01/compute/models.go b/services/compute/mgmt/2019-07-01/compute/models.go index d9f11ecfb2b5..d41f93c6e79b 100644 --- a/services/compute/mgmt/2019-07-01/compute/models.go +++ b/services/compute/mgmt/2019-07-01/compute/models.go @@ -1395,17 +1395,6 @@ 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 @@ -10407,8 +10396,6 @@ 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. @@ -11234,8 +11221,6 @@ 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. diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/models.go b/services/datafactory/mgmt/2018-06-01/datafactory/models.go index ea7977a65b9f..83c721ad77b0 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/models.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/models.go @@ -295,8 +295,6 @@ func PossibleDependencyConditionValues() []DependencyCondition { type DynamicsAuthenticationType string const ( - // AADServicePrincipal ... - AADServicePrincipal DynamicsAuthenticationType = "AADServicePrincipal" // Ifd ... Ifd DynamicsAuthenticationType = "Ifd" // Office365 ... @@ -305,7 +303,7 @@ const ( // PossibleDynamicsAuthenticationTypeValues returns an array of possible values for the DynamicsAuthenticationType const type. func PossibleDynamicsAuthenticationTypeValues() []DynamicsAuthenticationType { - return []DynamicsAuthenticationType{AADServicePrincipal, Ifd, Office365} + return []DynamicsAuthenticationType{Ifd, Office365} } // DynamicsDeploymentType enumerates the values for dynamics deployment type. @@ -808,23 +806,6 @@ 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 @@ -50076,18 +50057,12 @@ 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. 'AADServicePrincipal' for Server-To-Server authentication in online scenario. Type: string (or Expression with resultType string). Possible values include: 'Office365', 'Ifd', 'AADServicePrincipal' + // 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 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"` } @@ -50172,32 +50147,6 @@ 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{} @@ -78621,18 +78570,12 @@ 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, 'AADServicePrincipal' for Server-To-Server authentication in online scenario. Type: string (or Expression with resultType string). Possible values include: 'Office365', 'Ifd', 'AADServicePrincipal' + // 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 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"` } @@ -78717,32 +78660,6 @@ 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{} @@ -80909,18 +80826,12 @@ 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, 'AADServicePrincipal' for Server-To-Server authentication in online 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. 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"` } @@ -81005,32 +80916,6 @@ 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{} @@ -149933,8 +149818,6 @@ 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.