From 8d862dcb95f1f7cace3c1edda0babaf23137c716 Mon Sep 17 00:00:00 2001 From: stack72 Date: Thu, 6 Oct 2016 22:03:28 +0100 Subject: [PATCH] provider/azurerm: Bump SDK version to 5.0.0-beta --- .../azure-sdk-for-go/arm/cdn/customdomains.go | 6 +- .../azure-sdk-for-go/arm/cdn/endpoints.go | 20 +- .../arm/cdn/nameavailability.go | 6 +- .../Azure/azure-sdk-for-go/arm/cdn/origins.go | 6 +- .../azure-sdk-for-go/arm/cdn/profiles.go | 6 +- .../Azure/azure-sdk-for-go/arm/cdn/version.go | 2 +- .../arm/compute/usageoperations.go | 4 +- .../azure-sdk-for-go/arm/compute/version.go | 2 +- .../arm/compute/virtualmachineextensions.go | 6 +- .../arm/compute/virtualmachines.go | 42 +- .../arm/compute/virtualmachinescalesets.go | 22 +- .../arm/compute/virtualmachinesizes.go | 4 +- .../arm/network/applicationgateways.go | 6 +- .../azure-sdk-for-go/arm/network/client.go | 4 +- .../arm/network/interfaces.go | 12 +- .../azure-sdk-for-go/arm/network/models.go | 19 +- .../arm/network/publicipaddresses.go | 32 +- .../arm/network/routetables.go | 6 +- .../arm/network/securitygroups.go | 8 +- .../arm/network/securityrules.go | 8 +- .../azure-sdk-for-go/arm/network/subnets.go | 20 +- .../azure-sdk-for-go/arm/network/usages.go | 4 +- .../azure-sdk-for-go/arm/network/version.go | 4 +- .../arm/resources/resources/client.go | 485 ------------------ .../resources/deploymentoperations.go | 16 +- .../arm/resources/resources/deployments.go | 88 ++-- .../arm/resources/resources/groups.go | 70 +-- .../arm/resources/resources/resources.go | 48 +- .../arm/resources/resources/version.go | 2 +- .../arm/scheduler/jobcollections.go | 12 +- .../azure-sdk-for-go/arm/scheduler/jobs.go | 48 +- .../azure-sdk-for-go/arm/scheduler/version.go | 2 +- .../arm/servicebus/namespaces.go | 10 +- .../azure-sdk-for-go/arm/servicebus/queues.go | 10 +- .../arm/servicebus/subscriptions.go | 4 +- .../azure-sdk-for-go/arm/servicebus/topics.go | 10 +- .../arm/servicebus/version.go | 2 +- .../azure-sdk-for-go/arm/storage/accounts.go | 70 +-- .../azure-sdk-for-go/arm/storage/version.go | 2 +- .../arm/trafficmanager/version.go | 2 +- vendor/vendor.json | 192 +++---- 41 files changed, 419 insertions(+), 903 deletions(-) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/customdomains.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/customdomains.go index 65fecc440..b18c7ff67 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/customdomains.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/customdomains.go @@ -57,9 +57,9 @@ func NewCustomDomainsClientWithBaseURI(baseURI string, subscriptionID string) Cu // name of the resource group within the Azure subscription. func (client CustomDomainsClient) Create(customDomainName string, customDomainProperties CustomDomainParameters, endpointName string, profileName string, resourceGroupName string, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {customDomainProperties, - []validation.Constraint{{"customDomainProperties.Properties", validation.Null, false, - []validation.Constraint{{"customDomainProperties.Properties.HostName", validation.Null, true, nil}}}}}}); err != nil { + {TargetValue: customDomainProperties, + Constraints: []validation.Constraint{{Target: "customDomainProperties.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "customDomainProperties.Properties.HostName", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "cdn.CustomDomainsClient", "Create") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/endpoints.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/endpoints.go index f2a63b0db..337994ceb 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/endpoints.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/endpoints.go @@ -55,10 +55,10 @@ func NewEndpointsClientWithBaseURI(baseURI string, subscriptionID string) Endpoi // resource group within the Azure subscription. func (client EndpointsClient) Create(endpointName string, endpointProperties EndpointCreateParameters, profileName string, resourceGroupName string, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {endpointProperties, - []validation.Constraint{{"endpointProperties.Location", validation.Null, true, nil}, - {"endpointProperties.Properties", validation.Null, false, - []validation.Constraint{{"endpointProperties.Properties.Origins", validation.Null, true, nil}}}}}}); err != nil { + {TargetValue: endpointProperties, + Constraints: []validation.Constraint{{Target: "endpointProperties.Location", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "endpointProperties.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "endpointProperties.Properties.Origins", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "cdn.EndpointsClient", "Create") } @@ -334,8 +334,8 @@ func (client EndpointsClient) ListByProfileResponder(resp *http.Response) (resul // Azure subscription. func (client EndpointsClient) LoadContent(endpointName string, contentFilePaths LoadParameters, profileName string, resourceGroupName string, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {contentFilePaths, - []validation.Constraint{{"contentFilePaths.ContentPaths", validation.Null, true, nil}}}}); err != nil { + {TargetValue: contentFilePaths, + Constraints: []validation.Constraint{{Target: "contentFilePaths.ContentPaths", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "cdn.EndpointsClient", "LoadContent") } @@ -413,8 +413,8 @@ func (client EndpointsClient) LoadContentResponder(resp *http.Response) (result // within the Azure subscription. func (client EndpointsClient) PurgeContent(endpointName string, contentFilePaths PurgeParameters, profileName string, resourceGroupName string, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {contentFilePaths, - []validation.Constraint{{"contentFilePaths.ContentPaths", validation.Null, true, nil}}}}); err != nil { + {TargetValue: contentFilePaths, + Constraints: []validation.Constraint{{Target: "contentFilePaths.ContentPaths", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "cdn.EndpointsClient", "PurgeContent") } @@ -695,8 +695,8 @@ func (client EndpointsClient) UpdateResponder(resp *http.Response) (result autor // the resource group within the Azure subscription. func (client EndpointsClient) ValidateCustomDomain(endpointName string, customDomainProperties ValidateCustomDomainInput, profileName string, resourceGroupName string) (result ValidateCustomDomainOutput, err error) { if err := validation.Validate([]validation.Validation{ - {customDomainProperties, - []validation.Constraint{{"customDomainProperties.HostName", validation.Null, true, nil}}}}); err != nil { + {TargetValue: customDomainProperties, + Constraints: []validation.Constraint{{Target: "customDomainProperties.HostName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "cdn.EndpointsClient", "ValidateCustomDomain") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/nameavailability.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/nameavailability.go index aa1a2726a..687813f49 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/nameavailability.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/nameavailability.go @@ -51,9 +51,9 @@ func NewNameAvailabilityClientWithBaseURI(baseURI string, subscriptionID string) // checkNameAvailabilityInput is input to check. func (client NameAvailabilityClient) CheckNameAvailability(checkNameAvailabilityInput CheckNameAvailabilityInput) (result CheckNameAvailabilityOutput, err error) { if err := validation.Validate([]validation.Validation{ - {checkNameAvailabilityInput, - []validation.Constraint{{"checkNameAvailabilityInput.Name", validation.Null, true, nil}, - {"checkNameAvailabilityInput.Type", validation.Null, true, nil}}}}); err != nil { + {TargetValue: checkNameAvailabilityInput, + Constraints: []validation.Constraint{{Target: "checkNameAvailabilityInput.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "checkNameAvailabilityInput.Type", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "cdn.NameAvailabilityClient", "CheckNameAvailability") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/origins.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/origins.go index 0711e02d8..3c99c7cc8 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/origins.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/origins.go @@ -55,9 +55,9 @@ func NewOriginsClientWithBaseURI(baseURI string, subscriptionID string) OriginsC // resource group within the Azure subscription. func (client OriginsClient) Create(originName string, originProperties OriginParameters, endpointName string, profileName string, resourceGroupName string, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {originProperties, - []validation.Constraint{{"originProperties.Properties", validation.Null, false, - []validation.Constraint{{"originProperties.Properties.HostName", validation.Null, true, nil}}}}}}); err != nil { + {TargetValue: originProperties, + Constraints: []validation.Constraint{{Target: "originProperties.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "originProperties.Properties.HostName", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "cdn.OriginsClient", "Create") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/profiles.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/profiles.go index 06c90d5a7..9c8af2bfb 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/profiles.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/profiles.go @@ -55,9 +55,9 @@ func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) Profile // subscription. func (client ProfilesClient) Create(profileName string, profileProperties ProfileCreateParameters, resourceGroupName string, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {profileProperties, - []validation.Constraint{{"profileProperties.Location", validation.Null, true, nil}, - {"profileProperties.Sku", validation.Null, true, nil}}}}); err != nil { + {TargetValue: profileProperties, + Constraints: []validation.Constraint{{Target: "profileProperties.Location", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "profileProperties.Sku", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "cdn.ProfilesClient", "Create") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/version.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/version.go index 5ca9088b3..cb19871ab 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/version.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/cdn/version.go @@ -23,7 +23,7 @@ import ( ) const ( - major = "4" + major = "5" minor = "0" patch = "0" // Always begin a "tag" with a dash (as per http://semver.org) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/usageoperations.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/usageoperations.go index a388e25de..474c7ca9f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/usageoperations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/usageoperations.go @@ -47,8 +47,8 @@ func NewUsageOperationsClientWithBaseURI(baseURI string, subscriptionID string) // location is the location upon which resource usage is queried. func (client UsageOperationsClient) List(location string) (result ListUsagesResult, err error) { if err := validation.Validate([]validation.Validation{ - {location, - []validation.Constraint{{"location", validation.Pattern, `^[-\w\._]+$`, nil}}}}); err != nil { + {TargetValue: location, + Constraints: []validation.Constraint{{Target: "location", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "compute.UsageOperationsClient", "List") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/version.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/version.go index 7786ca747..3ebd0b807 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/version.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/version.go @@ -23,7 +23,7 @@ import ( ) const ( - major = "4" + major = "5" minor = "0" patch = "0" // Always begin a "tag" with a dash (as per http://semver.org) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/virtualmachineextensions.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/virtualmachineextensions.go index ab645390f..dbbce547a 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/virtualmachineextensions.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/virtualmachineextensions.go @@ -54,9 +54,9 @@ func NewVirtualMachineExtensionsClientWithBaseURI(baseURI string, subscriptionID // Extension operation. func (client VirtualMachineExtensionsClient) CreateOrUpdate(resourceGroupName string, vmName string, vmExtensionName string, extensionParameters VirtualMachineExtension, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {extensionParameters, - []validation.Constraint{{"extensionParameters.Properties", validation.Null, false, - []validation.Constraint{{"ProvisioningState", validation.ReadOnly, true, nil}}}}}}); err != nil { + {TargetValue: extensionParameters, + Constraints: []validation.Constraint{{Target: "extensionParameters.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "extensionParameters.Properties.ProvisioningState", Name: validation.ReadOnly, Rule: true, Chain: nil}}}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "compute.VirtualMachineExtensionsClient", "CreateOrUpdate") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/virtualmachines.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/virtualmachines.go index 9e89bc6ea..8b044e774 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/virtualmachines.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/virtualmachines.go @@ -53,10 +53,10 @@ func NewVirtualMachinesClientWithBaseURI(baseURI string, subscriptionID string) // Virtual Machine operation. func (client VirtualMachinesClient) Capture(resourceGroupName string, vmName string, parameters VirtualMachineCaptureParameters, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {parameters, - []validation.Constraint{{"parameters.VhdPrefix", validation.Null, true, nil}, - {"parameters.DestinationContainerName", validation.Null, true, nil}, - {"parameters.OverwriteVhds", validation.Null, true, nil}}}}); err != nil { + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.VhdPrefix", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.DestinationContainerName", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.OverwriteVhds", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "compute.VirtualMachinesClient", "Capture") } @@ -131,29 +131,29 @@ func (client VirtualMachinesClient) CaptureResponder(resp *http.Response) (resul // Virtual Machine operation. func (client VirtualMachinesClient) CreateOrUpdate(resourceGroupName string, vmName string, parameters VirtualMachine, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {parameters, - []validation.Constraint{{"parameters.Properties", validation.Null, false, - []validation.Constraint{{"parameters.Properties.StorageProfile", validation.Null, false, - []validation.Constraint{{"parameters.Properties.StorageProfile.OsDisk", validation.Null, false, - []validation.Constraint{{"parameters.Properties.StorageProfile.OsDisk.EncryptionSettings", validation.Null, false, - []validation.Constraint{{"parameters.Properties.StorageProfile.OsDisk.EncryptionSettings.DiskEncryptionKey", validation.Null, false, - []validation.Constraint{{"parameters.Properties.StorageProfile.OsDisk.EncryptionSettings.DiskEncryptionKey.SecretURL", validation.Null, true, nil}, - {"parameters.Properties.StorageProfile.OsDisk.EncryptionSettings.DiskEncryptionKey.SourceVault", validation.Null, true, nil}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.StorageProfile", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.StorageProfile.OsDisk", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.StorageProfile.OsDisk.EncryptionSettings", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.StorageProfile.OsDisk.EncryptionSettings.DiskEncryptionKey", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.StorageProfile.OsDisk.EncryptionSettings.DiskEncryptionKey.SecretURL", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.Properties.StorageProfile.OsDisk.EncryptionSettings.DiskEncryptionKey.SourceVault", Name: validation.Null, Rule: true, Chain: nil}, }}, - {"parameters.Properties.StorageProfile.OsDisk.EncryptionSettings.KeyEncryptionKey", validation.Null, false, - []validation.Constraint{{"parameters.Properties.StorageProfile.OsDisk.EncryptionSettings.KeyEncryptionKey.KeyURL", validation.Null, true, nil}, - {"parameters.Properties.StorageProfile.OsDisk.EncryptionSettings.KeyEncryptionKey.SourceVault", validation.Null, true, nil}, + {Target: "parameters.Properties.StorageProfile.OsDisk.EncryptionSettings.KeyEncryptionKey", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.StorageProfile.OsDisk.EncryptionSettings.KeyEncryptionKey.KeyURL", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.Properties.StorageProfile.OsDisk.EncryptionSettings.KeyEncryptionKey.SourceVault", Name: validation.Null, Rule: true, Chain: nil}, }}, }}, - {"parameters.Properties.StorageProfile.OsDisk.Name", validation.Null, true, nil}, - {"parameters.Properties.StorageProfile.OsDisk.Vhd", validation.Null, true, nil}, + {Target: "parameters.Properties.StorageProfile.OsDisk.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.Properties.StorageProfile.OsDisk.Vhd", Name: validation.Null, Rule: true, Chain: nil}, }}, }}, - {"ProvisioningState", validation.ReadOnly, true, nil}, - {"InstanceView", validation.ReadOnly, true, nil}, - {"VMID", validation.ReadOnly, true, nil}, + {Target: "parameters.Properties.ProvisioningState", Name: validation.ReadOnly, Rule: true, Chain: nil}, + {Target: "parameters.Properties.InstanceView", Name: validation.ReadOnly, Rule: true, Chain: nil}, + {Target: "parameters.Properties.VMID", Name: validation.ReadOnly, Rule: true, Chain: nil}, }}, - {"Resources", validation.ReadOnly, true, nil}}}}); err != nil { + {Target: "parameters.Resources", Name: validation.ReadOnly, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "compute.VirtualMachinesClient", "CreateOrUpdate") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/virtualmachinescalesets.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/virtualmachinescalesets.go index f03fea65b..f2b92a26a 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/virtualmachinescalesets.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/virtualmachinescalesets.go @@ -53,15 +53,15 @@ func NewVirtualMachineScaleSetsClientWithBaseURI(baseURI string, subscriptionID // parameters supplied to the Create Virtual Machine Scale Set operation. func (client VirtualMachineScaleSetsClient) CreateOrUpdate(resourceGroupName string, name string, parameters VirtualMachineScaleSet, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {parameters, - []validation.Constraint{{"parameters.Properties", validation.Null, false, - []validation.Constraint{{"parameters.Properties.VirtualMachineProfile", validation.Null, false, - []validation.Constraint{{"parameters.Properties.VirtualMachineProfile.StorageProfile", validation.Null, false, - []validation.Constraint{{"parameters.Properties.VirtualMachineProfile.StorageProfile.OsDisk", validation.Null, false, - []validation.Constraint{{"parameters.Properties.VirtualMachineProfile.StorageProfile.OsDisk.Name", validation.Null, true, nil}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.VirtualMachineProfile", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.VirtualMachineProfile.StorageProfile", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.VirtualMachineProfile.StorageProfile.OsDisk", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.VirtualMachineProfile.StorageProfile.OsDisk.Name", Name: validation.Null, Rule: true, Chain: nil}}}, }}, }}, - {"ProvisioningState", validation.ReadOnly, true, nil}, + {Target: "parameters.Properties.ProvisioningState", Name: validation.ReadOnly, Rule: true, Chain: nil}, }}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "compute.VirtualMachineScaleSetsClient", "CreateOrUpdate") } @@ -279,8 +279,8 @@ func (client VirtualMachineScaleSetsClient) DeleteResponder(resp *http.Response) // virtual machine scale set instance IDs. func (client VirtualMachineScaleSetsClient) DeleteInstances(resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {vmInstanceIDs, - []validation.Constraint{{"vmInstanceIDs.InstanceIds", validation.Null, true, nil}}}}); err != nil { + {TargetValue: vmInstanceIDs, + Constraints: []validation.Constraint{{Target: "vmInstanceIDs.InstanceIds", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "compute.VirtualMachineScaleSetsClient", "DeleteInstances") } @@ -1029,8 +1029,8 @@ func (client VirtualMachineScaleSetsClient) StartResponder(resp *http.Response) // virtual machine scale set instance IDs. func (client VirtualMachineScaleSetsClient) UpdateInstances(resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {vmInstanceIDs, - []validation.Constraint{{"vmInstanceIDs.InstanceIds", validation.Null, true, nil}}}}); err != nil { + {TargetValue: vmInstanceIDs, + Constraints: []validation.Constraint{{Target: "vmInstanceIDs.InstanceIds", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "compute.VirtualMachineScaleSetsClient", "UpdateInstances") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/virtualmachinesizes.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/virtualmachinesizes.go index 626950379..507e9f157 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/virtualmachinesizes.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/compute/virtualmachinesizes.go @@ -48,8 +48,8 @@ func NewVirtualMachineSizesClientWithBaseURI(baseURI string, subscriptionID stri // location is the location upon which virtual-machine-sizes is queried. func (client VirtualMachineSizesClient) List(location string) (result VirtualMachineSizeListResult, err error) { if err := validation.Validate([]validation.Validation{ - {location, - []validation.Constraint{{"location", validation.Pattern, `^[-\w\._]+$`, nil}}}}); err != nil { + {TargetValue: location, + Constraints: []validation.Constraint{{Target: "location", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "compute.VirtualMachineSizesClient", "List") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/applicationgateways.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/applicationgateways.go index 8568888b8..99f6ff626 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/applicationgateways.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/applicationgateways.go @@ -56,9 +56,9 @@ func NewApplicationGatewaysClientWithBaseURI(baseURI string, subscriptionID stri // to the create/delete ApplicationGateway operation func (client ApplicationGatewaysClient) CreateOrUpdate(resourceGroupName string, applicationGatewayName string, parameters ApplicationGateway, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {parameters, - []validation.Constraint{{"parameters.Properties", validation.Null, false, - []validation.Constraint{{"OperationalState", validation.ReadOnly, true, nil}}}}}}); err != nil { + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.OperationalState", Name: validation.ReadOnly, Rule: true, Chain: nil}}}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "network.ApplicationGatewaysClient", "CreateOrUpdate") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/client.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/client.go index 07f43a32d..b2ab58173 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/client.go @@ -1,5 +1,5 @@ // Package network implements the Azure ARM Network service API version -// 2016-06-01. +// 2016-09-01. // // The Microsoft Azure Network management API provides a RESTful set of web // services that interact with Microsoft Azure Networks service to manage @@ -33,7 +33,7 @@ import ( const ( // APIVersion is the version of the Network - APIVersion = "2016-06-01" + APIVersion = "2016-09-01" // DefaultBaseURI is the default URI used for the service Network DefaultBaseURI = "https://management.azure.com" diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/interfaces.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/interfaces.go index 61d7cf5bf..4a5309a8c 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/interfaces.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/interfaces.go @@ -55,12 +55,12 @@ func NewInterfacesClientWithBaseURI(baseURI string, subscriptionID string) Inter // the create/update NetworkInterface operation func (client InterfacesClient) CreateOrUpdate(resourceGroupName string, networkInterfaceName string, parameters Interface, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {parameters, - []validation.Constraint{{"parameters.Properties", validation.Null, false, - []validation.Constraint{{"parameters.Properties.NetworkSecurityGroup", validation.Null, false, - []validation.Constraint{{"parameters.Properties.NetworkSecurityGroup.Properties", validation.Null, false, - []validation.Constraint{{"NetworkInterfaces", validation.ReadOnly, true, nil}, - {"Subnets", validation.ReadOnly, true, nil}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.NetworkSecurityGroup", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.NetworkSecurityGroup.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.NetworkSecurityGroup.Properties.NetworkInterfaces", Name: validation.ReadOnly, Rule: true, Chain: nil}, + {Target: "parameters.Properties.NetworkSecurityGroup.Properties.Subnets", Name: validation.ReadOnly, Rule: true, Chain: nil}, }}, }}, }}}}}); err != nil { diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/models.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/models.go index 759f9713d..7158b0383 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/models.go @@ -1321,15 +1321,16 @@ func (client InterfaceListResult) InterfaceListResultPreparer() (*http.Request, // InterfacePropertiesFormat is networkInterface properties. type InterfacePropertiesFormat struct { - VirtualMachine *SubResource `json:"virtualMachine,omitempty"` - NetworkSecurityGroup *SecurityGroup `json:"networkSecurityGroup,omitempty"` - IPConfigurations *[]InterfaceIPConfiguration `json:"ipConfigurations,omitempty"` - DNSSettings *InterfaceDNSSettings `json:"dnsSettings,omitempty"` - MacAddress *string `json:"macAddress,omitempty"` - Primary *bool `json:"primary,omitempty"` - EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` - ResourceGUID *string `json:"resourceGuid,omitempty"` - ProvisioningState *string `json:"provisioningState,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + NetworkSecurityGroup *SecurityGroup `json:"networkSecurityGroup,omitempty"` + IPConfigurations *[]InterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + DNSSettings *InterfaceDNSSettings `json:"dnsSettings,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + Primary *bool `json:"primary,omitempty"` + AcceleratedNetworkingEnabled *bool `json:"acceleratedNetworkingEnabled,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + ResourceGUID *string `json:"resourceGuid,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` } // IPAddressAvailabilityResult is response for CheckIPAddressAvailability Api diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/publicipaddresses.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/publicipaddresses.go index 96ce3aecf..40bf7cc56 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/publicipaddresses.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/publicipaddresses.go @@ -56,29 +56,29 @@ func NewPublicIPAddressesClientWithBaseURI(baseURI string, subscriptionID string // create/update PublicIPAddress operation func (client PublicIPAddressesClient) CreateOrUpdate(resourceGroupName string, publicIPAddressName string, parameters PublicIPAddress, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {parameters, - []validation.Constraint{{"parameters.Properties", validation.Null, false, - []validation.Constraint{{"parameters.Properties.IPConfiguration", validation.Null, false, - []validation.Constraint{{"parameters.Properties.IPConfiguration.Properties", validation.Null, false, - []validation.Constraint{{"parameters.Properties.IPConfiguration.Properties.Subnet", validation.Null, false, - []validation.Constraint{{"parameters.Properties.IPConfiguration.Properties.Subnet.Properties", validation.Null, false, - []validation.Constraint{{"parameters.Properties.IPConfiguration.Properties.Subnet.Properties.NetworkSecurityGroup", validation.Null, false, - []validation.Constraint{{"parameters.Properties.IPConfiguration.Properties.Subnet.Properties.NetworkSecurityGroup.Properties", validation.Null, false, - []validation.Constraint{{"NetworkInterfaces", validation.ReadOnly, true, nil}, - {"Subnets", validation.ReadOnly, true, nil}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.IPConfiguration", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.IPConfiguration.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.IPConfiguration.Properties.Subnet", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.IPConfiguration.Properties.Subnet.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.IPConfiguration.Properties.Subnet.Properties.NetworkSecurityGroup", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.IPConfiguration.Properties.Subnet.Properties.NetworkSecurityGroup.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.IPConfiguration.Properties.Subnet.Properties.NetworkSecurityGroup.Properties.NetworkInterfaces", Name: validation.ReadOnly, Rule: true, Chain: nil}, + {Target: "parameters.Properties.IPConfiguration.Properties.Subnet.Properties.NetworkSecurityGroup.Properties.Subnets", Name: validation.ReadOnly, Rule: true, Chain: nil}, }}, }}, - {"parameters.Properties.IPConfiguration.Properties.Subnet.Properties.RouteTable", validation.Null, false, - []validation.Constraint{{"parameters.Properties.IPConfiguration.Properties.Subnet.Properties.RouteTable.Properties", validation.Null, false, - []validation.Constraint{{"Subnets", validation.ReadOnly, true, nil}}}, + {Target: "parameters.Properties.IPConfiguration.Properties.Subnet.Properties.RouteTable", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.IPConfiguration.Properties.Subnet.Properties.RouteTable.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.IPConfiguration.Properties.Subnet.Properties.RouteTable.Properties.Subnets", Name: validation.ReadOnly, Rule: true, Chain: nil}}}, }}, - {"IPConfigurations", validation.ReadOnly, true, nil}, + {Target: "parameters.Properties.IPConfiguration.Properties.Subnet.Properties.IPConfigurations", Name: validation.ReadOnly, Rule: true, Chain: nil}, }}, }}, - {"parameters.Properties.IPConfiguration.Properties.PublicIPAddress", validation.Null, false, nil}, + {Target: "parameters.Properties.IPConfiguration.Properties.PublicIPAddress", Name: validation.Null, Rule: false, Chain: nil}, }}, }}, - {"IPConfiguration", validation.ReadOnly, true, nil}, + {Target: "parameters.Properties.IPConfiguration", Name: validation.ReadOnly, Rule: true, Chain: nil}, }}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "network.PublicIPAddressesClient", "CreateOrUpdate") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/routetables.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/routetables.go index dc2f626f2..81e5a0e99 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/routetables.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/routetables.go @@ -55,9 +55,9 @@ func NewRouteTablesClientWithBaseURI(baseURI string, subscriptionID string) Rout // create/update Route Table operation func (client RouteTablesClient) CreateOrUpdate(resourceGroupName string, routeTableName string, parameters RouteTable, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {parameters, - []validation.Constraint{{"parameters.Properties", validation.Null, false, - []validation.Constraint{{"Subnets", validation.ReadOnly, true, nil}}}}}}); err != nil { + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.Subnets", Name: validation.ReadOnly, Rule: true, Chain: nil}}}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "network.RouteTablesClient", "CreateOrUpdate") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/securitygroups.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/securitygroups.go index d84932a6f..187ca8b98 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/securitygroups.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/securitygroups.go @@ -58,10 +58,10 @@ func NewSecurityGroupsClientWithBaseURI(baseURI string, subscriptionID string) S // Group operation func (client SecurityGroupsClient) CreateOrUpdate(resourceGroupName string, networkSecurityGroupName string, parameters SecurityGroup, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {parameters, - []validation.Constraint{{"parameters.Properties", validation.Null, false, - []validation.Constraint{{"NetworkInterfaces", validation.ReadOnly, true, nil}, - {"Subnets", validation.ReadOnly, true, nil}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.NetworkInterfaces", Name: validation.ReadOnly, Rule: true, Chain: nil}, + {Target: "parameters.Properties.Subnets", Name: validation.ReadOnly, Rule: true, Chain: nil}, }}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "network.SecurityGroupsClient", "CreateOrUpdate") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/securityrules.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/securityrules.go index 55c1a6d5d..c5ed15e55 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/securityrules.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/securityrules.go @@ -59,10 +59,10 @@ func NewSecurityRulesClientWithBaseURI(baseURI string, subscriptionID string) Se // operation func (client SecurityRulesClient) CreateOrUpdate(resourceGroupName string, networkSecurityGroupName string, securityRuleName string, securityRuleParameters SecurityRule, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {securityRuleParameters, - []validation.Constraint{{"securityRuleParameters.Properties", validation.Null, false, - []validation.Constraint{{"securityRuleParameters.Properties.SourceAddressPrefix", validation.Null, true, nil}, - {"securityRuleParameters.Properties.DestinationAddressPrefix", validation.Null, true, nil}, + {TargetValue: securityRuleParameters, + Constraints: []validation.Constraint{{Target: "securityRuleParameters.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "securityRuleParameters.Properties.SourceAddressPrefix", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "securityRuleParameters.Properties.DestinationAddressPrefix", Name: validation.Null, Rule: true, Chain: nil}, }}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "network.SecurityRulesClient", "CreateOrUpdate") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/subnets.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/subnets.go index a50aa6a18..3e27f4849 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/subnets.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/subnets.go @@ -55,19 +55,19 @@ func NewSubnetsClientWithBaseURI(baseURI string, subscriptionID string) SubnetsC // operation func (client SubnetsClient) CreateOrUpdate(resourceGroupName string, virtualNetworkName string, subnetName string, subnetParameters Subnet, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {subnetParameters, - []validation.Constraint{{"subnetParameters.Properties", validation.Null, false, - []validation.Constraint{{"subnetParameters.Properties.NetworkSecurityGroup", validation.Null, false, - []validation.Constraint{{"subnetParameters.Properties.NetworkSecurityGroup.Properties", validation.Null, false, - []validation.Constraint{{"NetworkInterfaces", validation.ReadOnly, true, nil}, - {"Subnets", validation.ReadOnly, true, nil}, + {TargetValue: subnetParameters, + Constraints: []validation.Constraint{{Target: "subnetParameters.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "subnetParameters.Properties.NetworkSecurityGroup", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "subnetParameters.Properties.NetworkSecurityGroup.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "subnetParameters.Properties.NetworkSecurityGroup.Properties.NetworkInterfaces", Name: validation.ReadOnly, Rule: true, Chain: nil}, + {Target: "subnetParameters.Properties.NetworkSecurityGroup.Properties.Subnets", Name: validation.ReadOnly, Rule: true, Chain: nil}, }}, }}, - {"subnetParameters.Properties.RouteTable", validation.Null, false, - []validation.Constraint{{"subnetParameters.Properties.RouteTable.Properties", validation.Null, false, - []validation.Constraint{{"Subnets", validation.ReadOnly, true, nil}}}, + {Target: "subnetParameters.Properties.RouteTable", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "subnetParameters.Properties.RouteTable.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "subnetParameters.Properties.RouteTable.Properties.Subnets", Name: validation.ReadOnly, Rule: true, Chain: nil}}}, }}, - {"IPConfigurations", validation.ReadOnly, true, nil}, + {Target: "subnetParameters.Properties.IPConfigurations", Name: validation.ReadOnly, Rule: true, Chain: nil}, }}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "network.SubnetsClient", "CreateOrUpdate") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/usages.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/usages.go index 2e0342682..8c246feca 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/usages.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/usages.go @@ -49,8 +49,8 @@ func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesCli // location is the location upon which resource usage is queried. func (client UsagesClient) List(location string) (result UsagesListResult, err error) { if err := validation.Validate([]validation.Validation{ - {location, - []validation.Constraint{{"location", validation.Pattern, `^[-\w\._]+$`, nil}}}}); err != nil { + {TargetValue: location, + Constraints: []validation.Constraint{{Target: "location", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "network.UsagesClient", "List") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/version.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/version.go index 01a1556e8..aab274aea 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/network/version.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/network/version.go @@ -23,7 +23,7 @@ import ( ) const ( - major = "4" + major = "5" minor = "0" patch = "0" // Always begin a "tag" with a dash (as per http://semver.org) @@ -34,7 +34,7 @@ const ( // UserAgent returns the UserAgent string to use when sending http.Requests. func UserAgent() string { - return fmt.Sprintf(userAgentFormat, Version(), "network", "2016-06-01") + return fmt.Sprintf(userAgentFormat, Version(), "network", "2016-09-01") } // Version returns the semantic version (see http://semver.org) of the client. diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/client.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/client.go index c75b26d80..3d6c5273f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/client.go @@ -23,9 +23,6 @@ package resources import ( "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/validation" - "net/http" ) const ( @@ -58,485 +55,3 @@ func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient { SubscriptionID: subscriptionID, } } - -// CheckExistence checks whether resource exists. -// -// resourceGroupName is the name of the resource group. The name is case -// insensitive. resourceProviderNamespace is resource identity. -// parentResourcePath is resource identity. resourceType is resource -// identity. resourceName is resource identity. -func (client ManagementClient) CheckExistence(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != nil { - return result, validation.NewErrorWithValidationError(err, "resources.ManagementClient", "CheckExistence") - } - - req, err := client.CheckExistencePreparer(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName) - if err != nil { - return result, autorest.NewErrorWithError(err, "resources.ManagementClient", "CheckExistence", nil, "Failure preparing request") - } - - resp, err := client.CheckExistenceSender(req) - if err != nil { - result.Response = resp - return result, autorest.NewErrorWithError(err, "resources.ManagementClient", "CheckExistence", resp, "Failure sending request") - } - - result, err = client.CheckExistenceResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "resources.ManagementClient", "CheckExistence", resp, "Failure responding to request") - } - - return -} - -// CheckExistencePreparer prepares the CheckExistence request. -func (client ManagementClient) CheckExistencePreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "parentResourcePath": parentResourcePath, - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "resourceName": autorest.Encode("path", resourceName), - "resourceProviderNamespace": autorest.Encode("path", resourceProviderNamespace), - "resourceType": resourceType, - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - queryParameters := map[string]interface{}{ - "api-version": client.APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsHead(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare(&http.Request{}) -} - -// CheckExistenceSender sends the CheckExistence request. The method will close the -// http.Response Body if it receives an error. -func (client ManagementClient) CheckExistenceSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req) -} - -// CheckExistenceResponder handles the response to the CheckExistence request. The method always -// closes the http.Response Body. -func (client ManagementClient) CheckExistenceResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusNotFound), - autorest.ByClosing()) - result.Response = resp - return -} - -// CreateOrUpdate create a resource. -// -// resourceGroupName is the name of the resource group. The name is case -// insensitive. resourceProviderNamespace is resource identity. -// parentResourcePath is resource identity. resourceType is resource -// identity. resourceName is resource identity. parameters is create or -// update resource parameters. -func (client ManagementClient) CreateOrUpdate(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, parameters GenericResource) (result GenericResource, err error) { - if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}, - {parameters, - []validation.Constraint{{"parameters.Identity", validation.Null, false, - []validation.Constraint{{"PrincipalID", validation.ReadOnly, true, nil}, - {"TenantID", validation.ReadOnly, true, nil}, - }}}}}); err != nil { - return result, validation.NewErrorWithValidationError(err, "resources.ManagementClient", "CreateOrUpdate") - } - - req, err := client.CreateOrUpdatePreparer(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, parameters) - if err != nil { - return result, autorest.NewErrorWithError(err, "resources.ManagementClient", "CreateOrUpdate", nil, "Failure preparing request") - } - - resp, err := client.CreateOrUpdateSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "resources.ManagementClient", "CreateOrUpdate", resp, "Failure sending request") - } - - result, err = client.CreateOrUpdateResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "resources.ManagementClient", "CreateOrUpdate", resp, "Failure responding to request") - } - - return -} - -// CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client ManagementClient) CreateOrUpdatePreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, parameters GenericResource) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "parentResourcePath": parentResourcePath, - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "resourceName": autorest.Encode("path", resourceName), - "resourceProviderNamespace": autorest.Encode("path", resourceProviderNamespace), - "resourceType": resourceType, - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - queryParameters := map[string]interface{}{ - "api-version": client.APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsJSON(), - autorest.AsPut(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare(&http.Request{}) -} - -// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the -// http.Response Body if it receives an error. -func (client ManagementClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req) -} - -// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always -// closes the http.Response Body. -func (client ManagementClient) CreateOrUpdateResponder(resp *http.Response) (result GenericResource, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusCreated, http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - -// Delete delete resource and all of its resources. -// -// resourceGroupName is the name of the resource group. The name is case -// insensitive. resourceProviderNamespace is resource identity. -// parentResourcePath is resource identity. resourceType is resource -// identity. resourceName is resource identity. -func (client ManagementClient) Delete(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != nil { - return result, validation.NewErrorWithValidationError(err, "resources.ManagementClient", "Delete") - } - - req, err := client.DeletePreparer(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName) - if err != nil { - return result, autorest.NewErrorWithError(err, "resources.ManagementClient", "Delete", nil, "Failure preparing request") - } - - resp, err := client.DeleteSender(req) - if err != nil { - result.Response = resp - return result, autorest.NewErrorWithError(err, "resources.ManagementClient", "Delete", resp, "Failure sending request") - } - - result, err = client.DeleteResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "resources.ManagementClient", "Delete", resp, "Failure responding to request") - } - - return -} - -// DeletePreparer prepares the Delete request. -func (client ManagementClient) DeletePreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "parentResourcePath": parentResourcePath, - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "resourceName": autorest.Encode("path", resourceName), - "resourceProviderNamespace": autorest.Encode("path", resourceProviderNamespace), - "resourceType": resourceType, - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - queryParameters := map[string]interface{}{ - "api-version": client.APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsDelete(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare(&http.Request{}) -} - -// DeleteSender sends the Delete request. The method will close the -// http.Response Body if it receives an error. -func (client ManagementClient) DeleteSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req) -} - -// DeleteResponder handles the response to the Delete request. The method always -// closes the http.Response Body. -func (client ManagementClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { - err = autorest.Respond( - resp, - client.ByInspecting(), - azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent, http.StatusAccepted), - autorest.ByClosing()) - result.Response = resp - return -} - -// Get returns a resource belonging to a resource group. -// -// resourceGroupName is the name of the resource group. The name is case -// insensitive. resourceProviderNamespace is resource identity. -// parentResourcePath is resource identity. resourceType is resource -// identity. resourceName is resource identity. -func (client ManagementClient) Get(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (result GenericResource, err error) { - if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != nil { - return result, validation.NewErrorWithValidationError(err, "resources.ManagementClient", "Get") - } - - req, err := client.GetPreparer(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName) - if err != nil { - return result, autorest.NewErrorWithError(err, "resources.ManagementClient", "Get", nil, "Failure preparing request") - } - - resp, err := client.GetSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "resources.ManagementClient", "Get", resp, "Failure sending request") - } - - result, err = client.GetResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "resources.ManagementClient", "Get", resp, "Failure responding to request") - } - - return -} - -// GetPreparer prepares the Get request. -func (client ManagementClient) GetPreparer(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "parentResourcePath": parentResourcePath, - "resourceGroupName": autorest.Encode("path", resourceGroupName), - "resourceName": autorest.Encode("path", resourceName), - "resourceProviderNamespace": autorest.Encode("path", resourceProviderNamespace), - "resourceType": resourceType, - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - queryParameters := map[string]interface{}{ - "api-version": client.APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare(&http.Request{}) -} - -// GetSender sends the Get request. The method will close the -// http.Response Body if it receives an error. -func (client ManagementClient) GetSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req) -} - -// GetResponder handles the response to the Get request. The method always -// closes the http.Response Body. -func (client ManagementClient) GetResponder(resp *http.Response) (result GenericResource, 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 get all of the resources under a subscription. -// -// filter is the filter to apply on the operation. expand is the $expand query -// parameter. top is query parameters. If null is passed returns all resource -// groups. -func (client ManagementClient) List(filter string, expand string, top *int32) (result ResourceListResult, err error) { - req, err := client.ListPreparer(filter, expand, top) - if err != nil { - return result, autorest.NewErrorWithError(err, "resources.ManagementClient", "List", nil, "Failure preparing request") - } - - resp, err := client.ListSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - return result, autorest.NewErrorWithError(err, "resources.ManagementClient", "List", resp, "Failure sending request") - } - - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "resources.ManagementClient", "List", resp, "Failure responding to request") - } - - return -} - -// ListPreparer prepares the List request. -func (client ManagementClient) ListPreparer(filter string, expand string, top *int32) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - queryParameters := map[string]interface{}{ - "api-version": client.APIVersion, - } - if len(filter) > 0 { - queryParameters["$filter"] = autorest.Encode("query", filter) - } - if len(expand) > 0 { - queryParameters["$expand"] = autorest.Encode("query", expand) - } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resources", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare(&http.Request{}) -} - -// ListSender sends the List request. The method will close the -// http.Response Body if it receives an error. -func (client ManagementClient) ListSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, req) -} - -// ListResponder handles the response to the List request. The method always -// closes the http.Response Body. -func (client ManagementClient) ListResponder(resp *http.Response) (result ResourceListResult, 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 ManagementClient) ListNextResults(lastResults ResourceListResult) (result ResourceListResult, err error) { - req, err := lastResults.ResourceListResultPreparer() - if err != nil { - return result, autorest.NewErrorWithError(err, "resources.ManagementClient", "List", 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, "resources.ManagementClient", "List", resp, "Failure sending next results request") - } - - result, err = client.ListResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "resources.ManagementClient", "List", resp, "Failure responding to next results request") - } - - return -} - -// MoveResources move resources from one resource group to another. The -// resources being moved should all be in the same resource group. This -// method may poll for completion. Polling can be canceled by passing the -// cancel channel argument. The channel will be used to cancel polling and -// any outstanding HTTP requests. -// -// sourceResourceGroupName is source resource group name. parameters is move -// resources' parameters. -func (client ManagementClient) MoveResources(sourceResourceGroupName string, parameters MoveInfo, cancel <-chan struct{}) (result autorest.Response, err error) { - if err := validation.Validate([]validation.Validation{ - {sourceResourceGroupName, - []validation.Constraint{{"sourceResourceGroupName", validation.MaxLength, 90, nil}, - {"sourceResourceGroupName", validation.MinLength, 1, nil}, - {"sourceResourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != nil { - return result, validation.NewErrorWithValidationError(err, "resources.ManagementClient", "MoveResources") - } - - req, err := client.MoveResourcesPreparer(sourceResourceGroupName, parameters, cancel) - if err != nil { - return result, autorest.NewErrorWithError(err, "resources.ManagementClient", "MoveResources", nil, "Failure preparing request") - } - - resp, err := client.MoveResourcesSender(req) - if err != nil { - result.Response = resp - return result, autorest.NewErrorWithError(err, "resources.ManagementClient", "MoveResources", resp, "Failure sending request") - } - - result, err = client.MoveResourcesResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "resources.ManagementClient", "MoveResources", resp, "Failure responding to request") - } - - return -} - -// MoveResourcesPreparer prepares the MoveResources request. -func (client ManagementClient) MoveResourcesPreparer(sourceResourceGroupName string, parameters MoveInfo, cancel <-chan struct{}) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "sourceResourceGroupName": autorest.Encode("path", sourceResourceGroupName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - queryParameters := map[string]interface{}{ - "api-version": client.APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsJSON(), - autorest.AsPost(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources", pathParameters), - autorest.WithJSON(parameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare(&http.Request{Cancel: cancel}) -} - -// MoveResourcesSender sends the MoveResources request. The method will close the -// http.Response Body if it receives an error. -func (client ManagementClient) MoveResourcesSender(req *http.Request) (*http.Response, error) { - return autorest.SendWithSender(client, - req, - azure.DoPollForAsynchronous(client.PollingDelay)) -} - -// MoveResourcesResponder handles the response to the MoveResources request. The method always -// closes the http.Response Body. -func (client ManagementClient) MoveResourcesResponder(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 -} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/deploymentoperations.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/deploymentoperations.go index 2f0adede2..2144840d2 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/deploymentoperations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/deploymentoperations.go @@ -50,10 +50,10 @@ func NewDeploymentOperationsClientWithBaseURI(baseURI string, subscriptionID str // operation Id. func (client DeploymentOperationsClient) Get(resourceGroupName string, deploymentName string, operationID string) (result DeploymentOperation, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != 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.NewErrorWithValidationError(err, "resources.DeploymentOperationsClient", "Get") } @@ -123,10 +123,10 @@ func (client DeploymentOperationsClient) GetResponder(resp *http.Response) (resu // parameters. func (client DeploymentOperationsClient) List(resourceGroupName string, deploymentName string, top *int32) (result DeploymentOperationsListResult, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != 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.NewErrorWithValidationError(err, "resources.DeploymentOperationsClient", "List") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/deployments.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/deployments.go index 2a72baf7c..236bf0df6 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/deployments.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/deployments.go @@ -48,10 +48,10 @@ func NewDeploymentsClientWithBaseURI(baseURI string, subscriptionID string) Depl // insensitive. deploymentName is the name of the deployment. func (client DeploymentsClient) Cancel(resourceGroupName string, deploymentName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != 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.NewErrorWithValidationError(err, "resources.DeploymentsClient", "Cancel") } @@ -118,10 +118,10 @@ func (client DeploymentsClient) CancelResponder(resp *http.Response) (result aut // case insensitive. deploymentName is the name of the deployment. func (client DeploymentsClient) CheckExistence(resourceGroupName string, deploymentName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != 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.NewErrorWithValidationError(err, "resources.DeploymentsClient", "CheckExistence") } @@ -192,16 +192,16 @@ func (client DeploymentsClient) CheckExistenceResponder(resp *http.Response) (re // additional parameters supplied to the operation. func (client DeploymentsClient) CreateOrUpdate(resourceGroupName string, deploymentName string, parameters Deployment, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}, - {parameters, - []validation.Constraint{{"parameters.Properties", validation.Null, false, - []validation.Constraint{{"parameters.Properties.TemplateLink", validation.Null, false, - []validation.Constraint{{"parameters.Properties.TemplateLink.URI", validation.Null, true, nil}}}, - {"parameters.Properties.ParametersLink", validation.Null, false, - []validation.Constraint{{"parameters.Properties.ParametersLink.URI", validation.Null, true, 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}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.TemplateLink", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.TemplateLink.URI", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "parameters.Properties.ParametersLink", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.ParametersLink.URI", Name: validation.Null, Rule: true, Chain: nil}}}, }}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "resources.DeploymentsClient", "CreateOrUpdate") } @@ -275,10 +275,10 @@ func (client DeploymentsClient) CreateOrUpdateResponder(resp *http.Response) (re // insensitive. deploymentName is the name of the deployment to be deleted. func (client DeploymentsClient) Delete(resourceGroupName string, deploymentName string, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != 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.NewErrorWithValidationError(err, "resources.DeploymentsClient", "Delete") } @@ -347,10 +347,10 @@ func (client DeploymentsClient) DeleteResponder(resp *http.Response) (result aut // insensitive. deploymentName is the name of the deployment. func (client DeploymentsClient) ExportTemplate(resourceGroupName string, deploymentName string) (result DeploymentExportResult, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != 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.NewErrorWithValidationError(err, "resources.DeploymentsClient", "ExportTemplate") } @@ -418,10 +418,10 @@ func (client DeploymentsClient) ExportTemplateResponder(resp *http.Response) (re // case insensitive. deploymentName is the name of the deployment. func (client DeploymentsClient) Get(resourceGroupName string, deploymentName string) (result DeploymentExtended, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != 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.NewErrorWithValidationError(err, "resources.DeploymentsClient", "Get") } @@ -490,10 +490,10 @@ func (client DeploymentsClient) GetResponder(resp *http.Response) (result Deploy // is query parameters. If null is passed returns all deployments. func (client DeploymentsClient) List(resourceGroupName string, filter string, top *int32) (result DeploymentListResult, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != 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.NewErrorWithValidationError(err, "resources.DeploymentsClient", "List") } @@ -591,16 +591,16 @@ func (client DeploymentsClient) ListNextResults(lastResults DeploymentListResult // deployment to validate. func (client DeploymentsClient) Validate(resourceGroupName string, deploymentName string, parameters Deployment) (result DeploymentValidateResult, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}, - {parameters, - []validation.Constraint{{"parameters.Properties", validation.Null, false, - []validation.Constraint{{"parameters.Properties.TemplateLink", validation.Null, false, - []validation.Constraint{{"parameters.Properties.TemplateLink.URI", validation.Null, true, nil}}}, - {"parameters.Properties.ParametersLink", validation.Null, false, - []validation.Constraint{{"parameters.Properties.ParametersLink.URI", validation.Null, true, 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}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.TemplateLink", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.TemplateLink.URI", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "parameters.Properties.ParametersLink", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.ParametersLink.URI", Name: validation.Null, Rule: true, Chain: nil}}}, }}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "resources.DeploymentsClient", "Validate") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/groups.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/groups.go index 8d16fcaf3..c8eaff637 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/groups.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/groups.go @@ -46,10 +46,10 @@ func NewGroupsClientWithBaseURI(baseURI string, subscriptionID string) GroupsCli // case insensitive. func (client GroupsClient) CheckExistence(resourceGroupName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != 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.NewErrorWithValidationError(err, "resources.GroupsClient", "CheckExistence") } @@ -116,15 +116,15 @@ func (client GroupsClient) CheckExistenceResponder(resp *http.Response) (result // resource group service operation. func (client GroupsClient) CreateOrUpdate(resourceGroupName string, parameters ResourceGroup) (result ResourceGroup, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}, - {parameters, - []validation.Constraint{{"parameters.Properties", validation.Null, false, - []validation.Constraint{{"ProvisioningState", validation.ReadOnly, true, nil}}}, - {"parameters.Location", validation.Null, true, nil}, - {"ID", validation.ReadOnly, true, nil}}}}); err != 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}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.ProvisioningState", Name: validation.ReadOnly, Rule: true, Chain: nil}}}, + {Target: "parameters.Location", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.ID", Name: validation.ReadOnly, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "resources.GroupsClient", "CreateOrUpdate") } @@ -195,10 +195,10 @@ func (client GroupsClient) CreateOrUpdateResponder(resp *http.Response) (result // is case insensitive. func (client GroupsClient) Delete(resourceGroupName string, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != 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.NewErrorWithValidationError(err, "resources.GroupsClient", "Delete") } @@ -267,10 +267,10 @@ func (client GroupsClient) DeleteResponder(resp *http.Response) (result autorest // group operation. func (client GroupsClient) ExportTemplate(resourceGroupName string, parameters ExportTemplateRequest) (result ResourceGroupExportResult, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != 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.NewErrorWithValidationError(err, "resources.GroupsClient", "ExportTemplate") } @@ -339,10 +339,10 @@ func (client GroupsClient) ExportTemplateResponder(resp *http.Response) (result // case insensitive. func (client GroupsClient) Get(resourceGroupName string) (result ResourceGroup, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != 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.NewErrorWithValidationError(err, "resources.GroupsClient", "Get") } @@ -502,10 +502,10 @@ func (client GroupsClient) ListNextResults(lastResults ResourceGroupListResult) // returns all resource groups. func (client GroupsClient) ListResources(resourceGroupName string, filter string, expand string, top *int32) (result ResourceListResult, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != 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.NewErrorWithValidationError(err, "resources.GroupsClient", "ListResources") } @@ -609,12 +609,12 @@ func (client GroupsClient) ListResourcesNextResults(lastResults ResourceListResu // to the update state resource group service operation. func (client GroupsClient) Patch(resourceGroupName string, parameters ResourceGroup) (result ResourceGroup, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}, - {parameters, - []validation.Constraint{{"ID", validation.ReadOnly, true, nil}}}}); err != 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}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.ID", Name: validation.ReadOnly, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "resources.GroupsClient", "Patch") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/resources.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/resources.go index af3297c0c..f21b50580 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/resources.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/resources.go @@ -48,10 +48,10 @@ func NewClientWithBaseURI(baseURI string, subscriptionID string) Client { // identity. resourceName is resource identity. func (client Client) CheckExistence(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != 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.NewErrorWithValidationError(err, "resources.Client", "CheckExistence") } @@ -124,14 +124,14 @@ func (client Client) CheckExistenceResponder(resp *http.Response) (result autore // update resource parameters. func (client Client) CreateOrUpdate(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, parameters GenericResource) (result GenericResource, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}, - {parameters, - []validation.Constraint{{"parameters.Identity", validation.Null, false, - []validation.Constraint{{"PrincipalID", validation.ReadOnly, true, nil}, - {"TenantID", validation.ReadOnly, true, 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}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Identity", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Identity.PrincipalID", Name: validation.ReadOnly, Rule: true, Chain: nil}, + {Target: "parameters.Identity.TenantID", Name: validation.ReadOnly, Rule: true, Chain: nil}, }}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "resources.Client", "CreateOrUpdate") } @@ -207,10 +207,10 @@ func (client Client) CreateOrUpdateResponder(resp *http.Response) (result Generi // identity. resourceName is resource identity. func (client Client) Delete(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != 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.NewErrorWithValidationError(err, "resources.Client", "Delete") } @@ -282,10 +282,10 @@ func (client Client) DeleteResponder(resp *http.Response) (result autorest.Respo // identity. resourceName is resource identity. func (client Client) Get(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (result GenericResource, err error) { if err := validation.Validate([]validation.Validation{ - {resourceGroupName, - []validation.Constraint{{"resourceGroupName", validation.MaxLength, 90, nil}, - {"resourceGroupName", validation.MinLength, 1, nil}, - {"resourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != 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.NewErrorWithValidationError(err, "resources.Client", "Get") } @@ -455,10 +455,10 @@ func (client Client) ListNextResults(lastResults ResourceListResult) (result Res // resources' parameters. func (client Client) MoveResources(sourceResourceGroupName string, parameters MoveInfo, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {sourceResourceGroupName, - []validation.Constraint{{"sourceResourceGroupName", validation.MaxLength, 90, nil}, - {"sourceResourceGroupName", validation.MinLength, 1, nil}, - {"sourceResourceGroupName", validation.Pattern, `^[-\w\._\(\)]+$`, nil}}}}); err != nil { + {TargetValue: sourceResourceGroupName, + Constraints: []validation.Constraint{{Target: "sourceResourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "sourceResourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "sourceResourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "resources.Client", "MoveResources") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/version.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/version.go index bd21feefb..0574d6b27 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/version.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/resources/resources/version.go @@ -23,7 +23,7 @@ import ( ) const ( - major = "4" + major = "5" minor = "0" patch = "0" // Always begin a "tag" with a dash (as per http://semver.org) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/scheduler/jobcollections.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/scheduler/jobcollections.go index 71d9c1020..196b04463 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/scheduler/jobcollections.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/scheduler/jobcollections.go @@ -50,9 +50,9 @@ func NewJobCollectionsClientWithBaseURI(baseURI string, subscriptionID string) J // collection name. jobCollection is the job collection definition. func (client JobCollectionsClient) CreateOrUpdate(resourceGroupName string, jobCollectionName string, jobCollection JobCollectionDefinition) (result JobCollectionDefinition, err error) { if err := validation.Validate([]validation.Validation{ - {jobCollection, - []validation.Constraint{{"ID", validation.ReadOnly, true, nil}, - {"Type", validation.ReadOnly, true, nil}}}}); err != nil { + {TargetValue: jobCollection, + Constraints: []validation.Constraint{{Target: "jobCollection.ID", Name: validation.ReadOnly, Rule: true, Chain: nil}, + {Target: "jobCollection.Type", Name: validation.ReadOnly, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "scheduler.JobCollectionsClient", "CreateOrUpdate") } @@ -552,9 +552,9 @@ func (client JobCollectionsClient) ListBySubscriptionNextResults(lastResults Job // collection name. jobCollection is the job collection definition. func (client JobCollectionsClient) Patch(resourceGroupName string, jobCollectionName string, jobCollection JobCollectionDefinition) (result JobCollectionDefinition, err error) { if err := validation.Validate([]validation.Validation{ - {jobCollection, - []validation.Constraint{{"ID", validation.ReadOnly, true, nil}, - {"Type", validation.ReadOnly, true, nil}}}}); err != nil { + {TargetValue: jobCollection, + Constraints: []validation.Constraint{{Target: "jobCollection.ID", Name: validation.ReadOnly, Rule: true, Chain: nil}, + {Target: "jobCollection.Type", Name: validation.ReadOnly, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "scheduler.JobCollectionsClient", "Patch") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/scheduler/jobs.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/scheduler/jobs.go index cd9f3ca0b..a2c4e12ca 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/scheduler/jobs.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/scheduler/jobs.go @@ -46,20 +46,20 @@ func NewJobsClientWithBaseURI(baseURI string, subscriptionID string) JobsClient // collection name. jobName is the job name. job is the job definition. func (client JobsClient) CreateOrUpdate(resourceGroupName string, jobCollectionName string, jobName string, job JobDefinition) (result JobDefinition, err error) { if err := validation.Validate([]validation.Validation{ - {job, - []validation.Constraint{{"job.Properties", validation.Null, false, - []validation.Constraint{{"job.Properties.Status", validation.Null, false, - []validation.Constraint{{"ExecutionCount", validation.ReadOnly, true, nil}, - {"FailureCount", validation.ReadOnly, true, nil}, - {"FaultedCount", validation.ReadOnly, true, nil}, - {"LastExecutionTime", validation.ReadOnly, true, nil}, - {"NextExecutionTime", validation.ReadOnly, true, nil}, + {TargetValue: job, + Constraints: []validation.Constraint{{Target: "job.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "job.Properties.Status", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "job.Properties.Status.ExecutionCount", Name: validation.ReadOnly, Rule: true, Chain: nil}, + {Target: "job.Properties.Status.FailureCount", Name: validation.ReadOnly, Rule: true, Chain: nil}, + {Target: "job.Properties.Status.FaultedCount", Name: validation.ReadOnly, Rule: true, Chain: nil}, + {Target: "job.Properties.Status.LastExecutionTime", Name: validation.ReadOnly, Rule: true, Chain: nil}, + {Target: "job.Properties.Status.NextExecutionTime", Name: validation.ReadOnly, Rule: true, Chain: nil}, }}, - {"Status", validation.ReadOnly, true, nil}, + {Target: "job.Properties.Status", Name: validation.ReadOnly, Rule: true, Chain: nil}, }}, - {"ID", validation.ReadOnly, true, nil}, - {"Type", validation.ReadOnly, true, nil}, - {"Name", validation.ReadOnly, true, nil}}}}); err != nil { + {Target: "job.ID", Name: validation.ReadOnly, Rule: true, Chain: nil}, + {Target: "job.Type", Name: validation.ReadOnly, Rule: true, Chain: nil}, + {Target: "job.Name", Name: validation.ReadOnly, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "scheduler.JobsClient", "CreateOrUpdate") } @@ -260,10 +260,10 @@ func (client JobsClient) GetResponder(resp *http.Response) (result JobDefinition // state. func (client JobsClient) List(resourceGroupName string, jobCollectionName string, top *int32, skip *int32, filter string) (result JobListResult, err error) { if err := validation.Validate([]validation.Validation{ - {top, - []validation.Constraint{{"top", validation.Null, false, - []validation.Constraint{{"top", validation.InclusiveMaximum, 100, nil}, - {"top", validation.InclusiveMinimum, 1, nil}, + {TargetValue: top, + Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMaximum, Rule: 100, Chain: nil}, + {Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, }}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "scheduler.JobsClient", "List") } @@ -368,10 +368,10 @@ func (client JobsClient) ListNextResults(lastResults JobListResult) (result JobL // filter to apply on the job state. func (client JobsClient) ListJobHistory(resourceGroupName string, jobCollectionName string, jobName string, top *int32, skip *int32, filter string) (result JobHistoryListResult, err error) { if err := validation.Validate([]validation.Validation{ - {top, - []validation.Constraint{{"top", validation.Null, false, - []validation.Constraint{{"top", validation.InclusiveMaximum, 100, nil}, - {"top", validation.InclusiveMinimum, 1, nil}, + {TargetValue: top, + Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMaximum, Rule: 100, Chain: nil}, + {Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, }}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "scheduler.JobsClient", "ListJobHistory") } @@ -474,10 +474,10 @@ func (client JobsClient) ListJobHistoryNextResults(lastResults JobHistoryListRes // collection name. jobName is the job name. job is the job definition. func (client JobsClient) Patch(resourceGroupName string, jobCollectionName string, jobName string, job JobDefinition) (result JobDefinition, err error) { if err := validation.Validate([]validation.Validation{ - {job, - []validation.Constraint{{"ID", validation.ReadOnly, true, nil}, - {"Type", validation.ReadOnly, true, nil}, - {"Name", validation.ReadOnly, true, nil}}}}); err != nil { + {TargetValue: job, + Constraints: []validation.Constraint{{Target: "job.ID", Name: validation.ReadOnly, Rule: true, Chain: nil}, + {Target: "job.Type", Name: validation.ReadOnly, Rule: true, Chain: nil}, + {Target: "job.Name", Name: validation.ReadOnly, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "scheduler.JobsClient", "Patch") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/scheduler/version.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/scheduler/version.go index 0844417a8..2377004e0 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/scheduler/version.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/scheduler/version.go @@ -23,7 +23,7 @@ import ( ) const ( - major = "4" + major = "5" minor = "0" patch = "0" // Always begin a "tag" with a dash (as per http://semver.org) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/namespaces.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/namespaces.go index e979eb045..53b297a86 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/namespaces.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/namespaces.go @@ -52,8 +52,8 @@ func NewNamespacesClientWithBaseURI(baseURI string, subscriptionID string) Names // Resource. func (client NamespacesClient) CreateOrUpdate(resourceGroupName string, namespaceName string, parameters NamespaceCreateOrUpdateParameters, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {parameters, - []validation.Constraint{{"parameters.Location", validation.Null, true, nil}}}}); err != nil { + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Location", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "servicebus.NamespacesClient", "CreateOrUpdate") } @@ -126,9 +126,9 @@ func (client NamespacesClient) CreateOrUpdateResponder(resp *http.Response) (res // Name. parameters is the shared access authorization rule. func (client NamespacesClient) CreateOrUpdateAuthorizationRule(resourceGroupName string, namespaceName string, authorizationRuleName string, parameters SharedAccessAuthorizationRuleCreateOrUpdateParameters) (result SharedAccessAuthorizationRuleResource, err error) { if err := validation.Validate([]validation.Validation{ - {parameters, - []validation.Constraint{{"parameters.Properties", validation.Null, false, - []validation.Constraint{{"parameters.Properties.Rights", validation.Null, true, nil}}}}}}); err != nil { + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.Rights", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "servicebus.NamespacesClient", "CreateOrUpdateAuthorizationRule") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/queues.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/queues.go index 168251129..a0891931e 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/queues.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/queues.go @@ -48,8 +48,8 @@ func NewQueuesClientWithBaseURI(baseURI string, subscriptionID string) QueuesCli // supplied to create a Queue Resource. func (client QueuesClient) CreateOrUpdate(resourceGroupName string, namespaceName string, queueName string, parameters QueueCreateOrUpdateParameters) (result QueueResource, err error) { if err := validation.Validate([]validation.Validation{ - {parameters, - []validation.Constraint{{"parameters.Location", validation.Null, true, nil}}}}); err != nil { + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Location", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "servicebus.QueuesClient", "CreateOrUpdate") } @@ -122,9 +122,9 @@ func (client QueuesClient) CreateOrUpdateResponder(resp *http.Response) (result // rule. func (client QueuesClient) CreateOrUpdateAuthorizationRule(resourceGroupName string, namespaceName string, queueName string, authorizationRuleName string, parameters SharedAccessAuthorizationRuleCreateOrUpdateParameters) (result SharedAccessAuthorizationRuleResource, err error) { if err := validation.Validate([]validation.Validation{ - {parameters, - []validation.Constraint{{"parameters.Properties", validation.Null, false, - []validation.Constraint{{"parameters.Properties.Rights", validation.Null, true, nil}}}}}}); err != nil { + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.Rights", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "servicebus.QueuesClient", "CreateOrUpdateAuthorizationRule") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/subscriptions.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/subscriptions.go index 0ce767d76..596fd970f 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/subscriptions.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/subscriptions.go @@ -50,8 +50,8 @@ func NewSubscriptionsClientWithBaseURI(baseURI string, subscriptionID string) Su // subscription Resource. func (client SubscriptionsClient) CreateOrUpdate(resourceGroupName string, namespaceName string, topicName string, subscriptionName string, parameters SubscriptionCreateOrUpdateParameters) (result SubscriptionResource, err error) { if err := validation.Validate([]validation.Validation{ - {parameters, - []validation.Constraint{{"parameters.Location", validation.Null, true, nil}}}}); err != nil { + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Location", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "servicebus.SubscriptionsClient", "CreateOrUpdate") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/topics.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/topics.go index bb302a512..ee2af19a7 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/topics.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/topics.go @@ -47,8 +47,8 @@ func NewTopicsClientWithBaseURI(baseURI string, subscriptionID string) TopicsCli // supplied to create a Topic Resource. func (client TopicsClient) CreateOrUpdate(resourceGroupName string, namespaceName string, topicName string, parameters TopicCreateOrUpdateParameters) (result TopicResource, err error) { if err := validation.Validate([]validation.Validation{ - {parameters, - []validation.Constraint{{"parameters.Location", validation.Null, true, nil}}}}); err != nil { + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Location", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "servicebus.TopicsClient", "CreateOrUpdate") } @@ -122,9 +122,9 @@ func (client TopicsClient) CreateOrUpdateResponder(resp *http.Response) (result // rule. func (client TopicsClient) CreateOrUpdateAuthorizationRule(resourceGroupName string, namespaceName string, topicName string, authorizationRuleName string, parameters SharedAccessAuthorizationRuleCreateOrUpdateParameters) (result SharedAccessAuthorizationRuleResource, err error) { if err := validation.Validate([]validation.Validation{ - {parameters, - []validation.Constraint{{"parameters.Properties", validation.Null, false, - []validation.Constraint{{"parameters.Properties.Rights", validation.Null, true, nil}}}}}}); err != nil { + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.Rights", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "servicebus.TopicsClient", "CreateOrUpdateAuthorizationRule") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/version.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/version.go index 3e9619dc2..016c6f3f9 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/version.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/servicebus/version.go @@ -23,7 +23,7 @@ import ( ) const ( - major = "4" + major = "5" minor = "0" patch = "0" // Always begin a "tag" with a dash (as per http://semver.org) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/storage/accounts.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/storage/accounts.go index d405679e3..d9c54e795 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/storage/accounts.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/storage/accounts.go @@ -48,9 +48,9 @@ func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) Account // in length and use numbers and lower-case letters only. func (client AccountsClient) CheckNameAvailability(accountName AccountCheckNameAvailabilityParameters) (result CheckNameAvailabilityResult, err error) { if err := validation.Validate([]validation.Validation{ - {accountName, - []validation.Constraint{{"accountName.Name", validation.Null, true, nil}, - {"accountName.Type", validation.Null, true, nil}}}}); err != nil { + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "accountName.Type", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "storage.AccountsClient", "CheckNameAvailability") } @@ -128,22 +128,22 @@ func (client AccountsClient) CheckNameAvailabilityResponder(resp *http.Response) // parameters is the parameters to provide for the created account. func (client AccountsClient) Create(resourceGroupName string, accountName string, parameters AccountCreateParameters, cancel <-chan struct{}) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {accountName, - []validation.Constraint{{"accountName", validation.MaxLength, 24, nil}, - {"accountName", validation.MinLength, 3, nil}}}, - {parameters, - []validation.Constraint{{"parameters.Sku", validation.Null, true, - []validation.Constraint{{"Tier", validation.ReadOnly, true, nil}}}, - {"parameters.Location", validation.Null, true, nil}, - {"parameters.Properties", validation.Null, false, - []validation.Constraint{{"parameters.Properties.CustomDomain", validation.Null, false, - []validation.Constraint{{"parameters.Properties.CustomDomain.Name", validation.Null, true, nil}}}, - {"parameters.Properties.Encryption", validation.Null, false, - []validation.Constraint{{"parameters.Properties.Encryption.Services", validation.Null, false, - []validation.Constraint{{"parameters.Properties.Encryption.Services.Blob", validation.Null, false, - []validation.Constraint{{"LastEnabledTime", validation.ReadOnly, true, nil}}}, + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.Sku", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.Sku.Tier", Name: validation.ReadOnly, Rule: true, Chain: nil}}}, + {Target: "parameters.Location", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.Properties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.CustomDomain", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.CustomDomain.Name", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "parameters.Properties.Encryption", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.Encryption.Services", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.Encryption.Services.Blob", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.Properties.Encryption.Services.Blob.LastEnabledTime", Name: validation.ReadOnly, Rule: true, Chain: nil}}}, }}, - {"parameters.Properties.Encryption.KeySource", validation.Null, true, nil}, + {Target: "parameters.Properties.Encryption.KeySource", Name: validation.Null, Rule: true, Chain: nil}, }}, }}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "storage.AccountsClient", "Create") @@ -218,9 +218,9 @@ func (client AccountsClient) CreateResponder(resp *http.Response) (result autore // characters in length and use numbers and lower-case letters only. func (client AccountsClient) Delete(resourceGroupName string, accountName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ - {accountName, - []validation.Constraint{{"accountName", validation.MaxLength, 24, nil}, - {"accountName", validation.MinLength, 3, nil}}}}); err != nil { + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "storage.AccountsClient", "Delete") } @@ -291,9 +291,9 @@ func (client AccountsClient) DeleteResponder(resp *http.Response) (result autore // characters in length and use numbers and lower-case letters only. func (client AccountsClient) GetProperties(resourceGroupName string, accountName string) (result Account, err error) { if err := validation.Validate([]validation.Validation{ - {accountName, - []validation.Constraint{{"accountName", validation.MaxLength, 24, nil}, - {"accountName", validation.MinLength, 3, nil}}}}); err != nil { + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "storage.AccountsClient", "GetProperties") } @@ -484,9 +484,9 @@ func (client AccountsClient) ListByResourceGroupResponder(resp *http.Response) ( // name of the storage account. func (client AccountsClient) ListKeys(resourceGroupName string, accountName string) (result AccountListKeysResult, err error) { if err := validation.Validate([]validation.Validation{ - {accountName, - []validation.Constraint{{"accountName", validation.MaxLength, 24, nil}, - {"accountName", validation.MinLength, 3, nil}}}}); err != nil { + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "storage.AccountsClient", "ListKeys") } @@ -558,11 +558,11 @@ func (client AccountsClient) ListKeysResponder(resp *http.Response) (result Acco // key1 or key2 for the default keys func (client AccountsClient) RegenerateKey(resourceGroupName string, accountName string, regenerateKey AccountRegenerateKeyParameters) (result AccountListKeysResult, err error) { if err := validation.Validate([]validation.Validation{ - {accountName, - []validation.Constraint{{"accountName", validation.MaxLength, 24, nil}, - {"accountName", validation.MinLength, 3, nil}}}, - {regenerateKey, - []validation.Constraint{{"regenerateKey.KeyName", validation.Null, true, nil}}}}); err != nil { + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}, + {TargetValue: regenerateKey, + Constraints: []validation.Constraint{{Target: "regenerateKey.KeyName", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "storage.AccountsClient", "RegenerateKey") } @@ -644,9 +644,9 @@ func (client AccountsClient) RegenerateKeyResponder(resp *http.Response) (result // parameters is the parameters to provide for the updated account. func (client AccountsClient) Update(resourceGroupName string, accountName string, parameters AccountUpdateParameters) (result Account, err error) { if err := validation.Validate([]validation.Validation{ - {accountName, - []validation.Constraint{{"accountName", validation.MaxLength, 24, nil}, - {"accountName", validation.MinLength, 3, nil}}}}); err != nil { + {TargetValue: accountName, + Constraints: []validation.Constraint{{Target: "accountName", Name: validation.MaxLength, Rule: 24, Chain: nil}, + {Target: "accountName", Name: validation.MinLength, Rule: 3, Chain: nil}}}}); err != nil { return result, validation.NewErrorWithValidationError(err, "storage.AccountsClient", "Update") } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/storage/version.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/storage/version.go index 80ba88e0c..cfdcee618 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/storage/version.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/storage/version.go @@ -23,7 +23,7 @@ import ( ) const ( - major = "4" + major = "5" minor = "0" patch = "0" // Always begin a "tag" with a dash (as per http://semver.org) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/arm/trafficmanager/version.go b/vendor/github.com/Azure/azure-sdk-for-go/arm/trafficmanager/version.go index eea7aa9a0..3f08919ab 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/arm/trafficmanager/version.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/arm/trafficmanager/version.go @@ -23,7 +23,7 @@ import ( ) const ( - major = "4" + major = "5" minor = "0" patch = "0" // Always begin a "tag" with a dash (as per http://semver.org) diff --git a/vendor/vendor.json b/vendor/vendor.json index 4767aaaa9..b2c4378da 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -3,200 +3,200 @@ "ignore": "appengine test", "package": [ { - "checksumSHA1": "5FXJC6+oMCYl8sij1fa3mkHJefs=", + "checksumSHA1": "jJfoTqvuxrUbr5kzLEowUl8yol4=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/arm/cdn", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { - "checksumSHA1": "L584obqdMyoxf+nJCYpvSd2ES7g=", + "checksumSHA1": "ndoTo9HTATazQPZiPzq5rFYJhHM=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/arm/compute", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { - "checksumSHA1": "WjYcsax85SzuHBfuQe/b7jYLrI4=", + "checksumSHA1": "33Eny6aOVU6MjMYlfzufuo9OdCk=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/arm/network", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { - "checksumSHA1": "IDsbbd9jDoH5aNqcvCp0mJAHWkw=", + "checksumSHA1": "8rreGMFmUgD89dr4TzfUQOiJJbk=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/arm/resources/resources", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { - "checksumSHA1": "FmCejoSUVUSP++xqGYMuD7xSov0=", + "checksumSHA1": "su/B4Of9HfkZSGT8+891cRSt7/0=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/arm/scheduler", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { - "checksumSHA1": "cZIBlFsR4SYA5hKbta4jazmT2YQ=", + "checksumSHA1": "W8WrH37bYeEuSG8qTs5a5J+eEnA=", "path": "github.com/Azure/azure-sdk-for-go/arm/servicebus", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { - "checksumSHA1": "IbhYdKi3/52yodSVkJiy640neJc=", + "checksumSHA1": "FKbsaZkfT8fHDGlTzK1fdK44Ufc=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/arm/storage", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { - "checksumSHA1": "/C4ILtBEhZ1iXcH0+ObtvVSqRig=", + "checksumSHA1": "nBpj4xhS/L0RrSQf2RpEs4fe09k=", "path": "github.com/Azure/azure-sdk-for-go/arm/trafficmanager", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { "checksumSHA1": "+YUbdDgrxVZAyjcps6X2gB8BT+I=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/management", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { "checksumSHA1": "TcQ6KXoBkvUhCYeggJ/bwcz+QaQ=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/management/affinitygroup", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { "checksumSHA1": "HfjyhRfmKBsVgWLTOfWVcxe8Z88=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/management/hostedservice", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { "checksumSHA1": "4otMhU6xZ41HfmiGZFYtV93GdcI=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/management/location", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { "checksumSHA1": "hxivwm3D13cqFGOlOS3q8HD7DN0=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/management/networksecuritygroup", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { "checksumSHA1": "XzrPv8SWFBYdh5oie+NGysqnLIM=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/management/osimage", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { "checksumSHA1": "hzwziaU5QlMlFcFPdbEmW18oV3Y=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/management/sql", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { "checksumSHA1": "YoAhDE0X6hSFuPpXbpfqcTC0Zvw=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/management/storageservice", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { "checksumSHA1": "6xEiZL4a9rr5YbnY0RdzuzhEF1Q=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/management/virtualmachine", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { "checksumSHA1": "xcBM3zQtfcE3VHNBACJJGEesCBI=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/management/virtualmachinedisk", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { "checksumSHA1": "0bfdkDZ2JFV7bol6GQFfC0g+lP4=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/management/virtualmachineimage", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { "checksumSHA1": "IhjDqm84VDVSIoHyiGvUzuljG3s=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/management/virtualnetwork", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { "checksumSHA1": "+ykSkHo40/f6VK6/zXDqzF8Lh14=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/management/vmutils", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { "checksumSHA1": "T1DpzOaZGsKlUq16elkdwF6ddsU=", "comment": "v2.1.1-beta-8-gca4d906", "path": "github.com/Azure/azure-sdk-for-go/storage", - "revision": "5dbdd3e002c0c232938bf953a5e7fa9a58ee749e", - "revisionTime": "2016-09-27T20:53:54Z", - "version": "v3.2.0-beta", - "versionExact": "v3.2.0-beta" + "revision": "91f3d4a4d024e3c0d4d9412916d05cf84504a616", + "revisionTime": "2016-10-05T01:22:46Z", + "version": "v5.0.0-beta", + "versionExact": "v5.0.0-beta" }, { "checksumSHA1": "eVSHe6GIHj9/ziFrQLZ1SC7Nn6k=",